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

(-)a/koha-tmpl/intranet-tmpl/prog/en/js/ajax.js (-2 / +2 lines)
Lines 34-40 KOHA.AJAX = { Link Here
34
    MarkRunning: function ( selector, text ) {
34
    MarkRunning: function ( selector, text ) {
35
        text = text || _("Loading...");
35
        text = text || _("Loading...");
36
        $( selector )
36
        $( selector )
37
            .attr( 'disabled', 'disabled' )
37
            .prop('disabled', true)
38
            .each( function () {
38
            .each( function () {
39
                var $spinner = $( '<span class="loading"></span>' );
39
                var $spinner = $( '<span class="loading"></span>' );
40
                var selector_type = this.localName;
40
                var selector_type = this.localName;
Lines 62-68 KOHA.AJAX = { Link Here
62
    },
62
    },
63
    MarkDone: function ( selector ) {
63
    MarkDone: function ( selector ) {
64
        $( selector )
64
        $( selector )
65
            .removeAttr( 'disabled' )
65
            .prop('disabled', false)
66
            .each( function () {
66
            .each( function () {
67
                var selector_type = this.localName;
67
                var selector_type = this.localName;
68
                if (selector_type === undefined) selector_type = this.nodeName; // IE only
68
                if (selector_type === undefined) selector_type = this.nodeName; // IE only
(-)a/koha-tmpl/intranet-tmpl/prog/en/js/marc_subfields_structure.js (-3 / +3 lines)
Lines 11-20 $(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).prop('checked', false);
14
        $('.inclusive_' + tab).prop('disabled', true).prop('checked', false);
15
    }
15
    }
16
    else {
16
    else {
17
        $('.inclusive_' + tab).removeAttr('disabled');
17
        $('.inclusive_' + tab).prop('disabled', false);
18
    }
18
    }
19
}
19
}
20
20
Lines 140-143 function populateHiddenCheckboxes(tab) { Link Here
140
140
141
    enable_cb(tab);
141
    enable_cb(tab);
142
142
143
}
143
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/js/pages/preferences.js (-2 / +2 lines)
Lines 54-60 $( document ).ready( function () { Link Here
54
    }));
54
    }));
55
55
56
    function mark_modified() {
56
    function mark_modified() {
57
        $( this.form ).find( '.save-all' ).removeAttr( 'disabled' );
57
        $( this.form ).find( '.save-all' ).prop('disabled', false);
58
        $( this ).addClass( 'modified' );
58
        $( this ).addClass( 'modified' );
59
        var name_cell = $( this ).parents( '.name-row' ).find( '.name-cell' );
59
        var name_cell = $( this ).parents( '.name-row' ).find( '.name-cell' );
60
        if ( !name_cell.find( '.modified-warning' ).length )
60
        if ( !name_cell.find( '.modified-warning' ).length )
Lines 90-96 $( document ).ready( function () { Link Here
90
90
91
    $( '.prefs-tab .action .cancel' ).click( function () { KOHA.Preferences.Modified = false } );
91
    $( '.prefs-tab .action .cancel' ).click( function () { KOHA.Preferences.Modified = false } );
92
92
93
    $( '.prefs-tab .save-all' ).attr( 'disabled', true ).click( function () {
93
    $( '.prefs-tab .save-all' ).prop('disabled', true).click( function () {
94
        KOHA.Preferences.Save( this.form );
94
        KOHA.Preferences.Save( this.form );
95
        return false;
95
        return false;
96
    } );
96
    } );
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt (-2 / +2 lines)
Lines 105-112 Link Here
105
        } );
105
        } );
106
106
107
        $("input:checkbox").prop("checked", false);
107
        $("input:checkbox").prop("checked", false);
108
        $("div.biblio.unselected select").attr("disabled", false);
108
        $("div.biblio.unselected select").prop('disabled', false);
109
        $("div.biblio.unselected input").attr("disabled", false);
109
        $("div.biblio.unselected input").prop('disabled', false);
110
110
111
        $("#checkAll").click(function(){
111
        $("#checkAll").click(function(){
112
            $("#Aform").checkCheckboxes();
112
            $("#Aform").checkCheckboxes();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt (-2 / +2 lines)
Lines 17-25 function check_uncheck() { Link Here
17
    var all_nodes = $(late_orderst.fnGetNodes());
17
    var all_nodes = $(late_orderst.fnGetNodes());
18
    if ( $(all_nodes).find("input:checkbox[name=ordernumber]:checked").length > 0) {
18
    if ( $(all_nodes).find("input:checkbox[name=ordernumber]:checked").length > 0) {
19
        var booksellerid = $(all_nodes).find("input:checkbox[name=ordernumber]:checked:first").attr("data-booksellerid");
19
        var booksellerid = $(all_nodes).find("input:checkbox[name=ordernumber]:checked:first").attr("data-booksellerid");
20
        $(all_nodes).find("input:checkbox[name=ordernumber][data-booksellerid!="+booksellerid+"]").attr('disabled', 'disabled');
20
        $(all_nodes).find("input:checkbox[name=ordernumber][data-booksellerid!="+booksellerid+"]").prop('disabled', true);
21
    } else {
21
    } else {
22
        $("input:checkbox[name=ordernumber]").removeAttr('disabled');
22
        $("input:checkbox[name=ordernumber]").prop('disabled', false);
23
    }
23
    }
24
}
24
}
25
25
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt (-2 / +2 lines)
Lines 14-24 Link Here
14
14
15
    function check_currency(val) {
15
    function check_currency(val) {
16
        if ( val == 1.0 ) {
16
        if ( val == 1.0 ) {
17
            $("#active").removeAttr('disabled');
17
            $("#active").prop('disabled', false);
18
            $("#hint").html("");
18
            $("#hint").html("");
19
        } else {
19
        } else {
20
            $("#active").prop('checked', false);
20
            $("#active").prop('checked', false);
21
            $("#active").attr('disabled','disabled');
21
            $("#active").prop('disabled', true);
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
        }
24
    }
24
    }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt (-4 / +4 lines)
Lines 14-26 function clear_edit(){ Link Here
14
        var type = $(this).attr("type");
14
        var type = $(this).attr("type");
15
        if (type != "button" && type != "submit" ) {
15
        if (type != "button" && type != "submit" ) {
16
            $(this).val("");
16
            $(this).val("");
17
            $(this).removeAttr("disabled");
17
            $(this).prop('disabled', false);
18
        }
18
        }
19
        if ( type == "checkbox" ) {
19
        if ( type == "checkbox" ) {
20
            $(this).prop('checked', false);
20
            $(this).prop('checked', false);
21
        }
21
        }
22
    });
22
    });
23
    $(edit_row).find("select").removeAttr("disabled");
23
    $(edit_row).find("select").prop('disabled', false);
24
    $(edit_row).find("select option:first").attr("selected", "selected");
24
    $(edit_row).find("select option:first").attr("selected", "selected");
25
    $(edit_row).find("td:last input[name='clear']").remove();
25
    $(edit_row).find("td:last input[name='clear']").remove();
26
}
26
}
Lines 90-97 $(document).ready(function() { Link Here
90
                    }
90
                    }
91
                }
91
                }
92
            });
