Bug 24819: (follow-up) Rename suggestion_search to suggestor_search
[koha-ffzg.git] / koha-tmpl / intranet-tmpl / prog / js / messaging-preference-form.js
index 93f1ce3..ea01a62 100644 (file)
@@ -1,21 +1,4 @@
 $(document).ready(function(){
-    $(".none").click(function(){
-        if($(this).prop("checked")){
-            var rowid = $(this).attr("id");
-            var newid = Number(rowid.replace("none",""));
-            $("#sms"+newid).prop("checked", false);
-            $("#email"+newid).prop("checked", false);
-            $("#phone"+newid).prop("checked", false);
-            $("#digest"+newid).prop("checked", false);
-            $("#rss"+newid).prop("checked", false);
-        }
-    });
-    $(".active_notify").on("change",function(){
-        var attr_id = $(this).data("attr-id");
-        if( $(this).prop("checked") ){
-            $("#none" + attr_id ).prop("checked", false);
-        }
-    });
     $("#info_digests").tooltip();
 
     var message_prefs_dirty = false;
@@ -36,7 +19,6 @@ $(document).ready(function(){
                     return;
                 }
             }
-            $(".none").prop("checked", false); // When loading default prefs the "Do not notify" boxes should be cleared
             var jqxhr = $.getJSON('/cgi-bin/koha/members/default_messageprefs.pl?categorycode=' + categorycode, function(data) {
                 $.each(data.messaging_preferences, function(i, item) {
                     var attrid = item.message_attribute_id;