commit/galaxy-central: guerler: Dataset display eye-icon, fix context menu
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/e008f7f78892/ Changeset: e008f7f78892 User: guerler Date: 2013-07-17 22:58:56 Summary: Dataset display eye-icon, fix context menu Affected #: 1 file diff -r ff21a344b9e14e0deb896bbe89a45c70ad608331 -r e008f7f78892ceb35bd1198d9e56528616ddfddb static/scripts/mvc/dataset/hda-base.js --- a/static/scripts/mvc/dataset/hda-base.js +++ b/static/scripts/mvc/dataset/hda-base.js @@ -237,7 +237,13 @@ } else { displayBtnData.title = _l( 'View data' ); - displayBtnData.href = "javascript:parent.frame_manager.frame_new({title: 'Data Viewer', type: 'url', location: 'center', content: '" + this.urls.display + "'});"; + + // default link for dataset + displayBtnData.href = this.urls.display; + + // add frame manager option onclick event + var self = this; + displayBtnData.on_click = function() { parent.frame_manager.frame_new({title: "Data Viewer", type: "url", location: "center", content: self.urls.display }); }; } this.displayButton = new IconButtonView({ model : new IconButton( displayBtnData ) }); 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