From 99d242f3aedeea0bdba08514c8a5f320b8b8c901 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 10 Jul 2013 12:30:55 +0200 Subject: [PATCH] Fixed JS indentation --- javascript/SubsitesTreeDropdownField.js | 37 ++++++++++++------------- 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/javascript/SubsitesTreeDropdownField.js b/javascript/SubsitesTreeDropdownField.js index dfd645d..60b238a 100644 --- a/javascript/SubsitesTreeDropdownField.js +++ b/javascript/SubsitesTreeDropdownField.js @@ -1,28 +1,25 @@ (function($) { $.entwine('ss', function($) { $('.TreeDropdownField').entwine({ - subsiteID: function() { - var subsiteSel = $$('#CopyContentFromID_SubsiteID select')[0]; - if(!subsiteSel) return; - - subsiteSel.onchange = (function() { - this.createTreeNode(true); - this.ajaxGetTree((function(response) { - this.newTreeReady(response, true); - this.updateTreeLabel(); - }).bind(this)); - }).bind(this); - return subsiteSel.options[subsiteSel.selectedIndex].value; - }, + subsiteID: function() { + var subsiteSel = $$('#CopyContentFromID_SubsiteID select')[0]; + if(!subsiteSel) return; + + subsiteSel.onchange = (function() { + this.createTreeNode(true); + this.ajaxGetTree((function(response) { + this.newTreeReady(response, true); + this.updateTreeLabel(); + }).bind(this)); + }).bind(this); + return subsiteSel.options[subsiteSel.selectedIndex].value; + }, getRequestParams: function() { - var name=this.find(':input:hidden').attr('name'); - var obj={}; - - obj[name+'_SubsiteID']=parseInt(this.subsiteID()); - + var name = this.find(':input:hidden').attr('name'), obj = {}; + obj[name + '_SubsiteID'] = parseInt(this.subsiteID()); return obj; - } + } }); }); -})(jQuery); +})(jQuery); \ No newline at end of file