浏览代码

Fix show global modal on main template - refs BT#9901 #TMI

Angel Fernando Quiroz Campos 9 年之前
父节点
当前提交
839e1bbc6c
共有 2 个文件被更改,包括 16 次插入16 次删除
  1. 0 16
      main/template/default/layout/footer.tpl
  2. 16 0
      main/template/default/layout/main_footer.tpl

+ 0 - 16
main/template/default/layout/footer.tpl

@@ -72,22 +72,6 @@
     </div>
 </div>
 
-{# Global modal, load content by AJAX call to href attribute on anchor tag with 'ajax' class #}
-<div class="modal fade" id="global-modal" tabindex="-1" role="dialog" aria-labelledby="global-modal-title" aria-hidden="true">
-    <div class="modal-dialog modal-lg">
-        <div class="modal-content">
-            <div class="modal-header">
-                <button type="button" class="close" data-dismiss="modal" aria-label="{{ "Close" | get_lang }}">
-                    <span aria-hidden="true">&times;</span>
-                </button>
-                <h4 class="modal-title" id="global-modal-title">&nbsp;</h4>
-            </div>
-            <div class="modal-body">
-            </div>
-        </div>
-    </div>
-</div>
-
 <script>
     $("form").on("click", ' .advanced_parameters', function() {
         /*var id = $(this).attr('id') + '_options';

+ 16 - 0
main/template/default/layout/main_footer.tpl

@@ -1,5 +1,21 @@
 {% if show_footer == true %}
     {% include template ~ "/layout/footer.tpl" %}
 {% endif %}
+
+    {# Global modal, load content by AJAX call to href attribute on anchor tag with 'ajax' class #}
+    <div class="modal fade" id="global-modal" tabindex="-1" role="dialog" aria-labelledby="global-modal-title" aria-hidden="true">
+        <div class="modal-dialog modal-lg">
+            <div class="modal-content">
+                <div class="modal-header">
+                    <button type="button" class="close" data-dismiss="modal" aria-label="{{ "Close" | get_lang }}">
+                        <span aria-hidden="true">&times;</span>
+                    </button>
+                    <h4 class="modal-title" id="global-modal-title">&nbsp;</h4>
+                </div>
+                <div class="modal-body">
+                </div>
+            </div>
+        </div>
+    </div>
 </body>
 </html>