From 355b05d32c7bb31fb6ef8cd717ab97a3732290b2 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 21 Jun 2019 14:07:49 +0000 Subject: [PATCH] Bug 23183: Reindent cataloging.js This patch makes some very minor corrections to indentation in cataloging.js, a JavaScript file used by the bibliographic and item records editors. To test, apply the patch and perform a diff against master using the '-w' flag: git diff -w origin/master There should be no changes reported. --- koha-tmpl/intranet-tmpl/prog/js/cataloging.js | 38 +++++++++++++-------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js index b685c2a..b26c45b 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js +++ b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js @@ -12,7 +12,7 @@ function getFieldCode(tagDivId){ //returns the field and subfieldcode based upon subfield div id function getFieldAndSubfieldCode(subfieldDivId){ - // format : subfield... + // format : subfield... return subfieldDivId.substr(8,3+1); } @@ -76,23 +76,23 @@ function ExpandField(index) { } var Select2Utils = { - removeSelect2: function(element) { - if ($.fn.select2) { - var selects = element.getElementsByTagName('select'); - for (var i=0; i < selects.length; i++) { - $(selects[i]).select2('destroy'); - } - } - }, - - initSelect2: function(element) { - if ($.fn.select2) { - var selects = element.getElementsByTagName('select'); - for (var i=0; i < selects.length; i++) { - $(selects[i]).select2(); - } + removeSelect2: function(element) { + if ($.fn.select2) { + var selects = element.getElementsByTagName('select'); + for (var i=0; i < selects.length; i++) { + $(selects[i]).select2('destroy'); + } + } + }, + + initSelect2: function(element) { + if ($.fn.select2) { + var selects = element.getElementsByTagName('select'); + for (var i=0; i < selects.length; i++) { + $(selects[i]).select2(); + } + } } - } }; /** @@ -221,7 +221,7 @@ function CloneField(index, hideMarc, advancedMARCEditor) { buttonDotOnClick = buttonDotOnClick.replace(re2,",'"+inputs[1].getAttribute('id')+"')"); if(buttonDotOnClick){ - buttonDot.setAttribute('onclick',buttonDotOnClick); + buttonDot.setAttribute('onclick',buttonDotOnClick); } } } @@ -557,6 +557,6 @@ function CheckMandatorySubfields(p){ return total; } - $(document).ready(function() { +$(document).ready(function() { $("input.input_marceditor, input.indicator").addClass('noEnterSubmit'); }); -- 2.1.4