projects
/
web.mtrack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b059e3
)
MTrackWeb/templates/images/js/mtrack.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 24 Mar 2011 06:10:51 +0000
(14:10 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 24 Mar 2011 06:10:51 +0000
(14:10 +0800)
MTrackWeb/templates/images/js/mtrack.js
patch
|
blob
|
history
diff --git
a/MTrackWeb/templates/images/js/mtrack.js
b/MTrackWeb/templates/images/js/mtrack.js
index
acdc24c
..
5c288e3
100644
(file)
--- a/
MTrackWeb/templates/images/js/mtrack.js
+++ b/
MTrackWeb/templates/images/js/mtrack.js
@@
-58,7
+58,24
@@
MTrack = {
}
$(document).ready(function() {
- MTrack.addHandlers(); // adds to main body..
+ MTrack.addHandlers(); // adds to main body..
+ // change project.
+ $('#banner select').change( function(e) {
+ // ajax change project, and refresh body..
+ jQuery.ajax(
+ url : baseURL + '/Project.html',
+ data : { active_project_id : this.value }
+ success : function() {
+ // what if it's false..currentURL = false;
+ MTrack.ajaxLoad(MTrack.currentURL);
+
+ }
+
+ )
+
+ });
+
+
});