mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
docs, refac and indentation
This commit is contained in:
@@ -5,7 +5,7 @@ function(mod_toastr,
|
||||
mod_library_model) {
|
||||
/**
|
||||
* This view represents the top part of the library page.
|
||||
* It contains the tool bar with buttons.
|
||||
* It contains the tool bar with controls.
|
||||
*/
|
||||
var LibraryToolbarView = Backbone.View.extend({
|
||||
el: '#center',
|
||||
@@ -37,93 +37,109 @@ var LibraryToolbarView = Backbone.View.extend({
|
||||
},
|
||||
|
||||
/**
|
||||
* Called from LibraryListView when needed.
|
||||
* @param {object} options common options
|
||||
* Renders the element that shows pages into its div within the toolbar.
|
||||
*/
|
||||
renderPaginator: function( options ){
|
||||
this.options = _.extend( this.options, options );
|
||||
var paginator_template = this.templatePaginator();
|
||||
this.$el.find( '#library_paginator' ).html( paginator_template({
|
||||
show_page: parseInt( this.options.show_page ),
|
||||
page_count: parseInt( this.options.page_count ),
|
||||
total_libraries_count: this.options.total_libraries_count,
|
||||
libraries_shown: this.options.libraries_shown
|
||||
show_page: parseInt( this.options.show_page ),
|
||||
page_count: parseInt( this.options.page_count ),
|
||||
total_libraries_count: this.options.total_libraries_count,
|
||||
libraries_shown: this.options.libraries_shown
|
||||
}));
|
||||
},
|
||||
|
||||
/**
|
||||
* User clicked on 'New library' button. Show modal to
|
||||
* satisfy the wish.
|
||||
*/
|
||||
showLibraryModal : function (event){
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
var self = this;
|
||||
this.modal = Galaxy.modal;
|
||||
this.modal.show({
|
||||
closing_events : true,
|
||||
title : 'Create New Library',
|
||||
body : this.templateNewLibraryInModal(),
|
||||
buttons : {
|
||||
'Create' : function() { self.createNewLibrary(); },
|
||||
'Close' : function() { self.modal.hide(); }
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
createNewLibrary: function(){
|
||||
var libraryDetails = this.serializeNewLibrary();
|
||||
if (this.valdiateNewLibrary(libraryDetails)){
|
||||
var library = new mod_library_model.Library();
|
||||
var self = this;
|
||||
library.save(libraryDetails, {
|
||||
success: function (library) {
|
||||
Galaxy.libraries.libraryListView.collection.add(library);
|
||||
self.modal.hide();
|
||||
self.clearLibraryModal();
|
||||
Galaxy.libraries.libraryListView.render();
|
||||
mod_toastr.success('Library created.');
|
||||
},
|
||||
error: function(model, response){
|
||||
if (typeof response.responseJSON !== "undefined"){
|
||||
mod_toastr.error(response.responseJSON.err_msg);
|
||||
} else {
|
||||
mod_toastr.error('An error occured.');
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
mod_toastr.error('Library\'s name is missing.');
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
var self = this;
|
||||
this.modal = Galaxy.modal;
|
||||
this.modal.show({
|
||||
closing_events : true,
|
||||
title : 'Create New Library',
|
||||
body : this.templateNewLibraryInModal(),
|
||||
buttons : {
|
||||
'Create' : function() { self.createNewLibrary(); },
|
||||
'Close' : function() { self.modal.hide(); }
|
||||
}
|
||||
return false;
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* Create the new library using the API asynchronously.
|
||||
*/
|
||||
createNewLibrary: function(){
|
||||
var libraryDetails = this.serializeNewLibrary();
|
||||
if (this.validateNewLibrary(libraryDetails)){
|
||||
var library = new mod_library_model.Library();
|
||||
var self = this;
|
||||
library.save(libraryDetails, {
|
||||
success: function (library) {
|
||||
Galaxy.libraries.libraryListView.collection.add(library);
|
||||
self.modal.hide();
|
||||
self.clearLibraryModal();
|
||||
Galaxy.libraries.libraryListView.render();
|
||||
mod_toastr.success('Library created.');
|
||||
},
|
||||
error: function(model, response){
|
||||
if (typeof response.responseJSON !== "undefined"){
|
||||
mod_toastr.error(response.responseJSON.err_msg);
|
||||
} else {
|
||||
mod_toastr.error('An error occured.');
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
mod_toastr.error('Library\'s name is missing.');
|
||||
}
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* Show user the propmpt to change the number of libs shown on page.
|
||||
*/
|
||||
showPageSizePrompt: function(){
|
||||
var library_page_size = prompt( 'How many libraries per page do you want to see?', Galaxy.libraries.preferences.get( 'library_page_size' ) );
|
||||
if ( ( library_page_size != null ) && ( library_page_size == parseInt( library_page_size ) ) ) {
|
||||
Galaxy.libraries.preferences.set( { 'library_page_size': parseInt( library_page_size ) } );
|
||||
Galaxy.libraries.libraryListView.render( { show_page: 1 } );
|
||||
Galaxy.libraries.preferences.set( { 'library_page_size': parseInt( library_page_size ) } );
|
||||
Galaxy.libraries.libraryListView.render( { show_page: 1 } );
|
||||
}
|
||||
},
|
||||
|
||||
// clear the library modal once saved
|
||||
/**
|
||||
* Clear the library modal once it is saved.
|
||||
*/
|
||||
clearLibraryModal : function(){
|
||||
$("input[name='Name']").val('');
|
||||
$("input[name='Description']").val('');
|
||||
$("input[name='Synopsis']").val('');
|
||||
$("input[name='Name']").val('');
|
||||
$("input[name='Description']").val('');
|
||||
$("input[name='Synopsis']").val('');
|
||||
},
|
||||
|
||||
/**
|
||||
* Prepare new library variables to be submitted to API.
|
||||
*/
|
||||
serializeNewLibrary : function(){
|
||||
return {
|
||||
name: $("input[name='Name']").val(),
|
||||
description: $("input[name='Description']").val(),
|
||||
synopsis: $("input[name='Synopsis']").val()
|
||||
};
|
||||
return {
|
||||
name: $("input[name='Name']").val(),
|
||||
description: $("input[name='Description']").val(),
|
||||
synopsis: $("input[name='Synopsis']").val()
|
||||
};
|
||||
},
|
||||
|
||||
valdiateNewLibrary: function( libraryDetails ){
|
||||
/**
|
||||
* Check whether entered values are valid.
|
||||
*/
|
||||
validateNewLibrary: function( libraryDetails ){
|
||||
return libraryDetails.name !== '';
|
||||
},
|
||||
|
||||
/**
|
||||
* Include or exclude deleted libraries in the view.
|
||||
* @param {object} event common event
|
||||
*/
|
||||
includeDeletedChecked: function( event ){
|
||||
if (event.target.checked){
|
||||
@@ -135,6 +151,10 @@ var LibraryToolbarView = Backbone.View.extend({
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Take the contents of the search field and send it to the list view
|
||||
* to query the collection of libraries.
|
||||
*/
|
||||
searchLibraries: function(event){
|
||||
var search_term = $(".library-search-input").val();
|
||||
Galaxy.libraries.libraryListView.searchLibraries(search_term);
|
||||
@@ -180,56 +200,52 @@ var LibraryToolbarView = Backbone.View.extend({
|
||||
},
|
||||
|
||||
templatePaginator: function(){
|
||||
tmpl_array = [];
|
||||
|
||||
tmpl_array.push(' <ul class="pagination pagination-sm">');
|
||||
tmpl_array.push(' <% if ( ( show_page - 1 ) > 0 ) { %>');
|
||||
tmpl_array.push(' <% if ( ( show_page - 1 ) > page_count ) { %>'); // we are on higher page than total page count
|
||||
tmpl_array.push(' <li><a href="#page/1"><span class="fa fa-angle-double-left"></span></a></li>');
|
||||
tmpl_array.push(' <li class="disabled"><a href="#page/<% print( show_page ) %>"><% print( show_page - 1 ) %></a></li>');
|
||||
tmpl_array.push(' <% } else { %>');
|
||||
tmpl_array.push(' <li><a href="#page/1"><span class="fa fa-angle-double-left"></span></a></li>');
|
||||
tmpl_array.push(' <li><a href="#page/<% print( show_page - 1 ) %>"><% print( show_page - 1 ) %></a></li>');
|
||||
tmpl_array.push(' <% } %>');
|
||||
tmpl_array.push(' <% } else { %>'); // we are on the first page
|
||||
tmpl_array.push(' <li class="disabled"><a href="#page/1"><span class="fa fa-angle-double-left"></span></a></li>');
|
||||
tmpl_array.push(' <li class="disabled"><a href="#page/<% print( show_page ) %>"><% print( show_page - 1 ) %></a></li>');
|
||||
tmpl_array.push(' <% } %>');
|
||||
tmpl_array.push(' <li class="active">');
|
||||
tmpl_array.push(' <a href="#page/<% print( show_page ) %>"><% print( show_page ) %></a>');
|
||||
tmpl_array.push(' </li>');
|
||||
tmpl_array.push(' <% if ( ( show_page ) < page_count ) { %>');
|
||||
tmpl_array.push(' <li><a href="#page/<% print( show_page + 1 ) %>"><% print( show_page + 1 ) %></a></li>');
|
||||
tmpl_array.push(' <li><a href="#page/<% print( page_count ) %>"><span class="fa fa-angle-double-right"></span></a></li>');
|
||||
tmpl_array.push(' <% } else { %>');
|
||||
tmpl_array.push(' <li class="disabled"><a href="#page/<% print( show_page ) %>"><% print( show_page + 1 ) %></a></li>');
|
||||
tmpl_array.push(' <li class="disabled"><a href="#page/<% print( page_count ) %>"><span class="fa fa-angle-double-right"></span></a></li>');
|
||||
tmpl_array.push(' <% } %>');
|
||||
tmpl_array.push(' </ul>');
|
||||
tmpl_array.push(' <span>');
|
||||
tmpl_array.push(' showing <a data-toggle="tooltip" data-placement="top" title="Click to change the number of libraries on page" id="page_size_prompt"><%- libraries_shown %></a> of <%- total_libraries_count %> libraries');
|
||||
tmpl_array.push(' </span>');
|
||||
|
||||
return _.template(tmpl_array.join(''));
|
||||
return _.template([
|
||||
'<ul class="pagination pagination-sm">',
|
||||
'<% if ( ( show_page - 1 ) > 0 ) { %>',
|
||||
'<% if ( ( show_page - 1 ) > page_count ) { %>', // we are on higher page than total page count
|
||||
'<li><a href="#page/1"><span class="fa fa-angle-double-left"></span></a></li>',
|
||||
'<li class="disabled"><a href="#page/<% print( show_page ) %>"><% print( show_page - 1 ) %></a></li>',
|
||||
'<% } else { %>',
|
||||
'<li><a href="#page/1"><span class="fa fa-angle-double-left"></span></a></li>',
|
||||
'<li><a href="#page/<% print( show_page - 1 ) %>"><% print( show_page - 1 ) %></a></li>',
|
||||
'<% } %>',
|
||||
'<% } else { %>', // we are on the first page
|
||||
'<li class="disabled"><a href="#page/1"><span class="fa fa-angle-double-left"></span></a></li>',
|
||||
'<li class="disabled"><a href="#page/<% print( show_page ) %>"><% print( show_page - 1 ) %></a></li>',
|
||||
'<% } %>',
|
||||
'<li class="active">',
|
||||
'<a href="#page/<% print( show_page ) %>"><% print( show_page ) %></a>',
|
||||
'</li>',
|
||||
'<% if ( ( show_page ) < page_count ) { %>',
|
||||
'<li><a href="#page/<% print( show_page + 1 ) %>"><% print( show_page + 1 ) %></a></li>',
|
||||
'<li><a href="#page/<% print( page_count ) %>"><span class="fa fa-angle-double-right"></span></a></li>',
|
||||
'<% } else { %>',
|
||||
'<li class="disabled"><a href="#page/<% print( show_page ) %>"><% print( show_page + 1 ) %></a></li>',
|
||||
'<li class="disabled"><a href="#page/<% print( page_count ) %>"><span class="fa fa-angle-double-right"></span></a></li>',
|
||||
'<% } %>',
|
||||
'</ul>',
|
||||
'<span>',
|
||||
'showing <a data-toggle="tooltip" data-placement="top" title="Click to change the number of libraries on page" id="page_size_prompt"><%- libraries_shown %></a> of <%- total_libraries_count %> libraries',
|
||||
'</span>'
|
||||
].join(''));
|
||||
},
|
||||
|
||||
templateNewLibraryInModal: function(){
|
||||
tmpl_array = [];
|
||||
|
||||
tmpl_array.push('<div id="new_library_modal">');
|
||||
tmpl_array.push(' <form>');
|
||||
tmpl_array.push(' <input type="text" name="Name" value="" placeholder="Name">');
|
||||
tmpl_array.push(' <input type="text" name="Description" value="" placeholder="Description">');
|
||||
tmpl_array.push(' <input type="text" name="Synopsis" value="" placeholder="Synopsis">');
|
||||
tmpl_array.push(' </form>');
|
||||
tmpl_array.push('</div>');
|
||||
|
||||
return tmpl_array.join('');
|
||||
return _.template([
|
||||
'<div id="new_library_modal">',
|
||||
'<form>',
|
||||
'<input type="text" name="Name" value="" placeholder="Name">',
|
||||
'<input type="text" name="Description" value="" placeholder="Description">',
|
||||
'<input type="text" name="Synopsis" value="" placeholder="Synopsis">',
|
||||
'</form>',
|
||||
'</div>'
|
||||
].join(''));
|
||||
}
|
||||
});
|
||||
|
||||
return {
|
||||
LibraryToolbarView: LibraryToolbarView
|
||||
LibraryToolbarView: LibraryToolbarView
|
||||
};
|
||||
|
||||
});
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"library-librarytoolbar-view.js","sources":["../../../src/mvc/library/library-librarytoolbar-view.js"],"names":["define","mod_toastr","mod_library_model","LibraryToolbarView","Backbone","View","extend","el","events","click #create_new_library_btn","click #include_deleted_chk","click #page_size_prompt","keyup .library-search-input","initialize","options","this","_","defaults","render","toolbar_template","templateToolBar","is_admin","is_anonym","Galaxy","currUser","isAdmin","isAnonymous","$el","html","admin_user","anon_user","find","checked","libraries","preferences","get","renderPaginator","paginator_template","templatePaginator","show_page","parseInt","page_count","total_libraries_count","libraries_shown","showLibraryModal","event","preventDefault","stopPropagation","self","modal","show","closing_events","title","body","templateNewLibraryInModal","buttons","Create","createNewLibrary","Close","hide","libraryDetails","serializeNewLibrary","valdiateNewLibrary","library","Library","save","success","libraryListView","collection","add","clearLibraryModal","error","model","response","responseJSON","err_msg","showPageSizePrompt","library_page_size","prompt","set","$","val","name","description","synopsis","includeDeletedChecked","target","with_deleted","searchLibraries","search_term","template","join","tmpl_array","push"],"mappings":"AAAAA,QACE,cACA,6BACF,SAASC,EACAC,GAKT,GAAIC,GAAqBC,SAASC,KAAKC,QACrCC,GAAI,UAEJC,QACEC,gCAAkC,mBAClCC,6BAAkC,wBAClCC,0BAAkC,qBAClCC,8BAAkC,mBAGpCC,WAAY,SAAUC,GACpBC,KAAKD,QAAUE,EAAEC,SAAUF,KAAKD,YAAeA,GAC/CC,KAAKG,UAGPA,OAAQ,WACN,GAAIC,GAAmBJ,KAAKK,kBACxBC,GAAW,EACXC,GAAY,CACXC,QAAOC,WACVH,EAAWE,OAAOC,SAASC,UAC3BH,EAAYC,OAAOC,SAASE,eAE9BX,KAAKY,IAAIC,KAAKT,GAAoBU,WAAYR,EAAUS,UAAWR,KAC9DD,IACHN,KAAKY,IAAII,KAAM,wBAAyB,GAAGC,QAAUT,OAAOU,UAAUC,YAAYC,IAAK,kBAQ3FC,gBAAiB,SAAUtB,GACzBC,KAAKD,QAAUE,EAAEV,OAAQS,KAAKD,QAASA,EACvC,IAAIuB,GAAqBtB,KAAKuB,mBAC9BvB,MAAKY,IAAII,KAAM,sBAAuBH,KAAMS,GACxCE,UAAWC,SAAUzB,KAAKD,QAAQyB,WAClCE,WAAYD,SAAUzB,KAAKD,QAAQ2B,YACnCC,sBAAuB3B,KAAKD,QAAQ4B,sBACpCC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B,MAVAsC,eAEAA,WAAWC,KAAK,gCAChBD,WAAWC,KAAK,aAChBD,WAAWC,KAAK,sEAChBD,WAAWC,KAAK,oFAChBD,WAAWC,KAAK,8EAChBD,WAAWC,KAAK,cAChBD,WAAWC,KAAK,UAETD,WAAWD,KAAK,MAI7B,QACIxF,mBAAoBA"}
|
||||
{"version":3,"file":"library-librarytoolbar-view.js","sources":["../../../src/mvc/library/library-librarytoolbar-view.js"],"names":["define","mod_toastr","mod_library_model","LibraryToolbarView","Backbone","View","extend","el","events","click #create_new_library_btn","click #include_deleted_chk","click #page_size_prompt","keyup .library-search-input","initialize","options","this","_","defaults","render","toolbar_template","templateToolBar","is_admin","is_anonym","Galaxy","currUser","isAdmin","isAnonymous","$el","html","admin_user","anon_user","find","checked","libraries","preferences","get","renderPaginator","paginator_template","templatePaginator","show_page","parseInt","page_count","total_libraries_count","libraries_shown","showLibraryModal","event","preventDefault","stopPropagation","self","modal","show","closing_events","title","body","templateNewLibraryInModal","buttons","Create","createNewLibrary","Close","hide","libraryDetails","serializeNewLibrary","validateNewLibrary","library","Library","save","success","libraryListView","collection","add","clearLibraryModal","error","model","response","responseJSON","err_msg","showPageSizePrompt","library_page_size","prompt","set","$","val","name","description","synopsis","includeDeletedChecked","target","with_deleted","searchLibraries","search_term","template","join"],"mappings":"AAAAA,QACE,cACA,6BACF,SAASC,EACAC,GAKT,GAAIC,GAAqBC,SAASC,KAAKC,QACrCC,GAAI,UAEJC,QACEC,gCAAkC,mBAClCC,6BAAkC,wBAClCC,0BAAkC,qBAClCC,8BAAkC,mBAGpCC,WAAY,SAAUC,GACpBC,KAAKD,QAAUE,EAAEC,SAAUF,KAAKD,YAAeA,GAC/CC,KAAKG,UAGPA,OAAQ,WACN,GAAIC,GAAmBJ,KAAKK,kBACxBC,GAAW,EACXC,GAAY,CACXC,QAAOC,WACVH,EAAWE,OAAOC,SAASC,UAC3BH,EAAYC,OAAOC,SAASE,eAE9BX,KAAKY,IAAIC,KAAKT,GAAoB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ACF,UACAC,KAAK,OAIX,QACExF,mBAAoBA"}
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user