1. Takumi IINO
  2. kallithea

Commits

Takumi IINO  committed c2e25e8

replace YUI to jquery in templates/base/default_perms_box.html

  • Participants
  • Parent commits 92108a2
  • Branches default

Comments (0)

Files changed (1)

File kallithea/templates/base/default_perms_box.html

View file
 
 ## JS
 <script>
-YUE.onDOMReady(function(e){
-
+$(document).ready(function(){
     var show_custom_perms = function(inherit_default){
         if(inherit_default){
-            YUD.setStyle('inherit_overlay', 'display', 'none');
+            $('#inherit_overlay').css('display', 'none');
+        }else{
+            $('#inherit_overlay').css('display', '');
         }
-        else{
-            YUD.setStyle('inherit_overlay', 'display', '');
-        }
-    }
-
-    var defaults = YUD.get('inherit_default_permissions').checked;
-    show_custom_perms(defaults);
-    YUE.on('inherit_default_permissions', 'change', function(e){
-        if(YUD.get('inherit_default_permissions').checked){
-            show_custom_perms(true);
-        }
-        else{
-            show_custom_perms(false);
-        }
-    })
-})
+    };
+    show_custom_perms($('#inherit_default_permissions').prop('checked'));
+    $('#inherit_default_permissions').on('change', function(){
+        show_custom_perms($('#inherit_default_permissions').prop('checked'));
+    });
+});
 </script>
 
 </%def>