summaryrefslogtreecommitdiff
path: root/objectapp/static/objectapp/js/savert.js
diff options
context:
space:
mode:
Diffstat (limited to 'objectapp/static/objectapp/js/savert.js')
-rw-r--r--objectapp/static/objectapp/js/savert.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/objectapp/static/objectapp/js/savert.js b/objectapp/static/objectapp/js/savert.js
index 0e1f8b07..549e8196 100644
--- a/objectapp/static/objectapp/js/savert.js
+++ b/objectapp/static/objectapp/js/savert.js
@@ -3,7 +3,7 @@ $ = django.jQuery
$(document).ready(function() {
- $("#id_submit_rt").ajaxSend(function(e,xhr,settings){
+ $("#id_go").ajaxSend(function(e,xhr,settings){
function getCookie(name) {
@@ -41,13 +41,13 @@ $ = django.jQuery
xhr.setRequestHeader("X-CSRFToken", getCookie('csrftoken'));
}
});
- $("#id_submit_rt").click(function(){
+ $("#id_go").click(function(){
left = document.getElementById("id_left")
- rt = document.getElementById("id_reltype")
+ rt = document.getElementById("id_rel")
right = document.getElementById("id_right")
absolute_url = document.getElementById("id_back_url")
- url = "/objects/dynamicRelation/save/"+ left.value + "/" +rt.value+"/"+right.value+"/"
- // alert(url);
+ url = "/objects/dynamicRelation/save/"+ left.value+"/"+rt.value+"/"+right.value+"/"
+ //alert(url);
$.get(url,function(data){
window.location.replace(absolute_url.value);
});