summaryrefslogtreecommitdiff
path: root/public/javascripts
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2011-01-18 17:12:54 +0100
committermr <mr@mrautenberg.de>2011-01-18 17:12:54 +0100
commit8da8b742db45faeff56afc5b70d1ca263e4c0bb0 (patch)
tree7be1bcc6dbe6efcb61a55f03187c8306feeea6c6 /public/javascripts
parent318fb6deb86e326c3e6676c493fd8d327f38c1e1 (diff)
fix javascript
Diffstat (limited to 'public/javascripts')
-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 500b685..c74701a 100755
--- a/public/javascripts/toxcreate.js
+++ b/public/javascripts/toxcreate.js
@@ -14,19 +14,19 @@ $(function() {
});
};
- checkStati = function(stati) {
- stati = stati.split(", ")
+ checkStati = function(stati, subjectstr) {
+ stati = stati.split(", ");
$("body")
var newstati = new Array;
$.each(stati, function(){
- if(checkStatus(this) > 0) newstati.push(this);
+ if(checkStatus(this, subjectstr) > 0) newstati.push(this);
});
- if (newstati.length > 0) var statusCheck = setTimeout('checkStati("' + newstati.join(", ") + '")',10000);
+ if (newstati.length > 0) var statusCheck = setTimeout('checkStati("' + newstati.join(", ") + '", "' + subjectstr + '")',10000);
};
- checkStatus = function(id) {
+ checkStatus = function(id, subjectstr) {
if(id == "") return -1;
- var opts = {method: 'get', action: 'model/' + id + '/status', id: id};
+ var opts = {method: 'get', action: 'model/' + id + '/status' + subjectstr, id: id};
var status_changed = $.ajax({
type: opts.method,
url: opts.action,
@@ -36,7 +36,7 @@ $(function() {
'_method': 'get'
},
success: function(data) {
- var erg = data.search(/Running/);
+ var erg = data.search(/Running|Creating|Upload|Validating/);
status_changed = false;
if(erg < 0) status_changed = true;
$("span#model_" + id + "_status").animate({"opacity": "0.1"},1000);