diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/arrow_down.png | bin | 0 -> 411 bytes | |||
-rw-r--r-- | public/arrow_left.png | bin | 0 -> 374 bytes | |||
-rw-r--r-- | public/arrow_left_inactive.png | bin | 0 -> 364 bytes | |||
-rw-r--r-- | public/arrow_right.png | bin | 0 -> 386 bytes | |||
-rw-r--r-- | public/arrow_right_inactive.png | bin | 0 -> 400 bytes | |||
-rw-r--r-- | public/arrow_up.png | bin | 0 -> 394 bytes | |||
-rwxr-xr-x | public/javascripts/toxcreate.js | 15 |
7 files changed, 8 insertions, 7 deletions
diff --git a/public/arrow_down.png b/public/arrow_down.png Binary files differnew file mode 100644 index 0000000..d298656 --- /dev/null +++ b/public/arrow_down.png diff --git a/public/arrow_left.png b/public/arrow_left.png Binary files differnew file mode 100644 index 0000000..8d18c67 --- /dev/null +++ b/public/arrow_left.png diff --git a/public/arrow_left_inactive.png b/public/arrow_left_inactive.png Binary files differnew file mode 100644 index 0000000..52c11bf --- /dev/null +++ b/public/arrow_left_inactive.png diff --git a/public/arrow_right.png b/public/arrow_right.png Binary files differnew file mode 100644 index 0000000..7fe64a8 --- /dev/null +++ b/public/arrow_right.png diff --git a/public/arrow_right_inactive.png b/public/arrow_right_inactive.png Binary files differnew file mode 100644 index 0000000..496f79e --- /dev/null +++ b/public/arrow_right_inactive.png diff --git a/public/arrow_up.png b/public/arrow_up.png Binary files differnew file mode 100644 index 0000000..70417dc --- /dev/null +++ b/public/arrow_up.png 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, |