Commit 2f612948ad17470ee4c96cb9db8f728d58789256
1 parent
a8b0de85
update...
Showing
2 changed files
with
6 additions
and
2 deletions
src/main/resources/static/real_control_v2/js/modal_extend.js
| @@ -7,6 +7,10 @@ $(document).on('hide.uk.modal', '.uk-modal', function () { | @@ -7,6 +7,10 @@ $(document).on('hide.uk.modal', '.uk-modal', function () { | ||
| 7 | $(document).on('show.uk.modal', '.uk-modal', function () { | 7 | $(document).on('show.uk.modal', '.uk-modal', function () { |
| 8 | if($('.uk-modal-dialog', this).hasClass('uk-modal-dialog-blank')) | 8 | if($('.uk-modal-dialog', this).hasClass('uk-modal-dialog-blank')) |
| 9 | return; | 9 | return; |
| 10 | + | ||
| 11 | + //临时放过g'ji轨迹回放 | ||
| 12 | + if($(this).attr('id')=='map-playback-modal') | ||
| 13 | + return; | ||
| 10 | //计算居中位置 | 14 | //计算居中位置 |
| 11 | var win = $('body'); | 15 | var win = $('body'); |
| 12 | var Y = (win.width() - $('.uk-modal-dialog', this).width()) / 2 - 10; | 16 | var Y = (win.width() - $('.uk-modal-dialog', this).width()) / 2 - 10; |
src/main/resources/static/real_control_v2/mapmonitor/fragments/playback/main.html
| 1 | <div class="uk-modal ct-form-modal" id="map-playback-modal"> | 1 | <div class="uk-modal ct-form-modal" id="map-playback-modal"> |
| 2 | - <div class="uk-modal-dialog" > | 2 | + <div class="uk-modal-dialog" style="position: relative !important;margin: 50px auto !important;left: 0px !important;top: 0px !important;"> |
| 3 | <a href="" class="uk-modal-close uk-close"></a> | 3 | <a href="" class="uk-modal-close uk-close"></a> |
| 4 | <h1>轨迹回放</h1> | 4 | <h1>轨迹回放</h1> |
| 5 | <div class="pb_modal_body"></div> | 5 | <div class="pb_modal_body"></div> |
| @@ -22,7 +22,7 @@ | @@ -22,7 +22,7 @@ | ||
| 22 | $(this).css('min-width', '1280px'); | 22 | $(this).css('min-width', '1280px'); |
| 23 | }); | 23 | }); |
| 24 | $('.pb_modal_body', modal).load('/real_control_v2/mapmonitor/fragments/playback/run.html', function () { | 24 | $('.pb_modal_body', modal).load('/real_control_v2/mapmonitor/fragments/playback/run.html', function () { |
| 25 | - $('#playback_run_body', modal).trigger('init', data); | 25 | + $('#playback_run_body', modal).trigger('init', data); |
| 26 | }); | 26 | }); |
| 27 | }); | 27 | }); |
| 28 | })(); | 28 | })(); |