ソースを参照

Avoid use jQuery UI dialogs - refs BT#9887 #TMI

Angel Fernando Quiroz Campos 9 年 前
コミット
9c48d3f1d8
2 ファイル変更1 行追加49 行削除
  1. 1 20
      main/admin/user_list.php
  2. 0 29
      main/auth/courses.php

+ 1 - 20
main/admin/user_list.php

@@ -125,25 +125,6 @@ $(document).ready(function() {
             document.getElementById(\'extra_data_text\').style.display="none";
         }
     }
-
-    $(".agenda_opener").click(function() {
-        var url = this.href;
-        var dialog = $("#dialog");
-
-        if ($("#dialog").length == 0) {
-            dialog = $(\'<div id="dialog" style="display:hidden"></div> \').appendTo(\'body\');
-        }
-        // load remote content
-        dialog.load(
-            url,
-            {},
-            function(responseText, textStatus, XMLHttpRequest) {
-                dialog.dialog({width:720, height:550, modal:true});
-            }
-        );
-        //prevent the browser to follow the link
-        return false;
-    });
 });
 
 //Load user calendar
@@ -591,7 +572,7 @@ function modify_filter($user_id, $url_params, $row) {
 	}
 
     if (api_is_platform_admin()) {
-        $result .= ' <a href="'.api_get_path(WEB_AJAX_PATH).'agenda.ajax.php?a=get_user_agenda&amp;user_id='.$user_id.'" class="agenda_opener">'.
+        $result .= ' <a href="'.api_get_path(WEB_AJAX_PATH).'agenda.ajax.php?a=get_user_agenda&amp;user_id='.$user_id.'&modal_size=lg" class="agenda_opener ajax">'.
             Display::return_icon('month.png', get_lang('FreeBusyCalendar'), array(), ICON_SIZE_SMALL).'</a>';
         $deleteAllowed = !api_get_configuration_value('deny_delete_users');
         if ($deleteAllowed) {

+ 0 - 29
main/auth/courses.php

@@ -15,35 +15,6 @@ require_once '../inc/global.inc.php';
 
 $ctok = Security::get_existing_token();
 
-if (api_get_setting('show_courses_descriptions_in_catalog') == 'true') {
-    $htmlHeadXtra[] = '
-    <script>
-    $(document).ready(function() {
-        $(\'.ajax\').click(function() {
-            var url     = this.href;
-            var dialog  = $("#dialog");
-            if ($("#dialog").length == 0) {
-                dialog  = $(\'<div id="dialog" style="display:hidden"></div>\').appendTo(\'body\');
-            }
-
-            // load remote content
-            dialog.load(
-                url,
-                {},
-                function(responseText, textStatus, XMLHttpRequest) {
-                    dialog.dialog({
-                    modal : true,
-                    width : 540,
-                    height : 400
-                });
-            });
-            //prevent the browser to follow the link
-            return false;
-        });
-    });
-    </script>';
-}
-
 // Get Limit data
 $limit = getLimitArray();