projects
/
web.mtrack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a9605d
)
MTrackWeb/templates/images/js/mtrack2.js
author
Alan Knowles
<alan@akbkhome.com>
Wed, 1 Jun 2011 09:18:42 +0000
(17:18 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 1 Jun 2011 09:18:42 +0000
(17:18 +0800)
MTrackWeb/templates/images/js/mtrack2.js
patch
|
blob
|
history
diff --git
a/MTrackWeb/templates/images/js/mtrack2.js
b/MTrackWeb/templates/images/js/mtrack2.js
index
194d428
..
b840c90
100644
(file)
--- a/
MTrackWeb/templates/images/js/mtrack2.js
+++ b/
MTrackWeb/templates/images/js/mtrack2.js
@@
-230,6
+230,21
@@
MTrack.register('.dateinput', 'each', function(e) {
} );
+
+MTrack.register('a.browse-link', 'click', function(event)
+{
+ event.preventDefault();
+
+ var href= this.getAttribute('href').substring(baseURL.length);
+ try {
+ window.history.pushState( { url: href }, "Browse : " + href , this.href );
+ } catch (e) {}
+ var slideleft = $(this).is('.browse-link-up') ? 0 : 1;
+ MTrack.ajaxLoad(href,slideleft);
+});
+
+
+
//// ------------------- OLD STUFF NEEDS TIDY UP ----------------------
/*