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

(-)a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js (-20 / +19 lines)
Lines 12-18 function getFieldCode(tagDivId){ Link Here
12
12
13
//returns the field and subfieldcode based upon subfield div id
13
//returns the field and subfieldcode based upon subfield div id
14
function getFieldAndSubfieldCode(subfieldDivId){
14
function getFieldAndSubfieldCode(subfieldDivId){
15
 // format : subfield<tagnumber><subfieldnumber>...
15
    // format : subfield<tagnumber><subfieldnumber>...
16
    return subfieldDivId.substr(8,3+1);
16
    return subfieldDivId.substr(8,3+1);
17
}
17
}
18
18
Lines 76-98 function ExpandField(index) { Link Here
76
}
76
}
77
77
78
var Select2Utils = {
78
var Select2Utils = {
79
  removeSelect2: function(element) {
79
    removeSelect2: function(element) {
80
    if ($.fn.select2) {
80
        if ($.fn.select2) {
81
      var selects = element.getElementsByTagName('select');
81
            var selects = element.getElementsByTagName('select');
82
      for (var i=0; i < selects.length; i++) {
82
            for (var i=0; i < selects.length; i++) {
83
        $(selects[i]).select2('destroy');
83
                $(selects[i]).select2('destroy');
84
      }
84
            }
85
    }
85
        }
86
  },
86
    },
87
87
88
  initSelect2: function(element) {
88
    initSelect2: function(element) {
89
    if ($.fn.select2) {
89
        if ($.fn.select2) {
90
      var selects = element.getElementsByTagName('select');
90
            var selects = element.getElementsByTagName('select');
91
      for (var i=0; i < selects.length; i++) {
91
            for (var i=0; i < selects.length; i++) {
92
        $(selects[i]).select2();
92
                $(selects[i]).select2();
93
      }
93
            }
94
        }
94
    }
95
    }
95
  }
96
};
96
};
97
97
98
/**
98
/**
Lines 221-227 function CloneField(index, hideMarc, advancedMARCEditor) { Link Here
221
                                    buttonDotOnClick = buttonDotOnClick.replace(re2,",'"+inputs[1].getAttribute('id')+"')");
221
                                    buttonDotOnClick = buttonDotOnClick.replace(re2,",'"+inputs[1].getAttribute('id')+"')");
222
222
223
                                    if(buttonDotOnClick){
223
                                    if(buttonDotOnClick){
224
                                            buttonDot.setAttribute('onclick',buttonDotOnClick);
224
                                        buttonDot.setAttribute('onclick',buttonDotOnClick);
225
                                    }
225
                                    }
226
                                }
226
                                }
227
                            }
227
                            }
Lines 557-562 function CheckMandatorySubfields(p){ Link Here
557
    return total;
557
    return total;
558
}
558
}
559
559
560
 $(document).ready(function() {
560
$(document).ready(function() {
561
    $("input.input_marceditor, input.indicator").addClass('noEnterSubmit');
561
    $("input.input_marceditor, input.indicator").addClass('noEnterSubmit');
562
});
562
});
563
- 

Return to bug 23183