92
            });
93
            $("#default-circulation-rules tr:last td:eq(0) select").attr('disabled', 'disabled');
93
            $("#default-circulation-rules tr:last td:eq(0) select").prop('disabled', true);
94
            $("#default-circulation-rules tr:last td:eq(1) select").attr('disabled', 'disabled');
94
            $("#default-circulation-rules tr:last td:eq(1) select").prop('disabled', true);
95
            return false;
95
            return false;
96
        });
96
        });
97
});
97
});
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/transport-cost-matrix.tt (-3 / +3 lines)
Lines 16-24 function disable_transport_cost_chg(e, cost_id) { Link Here
16
}
16
}
17
function disable_transport_cost(cost_id, disable) {
17
function disable_transport_cost(cost_id, disable) {
18
    if (disable) {
18
    if (disable) {
19
        $('#celldiv_'+cost_id).find('input[type=text]').attr("disabled","disabled").addClass('disabled-transfer');
19
        $('#celldiv_'+cost_id).find('input[type=text]').prop('disabled', true).addClass('disabled-transfer');
20
    } else {
20
    } else {
21
        $('#celldiv_'+cost_id).find('input:disabled').removeAttr("disabled").removeClass('disabled-transfer');
21
        $('#celldiv_'+cost_id).find('input:disabled').prop('disabled', false).removeClass('disabled-transfer');
22
    }
22
    }
23
}
23
}
24
function enable_cost_input(cost_id) {
24
function enable_cost_input(cost_id) {
Lines 35-41 function enable_cost_input(cost_id) { Link Here
35
}
35
}
36
36
37
function form_submit (f) {
37
function form_submit (f) {
38
    $(f).find('input:disabled').removeAttr("disabled");
38
    $(f).find('input:disabled').prop('disabled', false);
39
    return true;
39
    return true;
40
}
40
}
41
//]]>
41
//]]>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt (-3 / +3 lines)
Lines 197-203 Link Here
197
      copy.find('input,select').not('[type="hidden"]').each(function() {
197
      copy.find('input,select').not('[type="hidden"]').each(function() {
198
        $(this).val('');
198
        $(this).val('');
199
      });
199
      });
200
      copy.find('.form-field-conjunction').removeAttr('disabled');
200
      copy.find('.form-field-conjunction').prop('disabled', false);
201
      form_field.after(copy);
201
      form_field.after(copy);
202
      copy.find('select.form-field-column').change();
202
      copy.find('select.form-field-column').change();
203
    }
