Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Peccatte <hugues.peccatte@gmail.com>2015-07-21 00:49:30 +0300
committerHugues Peccatte <hugues.peccatte@gmail.com>2015-07-21 00:49:54 +0300
commitb8e6367b4ce41ef66911cc813fed7d6d8676e7de (patch)
tree851428f8a75c0996a3caea4e104dbc88c92ad0dd /js/config.js
parentd9d0d730c791a21b480a0eb559fc251d398e573c (diff)
Improve CSS selectors.
Remove duplicates CSS selectors. Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Diffstat (limited to 'js/config.js')
-rw-r--r--js/config.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/js/config.js b/js/config.js
index 10a9682b50..2b173cf47d 100644
--- a/js/config.js
+++ b/js/config.js
@@ -17,8 +17,9 @@ AJAX.registerTeardown('config.js', function () {
});
AJAX.registerOnload('config.js', function () {
- $('#topmenu2.user_prefs_tabs').find('li.active a').attr('rel', 'samepage');
- $('#topmenu2.user_prefs_tabs').find('li:not(.active) a').attr('rel', 'newpage');
+ var $topmenu_upt = $('#topmenu2.user_prefs_tabs');
+ $topmenu_upt.find('li.active a').attr('rel', 'samepage');
+ $topmenu_upt.find('li:not(.active) a').attr('rel', 'newpage');
});
// default values for fields
@@ -496,7 +497,7 @@ function setupValidation() {
}
// register validators and mark custom values
var $elements = $('.optbox input[id], .optbox select[id], .optbox textarea[id]');
- $('.optbox input[id], .optbox select[id], .optbox textarea[id]').each(function () {
+ $elements.each(function () {
markField(this);
var $el = $(this);
$el.bind('change', function () {
@@ -802,7 +803,7 @@ function updatePrefsDate()
'@DATE@',
PMA_formatDateTime(d)
);
- $('#opts_import_local_storage div.localStorage-exists').html(msg);
+ $('#opts_import_local_storage').find('div.localStorage-exists').html(msg);
}
/**