View | Details | Raw Unified | Return to bug 16238
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc (-15 / +15 lines)
Lines 3-16 Link Here
3
<script type="text/javascript">//<![CDATA[
3
<script type="text/javascript">//<![CDATA[
4
	$(document).ready(function(){
4
	$(document).ready(function(){
5
		$(".none").click(function(){
5
		$(".none").click(function(){
6
			if($(this).attr("checked")){
6
			if($(this).prop("checked")){
7
				var rowid = $(this).attr("id");
7
				var rowid = $(this).attr("id");
8
				newid = Number(rowid.replace("none","")) 
8
				newid = Number(rowid.replace("none","")) 
9
          $("#sms"+newid).removeAttr("checked");
9
          $("#sms"+newid).prop("checked", false);
10
          $("#email"+newid).removeAttr("checked");
10
          $("#email"+newid).prop("checked", false);
11
          $("#phone"+newid).removeAttr("checked");
11
          $("#phone"+newid).prop("checked", false);
12
          $("#digest"+newid).removeAttr("checked");
12
          $("#digest"+newid).prop("checked", false);
13
          $("#rss"+newid).removeAttr("checked");
13
          $("#rss"+newid).prop("checked", false);
14
			}
14
			}
15
		});
15
		});
16
        $("#info_digests").tooltip();
16
        $("#info_digests").tooltip();
Lines 75-86 Link Here
75
                 <input type="checkbox"
75
                 <input type="checkbox"
76
                 id="sms[% messaging_preference.message_attribute_id %]"
76
                 id="sms[% messaging_preference.message_attribute_id %]"
77
                 name="[% messaging_preference.message_attribute_id %]"
77
                 name="[% messaging_preference.message_attribute_id %]"
78
                 value="sms" checked="checked" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').removeAttr('checked');" />
78
                 value="sms" checked="checked" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').prop('checked', false);" />
79
              [% ELSE %]
79
              [% ELSE %]
80
                 <input type="checkbox"
80
                 <input type="checkbox"
81
                 id="sms[% messaging_preference.message_attribute_id %]"
81
                 id="sms[% messaging_preference.message_attribute_id %]"
82
                 name="[% messaging_preference.message_attribute_id %]"
82
                 name="[% messaging_preference.message_attribute_id %]"
83
                 value="sms" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').removeAttr('checked');" />
83
                 value="sms" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').prop('checked', false);" />
84
              [% END %]
84
              [% END %]
85
          [% END %]
85
          [% END %]
86
      </td>[% END %]
86
      </td>[% END %]
Lines 103-114 Link Here
103
                 <input type="checkbox"
103
                 <input type="checkbox"
104
                 id="phone[% messaging_preference.message_attribute_id %]"
104
                 id="phone[% messaging_preference.message_attribute_id %]"
105
                 name="[% messaging_preference.message_attribute_id %]"
105
                 name="[% messaging_preference.message_attribute_id %]"
106
                 value="phone" checked="checked" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').removeAttr('checked');" />
106
                 value="phone" checked="checked" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').prop('checked', false);" />
107
              [% ELSE %]
107
              [% ELSE %]
108
                 <input type="checkbox"
108
                 <input type="checkbox"
109
                 id="phone[% messaging_preference.message_attribute_id %]"
109
                 id="phone[% messaging_preference.message_attribute_id %]"
110
                 name="[% messaging_preference.message_attribute_id %]"
110
                 name="[% messaging_preference.message_attribute_id %]"
111
                 value="phone" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').removeAttr('checked');" />
111
                 value="phone" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').prop('checked', false);" />
112
              [% END %]
112
              [% END %]
113
          [% END %]
113
          [% END %]
114
      </td>[% END %]
114
      </td>[% END %]
Lines 132-143 Link Here
132
            <input type="checkbox"
132
            <input type="checkbox"
133
                 id="email[% messaging_preference.message_attribute_id %]"
133
                 id="email[% messaging_preference.message_attribute_id %]"
134
                 name="[% messaging_preference.message_attribute_id %]"
134
                 name="[% messaging_preference.message_attribute_id %]"
135
                 value="email" checked="checked" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').removeAttr('checked');" />
135
                 value="email" checked="checked" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').prop('checked', false);" />
136
              [% ELSE %]
136
              [% ELSE %]
137
            <input type="checkbox"
137
            <input type="checkbox"
138
                 id="email[% messaging_preference.message_attribute_id %]"
138
                 id="email[% messaging_preference.message_attribute_id %]"
139
                 name="[% messaging_preference.message_attribute_id %]"
139
                 name="[% messaging_preference.message_attribute_id %]"
140
                 value="email" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').removeAttr('checked');" />
140
                 value="email" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').prop('checked', false);" />
141
              [% END %]
141
              [% END %]
142
          [% END %]
142
          [% END %]
143
      </td>
143
      </td>
Lines 164-175 Link Here
164
                <input type="checkbox"
164
                <input type="checkbox"
165
                     id="digest[% messaging_preference.message_attribute_id %]"
165
                     id="digest[% messaging_preference.message_attribute_id %]"
166
                     value="[% messaging_preference.message_attribute_id %]"
166
                     value="[% messaging_preference.message_attribute_id %]"
167
                     name="digest" checked="checked" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').removeAttr('checked');" />
167
                     name="digest" checked="checked" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').prop('checked', false);" />
168
              [% ELSE %]
168
              [% ELSE %]
169
                <input type="checkbox"
169
                <input type="checkbox"
170
                     id="digest[% messaging_preference.message_attribute_id %]"
170
                     id="digest[% messaging_preference.message_attribute_id %]"
171
                     value="[% messaging_preference.message_attribute_id %]"
171
                     value="[% messaging_preference.message_attribute_id %]"
172
                     name="digest" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').removeAttr('checked');" />
172
                     name="digest" onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').prop('checked', false);" />
173
              [% END %]
173
              [% END %]
174
          [% END %]
174
          [% END %]
175
      </td>
175
      </td>
Lines 188-194 Link Here
188
            <input type="checkbox"
188
            <input type="checkbox"
189
                 id="rss[% messaging_preference.message_attribute_id %]"
189
                 id="rss[% messaging_preference.message_attribute_id %]"
190
                 name="[% messaging_preference.message_attribute_id %]"
190
                 name="[% messaging_preference.message_attribute_id %]"
191
                 value="rss"   [% messaging_preference.transport_rss %] onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').removeAttr('checked');" />
191
                 value="rss"   [% messaging_preference.transport_rss %] onclick = "$('#none'+'[% messaging_preference.message_attribute_id %]').prop('checked', false);" />
192
          [% END %]
192
          [% END %]
193
      </td>
193
      </td>
194
      [% ELSE %]
194
      [% ELSE %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/js/acq.js (-4 / +4 lines)
Lines 345-351 function checkBudgetParent(budgetId, newBudgetParent) { Link Here
345
}
345
}
346
346
347
function hideColumn(num) {
347
function hideColumn(num) {
348
    $("#hideall,#showall").removeAttr("checked").parent().removeClass("selected");
348
    $("#hideall,#showall").prop("checked", false).parent().removeClass("selected");
349
    $("#"+num).parent().removeClass("selected");
349
    $("#"+num).parent().removeClass("selected");
350
    var hide = Number(num.replace("col","")) + 2;
350
    var hide = Number(num.replace("col","")) + 2;
351
    // hide header and cells matching the index
351
    // hide header and cells matching the index
Lines 353-359 function hideColumn(num) { Link Here
353
}
353
}
354
354
355
function showColumn(num){
355
function showColumn(num){
356
    $("#hideall").removeAttr("checked").parent().removeClass("selected");
356
    $("#hideall").prop("checked", false).parent().removeClass("selected");
357
    $("#"+num).parent().addClass("selected");
357
    $("#"+num).parent().addClass("selected");
358
    // set the index of the table column to hide
358
    // set the index of the table column to hide
359
    show = Number(num.replace("col","")) + 2;
359
    show = Number(num.replace("col","")) + 2;
Lines 365-376 function showAllColumns(){ Link Here
365
    $("#selections").checkCheckboxes();
365
    $("#selections").checkCheckboxes();
366
    $("#selections span").addClass("selected");
366
    $("#selections span").addClass("selected");
367
    $("#plan td:nth-child(2),#plan tr th:nth-child(2)").nextAll().show();
367
    $("#plan td:nth-child(2),#plan tr th:nth-child(2)").nextAll().show();
368
    $("#hideall").removeAttr("checked").parent().removeClass("selected");
368
    $("#hideall").prop("checked", false).parent().removeClass("selected");
369
}
369
}
370
function hideAllColumns(){
370
function hideAllColumns(){
371
    var allCols = $("#plan th").length;
371
    var allCols = $("#plan th").length;
372
    $("#selections").unCheckCheckboxes();
372
    $("#selections").unCheckCheckboxes();
373
    $("#selections span").removeClass("selected");
373
    $("#selections span").removeClass("selected");
374
    $("#plan td:nth-child(2),#plan th:nth-child(2)").nextUntil("th:nth-child("+(allCols-1)+"),td:nth-child("+(allCols-1)+")").hide(); // hide all but the last two columns
374
    $("#plan td:nth-child(2),#plan th:nth-child(2)").nextUntil("th:nth-child("+(allCols-1)+"),td:nth-child("+(allCols-1)+")").hide(); // hide all but the last two columns
375
    $("#hideall").attr("checked","checked").parent().addClass("selected");
375
    $("#hideall").prop("checked", true).parent().addClass("selected");
376
}
376
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js (-7 / +7 lines)
Lines 6-38 $(document).ready(function() { Link Here
6
    // Handle the select all/none links for checkouts table columns
6
    // Handle the select all/none links for checkouts table columns
7
    $("#CheckAllRenewals").on("click",function(){
7
    $("#CheckAllRenewals").on("click",function(){
8
        $("#UncheckAllCheckins").click();
8
        $("#UncheckAllCheckins").click();
9
        $(".renew:visible").attr("checked", "checked" );
9
        $(".renew:visible").prop("checked", true);
10
        return false;
10
        return false;
11
    });
11
    });
12
    $("#UncheckAllRenewals").on("click",function(){
12
    $("#UncheckAllRenewals").on("click",function(){
13
        $(".renew:visible").removeAttr("checked");
13
        $(".renew:visible").prop("checked", false);
14
        return false;
14
        return false;
15
    });
15
    });
16
16
17
    $("#CheckAllCheckins").on("click",function(){
17
    $("#CheckAllCheckins").on("click",function(){
18
        $("#UncheckAllRenewals").click();
18
        $("#UncheckAllRenewals").click();
19
        $(".checkin:visible").attr("checked", "checked" );
19
        $(".checkin:visible").prop("checked", true);
20
        return false;
20
        return false;
21
    });
21
    });
22
    $("#UncheckAllCheckins").on("click",function(){
22
    $("#UncheckAllCheckins").on("click",function(){
23
        $(".checkin:visible").removeAttr("checked");
23
        $(".checkin:visible").prop("checked", false);
24
        return false;
24
        return false;
25
    });
25
    });
26
26
27
    // Don't allow both return and renew checkboxes to be checked
27
    // Don't allow both return and renew checkboxes to be checked
28
    $(document).on("change", '.renew', function(){
28
    $(document).on("change", '.renew', function(){
29
        if ( $(this).is(":checked") ) {
29
        if ( $(this).is(":checked") ) {
30
            $( "#checkin_" + $(this).val() ).removeAttr("checked");
30
            $( "#checkin_" + $(this).val() ).prop("checked", false);
31
        }
31
        }
32
    });
32
    });
33
    $(document).on("change", '.checkin', function(){
33
    $(document).on("change", '.checkin', function(){
34
        if ( $(this).is(":checked") ) {
34
        if ( $(this).is(":checked") ) {
35
            $( "#renew_" + $(this).val() ).removeAttr("checked");
35
            $( "#renew_" + $(this).val() ).prop("checked", false);
36
        }
36
        }
37
    });
37
    });
38
38
Lines 603-608 $(document).ready(function() { Link Here
603
            } else {
603
            } else {
604
                $( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show();
604
                $( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show();
605
            }
605
            }
606
        } ).attr( 'checked', false );
606
        } ).prop('checked', false);
607
    }
607
    }
608
 });
608
 });
(-)a/koha-tmpl/intranet-tmpl/prog/en/js/marc_subfields_structure.js (-6 / +6 lines)
Lines 11-17 $(document).ready(function() { Link Here
11
/* Function to enable/disable hidden values checkboxes when Flag is (de)selected */
11
/* Function to enable/disable hidden values checkboxes when Flag is (de)selected */
12
function enable_cb(tab) {
12
function enable_cb(tab) {
13
    if ($("#hidden_flagged_" + tab).is(':checked')) {
13
    if ($("#hidden_flagged_" + tab).is(':checked')) {
14
        $('.inclusive_' + tab).attr('disabled',true).removeAttr('checked');
14
        $('.inclusive_' + tab).attr('disabled',true).prop('checked', false);
15
    }
15
    }
16
    else {
16
    else {
17
        $('.inclusive_' + tab).removeAttr('disabled');
17
        $('.inclusive_' + tab).removeAttr('disabled');
Lines 132-142 function populateHiddenCheckboxes(tab) { Link Here
132
        collapsed_checked = true;
132
        collapsed_checked = true;
133
    } // else if ( hidden_value == '8') { skip }
133
    } // else if ( hidden_value == '8') { skip }
134
134
135
    $("#hidden_opac_" + tab).attr('checked',opac_checked);
135
    $("#hidden_opac_" + tab).prop('checked',opac_checked);
136
    $("#hidden_intranet_" + tab).attr('checked',intranet_checked);
136
    $("#hidden_intranet_" + tab).prop('checked',intranet_checked);
137
    $("#hidden_editor_" + tab).attr('checked',editor_checked);
137
    $("#hidden_editor_" + tab).prop('checked',editor_checked);
138
    $("#hidden_collapsed_" + tab).attr('checked',collapsed_checked);
138
    $("#hidden_collapsed_" + tab).prop('checked',collapsed_checked);
139
    $("#hidden_flagged_" + tab).attr('checked',flagged_checked);
139
    $("#hidden_flagged_" + tab).prop('checked',flagged_checked);
140
140
141
    enable_cb(tab);
141
    enable_cb(tab);
142
142
(-)a/koha-tmpl/intranet-tmpl/prog/en/js/merge-record.js (-6 / +6 lines)
Lines 44-50 function build_target_record($sources) { Link Here
44
        'code' : subfield
44
        'code' : subfield
45
      });
45
      });
46
    } else {
46
    } else {
47
      $field_li.find('input.fieldpick').attr('checked', true);
47
      $field_li.find('input.fieldpick').prop('checked', true);
48
      target_record[field] = [{
48
      target_record[field] = [{
49
        'id' : $field_li.attr('id'),
49
        'id' : $field_li.attr('id'),
50
        'tag' : field,
50
        'tag' : field,
Lines 141-147 function rebuild_target($sources, $target) { Link Here
141
          $field_clone.find('ul').append($subfield_clone);
141
          $field_clone.find('ul').append($subfield_clone);
142
        }
142
        }
143
      } else {
143
      } else {
144
        $('#' + field.id).find('input.fieldpick').removeAttr('checked');
144
        $('#' + field.id).find('input.fieldpick').prop('checked', false);
145
      }
145
      }
146
    }
146
    }
147
  }
147
  }