203
    }
Lines 230-241 Link Here
230
      $('#results-wrapper').empty().html(results_heading + table);
230
      $('#results-wrapper').empty().html(results_heading + table);
231
231
232
      var params = [];
232
      var params = [];
233
      $form.find('select').not('[disabled]').find('option:selected').each(function () {
233
      $form.find('select').not(':disabled').find('option:selected').each(function () {
234
        var name = $(this).parent('select').attr('name');
234
        var name = $(this).parent('select').attr('name');
235
        var value = $(this).val();
235
        var value = $(this).val();
236
        params.push({ 'name': name, 'value': value });
236
        params.push({ 'name': name, 'value': value });
237
      });
237
      });
238
      $form.find('input[type="text"],input[type="hidden"]').not('[disabled]').each(function () {
238
      $form.find('input[type="text"],input[type="hidden"]').not(':disabled').each(function () {
239
        params.push({ 'name': $(this).attr('name'), 'value': $(this).val() });
239
        params.push({ 'name': $(this).attr('name'), 'value': $(this).val() });
240
      });
240
      });
241
      $form.find('input[type="radio"]:checked').each(function() {
241
      $form.find('input[type="radio"]:checked').each(function() {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt (-1 / +1 lines)
Lines 72-78 function Check(f) { Link Here
72
        // So we use disabled instead. But disabled prevent values from being passed through the form at submit.
72
        // So we use disabled instead. But disabled prevent values from being passed through the form at submit.
73
        // So we "un-disable" the elements just before submitting.
73
        // So we "un-disable" the elements just before submitting.
74
        // That's a bit clumsy, and if someone comes up with a better solution, feel free to improve that.
74
        // That's a bit clumsy, and if someone comes up with a better solution, feel free to improve that.
75
        $("select[name=field_value]").removeAttr("disabled");
75
        $("select[name=field_value]").prop('disabled', false);
76
        return true;
76
        return true;
77
    } else {
77
    } else {
78
        var alertString2 = _("Form not submitted because of the following problem(s)");
78
        var alertString2 = _("Form not submitted because of the following problem(s)");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-2 / +2 lines)
Lines 81-93 $(document).ready(function () { Link Here
81
            $("#barcode").addClass("alert");
81
            $("#barcode").addClass("alert");
82
            $("#dropboxmode").show();
82
            $("#dropboxmode").show();
83
83
84
            $("#return_date_override_fields :input").attr("disabled", true);
84
            $("#return_date_override_fields :input").prop('disabled', true);
85
            $("#return_date_override").datetimepicker("disable");
85
            $("#return_date_override").datetimepicker("disable");
86
        } else {
86
        } else {
87
            $("#barcode").removeClass("alert");
87
            $("#barcode").removeClass("alert");
88
            $("#dropboxmode").hide();
88
            $("#dropboxmode").hide();
89
89
90
            $("#return_date_override_fields :input").attr("disabled", false);
90
            $("#return_date_override_fields :input").prop('disabled', false);
91
            $("#return_date_override").datetimepicker("enable");
91
            $("#return_date_override").datetimepicker("enable");
92
        }
92
        }
93
        $("#barcode").focus();
93
        $("#barcode").focus();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt (-3 / +3 lines)
Lines 17-23 Link Here
17
17
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).prop('disabled', true);
21
                    $(this).prop('checked', false);
21
                    $(this).prop('checked', false);
22
                }
22
                }
23
            });
