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:44:04 +0300
committerHugues Peccatte <hugues.peccatte@gmail.com>2015-07-21 00:44:04 +0300
commitd9d0d730c791a21b480a0eb559fc251d398e573c (patch)
treef82fc3212ed66c5bf830b942876cf8b8e6e1738d
parent84ebb98e544b5b185e180b384f12bcebdcec8319 (diff)
Improve CSS selectors.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
-rw-r--r--js/ajax.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/ajax.js b/js/ajax.js
index 2bff5a23bb..4b342fc14f 100644
--- a/js/ajax.js
+++ b/js/ajax.js
@@ -412,7 +412,7 @@ var AJAX = {
var replacement = $selflink_replace[source];
data._selflink = data._selflink.replace(source, replacement);
}
- $('#selflink > a').attr('href', data._selflink);
+ $('#selflink').find('> a').attr('href', data._selflink);
}
if (data._scripts) {
AJAX.scriptHandler.load(data._scripts);
@@ -709,7 +709,7 @@ $(function () {
if (history && history.pushState) {
//set initial state reload
var initState = ('state' in window.history && window.history.state !== null);
- var initURL = $('#selflink > a').attr('href') || location.href;
+ var initURL = $('#selflink').find('> a').attr('href') || location.href;
var state = {
url : initURL,
menu : menuContent