summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorgebele <gebele@alfadeo.de>2011-07-26 11:48:03 +0200
committergebele <gebele@alfadeo.de>2011-07-26 11:48:03 +0200
commit26ec3b805361bfebc61c5aaed2a3e568c6434049 (patch)
treebbe5a49e70160ac337fa744639518824927b8019 /public
parent0befb6511f24b616a10b06bccf0c55fae36a567b (diff)
parent41945b3dc251ca00580916c3cbc7d26c2093ca89 (diff)
merged from development-> feature/policy
Diffstat (limited to 'public')
-rwxr-xr-xpublic/javascripts/toxcreate.js13
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;
});
-});
+};