23
            });
Lines 27-40 Link Here
27
            if($('input[id="flag-0"]:checked').length){
27
            if($('input[id="flag-0"]:checked').length){
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).prop('disabled', true);
31
                        $(this).prop('checked', false);
31
                        $(this).prop('checked', false);
32
                    }
32
                    }
33
                });
33
                });
34
            }
34
            }
35
            else {
35
            else {
36
                $('input[name="flag"]').each(function() {
36
                $('input[name="flag"]').each(function() {
37
                    $(this).removeAttr('disabled', 'disabled');
37
                    $(this).prop('disabled', false);
38
                });
38
                });
39
            }
39
            }
40
        });
40
        });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt (-5 / +5 lines)
Lines 11-17 Link Here
11
<script type="text/javascript">
11
<script type="text/javascript">
12
//<![CDATA[
12
//<![CDATA[
13
$(document).ready(function() {
13
$(document).ready(function() {
14
    $('#add_to_patron_list_submit').attr('disabled', 'disabled');
14
    $('#add_to_patron_list_submit').prop('disabled', true);
15
    $('#new_patron_list').hide();
15
    $('#new_patron_list').hide();
16
16
17
    $('#add_to_patron_list').change(function() {
17
    $('#add_to_patron_list').change(function() {
Lines 22-39 $(document).ready(function() { Link Here
22
            $('#new_patron_list').focus();
22
            $('#new_patron_list').focus();
23
        } else if ( value ) {
23
        } else if ( value ) {
24
            $('#new_patron_list').hide();
24
            $('#new_patron_list').hide();
25
            $('#add_to_patron_list_submit').removeAttr('disabled');
25
            $('#add_to_patron_list_submit').prop('disabled', false);
26
        } else {
26
        } else {
27
            $('#new_patron_list').hide();
27
            $('#new_patron_list').hide();
28
            $('#add_to_patron_list_submit').attr('disabled', 'disabled');
28
            $('#add_to_patron_list_submit').prop('disabled', true);
29
        }
29
        }
30
    });
30
    });
31
31
32
    $('#new_patron_list').on('input', function() {
32
    $('#new_patron_list').on('input', function() {
33
        if ( $('#new_patron_list').val() ) {
33
        if ( $('#new_patron_list').val() ) {
34
            $('#add_to_patron_list_submit').removeAttr('disabled');
34
            $('#add_to_patron_list_submit').prop('disabled', false);
35
        } else {
35
        } else {
36
            $('#add_to_patron_list_submit').attr('disabled', 'disabled');
36
            $('#add_to_patron_list_submit').prop('disabled', true);
37
        }
37
        }
38
    });
38
    });
39
39
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_stats.tt (-6 / +6 lines)
Lines 8-21 Link Here
8
        var Cellvalue = $("input[name='Cellvalue']:checked").val();
8
        var Cellvalue = $("input[name='Cellvalue']:checked").val();
9
        if(Cellvalue == "deleteditems") {
9
        if(Cellvalue == "deleteditems") {
10
            $("#removeddatetr").show();
10
            $("#removeddatetr").show();
11
            $("input[value='deleteditems.timestamp']").attr('disabled', false);
11
            $("input[value='deleteditems.timestamp']").prop('disabled', false);
12
            $("#deldateFrom").attr('disabled', false);
12
            $("#deldateFrom").prop('disabled', false);
13
            $("#deldateTo").attr('disabled', false);
13
            $("#deldateTo").prop('disabled', false);
14
        } else {
14
        } else {
15
            $("#removeddatetr").hide();
15
            $("#removeddatetr").hide();
16
            $("input[value='deleteditems.timestamp']").attr('disabled', true).prop('checked', false);
16
            $("input[value='deleteditems.timestamp']").prop('disabled', true).prop('checked', false);
17
            $("#deldateFrom").attr('disabled', true).val('');
17
            $("#deldateFrom").prop('disabled', true).val('');
18
            $("#deldateTo").attr('disabled', true).val('');
18
            $("#deldateTo").prop('disabled', true).val('');
19
        }
19
        }
20
    }
20
    }
21
21
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt (-12 / +12 lines)
Lines 170-178 $(document).ready(function(){ Link Here
170
[% IF (create || editsql || save) %]
170
[% IF (create || editsql || save) %]
171
    $("#select_group").change(function() {
171
    $("#select_group").change(function() {
172
        if($(this).prop('checked')) {
172
        if($(this).prop('checked')) {
173
            $("#group_input").attr('disabled', 'disabled');
173
            $("#group_input").prop('disabled', true);
174
            $("#groupdesc_input").attr('disabled', 'disabled');
174
            $("#groupdesc_input").prop('disabled', true);
175
            $("#group_select").attr('disabled', false);
175
            $("#group_select").prop('disabled', false);
176
            if ($("#group_select").val().length > 0) {
176
            if ($("#group_select").val().length > 0) {
177
                $("#select_subgroup").prop('checked', true);
177
                $("#select_subgroup").prop('checked', true);
178
                $("#select_subgroup").change();
178
                $("#select_subgroup").change();
Lines 184-192 $(document).ready(function(){ Link Here
184
    });
184
    });
185
    $("#create_group").change(function() {
185
    $("#create_group").change(function() {
186
        if($(this).prop('checked')) {
186
        if($(this).prop('checked')) {
187
            $("#group_input").attr('disabled', false);
187
            $("#group_input").prop('disabled', false);
188
            $("#groupdesc_input").attr('disabled', false);
188
            $("#groupdesc_input").prop('disabled', false);
189
            $("#group_select").attr('disabled', 'disabled');
189
            $("#group_select").prop('disabled', true);
190
            $("#create_subgroup").prop('checked', true).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();
Lines 198-213 $(document).ready(function(){ Link Here
198
    });
198
    });
199
    $("#select_subgroup").change(function() {
199
    $("#select_subgroup").change(function() {
200
        if($(this).prop('checked')) {
200
        if($(this).prop('checked')) {
201
            $("#subgroup_select").attr('disabled', false);
201
            $("#subgroup_select").prop('disabled', false);
202
            $("#subgroup_input").attr('disabled', 'disabled');
202
            $("#subgroup_input").prop('disabled', true);
203
            $("#subgroupdesc_input").attr('disabled', 'disabled');
203
            $("#subgroupdesc_input").prop('disabled', true);
204
        }
204
        }
205
    });
205
    });
206
    $("#create_subgroup").change(function() {
206
    $("#create_subgroup").change(function() {
207
        if($(this).prop('checked')) {
207
        if($(this).prop('checked')) {
208
            $("#subgroup_input").attr('disabled', false);
208
            $("#subgroup_input").prop('disabled', false);
209
            $("#subgroupdesc_input").attr('disabled', false);
209
            $("#subgroupdesc_input").prop('disabled', false);
210
            $("#subgroup_select").attr('disabled', 'disabled');
210
            $("#subgroup_select").prop('disabled', true);
211
        }
211
        }
212
    });
212
    });
213
    $("#select_group").change();
213
    $("#select_group").change();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt (-4 / +4 lines)
Lines 103-111 function frequencyload(){ Link Here
103
            if ( globalfreqdata.unit && globalfreqdata.unit.length == 0 ) {
103
            if ( globalfreqdata.unit && globalfreqdata.unit.length == 0 ) {
104
                var option = $("#subtype option[value='issues']");
104
                var option = $("#subtype option[value='issues']");
105
                $(option).attr('selected', 'selected');
105
                $(option).attr('selected', 'selected');
106
                $("#subtype option[value!='issues']").attr('disabled', 'disabled')
106
                $("#subtype option[value!='issues']").prop('disabled', true)
107
            } else {
107
            } else {
108
                $("#subtype option").attr('disabled', false)
108
                $("#subtype option").prop('disabled', false)
109
            }
109
            }
110
        }
110
        }
111
    )
111
    )
Lines 204-210 function modifyAdvancedPattern() { Link Here
204
        $(this).attr("readonly", false);
204
        $(this).attr("readonly", false);
205
    });
205
    });
206
    $("#advancedpredictionpatternt select").each(function() {
206
    $("#advancedpredictionpatternt select").each(function() {
207
        $(this).attr("disabled", false);
207
        $(this).prop('disabled', false);
208
    });
208
    });
209
209
210
    $("#restoreadvancedpatternbutton").show();
210
    $("#restoreadvancedpatternbutton").show();
Lines 229-235 function restoreAdvancedPattern() { Link Here
229
        }
229
        }
230
    });
230
    });
231
    $("#advancedpredictionpatternt select").each(function() {
231
    $("#advancedpredictionpatternt select").each(function() {
232
        $(this).attr("disabled", true);
232
        $(this).prop('disabled', true);
233
        var id = $(this).attr('id');
233
        var id = $(this).attr('id');
234
        $(this).val(globalnumpatterndata[id]);
234
        $(this).val(globalnumpatterndata[id]);
235
    });
235
    });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tt (-6 / +6 lines)
Lines 73-79 tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; } Link Here
73
	};
73
	};
