diff options
author | gebele <gebele@alfadeo.de> | 2011-07-26 11:48:03 +0200 |
---|---|---|
committer | gebele <gebele@alfadeo.de> | 2011-07-26 11:48:03 +0200 |
commit | 26ec3b805361bfebc61c5aaed2a3e568c6434049 (patch) | |
tree | bbe5a49e70160ac337fa744639518824927b8019 /public | |
parent | 0befb6511f24b616a10b06bccf0c55fae36a567b (diff) | |
parent | 41945b3dc251ca00580916c3cbc7d26c2093ca89 (diff) |
merged from development-> feature/policy
Diffstat (limited to 'public')
-rwxr-xr-x | public/javascripts/toxcreate.js | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/public/javascripts/toxcreate.js b/public/javascripts/toxcreate.js index 196e7d0..72065cb 100755 --- a/public/javascripts/toxcreate.js +++ b/public/javascripts/toxcreate.js @@ -4,10 +4,10 @@ $(function() { var id = id; this.bind("click", function() { if($("a#show_model_" + id + "_warnings").html()=="show") { - $("dd#model_" + id + "_warnings").slideDown("slow"); + $("div#model_" + id + "_warnings").slideDown("slow"); $("a#show_model_" + id + "_warnings").html("hide"); }else{ - $("dd#model_" + id + "_warnings").slideUp("slow"); + $("div#model_" + id + "_warnings").slideUp("slow"); $("a#show_model_" + id + "_warnings").html("show"); } return false; @@ -50,7 +50,7 @@ $(function() { if( status_before != status_after) { $("span#model_" + id + "_status").html(data); loadModel(id, 'model'); - if (status_after == "Completed") id = -1; + if (status_after == "Completed" || status_after == "Error") id = -1; } }, error: function(data) { @@ -101,6 +101,7 @@ $(function() { success: function(data) { if (view == "model") $("div#model_" + id).html(data); if (view.match(/validation/)) $("dl#model_validation_" + id).html(data); + addExternalLinks(); }, error: function(data) { //alert("loadModel error"); @@ -326,6 +327,10 @@ jQuery.fn.deleteModel = function(type, options) { }; $(document).ready(function() { + addExternalLinks(); +}); + +addExternalLinks = function() { $('A[rel="external"]').each(function() { $(this).attr('alt', 'Link opens in new window.'); $(this).attr('title', 'Link opens in new window.'); @@ -334,4 +339,4 @@ $(document).ready(function() { window.open($(this).attr('href')); return false; }); -}); +}; |