Forráskód Böngészése

Update from 1.11.x

Julio Montoya 5 éve
szülő
commit
048c5022a7

+ 2 - 2
main/announcements/announcements.php

@@ -523,7 +523,7 @@ switch ($action) {
 
         $form->addHtml("
             <script>
-                $(document).on('ready', function () {
+                $(function () {
                     $('#announcement_preview').on('click', function() {  
                         var users = [];
                         $('#users_to option').each(function() {
@@ -566,7 +566,7 @@ switch ($action) {
                 $form->addHtml(
                     "
                     <script>
-                        $(document).on('ready', function () {
+                        $(function () {
                             $('#choose_recipients').click();
                         });
                     </script>

+ 1 - 1
main/inc/lib/javascript/annotation/js/annotation.js

@@ -324,7 +324,7 @@
     };
 
     window.AnnotationQuestion = function (userSettings) {
-        $(document).on('ready', function () {
+        $(function () {
             var settings = $.extend(
                 {
                     questionId: 0,

+ 1 - 1
main/inc/lib/javascript/badge-studio/media/js/studio.js

@@ -86,7 +86,7 @@ function initGlyphSelector() {
     var glyphLog = [];
 
     $glyphSelectorButton = document.createElement('button');
-    $glyphSelectorButton.className = 'btn btn-default float-right';
+    $glyphSelectorButton.className = 'btn btn-default pull-right';
     $glyphSelectorButton.id = 'search-glyphs';
     $glyphSelectorButton.type = 'button';
     $glyphSelectorButton.innerHTML = '<em class="fa fa-search"></em> Search';

+ 1 - 1
plugin/bbb/resources/utils.js

@@ -1,4 +1,4 @@
-$(document).on('ready', function () {
+$(function () {
     $('.check-meeting-video').on('click', function (e) {
         e.preventDefault();
 

+ 1 - 1
plugin/buycourses/view/sales_report.tpl

@@ -81,7 +81,7 @@
 </div>
 
 <script>
-    $(document).on('ready', function () {
+    $(function () {
         $('[name="filter_type"]').on('change', function () {
             var self = $(this);
 

+ 1 - 1
plugin/buycourses/view/service_panel.tpl

@@ -56,7 +56,7 @@
     </table>
 </div>
 <script>
-    $(document).on('ready', function () {
+    $(function () {
         $("td a").click(function () {
             var id = $(this).attr('tag');
             var action = $(this).attr('id');

+ 1 - 1
plugin/buycourses/view/service_sales_report.tpl

@@ -73,7 +73,7 @@
 </div>
 
 <script>
-    $(document).on('ready', function () {
+    $(function () {
         $("td a").click(function () {
             var id = $(this).attr('tag');
             var action = $(this).attr('id');

+ 1 - 1
plugin/grading_electronic/view/grading.html.twig

@@ -23,7 +23,7 @@
         </div>
     </div>
     <script>
-        $(document).on('ready', function () {
+        $(function () {
             $('form[name="frm_grading_electronic"]').on('submit', function (e) {
                 e.preventDefault();
 

+ 1 - 1
plugin/tour/views/script.tpl

@@ -57,7 +57,7 @@
             };
         })();
 
-        $(document).on('ready', function() {
+        $(function () {
             var pages = {{ tour.pages }};
 
             $.each(pages, function(index, page) {