Skip to content

Commit

Permalink
Fix 30 - Open generated links in a new window
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanJard committed Jan 15, 2014
1 parent 80ced0a commit eead8d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/VisualEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ window.VisualEvent = function ()
'<div id="Event_Label">'+
'<span class="Event_LabelClose">x</span>'+
'<span class="Event_LabelHelp">?</span>'+
'Visual Event <span class="Event_LabelBy">by <a href="http://sprymedia.co.uk/">Allan Jardine</a>.</span>'+
'Visual Event <span class="Event_LabelBy">by <a href="http://sprymedia.co.uk/" target="_blank">Allan Jardine</a>.</span>'+
'<span class="Event_LabelEvents"></span> events were found attached to '+
'<span class="Event_LabelNodes"></span> nodes. '+
'<span class="Event_LabelNonDom"></span> events were attached to elements not currently in the document.'+
Expand Down Expand Up @@ -225,7 +225,7 @@ window.VisualEvent = function ()
'</table>'+
'<p>Visual Event is open source software (GPLv2). If you would like to contribute an '+
'enhancement, please fork the project on '+
'<a href="https://github.com/SpryMedia/VisualEvent">Github</a>!</p>'+
'<a href="https://github.com/SpryMedia/VisualEvent" target="_blank">Github</a>!</p>'+
'<p class="Event_HelpClose">Click anywhere to close this help box.</p>'+
'</div>'+
'</div>')[0],
Expand Down Expand Up @@ -493,12 +493,12 @@ VisualEvent.prototype = {
origin = "Function definition could not be found automatically<br/>";
} else if ( srcFiles.length === 1 ) {
origin = "Function defined on line "+srcFiles[0].line+
' in <a href="'+srcFiles[0].src+'">'+this._scriptName(srcFiles[0].src)+'</a><br/>';
' in <a href="'+srcFiles[0].src+'" target="_blank">'+this._scriptName(srcFiles[0].src)+'</a><br/>';
} else {
origin = "Function could originate in multiple locations:<br/>";
for ( i=0, iLen=srcFiles.length ; i<iLen ; i++ ) {
origin += (i+1)+'. line '+srcFiles[0].line+
' in <a href="'+srcFiles[0].src+'">'+this._scriptName(srcFiles[0].src)+'</a><br/>';
' in <a href="'+srcFiles[0].src+'" target="_blank">'+this._scriptName(srcFiles[0].src)+'</a><br/>';
}
}

Expand Down

0 comments on commit eead8d6

Please sign in to comment.