diff options
author | Hugues Peccatte <hugues.peccatte@gmail.com> | 2015-07-21 00:44:04 +0300 |
---|---|---|
committer | Hugues Peccatte <hugues.peccatte@gmail.com> | 2015-07-21 00:44:04 +0300 |
commit | d9d0d730c791a21b480a0eb559fc251d398e573c (patch) | |
tree | f82fc3212ed66c5bf830b942876cf8b8e6e1738d | |
parent | 84ebb98e544b5b185e180b384f12bcebdcec8319 (diff) |
Improve CSS selectors.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
-rw-r--r-- | js/ajax.js | 4 |
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 |