summaryrefslogtreecommitdiff
path: root/public/javascripts/toxcreate.js
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2011-09-23 12:17:31 +0200
committermr <mr@mrautenberg.de>2011-09-23 12:17:31 +0200
commitc00f2a9f3386922b62fa1013cecd222f8e8acb52 (patch)
tree42068b975b9b0041b267958f691b7e55f0d030ab /public/javascripts/toxcreate.js
parente2f8adcc24470548f0c4a7d9b5cb0d4ab929fb51 (diff)
parente967ffe75370d39d0928e440a9023e2da6e35ae3 (diff)
Merge branch 'release/v3.0.0'
Diffstat (limited to 'public/javascripts/toxcreate.js')
-rwxr-xr-xpublic/javascripts/toxcreate.js15
1 files changed, 8 insertions, 7 deletions
diff --git a/public/javascripts/toxcreate.js b/public/javascripts/toxcreate.js
index 91789f8..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({
@@ -207,6 +207,7 @@ jQuery.fn.deleteModel = function(type, options) {
if(confirm(opts.confirm_message)) {
$("div#model_" + opts.id).fadeTo("slow",0.5);
$("span#model_" + opts.id + "_status").html("Deleting");
+ $("a#delete_" + opts.id).html("");
$.ajax({
type: opts.method,
url: opts.action,