74
74
75
	var success_test_call = function() {
75
	var success_test_call = function() {
76
		$('#test_button').removeAttr("disabled");
76
		$('#test_button').prop('disabled', false);
77
		$('#test_button').attr("value","test");
77
		$('#test_button').attr("value","test");
78
	};
78
	};
79
	$(document).ready(function() {
79
	$(document).ready(function() {
Lines 99-106 tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; } Link Here
99
                    "data": {ok: $(event.target).attr("title")},
99
                    "data": {ok: $(event.target).attr("title")},
100
					"success": count_approve // success_approve
100
					"success": count_approve // success_approve
101
				});
101
				});
102
                $(event.target).next(".rej").removeAttr("disabled").attr("value",_("Reject")).css("color","#000");
102
                $(event.target).next(".rej").prop('disabled', false).attr("value",_("Reject")).css("color","#000");
103
				$(event.target).attr(   "value",_("Approved")).attr("disabled","disabled").css("color","#666");
103
				$(event.target).attr(   "value",_("Approved")).prop('disabled', true).css("color","#666");
104
				return false;	// cancel submit
104
				return false;	// cancel submit
105
			}
105
			}
106
			if ($(event.target).is('.rej')) {
106
			if ($(event.target).is('.rej')) {
Lines 108-119 tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; } Link Here
108
                    "data": {rej: $(event.target).attr("title")},
108
                    "data": {rej: $(event.target).attr("title")},
109
					"success": count_reject // success_reject
109
					"success": count_reject // success_reject
110
				});
