diff options
author | mr <mr@mrautenberg.de> | 2011-08-22 15:28:27 +0200 |
---|---|---|
committer | mr <mr@mrautenberg.de> | 2011-08-22 15:28:27 +0200 |
commit | c71f69b610b270b9c25cf58e84a035078905fa46 (patch) | |
tree | d69f5ee37c99bdd6a4d99f15bc250603f0eced38 /public | |
parent | a4b6e68acf76949a1765177b6d5b8c454990cb8a (diff) |
remove subjectidstring for unified cookies
Diffstat (limited to 'public')
-rwxr-xr-x | public/javascripts/toxcreate.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/public/javascripts/toxcreate.js b/public/javascripts/toxcreate.js index ee783ce..0e82040 100755 --- a/public/javascripts/toxcreate.js +++ b/public/javascripts/toxcreate.js @@ -18,20 +18,20 @@ $(function() { return this.replace(/^\s+|\s+$/g, ''); } - checkStati = function(stati, subjectstr) { + checkStati = function(stati) { stati = stati.split(", "); $("body") var newstati = new Array; $.each(stati, function(){ - checkProgress(this, subjectstr); - if(checkStatus(this, subjectstr) > 0) newstati.push(this); + checkProgress(this); + if(checkStatus(this) > 0) newstati.push(this); }); - if (newstati.length > 0) var statusCheck = setTimeout('checkStati("' + newstati.join(", ") + '", "' + subjectstr + '")',10000); + if (newstati.length > 0) var statusCheck = setTimeout('checkStati("' + newstati.join(", ") + '")',10000); }; - checkStatus = function(id, subjectstr) { + checkStatus = function(id) { if(id == "") return -1; - var opts = {method: 'get', action: 'model/' + id + '/status' + subjectstr, id: id}; + var opts = {method: 'get', action: 'model/' + id + '/status', id: id}; var status_changed = $.ajax({ type: opts.method, url: opts.action, @@ -62,7 +62,7 @@ $(function() { }; - checkProgress = function(id, subjectstr) { + checkProgress = function(id) { var task = $("input#model_" + id + "_task").attr('value'); var opts = {action: task + "/percentageCompleted" , id: id}; var progress_changed = $.ajax({ |