aboutsummaryrefslogtreecommitdiffstats
path: root/97suifangqa/apps/indicator/static/javascripts/edit_history_data.js
diff options
context:
space:
mode:
authorAlvin Li <liweitianux@gmail.com>2013-08-15 00:20:55 +0800
committerAlvin Li <liweitianux@gmail.com>2013-08-15 00:20:55 +0800
commit5bcf6aa3b784c81aad353b3cefb433493f05f4a0 (patch)
tree4d99f2d5643b50100f1ec6659efd5518cb2c328c /97suifangqa/apps/indicator/static/javascripts/edit_history_data.js
parent8a7b2f6ff9e2760c872625fcd906afcbdf75c2e4 (diff)
download97dev-5bcf6aa3b784c81aad353b3cefb433493f05f4a0.tar.bz2
* updated 'apps/indicator/templates/indicator/' pages,
extends "base.html", make use of the django template system * added 'static_url', 'indicator_url' js variables * implemented the AJAX function for 'apps/indicator/templates/' pages TODO: * finish 'indicator.views': get_card_data_chart(), get_card_data_table() * link the front pages with the django models, forms and search!
Diffstat (limited to '97suifangqa/apps/indicator/static/javascripts/edit_history_data.js')
-rw-r--r--97suifangqa/apps/indicator/static/javascripts/edit_history_data.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/97suifangqa/apps/indicator/static/javascripts/edit_history_data.js b/97suifangqa/apps/indicator/static/javascripts/edit_history_data.js
index e664a39..03c62e9 100644
--- a/97suifangqa/apps/indicator/static/javascripts/edit_history_data.js
+++ b/97suifangqa/apps/indicator/static/javascripts/edit_history_data.js
@@ -68,7 +68,7 @@ $(document).ready(function(){
var time = date.getTime();
$.ajax({
type: 'get',
- url: '../../ajax/edit_history_data',
+ url: indicator_url + 'ajax/edit_history_data',
data: 'time='+time,
success: function(data){
if(data == 'success'){
@@ -80,4 +80,6 @@ $(document).ready(function(){
return false;
});
-}); \ No newline at end of file
+});
+
+// vim: set ts=4 sw=4 tw=0 fenc=utf-8 ft=javascript: //