Lines 155-165 $(document).ready(function(){ Link Here
155
    $('input.fieldpick').click(function() {
155
    $('input.fieldpick').click(function() {
156
        var ischecked = this.checked;
156
        var ischecked = this.checked;
157
        if (ischecked) {
157
        if (ischecked) {
158
          $(this).removeAttr('checked');
158
          $(this).prop('checked', false);
159
          if (!field_can_be_added($('#tabs'), $(this).parent())) {
159
          if (!field_can_be_added($('#tabs'), $(this).parent())) {
160
            return false;
160
            return false;
161
          }
161
          }
162
          $(this).attr('checked', 'checked');
162
          $(this).prop('checked', true);
163
        }
163
        }
164
164
165
        // (un)check all subfields
165
        // (un)check all subfields
Lines 173-183 $(document).ready(function(){ Link Here
173
    $("input.subfieldpick").click(function() {
173
    $("input.subfieldpick").click(function() {
174
      var ischecked = this.checked;
174
      var ischecked = this.checked;
175
      if (ischecked) {
175
      if (ischecked) {
176
        $(this).removeAttr('checked');
176
        $(this).prop('checked', false);
177
        if (!subfield_can_be_added($('#tabs'), $(this).parent())) {
177
        if (!subfield_can_be_added($('#tabs'), $(this).parent())) {
178
          return false;
178
          return false;
179
        }
179
        }
180
        $(this).attr('checked', 'checked');
180
        $(this).prop('checked', true);
181
      }
181
      }
182
      rebuild_target($('#tabs'), $('#resultul'));
182
      rebuild_target($('#tabs'), $('#resultul'));
183
    });
183
    });
(-)a/koha-tmpl/intranet-tmpl/prog/en/js/pages/batchMod.js (-8 / +8 lines)
Lines 8-26 function hideColumns(){ Link Here
8
  valCookie = $.cookie("showColumns");
8
  valCookie = $.cookie("showColumns");
9
  if(valCookie){
9
  if(valCookie){
10
    valCookie = valCookie.split("/");
10
    valCookie = valCookie.split("/");
11
    $("#showall").removeAttr("checked").parent().removeClass("selected");
11
    $("#showall").prop("checked", false).parent().removeClass("selected");
12
    for( i=0; i<valCookie.length; i++ ){
12
    for( i=0; i<valCookie.length; i++ ){
13
      if(valCookie[i] !== ''){
13
      if(valCookie[i] !== ''){
14
        index = valCookie[i] - 2;
14
        index = valCookie[i] - 2;
15
        $("#itemst td:nth-child("+valCookie[i]+"),#itemst th:nth-child("+valCookie[i]+")").toggle();
15
        $("#itemst td:nth-child("+valCookie[i]+"),#itemst th:nth-child("+valCookie[i]+")").toggle();
16
        $("#checkheader"+index).removeAttr("checked").parent().removeClass("selected");
16
        $("#checkheader"+index).prop("checked", false).parent().removeClass("selected");
17
      }
17
      }
18
    }
18
    }
19
  }
19
  }
20
}
20
}
21
21
22
function hideColumn(num) {
22
function hideColumn(num) {
23
  $("#hideall,#showall").removeAttr("checked").parent().removeClass("selected");
23
  $("#hideall,#showall").prop("checked", false).parent().removeClass("selected");
24
  valCookie = $.cookie("showColumns");
24
  valCookie = $.cookie("showColumns");
25
  // set the index of the table column to hide
25
  // set the index of the table column to hide
26
  $("#"+num).parent().removeClass("selected");
26
  $("#"+num).parent().removeClass("selected");
Lines 56-62 Array.prototype.remove = function(from, to) { Link Here
56
};
56
};
57
57
58
function showColumn(num){
58
function showColumn(num){
59
  $("#hideall").removeAttr("checked").parent().removeClass("selected");
59
  $("#hideall").prop("checked", false).parent().removeClass("selected");
60
  $("#"+num).parent().addClass("selected");
60
  $("#"+num).parent().addClass("selected");
61
  valCookie = $.cookie("showColumns");
61
  valCookie = $.cookie("showColumns");
62
  // set the index of the table column to hide
62
  // set the index of the table column to hide
Lines 84-96 function showAllColumns(){ Link Here
84
    $("#selections span").addClass("selected");
84
    $("#selections span").addClass("selected");
85
    $("#itemst td:nth-child(2),#itemst tr th:nth-child(2)").nextAll().show();
85
    $("#itemst td:nth-child(2),#itemst tr th:nth-child(2)").nextAll().show();
86
    $.removeCookie("showColumns", { path: '/' });
86
    $.removeCookie("showColumns", { path: '/' });
87
    $("#hideall").removeAttr("checked").parent().removeClass("selected");
87
    $("#hideall").prop("checked", false).parent().removeClass("selected");
88
}
88
}
89
function hideAllColumns(){
89
function hideAllColumns(){
90
    $("#selections").unCheckCheckboxes();
90
    $("#selections").unCheckCheckboxes();
91
    $("#selections span").removeClass("selected");
91
    $("#selections span").removeClass("selected");
92
    $("#itemst td:nth-child(2),#itemst th:nth-child(2)").nextAll().hide();
92
    $("#itemst td:nth-child(2),#itemst th:nth-child(2)").nextAll().hide();
93
    $("#hideall").attr("checked","checked").parent().addClass("selected");
93
    $("#hideall").prop("checked", true).parent().addClass("selected");
94
    var cookieString = allColumns.join("/");
94
    var cookieString = allColumns.join("/");
95
    $.cookie("showColumns", cookieString, { expires : date, path: '/' });
95
    $.cookie("showColumns", cookieString, { expires : date, path: '/' });
96
}
96
}
Lines 115-121 function hideAllColumns(){ Link Here
115
    });
115
    });
116
    $("#clearonloanbutton").click(function(){
116
    $("#clearonloanbutton").click(function(){
117
      $("#itemst input[name='itemnumber'][data-is-onloan='1']").each(function(){
117
      $("#itemst input[name='itemnumber'][data-is-onloan='1']").each(function(){
118
        $(this).attr('checked', false);
118
        $(this).prop('checked', false);
119
      });
119
      });
120
      return false;
120
      return false;
121
    });
121
    });
Lines 128-134 function hideAllColumns(){ Link Here
128
        hideAllColumns();
128
        hideAllColumns();
129
        e.stopPropagation();
129
        e.stopPropagation();
130
      } else {
130
      } else {
131
        if($(this).attr("checked")){
131
        if($(this).prop("checked")){
132
          showColumn(num);
132
          showColumn(num);
133
        } else {
133
        } else {
134
          hideColumn(num);
134
          hideColumn(num);
(-)a/koha-tmpl/intranet-tmpl/prog/en/js/pages/circulation.js (-5 / +5 lines)
Lines 1-10 Link Here
1
$(document).ready(function() {
1
$(document).ready(function() {
2
    $("#CheckAllExports").on("click",function(){
2
    $("#CheckAllExports").on("click",function(){
3
        $(".export:visible").attr("checked", "checked" );
3
        $(".export:visible").prop("checked", true);
4
        return false;
4
        return false;
5
    });
5
    });
6
    $("#UncheckAllExports").on("click",function(){
6
    $("#UncheckAllExports").on("click",function(){
7
        $(".export:visible").removeAttr("checked");
7
        $(".export:visible").prop("checked", false);
8
        return false;
8
        return false;
9
    });
9
    });
10
10
Lines 48-54 $(document).ready(function() { Link Here
48
});
48
});
49
49
50
function export_checkouts(format) {
50
function export_checkouts(format) {
51
    if ($("input:checkbox[name='biblionumbers'][checked]").length < 1){
51
    if ($("input:checkbox[name='biblionumbers']:checked").length < 1){
52
        alert(MSG_EXPORT_SELECT_CHECKOUTS);
52
        alert(MSG_EXPORT_SELECT_CHECKOUTS);
53
        return;
53
        return;
54
    }
54
    }
Lines 56-64 function export_checkouts(format) { Link Here
56
    $("input:checkbox[name='biblionumbers']").each( function(){
56
    $("input:checkbox[name='biblionumbers']").each( function(){
57
        var input_item = $(this).siblings("input:checkbox");
57
        var input_item = $(this).siblings("input:checkbox");
58
        if ( $(this).is(":checked") ) {
58
        if ( $(this).is(":checked") ) {
59
            $(input_item).attr("checked", "checked");
59
            $(input_item).prop("checked", true);
60
        } else {
60
        } else {
61
            $(input_item).attr("checked", "");
61
            $(input_item).prop("checked", false);
62
        }
62
        }
63
    } );
63
    } );
64
64
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt (-1 / +1 lines)
Lines 104-110 Link Here
104
            }
104
            }
105
        } );
105
        } );
106
106
107
        $("input:checkbox").attr("checked", false);
107
        $("input:checkbox").prop("checked", false);
108
        $("div.biblio.unselected select").attr("disabled", false);
108
        $("div.biblio.unselected select").attr("disabled", false);
109
        $("div.biblio.unselected input").attr("disabled", false);
109
        $("div.biblio.unselected input").attr("disabled", false);
110
110
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt (-1 / +1 lines)
Lines 26-32 Link Here
26
            updateColumnsVisibility($(this+":checked").val());
26
            updateColumnsVisibility($(this+":checked").val());
27
        });
27
        });
28
28
29
        $("#show_all_details").attr('checked', false);
29
        $("#show_all_details").prop('checked', false);
30
        updateColumnsVisibility(false);
30
        updateColumnsVisibility(false);
31
        [% UNLESS ( closedate ) %]
31
        [% UNLESS ( closedate ) %]
32
            $('#addtoBasket').on('show', function () {
32
            $('#addtoBasket').on('show', function () {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt (-1 / +1 lines)
Lines 44-50 Link Here
44
            updateColumnsVisibility($(this+":checked").val());
44
            updateColumnsVisibility($(this+":checked").val());
45
        });
45
        });
46
46
47
        $("#show_all_details").attr('checked', false);
47
        $("#show_all_details").prop('checked', false);
48
        updateColumnsVisibility(false);
48
        updateColumnsVisibility(false);
49
    });
49
    });
