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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/batch_biblio_record_modification.inc (-1 / +1 lines)
Lines 54-60 Link Here
54
        $("#add_bibs_to_list").change(function(){
54
        $("#add_bibs_to_list").change(function(){
55
            var selected = $("#add_bibs_to_list").find("option:selected");
55
            var selected = $("#add_bibs_to_list").find("option:selected");
56
            if ( selected.attr("class") == "shelf" ){
56
            if ( selected.attr("class") == "shelf" ){
57
                var shelfnumber = selected.attr("value");
57
                var shelfnumber = selected.val();
58
                var bibs = new Array();
58
                var bibs = new Array();
59
                [% FOREACH message IN job.messages %]
59
                [% FOREACH message IN job.messages %]
60
                    [% IF message.code == 'biblio_modified' %]
60
                    [% IF message.code == 'biblio_modified' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicate_orders.tt (-1 / +1 lines)
Lines 397-403 Acquisitions › Koha Link Here
397
            $("#batch_edit_form").on("submit", function(e){
397
            $("#batch_edit_form").on("submit", function(e){
398
                var budget_value_will_be_reused = $("input[name='copy_existing_value'][value='budget_id']").is(':checked');
398
                var budget_value_will_be_reused = $("input[name='copy_existing_value'][value='budget_id']").is(':checked');
399
                if ( ! budget_value_will_be_reused ) {
399
                if ( ! budget_value_will_be_reused ) {
400
                    if ($("#all_budget_id").find("option:selected").attr("value") == "" ) {
400
                    if ($("#all_budget_id").find("option:selected").val() == "" ) {
401
                        alert(MSG_NO_FUND_SELECTED);
401
                        alert(MSG_NO_FUND_SELECTED);
402
                        e.preventDefault();
402
                        e.preventDefault();
403
                    }
403
                    }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-profile.tt (-1 / +1 lines)
Lines 146-152 Link Here
146
    [% Asset.js("js/tools-menu.js") | $raw %]
146
    [% Asset.js("js/tools-menu.js") | $raw %]
147
    <script>
147
    <script>
148
        $(document).ready(function(){
148
        $(document).ready(function(){
149
            var selectedUnit = $("#units option:selected").attr("value");
149
            var selectedUnit = $("#units option:selected").val();
150
            var unitfields = $("#offset_horz,#offset_vert,#creep_horz,#creep_vert");
150
            var unitfields = $("#offset_horz,#offset_vert,#creep_horz,#creep_vert");
151
            $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
151
            $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
152
            $("#units").change(function(){
152
            $("#units").change(function(){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-template.tt (-1 / +1 lines)
Lines 191-197 Link Here
191
    [% Asset.js("js/tools-menu.js") | $raw %]
191
    [% Asset.js("js/tools-menu.js") | $raw %]
192
    <script>
192
    <script>
193
        $(document).ready(function(){
193
        $(document).ready(function(){
194
            var selectedUnit = $("#units option:selected").attr("value");
194
            var selectedUnit = $("#units option:selected").val();
195
            var unitfields = $("#page_height,#page_width,#label_width,#label_height,#top_margin,#left_margin,#top_text_margin,#left_text_margin,#col_gap,#row_gap");
195
            var unitfields = $("#page_height,#page_width,#label_width,#label_height,#top_margin,#left_margin,#top_text_margin,#left_text_margin,#col_gap,#row_gap");
196
            $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
196
            $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
197
            $("#units").change(function(){
197
            $("#units").change(function(){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-layout.tt (-1 / +1 lines)
Lines 496-502 Link Here
496
[% MACRO jsinclude BLOCK %]
496
[% MACRO jsinclude BLOCK %]
497
    <script>
497
    <script>
498
        $(document).ready(function() {
498
        $(document).ready(function() {
499
            var selectedUnit = $("#units option:selected").attr("value");
499
            var selectedUnit = $("#units option:selected").val();
500
            var unitfields = $("#font_size,#field_1_llx,#field_1_lly,#field_2_llx,#field_2_lly,#field_3_llx,#field_3_lly,#barcode_Tx,#barcode_Ty,#image_1_Dx,#image_1_Tx,#image_1_Ty,#image_2_Dx,#image_2_Tx,#image_2_Ty");
500
            var unitfields = $("#font_size,#field_1_llx,#field_1_lly,#field_2_llx,#field_2_lly,#field_3_llx,#field_3_lly,#barcode_Tx,#barcode_Ty,#image_1_Dx,#image_1_Tx,#image_1_Ty,#image_2_Dx,#image_2_Tx,#image_2_Ty");
501
            $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
501
            $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
502
            $("#units").change(function(){
502
            $("#units").change(function(){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-profile.tt (-1 / +1 lines)
Lines 127-133 Link Here
127
[% MACRO jsinclude BLOCK %]
127
[% MACRO jsinclude BLOCK %]
128
    <script>
128
    <script>
129
        $(document).ready(function(){
129
        $(document).ready(function(){
130
            var selectedUnit = $("#units option:selected").attr("value");
130
            var selectedUnit = $("#units option:selected").val();
131
            var unitfields = $("#offset_horz,#offset_vert,#creep_horz,#creep_vert");
131
            var unitfields = $("#offset_horz,#offset_vert,#creep_horz,#creep_vert");
132
            $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
132
            $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
133
            $("#units").change(function(){
133
            $("#units").change(function(){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-template.tt (-1 / +1 lines)
Lines 182-188 Link Here
182
    [% Asset.js("js/tools-menu.js") | $raw %]
182
    [% Asset.js("js/tools-menu.js") | $raw %]
183
    <script>
183
    <script>
184
        $(document).ready(function(){
184
        $(document).ready(function(){
185
            var selectedUnit = $("#units option:selected").attr("value");
185
            var selectedUnit = $("#units option:selected").val();
186
            var unitfields = $("#page_height,#page_width,#card_width,#card_height,#top_margin,#left_margin,#col_gap,#row_gap");
186
            var unitfields = $("#page_height,#page_width,#card_width,#card_height,#top_margin,#left_margin,#col_gap,#row_gap");
187
            $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
187
            $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
188
            $("#units").change(function(){
188
            $("#units").change(function(){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (-4 / +4 lines)
Lines 774-797 Link Here
774
        function cartList(){
774
        function cartList(){
775
            var checkboxes = $("#searchresults").find(":checkbox");
775
            var checkboxes = $("#searchresults").find(":checkbox");
776
            var vshelf = vShelfAdd(checkboxes);
776
            var vshelf = vShelfAdd(checkboxes);
777
            if($("#addto").find("option:selected").attr("value") == "addtolist"){
777
            if($("#addto").find("option:selected").val() == "addtolist"){
778
                var shelfnumber = $("#addto").find("option:selected").attr("id").replace("s","");
778
                var shelfnumber = $("#addto").find("option:selected").attr("id").replace("s","");
779
                if (vshelf) {
779
                if (vshelf) {
780
                     openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?shelfnumber='+shelfnumber+'&confirm=1&' + vshelf,'popup',500,500);
780
                     openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?shelfnumber='+shelfnumber+'&confirm=1&' + vshelf,'popup',500,500);
781
                }
781
                }
782
                return false;
782
                return false;
783
            } else if($("#addto").find("option:selected").attr("value") == "newlist"){
783
            } else if($("#addto").find("option:selected").val() == "newlist"){
784
                if (vshelf) {
784
                if (vshelf) {
785
                    openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?newshelf=1&' + vshelf,'popup',500,500);
785
                    openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?newshelf=1&' + vshelf,'popup',500,500);
786
                }
786
                }
787
                return false;
787
                return false;
788
            } else if($("#addto").find("option:selected").attr("value") == "morelists"){
788
            } else if($("#addto").find("option:selected").val() == "morelists"){
789
                if (vshelf) {
789
                if (vshelf) {
790
                    openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?' + vshelf,'popup',500,500);
790
                    openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?' + vshelf,'popup',500,500);
791
                }
791
                }
792
                return false;
792
                return false;
793
            }
793
            }
794
            if($("#addto").find("option:selected").attr("value") == "addtocart"){
794
            if($("#addto").find("option:selected").val() == "addtocart"){
795
                addMultiple(checkboxes);
795
                addMultiple(checkboxes);
796
                return false;
796
                return false;
797
            }
797
            }
(-)a/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js (-1 / +1 lines)
Lines 15-21 $(document).ready(function(){ Link Here
15
15
16
    $("fieldset.rows input, fieldset.rows select").addClass("noEnterSubmit");
16
    $("fieldset.rows input, fieldset.rows select").addClass("noEnterSubmit");
17
    /* Inline edit/delete links */
17
    /* Inline edit/delete links */
18
    var biblionumber = $("input[name='biblionumber']").attr("value");
18
    var biblionumber = $("input[name='biblionumber']").val();
19
    $("tr.editable").each(function(){
19
    $("tr.editable").each(function(){
20
        $(this).find("td:not(:first)").on('click', function(){
20
        $(this).find("td:not(:first)").on('click', function(){
21
            var rowid = $(this).parent().attr("id");
21
            var rowid = $(this).parent().attr("id");
(-)a/koha-tmpl/intranet-tmpl/prog/js/pages/tags-review.js (-2 / +1 lines)
Lines 148-154 $(document).ready(function() { Link Here
148
            $(event.target).text( __("Testing...") ).prop('disabled', true);
148
            $(event.target).text( __("Testing...") ).prop('disabled', true);
149
            $.ajax({
149
            $.ajax({
150
                data: {
150
                data: {
151
                    test: $('#test').attr("value")
151
                    test: $('#test').val()
152
                },
152
                },
153
                success: success_test_call // success_reject
153
                success: success_test_call // success_reject
154
            });
154
            });
155
- 

Return to bug 32933