Skip to content

Commit

Permalink
minor adjustments to markup; improve logging; repack
Browse files Browse the repository at this point in the history
  • Loading branch information
martenson committed Mar 25, 2016
1 parent 87ea37c commit ce1b9ae
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,11 @@ var FolderToolbarView = Backbone.View.extend({
*/
importAllIntoHistory : function (){
this.modal.disableButton('Import');
var new_history_name = $('input[name=history_name]').val();
var new_history_name = this.modal.$('input[name=history_name]').val();
var that = this;
if (new_history_name !== ''){
$.post( Galaxy.root + 'api/histories', {name: new_history_name})
.done(function( new_history ) {
console.log(new_history.name);
that.options.last_used_history_id = new_history.id;
that.processImportToHistory(new_history.id, new_history.name);
})
Expand Down Expand Up @@ -644,7 +643,7 @@ var FolderToolbarView = Backbone.View.extend({
this.modal.$el.find( '.modal-body' ).html( template( { history_name : options.history_name } ) );
break;
default:
console.error( 'Wrong action specified.')
Galaxy.emit.error( 'Wrong action specified.', 'datalibs');
break;
}

Expand Down Expand Up @@ -925,8 +924,8 @@ var FolderToolbarView = Backbone.View.extend({
} else if (item.type === 'file' || item.model_class === 'LibraryDataset'){
updated_item = new mod_library_model.Item( item );
} else {
console.error('Unknown library item type found.');
console.error(item.type || item.model_class);
Galaxy.emit.error('Unknown library item type found.', 'datalibs');
Galaxy.emit.error(item.type || item.model_class, 'datalibs');
}
Galaxy.libraries.folderListView.collection.add( updated_item );
}
Expand Down
2 changes: 1 addition & 1 deletion static/maps/mvc/library/library-dataset-view.js.map

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/scripts/mvc/library/library-dataset-view.js

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions static/scripts/mvc/library/library-foldertoolbar-view.js

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions static/style/blue/base.css

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions static/style/blue/library.css

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

0 comments on commit ce1b9ae

Please sign in to comment.