50
//]]>
50
//]]>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt (-2 / +2 lines)
Lines 18-27 $(document).ready(function() { Link Here
18
        ]
18
        ]
19
    }));
19
    }));
20
20
21
    $("#show_only_subscription").attr("checked", false);
21
    $("#show_only_subscription").prop("checked", false);
22
22
23
    $("#show_only_subscription").click(function(){
23
    $("#show_only_subscription").click(function(){
24
        if ( $(this).attr("checked") ) {
24
        if ( $(this).prop("checked") ) {
25
            resultst.fnFilter( "1", 0, true );
25
            resultst.fnFilter( "1", 0, true );
26
        } else {
26
        } else {
27
            resultst.fnFilter( '', 0 );
27
            resultst.fnFilter( '', 0 );
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/newordersubscription.tt (-1 / +1 lines)
Lines 29-35 Link Here
29
        $("#show_only_renewed").click(function(){
29
        $("#show_only_renewed").click(function(){
30
            updateRowsVisibility($(this+":checked").val());
30
            updateRowsVisibility($(this+":checked").val());
31
        });
31
        });
32
        $("#show_only_renewed").attr('checked', false);
32
        $("#show_only_renewed").prop('checked', false);
33
        updateRowsVisibility(false);
33
        updateRowsVisibility(false);
34
34
35
        $("#advsearch_form").show();
35
        $("#advsearch_form").show();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt (-2 / +2 lines)
Lines 88-97 Link Here
88
88
89
        function CheckNItems(n) {
89
        function CheckNItems(n) {
90
            $("input[name='items_to_receive']").each(function() {
90
            $("input[name='items_to_receive']").each(function() {
91
                $(this).attr('checked', false);
91
                $(this).prop('checked', false);
92
            });
92
            });
93
            $("input[name='items_to_receive']:lt("+n+")").each(function () {
93
            $("input[name='items_to_receive']:lt("+n+")").each(function () {
94
                $(this).attr('checked', true);
94
                $(this).prop('checked', true);
95
            });
95
            });
96
        }
96
        }
97
    [% END %]
97
    [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt (-7 / +7 lines)
Lines 125-132 function delete_contact(ev) { Link Here
125
    $('body').on('click', '.delete-contact', null, delete_contact);
125
    $('body').on('click', '.delete-contact', null, delete_contact);
126
    $('#add-contact').click(add_contact);
126
    $('#add-contact').click(add_contact);
127
    $('body').on('click', '.contact_acqprimary', null, function () {
127
    $('body').on('click', '.contact_acqprimary', null, function () {
128
        if ($(this).attr('checked') === 'checked') {
128
        if ($(this).is(':checked')) {
129
            $('.contact_acqprimary').filter(':checked').not(this).removeAttr('checked');
129
            $('.contact_acqprimary').filter(':checked').not(this).prop('checked', false);
130
            $('.contact_acqprimary_hidden').each(function () {
130
            $('.contact_acqprimary_hidden').each(function () {
131
                $(this).val('0');
131
                $(this).val('0');
132
            });
132
            });
Lines 134-152 function delete_contact(ev) { Link Here
134
        $(this).next('.contact_acqprimary_hidden').val('1');
134
        $(this).next('.contact_acqprimary_hidden').val('1');
135
    });
135
    });
136
    $('body').on('click', '.contact_serialsprimary', null, function () {
136
    $('body').on('click', '.contact_serialsprimary', null, function () {
137
        if ($(this).attr('checked') === 'checked') {
137
        if ($(this).is(':checked')) {
138
            $('.contact_serialsprimary').filter(':checked').not(this).removeAttr('checked');
138
            $('.contact_serialsprimary').filter(':checked').not(this).prop('checked', false);
139
            $('.contact_serialsprimary_hidden').each(function () {
139
            $('.contact_serialsprimary_hidden').each(function () {
140
                $(this).val('0');
140
                $(this).val('0');
141
            });
141
            });
142
        }
142
        }
143
        $(this).next('.contact_serialsprimary_hidden').val($(this).attr('checked') === 'checked' ? '1' : '0');
143
        $(this).next('.contact_serialsprimary_hidden').val($(this).is(':checked') ? '1' : '0');
144
    });
144
    });
145
    $('body').on('click', '.contact_claimacquisition', null, function () {
145
    $('body').on('click', '.contact_claimacquisition', null, function () {
146
        $(this).next('.contact_claimacquisition_hidden').val($(this).attr('checked') === 'checked' ? '1' : '0');
146
        $(this).next('.contact_claimacquisition_hidden').val($(this).is(':checked') ? '1' : '0');
147
    });
147
    });
148
    $('body').on('click', '.contact_claimissues', null, function () {
148
    $('body').on('click', '.contact_claimissues', null, function () {
149
        $(this).next('.contact_claimissues_hidden').val($(this).attr('checked') === 'checked' ? '1' : '0');
149
        $(this).next('.contact_claimissues_hidden').val($(this).is(':checked') ? '1' : '0');
150
    });
150
    });
151
 });
151
 });
152
//]]>
152
//]]>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt (-1 / +1 lines)
Lines 47-53 Link Here
47
                hideAllColumns();
47
                hideAllColumns();
48
                e.stopPropagation();
48
                e.stopPropagation();
49
            } else {
49
            } else {
50
                if($(this).attr("checked")){
50
                if($(this).prop("checked")){
51
                    showColumn(num);
51
                    showColumn(num);
52
                } else {
52
                } else {
53
                    hideColumn(num);
53
                    hideColumn(num);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt (-1 / +1 lines)
Lines 17-23 Link Here
17
            $("#active").removeAttr('disabled');
17
            $("#active").removeAttr('disabled');
18
            $("#hint").html("");
18
            $("#hint").html("");
19
        } else {
19
        } else {
20
            $("#active").removeAttr('checked');
20
            $("#active").prop('checked', false);
21
            $("#active").attr('disabled','disabled');
21
            $("#active").attr('disabled','disabled');
22
            $("#hint").html(_("The active currency must have a rate of 1.0"));
22
            $("#hint").html(_("The active currency must have a rate of 1.0"));
23
        }
23
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt (-2 / +2 lines)
Lines 17-23 function clear_edit(){ Link Here
17
            $(this).removeAttr("disabled");
17
            $(this).removeAttr("disabled");
18
        }
18
        }
19
        if ( type == "checkbox" ) {
19
        if ( type == "checkbox" ) {
20
            $(this).attr('checked', false);
20
            $(this).prop('checked', false);
21
        }
21
        }
22
    });
22
    });
23
    $(edit_row).find("select").removeAttr("disabled");
23
    $(edit_row).find("select").removeAttr("disabled");
Lines 58-64 $(document).ready(function() { Link Here
58
                } else if ( i == 12 ) {
58
                } else if ( i == 12 ) {
59
                    // specific processing for cap_fine_to_replacement_price
59
                    // specific processing for cap_fine_to_replacement_price
60
                    var cap_fine_to_replacement_price = $(this).find("input[type='checkbox']");
60
                    var cap_fine_to_replacement_price = $(this).find("input[type='checkbox']");
61
                    $('#cap_fine_to_replacement_price').attr('checked', cap_fine_to_replacement_price.is(':checked') );
61
                    $('#cap_fine_to_replacement_price').prop('checked', cap_fine_to_replacement_price.is(':checked') );
62
                    $('#overduefinescap').prop('disabled', cap_fine_to_replacement_price.is(':checked') );
62
                    $('#overduefinescap').prop('disabled', cap_fine_to_replacement_price.is(':checked') );
63
                } else {
63
                } else {
64
                    $(current_column).find("input[type='text']").val(itm);
64
                    $(current_column).find("input[type='text']").val(itm);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-2 / +2 lines)
Lines 95-106 function verify_images() { Link Here
95
95
96
    [% IF StaffDetailItemSelection %]
96
    [% IF StaffDetailItemSelection %]
97
        function selectAllItems(div) {
97
        function selectAllItems(div) {
98
            $("input[name='itemnumber'][type='checkbox']", div).attr('checked', 'checked');
98
            $("input[name='itemnumber'][type='checkbox']", div).prop('checked', true);
99
            itemSelectionBuildActionLinks(div);
99
            itemSelectionBuildActionLinks(div);
100
        }
100
        }
101
101
102
        function clearAllItems(div) {
102
        function clearAllItems(div) {
103
            $("input[name='itemnumber'][type='checkbox']", div).removeAttr('checked');
103
            $("input[name='itemnumber'][type='checkbox']", div).prop('checked', false);
104
            itemSelectionBuildActionLinks(div);
104
            itemSelectionBuildActionLinks(div);
105
        }
105
        }
106
106
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-2 / +2 lines)
Lines 204-213 function highlightOn() { Link Here
204
}[% END %]
204
}[% END %]
205
205
206
function selectAll () {
206
function selectAll () {
207
    $(".selection").attr("checked", "checked");
207
    $(".selection").prop("checked", true);
208
}
208
}
209
function clearAll () {
209
function clearAll () {
210
    $(".selection").removeAttr("checked");
210
    $(".selection").prop("checked", false);
211
}
211
}
212
function placeHold () {
212
function placeHold () {
213
    var checkedItems = $(".selection:checked");
213
    var checkedItems = $(".selection:checked");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt (-2 / +2 lines)
Lines 111-118 $(document).ready(function(){ Link Here
111
111
112
    // Check all checkboxes in first tab, and uncheck all others to avoid
112
    // Check all checkboxes in first tab, and uncheck all others to avoid
113
    // inconsistencies from a page refresh.
113
    // inconsistencies from a page refresh.
114
    $('#tabs div#tabrecord[% ref_biblionumber %]').find('input[type="checkbox"]').attr('checked', true);
114
    $('#tabs div#tabrecord[% ref_biblionumber %]').find('input[type="checkbox"]').prop('checked', true);
115
    $('#tabs > div:not("#tabrecord[% ref_biblionumber %]")').find('input[type="checkbox"]').removeAttr('checked');
115
    $('#tabs > div:not("#tabrecord[% ref_biblionumber %]")').find('input[type="checkbox"]').prop('checked', false);
116
116
117
    //Set focus to cataloging search
117
    //Set focus to cataloging search
118
    $("input[name=q]:eq(0)").focus();
118
    $("input[name=q]:eq(0)").focus();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-2 / +2 lines)
Lines 63-69 columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'issues Link Here
63
63
64
// On-site checkout
64
// On-site checkout
65
function toggle_onsite_checkout(){
65
function toggle_onsite_checkout(){
66
    if ( $("#onsite_checkout").attr('checked') ) {
66
    if ( $("#onsite_checkout").prop('checked') ) {
67
        $("#duedatespec").val("[% todaysdate | $KohaDates with_hours => 1%]")
67
        $("#duedatespec").val("[% todaysdate | $KohaDates with_hours => 1%]")
68
        [% IF !Koha.Preference('SpecifyDueDate') %]
68
        [% IF !Koha.Preference('SpecifyDueDate') %]
69
            $("#duedatespec").datetimepicker('destroy');
69
            $("#duedatespec").datetimepicker('destroy');
Lines 119-125 $(document).ready(function() { Link Here
119
        $('#table_borrowers tbody tr').removeClass('selected');
119
        $('#table_borrowers tbody tr').removeClass('selected');
120
        $(this).addClass('selected');
120
        $(this).addClass('selected');
121
        if (event.target.type !== 'radio') {
121
        if (event.target.type !== 'radio') {
122
            $(':radio', this).attr('checked', 'true')
122
            $(':radio', this).prop('checked', 'true')
123
        }
123
        }
124
    });
124
    });
125
125
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-1 / +1 lines)
Lines 103-109 $(document).ready(function () { Link Here
103
        $("#barcode").focus();
103
        $("#barcode").focus();
104
    });
104
    });
105
    [% IF(overduecharges) %] $("#barcode").focus(function () {
105
    [% IF(overduecharges) %] $("#barcode").focus(function () {
106
        if (($("#exemptcheck").attr("checked") == true) || ($("#dropboxcheck").attr("checked") == true)) {
106
        if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) {
107
            $("#barcode").addClass("alert");
107
            $("#barcode").addClass("alert");
108
        } else {
108
        } else {
109
            $("#barcode").removeClass("alert");
109
            $("#barcode").removeClass("alert");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt (-2 / +2 lines)
Lines 18-24 Link Here
18
            $('input[name="flag"]').each(function() {
18
            $('input[name="flag"]').each(function() {
19
                if($(this).attr('id') != "flag-0"){
19
                if($(this).attr('id') != "flag-0"){
20
                    $(this).attr('disabled', 'disabled');
20
                    $(this).attr('disabled', 'disabled');
21
                    $(this).removeAttr('checked', 'checked');
21
                    $(this).prop('checked', false);
22
                }
22
                }
23
            });
23
            });
24
        }
24
        }
Lines 28-34 Link Here
28
                $('input[name="flag"]').each(function() {
28
                $('input[name="flag"]').each(function() {
29
                    if($(this).attr('id') != "flag-0"){
29
                    if($(this).attr('id') != "flag-0"){
30
                        $(this).attr('disabled', 'disabled');
30
                        $(this).attr('disabled', 'disabled');
31
                        $(this).removeAttr('checked', 'checked');
31
                        $(this).prop('checked', false);
32
                    }
32
                    }
33
                });
33
                });
34
            }
34
            }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-4 / +4 lines)
Lines 1105-1119 function select_user(borrowernumber, borrower) { Link Here
1105
                            var transports = ['email', 'rss', 'sms'];
1105
                            var transports = ['email', 'rss', 'sms'];
1106
                            $.each(transports, function(j, transport) {
1106
                            $.each(transports, function(j, transport) {
1107
                                if (item['transports_' + transport] == 1) {
1107
                                if (item['transports_' + transport] == 1) {
1108
                                    $('#' + transport + attrid).attr('checked', 'checked');
1108
                                    $('#' + transport + attrid).prop('checked', true);
1109
                                } else {
1109
                                } else {
1110
                                    $('#' + transport + attrid).removeAttr('checked');
1110
                                    $('#' + transport + attrid).prop('checked', false);
1111
                                }
1111
                                }
1112
                            });
1112
                            });
1113
                            if (item.digest && item.digest != ' ') {
1113
                            if (item.digest && item.digest != ' ') {
1114
                                $('#digest' + attrid).attr('checked', item.digest);
1114
                                $('#digest' + attrid).prop('checked', true);
1115
                            } else {
1115
                            } else {
1116
                                $('#digest' + attrid).removeAttr('checked');
1116
                                $('#digest' + attrid).prop('checked', false);
1117
                            }
1117
                            }
1118
                            if (item.takes_days == '1') {
1118
                            if (item.takes_days == '1') {
1119
                                $('[name=' + attrid + '-DAYS]').val('' + item.days_in_advance);
1119
                                $('[name=' + attrid + '-DAYS]').val('' + item.days_in_advance);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-layout.tt (-6 / +6 lines)
Lines 24-39 Link Here
24
                });
24
                });
25
                var selectFieldNames = ["field_1","field_2","field_3"];
25
                var selectFieldNames = ["field_1","field_2","field_3"];
26
                for (var i=0; i < selectFieldNames.length; i++) {
26
                for (var i=0; i < selectFieldNames.length; i++) {
27
                    Go($("#"+selectFieldNames[i]+"_enable").attr("checked"), selectFieldNames[i]+"_select");
27
                    Go($("#"+selectFieldNames[i]+"_enable").prop("checked"), selectFieldNames[i]+"_select");
28
                }
28
                }
29
                $("#field_1_enable").change(function(){
29
                $("#field_1_enable").change(function(){
30
                    $(".field_1_enable").html(Go($(this).attr("checked"), 'field_1_select'));
30
                    $(".field_1_enable").html(Go($(this).prop("checked"), 'field_1_select'));
31
                });
31
                });
32
                $("#field_2_enable").change(function(){
32
                $("#field_2_enable").change(function(){
33
                    $(".field_2_enable").html(Go($(this).attr("checked"), 'field_2_select'));
33
                    $(".field_2_enable").html(Go($(this).prop("checked"), 'field_2_select'));
34
                });
34
                });
35
                $("#field_3_enable").change(function(){
35
                $("#field_3_enable").change(function(){
36
                    $(".field_3_enable").html(Go($(this).attr("checked"), 'field_3_select'));
36
                    $(".field_3_enable").html(Go($(this).prop("checked"), 'field_3_select'));
37
                });
37
                });
38
                $("#barcode_print").load(barcode_text('barcode_param'));
38
                $("#barcode_print").load(barcode_text('barcode_param'));
39
                $("#barcode_print").change(function(){
39
                $("#barcode_print").change(function(){
Lines 41-51 Link Here
41
                });
41
                });
42
            function barcode_text(division) {
42
            function barcode_text(division) {
43
                var eBarcode = document.getElementById(division);
43
                var eBarcode = document.getElementById(division);
44
                if( $("input[name=barcode_print]:checked").attr("checked") ) {
44
                if( $("input[name=barcode_print]:checked").prop("checked") ) {
45
                    eBarcode.style.display = 'block';
45
                    eBarcode.style.display = 'block';
46
                } else {
46
                } else {
47
                    eBarcode.style.display = 'none';
47
                    eBarcode.style.display = 'none';
48
                    $('input[name=barcode_text_print]').removeAttr('checked');
48
                    $('input[name=barcode_text_print]').prop('checked', false);
49
                }
49
                }
50
            }
50
            }
51
            function getUnit(unit){
51
            function getUnit(unit){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_stats.tt (-1 / +1 lines)
Lines 13-19 Link Here
13
            $("#deldateTo").attr('disabled', false);
13
            $("#deldateTo").attr('disabled', false);
14
        } else {
14
        } else {
15
            $("#removeddatetr").hide();
15
            $("#removeddatetr").hide();
16
            $("input[value='deleteditems.timestamp']").attr('disabled', true).attr('checked', false);
16
            $("input[value='deleteditems.timestamp']").attr('disabled', true).prop('checked', false);
17
            $("#deldateFrom").attr('disabled', true).val('');
17
            $("#deldateFrom").attr('disabled', true).val('');
18
            $("#deldateTo").attr('disabled', true).val('');
18
            $("#deldateTo").attr('disabled', true).val('');
19
        }
19
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt (-6 / +6 lines)
Lines 169-180 $(document).ready(function(){ Link Here
169
169
170
[% IF (create || editsql || save) %]
170
[% IF (create || editsql || save) %]
171
    $("#select_group").change(function() {
171
    $("#select_group").change(function() {
172
        if($(this).attr('checked')) {
172
        if($(this).prop('checked')) {
173
            $("#group_input").attr('disabled', 'disabled');
173
            $("#group_input").attr('disabled', 'disabled');
174
            $("#groupdesc_input").attr('disabled', 'disabled');
174
            $("#groupdesc_input").attr('disabled', 'disabled');
175
            $("#group_select").attr('disabled', false);
175
            $("#group_select").attr('disabled', false);
176
            if ($("#group_select").val().length > 0) {
176
            if ($("#group_select").val().length > 0) {
177
                $("#select_subgroup").attr('checked', 'checked');
177
                $("#select_subgroup").prop('checked', true);
178
                $("#select_subgroup").change();
178
                $("#select_subgroup").change();
179
                $("#subgroup, #subgroup *").show();
179
                $("#subgroup, #subgroup *").show();
180
            } else {
180
            } else {
Lines 183-193 $(document).ready(function(){ Link Here
183
        }
183
        }
184
    });
184
    });
185
    $("#create_group").change(function() {
185
    $("#create_group").change(function() {
186
        if($(this).attr('checked')) {
186
        if($(this).prop('checked')) {
187
            $("#group_input").attr('disabled', false);
187
            $("#group_input").attr('disabled', false);
188
            $("#groupdesc_input").attr('disabled', false);
188
            $("#groupdesc_input").attr('disabled', false);
189
            $("#group_select").attr('disabled', 'disabled');
189
            $("#group_select").attr('disabled', 'disabled');
190
            $("#create_subgroup").attr('checked', 'checked').change();
190
            $("#create_subgroup").prop('checked', true).change();
191
            $("#subgroup_select").hide();
191
            $("#subgroup_select").hide();
192
            $("#subgroup input[type='radio']").hide();
192
            $("#subgroup input[type='radio']").hide();
193
            $("#subgroup label[for]").hide();
193
            $("#subgroup label[for]").hide();
Lines 197-210 $(document).ready(function(){ Link Here
197
        }
197
        }
198
    });
198
    });
199
    $("#select_subgroup").change(function() {
199
    $("#select_subgroup").change(function() {
200
        if($(this).attr('checked')) {
200
        if($(this).prop('checked')) {
201
            $("#subgroup_select").attr('disabled', false);
201
            $("#subgroup_select").attr('disabled', false);
202
            $("#subgroup_input").attr('disabled', 'disabled');
202
            $("#subgroup_input").attr('disabled', 'disabled');
203
            $("#subgroupdesc_input").attr('disabled', 'disabled');
203
            $("#subgroupdesc_input").attr('disabled', 'disabled');
204
        }
204
        }
205
    });
205
    });
206
    $("#create_subgroup").change(function() {
206
    $("#create_subgroup").change(function() {
207
        if($(this).attr('checked')) {
207
        if($(this).prop('checked')) {
208
            $("#subgroup_input").attr('disabled', false);
208
            $("#subgroup_input").attr('disabled', false);
209
            $("#subgroupdesc_input").attr('disabled', false);
209
            $("#subgroupdesc_input").attr('disabled', false);
210
            $("#subgroup_select").attr('disabled', 'disabled');
210
            $("#subgroup_select").attr('disabled', 'disabled');
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-4 / +4 lines)
Lines 40-46 $(document).ready(function() { Link Here
40
        $('#table_borrowers tbody tr').removeClass('selected');
40
        $('#table_borrowers tbody tr').removeClass('selected');
41
        $(this).addClass('selected');
41
        $(this).addClass('selected');
42
        if (event.target.type !== 'radio') {
42
        if (event.target.type !== 'radio') {
43
            $(':radio', this).attr('checked', 'true')
43
            $(':radio', this).prop('checked', 'true')
44
        }
44
        }
45
    });
45
    });
46
    var my_table = $("#requestspecific").dataTable($.extend(true, {}, dataTablesDefaults, {
46
    var my_table = $("#requestspecific").dataTable($.extend(true, {}, dataTablesDefaults, {
Lines 152-158 function checkMultiHold() { Link Here
152
 	$("#requestany").click(function() {
152
 	$("#requestany").click(function() {
153
		if(this.checked){
153
		if(this.checked){
154
		$("input[name=checkitem]").each(function() {
154
		$("input[name=checkitem]").each(function() {
155
            $(this).removeAttr("checked");
155
            $(this).prop("checked", false);
156
		});
156
		});
157
		}
157
		}
158
	});
158
	});
Lines 164-172 function checkMultiHold() { Link Here
164
			}
164
			}
165
		});
165
		});
166
		if(onechecked == 1){
166
		if(onechecked == 1){
167
            $("#requestany").removeAttr("checked");
167
            $("#requestany").prop("checked", false);
168
		} else {
168
		} else {
169
			$("#requestany").attr("checked","checked");
169
			$("#requestany").prop("checked",true);
170
		}
170
		}
171
	});
171
	});
172
172
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt (-1 / +1 lines)
Lines 29-35 Link Here
29
	    $("span.checkall").html("<input type=\"checkbox\" name=\"CheckAll\"> "+_("Check All")+"</input>");
29
	    $("span.checkall").html("<input type=\"checkbox\" name=\"CheckAll\"> "+_("Check All")+"</input>");
30
30
31
        $("#CheckAll").click(function() {
31
        $("#CheckAll").click(function() {
32
            $("#claimst tr:visible :checkbox").attr('checked', $("#CheckAll").is(':checked'));
32
            $("#claimst tr:visible :checkbox").prop('checked', $("#CheckAll").is(':checked'));
33
        });
33
        });
34
34
35
        // Generates a dynamic link for exporting the selections data as CSV
35
        // Generates a dynamic link for exporting the selections data as CSV
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/showpredictionpattern.tt (-3 / +3 lines)
Lines 10-22 Link Here
10
        <script type="text/javascript">
10
        <script type="text/javascript">
11
        //<![CDATA[
11
        //<![CDATA[
12
        function Check_boxes(dow) {
12
        function Check_boxes(dow) {
13
            if($(":checkbox[data-dow='"+dow+"']:first").attr("checked") == 'checked') {
13
            if($(":checkbox[data-dow='"+dow+"']:first").is(':checked')) {
14
                $("#predictionst :checkbox[data-dow='"+dow+"']").each(function(){
14
                $("#predictionst :checkbox[data-dow='"+dow+"']").each(function(){
15
                    $(this).attr('checked', true);
15
                    $(this).prop('checked', true);
16
                });
16
                });
17
            } else {
17
            } else {
18
                $("#predictionst :checkbox[data-dow='"+dow+"']").each(function(){
18
                $("#predictionst :checkbox[data-dow='"+dow+"']").each(function(){
19
                    $(this).attr('checked', false);
19
                    $(this).prop('checked', false);
20
                });
20
                });
21
            }
21
            }
22
        }
22
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt (-1 / +1 lines)
Lines 36-42 $(document).ready(function() { Link Here
36
    $(".records input:checkbox[data-issues!='0']").each(function(){
36
    $(".records input:checkbox[data-issues!='0']").each(function(){
37
      $(this).attr('title', MSG_CANNOT_BE_DELETED)
37
      $(this).attr('title', MSG_CANNOT_BE_DELETED)
38
      $(this).attr('disabled', true);
38
      $(this).attr('disabled', true);
39
      $(this).attr('checked', false);
39
      $(this).prop('checked', false);
40
      $(this).parents('tr').find('td').css('background-color', '#ffff99');
40
      $(this).parents('tr').find('td').css('background-color', '#ffff99');
41
    });
41
    });
42
  [% END %]
42
  [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt (-3 / +2 lines)
Lines 27-39 Link Here
27
                }));
27
                }));
28
                $("#selectallbutton").click(function() {
28
                $("#selectallbutton").click(function() {
29
                    $("#borrowerst").find("input:checkbox").each(function() {
29
                    $("#borrowerst").find("input:checkbox").each(function() {
30
                        $(this).attr("checked", true);
30
                        $(this).prop("checked", true);
31
                    });
31
                    });
32
                    return false;
32
                    return false;
33
                });
33
                });
34
                $("#clearallbutton").click(function() {
34
                $("#clearallbutton").click(function() {
35
                    $("#borrowerst").find("input:checkbox").each(function() {
35
                    $("#borrowerst").find("input:checkbox").each(function() {
36
                        $(this).attr("checked", false);
36
                        $(this).prop("checked", false);
37
                    });
37
                    });
38
                    return false;
38
                    return false;
39
                });
39
                });
40
- 

Return to bug 16238