110
				});
111
                $(event.target).prev(".ok").removeAttr("disabled").attr("value",_("Approve")).css("color","#000");
111
                $(event.target).prev(".ok").prop('disabled', false).attr("value",_("Approve")).css("color","#000");
112
				$(event.target).attr(   "value",_("Rejected")).attr("disabled","disabled").css("color","#666");
112
				$(event.target).attr(   "value",_("Rejected")).prop('disabled', true).css("color","#666");
113
				return false;	// cancel submit
113
				return false;	// cancel submit
114
			}
114
			}
115
			if ($(event.target).is('#test_button')) {
115
			if ($(event.target).is('#test_button')) {
116
				$(event.target).attr(   "value",_("Testing...")).attr("disabled","disabled");
116
				$(event.target).attr(   "value",_("Testing...")).prop('disabled', true);
117
				$.ajax({
117
				$.ajax({
118
					"data": {test: $('#test').attr("value")},
118
					"data": {test: $('#test').attr("value")},
119
					"success": success_test_call // success_reject
119
					"success": success_test_call // success_reject
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt (-2 / +2 lines)
Lines 24-33 $(document).ready(function(){ Link Here
24
      var subfield = $(this).next();
24
      var subfield = $(this).next();
25
      if ($(this).is(":checked")){
25
      if ($(this).is(":checked")){
26
          $(this).val($(this).siblings("[name='subfield']").val());
26
          $(this).val($(this).siblings("[name='subfield']").val());
27
          $(subfield).attr('disabled',true);
27
          $(subfield).prop('disabled', true);
28
          $("#"+row).html(_("This subfield will be deleted"));
28
          $("#"+row).html(_("This subfield will be deleted"));
29
      } else {
29
      } else {
30
          $(subfield).removeAttr('disabled');
30
          $(subfield).prop('disabled', false);
31
          $("#"+row).html("");
31
          $("#"+row).html("");
32
      }
32
      }
33
  });
33
  });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt (-2 / +1 lines)
Lines 35-41 $(document).ready(function() { Link Here
35
  [% IF recordtype == 'biblio' %]
35
  [% IF recordtype == 'biblio' %]
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).prop('disabled', true);
39
      $(this).prop('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
- 

Return to bug 16238