summaryrefslogtreecommitdiff
path: root/public/javascripts/toxcreate.js
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2011-08-22 16:25:21 +0000
committerChristoph Helma <helma@in-silico.ch>2011-08-22 16:25:21 +0000
commita8f6072f32ef5ae650216a4612d13eeb6b310c7e (patch)
tree60cb79d76b74c94b46201038c260e083a626806f /public/javascripts/toxcreate.js
parentf5eccd4ce22acb2fa05e84fb80e8385cce235d51 (diff)
parent4fc732ca31b07ba1469358836abf6ffd3c955098 (diff)
Merge branch 'development' of github.com:opentox/toxcreate into development
Diffstat (limited to 'public/javascripts/toxcreate.js')
-rwxr-xr-xpublic/javascripts/toxcreate.js14
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({