Skip to content

Commit

Permalink
Fix panel notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Sep 4, 2015
1 parent 93be500 commit 5043dd2
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 15 deletions.
28 changes: 22 additions & 6 deletions client/galaxy/scripts/mvc/app/app-view.js
Expand Up @@ -10,8 +10,21 @@ define(['utils/utils', 'mvc/ui/ui-portlet', 'mvc/ui/ui-misc',
initialize: function( options ) {
this.options = Utils.merge( options, {} );
this.setElement( this._template( options ) );

// configure body
$( 'body' ).append( this.$el );
ensure_dd_helper();
$( 'body' ).attr( 'scroll', 'no' ).addClass( 'full-content' ).append( this.$el );

// adjust parent container
var $container = $( this.$el.parent() ).attr( 'scroll', 'no' ).addClass( 'full-content' );
if ( this.options.message_box_visible ) {
$container.addClass( 'has-message-box' );
this.$('#messagebox').show();
}
if ( this.options.show_inactivity_warning ) {
$container.addClass( 'has-inactivity-box' );
this.$('#inactivebox').show();
}

// set user
if( !Galaxy.currUser ) {
Expand Down Expand Up @@ -39,14 +52,14 @@ define(['utils/utils', 'mvc/ui/ui-portlet', 'mvc/ui/ui-misc',
}

// build page
this._buildPage( Analysis, options );
this._buildPanels( Analysis, options );
},

_buildPage: function( Cls, options ) {
_buildPanels: function( Views, options ) {
var panel_ids = [ 'left', 'center', 'right' ];
for ( var i in panel_ids ) {
var id = panel_ids[ i ];
var view = new Cls[ id ]( options );
var view = new Views[ id ]( options );
if ( id == 'center' ) {
this.$('#center').append( view.$el );
} else {
Expand Down Expand Up @@ -98,10 +111,13 @@ define(['utils/utils', 'mvc/ui/ui-portlet', 'mvc/ui/ui-misc',
_template: function() {
return '<div id="everything" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;">' +
'<div id="background"/>' +
'<div id="messagebox" class="panel-' + Galaxy.config.message_box_class + '-message">' +
'<div id="messagebox" class="panel-' + Galaxy.config.message_box_class + '-message" style="display: none;">' +
Galaxy.config.message_box_content +
'</div>' +
'<div id="inactivebox" class="panel-warning-message"/>' +
'<div id="inactivebox" class="panel-warning-message" style="display: none;">' +
Galaxy.config.inactivity_box_content +
' <a href="' + Galaxy.root + 'user/resend_verification">Resend verification.</a>' +
'</div>' +
'<div id="center" class="inbound"/>' +
'</div>';
}
Expand Down
1 change: 0 additions & 1 deletion client/galaxy/scripts/mvc/upload/upload-view.js
Expand Up @@ -219,7 +219,6 @@ return Backbone.View.extend({
it.set( 'info', data.error_message );
break;
}

}
data.payload.inputs = JSON.stringify( inputs );
}
Expand Down
2 changes: 1 addition & 1 deletion static/maps/mvc/app/app-view.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion static/maps/mvc/upload/upload-view.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5043dd2

Please sign in to comment.