diff options
author | Madhura Jayaratne <madhura.cj@gmail.com> | 2015-07-02 18:19:40 +0300 |
---|---|---|
committer | Madhura Jayaratne <madhura.cj@gmail.com> | 2015-07-02 18:19:40 +0300 |
commit | 5d61cde4877116a2ad736ba225f53e479b02a80c (patch) | |
tree | 0798704753a87bee8058876b1f6f0f5b2c291c7f | |
parent | 8130247f03a8620a9fb1da29ffa89c8ead066f8b (diff) |
Fix variable scope
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
-rw-r--r-- | js/config.js | 4 | ||||
-rw-r--r-- | js/navigation.js | 4 | ||||
-rw-r--r-- | js/tbl_relation.js | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/js/config.js b/js/config.js index 5d22636536..10a9682b50 100644 --- a/js/config.js +++ b/js/config.js @@ -557,7 +557,7 @@ AJAX.registerOnload('config.js', function () { function setTab(tab_id) { $('ul.tabs').each(function() { - $this = $(this); + var $this = $(this); if (!$this.find('li a[href=#' + tab_id + ']').length) { return; } @@ -571,7 +571,7 @@ function setTab(tab_id) function setupConfigTabs() { var forms = $('form.config-form'); forms.each(function() { - $this = $(this); + var $this = $(this); var $tabs = $this.find('ul.tabs'); if (!$tabs.length) { return; diff --git a/js/navigation.js b/js/navigation.js index 27f5f5fa3c..4ad029c94f 100644 --- a/js/navigation.js +++ b/js/navigation.js @@ -83,7 +83,7 @@ function loadChildNodes(isNode, $expandElem, callback) { } else { var $throbber = $expandElem.find('img.throbber'); $throbber.hide(); - $icon = $expandElem.find('img.ic_b_plus'); + var $icon = $expandElem.find('img.ic_b_plus'); $icon.show(); PMA_ajaxShowMessage(data.error, false); } @@ -728,7 +728,7 @@ function PMA_showCurrentNavigation() { } // taverse up and expand and parent navigation groups $li.parents('.navGroup').each(function () { - $cont = $(this).children('div.list_container'); + var $cont = $(this).children('div.list_container'); if (! $cont.is(':visible')) { $(this) .children('div:first') diff --git a/js/tbl_relation.js b/js/tbl_relation.js index 01d0984e7c..9a4ae5903d 100644 --- a/js/tbl_relation.js +++ b/js/tbl_relation.js @@ -35,7 +35,7 @@ function setDropdownValues($dropdown, values, selectedValue) { */ function getDropdownValues($dropdown) { var foreignDb = null, foreignTable = null; - var $tableDd, $columnDd; + var $databaseDd, $tableDd, $columnDd; var foreign = ''; // if the changed dropdown is for foreign key constraints if ($dropdown.is('select[name^="destination_foreign"]')) { |