Fixed issue 241, links to attach files in Issues should not actually open their href target.

This commit is contained in:
Charles Melbye 2009-06-29 21:23:58 +02:00 committed by Loic d'Anterroches
parent c366124917
commit 75af09062f
2 changed files with 6 additions and 0 deletions

View File

@ -107,16 +107,19 @@ $(document).ready(function(){
$("#form-show-0").click(function(){ $("#form-show-0").click(function(){
$("#form-attachment-1").show(); $("#form-attachment-1").show();
$("#form-block-0").hide(); $("#form-block-0").hide();
return false;
}); });
$("#form-attachment-1 td").append("<span id=\"form-block-1\"><a id=\"form-show-1\" href=\"#\">{/literal}{trans 'Attach another file'}{literal}</a></span>"); $("#form-attachment-1 td").append("<span id=\"form-block-1\"><a id=\"form-show-1\" href=\"#\">{/literal}{trans 'Attach another file'}{literal}</a></span>");
$("#form-show-1").click(function(){ $("#form-show-1").click(function(){
$("#form-attachment-2").show(); $("#form-attachment-2").show();
$("#form-block-1").hide(); $("#form-block-1").hide();
return false;
}); });
$("#form-attachment-2 td").append("<span id=\"form-block-2\"><a id=\"form-show-2\" href=\"#\">{/literal}{trans 'Attach another file'}{literal}</a></span>"); $("#form-attachment-2 td").append("<span id=\"form-block-2\"><a id=\"form-show-2\" href=\"#\">{/literal}{trans 'Attach another file'}{literal}</a></span>");
$("#form-show-2").click(function(){ $("#form-show-2").click(function(){
$("#form-attachment-3").show(); $("#form-attachment-3").show();
$("#form-block-2").hide(); $("#form-block-2").hide();
return false;
}); });
var j=0; var j=0;
for (j=1;j<4;j=j+1) { for (j=1;j<4;j=j+1) {

View File

@ -160,16 +160,19 @@ $(document).ready(function(){
$("#form-show-0").click(function(){ $("#form-show-0").click(function(){
$("#form-attachment-1").show(); $("#form-attachment-1").show();
$("#form-block-0").hide(); $("#form-block-0").hide();
return false;
}); });
$("#form-attachment-1 td").append("<span id=\"form-block-1\"><a id=\"form-show-1\" href=\"#\">{/literal}{trans 'Attach another file'}{literal}</a></span>"); $("#form-attachment-1 td").append("<span id=\"form-block-1\"><a id=\"form-show-1\" href=\"#\">{/literal}{trans 'Attach another file'}{literal}</a></span>");
$("#form-show-1").click(function(){ $("#form-show-1").click(function(){
$("#form-attachment-2").show(); $("#form-attachment-2").show();
$("#form-block-1").hide(); $("#form-block-1").hide();
return false;
}); });
$("#form-attachment-2 td").append("<span id=\"form-block-2\"><a id=\"form-show-2\" href=\"#\">{/literal}{trans 'Attach another file'}{literal}</a></span>"); $("#form-attachment-2 td").append("<span id=\"form-block-2\"><a id=\"form-show-2\" href=\"#\">{/literal}{trans 'Attach another file'}{literal}</a></span>");
$("#form-show-2").click(function(){ $("#form-show-2").click(function(){
$("#form-attachment-3").show(); $("#form-attachment-3").show();
$("#form-block-2").hide(); $("#form-block-2").hide();
return false;
}); });
var j=0; var j=0;
for (j=1;j<4;j=j+1) { for (j=1;j<4;j=j+1) {