commit/galaxy-central: jgoecks: Bug fixes and simplification for popup menu links.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/6965d7da4ba5/ Changeset: 6965d7da4ba5 User: jgoecks Date: 2013-10-04 17:50:44 Summary: Bug fixes and simplification for popup menu links. Affected #: 1 file diff -r 380fdaad0f938fda743593bf682de7f2fdb95a94 -r 6965d7da4ba5c84b19ade3ab89577d827edd5dc1 static/scripts/galaxy.base.js --- a/static/scripts/galaxy.base.js +++ b/static/scripts/galaxy.base.js @@ -175,18 +175,14 @@ // if theres confirm text, send the dialog if ( !confirmtext || confirm( confirmtext ) ) { - var f; - // Http request target is a window named demolocal on the local box - if ( target === "demo" ) { - if ( f === undefined || f.closed ) { - f = window.open( href,target ); - f.creator = self; - } - + // link.click() doesn't use target for some reason, + // so manually do it here. + if (target) { + window.open(href, target); } // For all other links, do the default action. else { - link.trigger('click'); + link.click(); } } } Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org