library - stop event propagation if the folder row was clicked

This commit is contained in:
Martin Cech
2014-01-03 14:41:59 -05:00
parent c40b2b88fa
commit 458c68985d
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -506,6 +506,7 @@ var FolderContentView = Backbone.View.extend({
source = 'td';
}
if (checkbox === '') {event.stopPropagation(); return;} // button in row was clicked
if (checkbox === undefined) {event.stopPropagation(); return;} // folder row was clicked
if (checkbox.checked){
if (source==='td'){
@@ -578,7 +579,7 @@ var FolderContentView = Backbone.View.extend({
// import all selected datasets into history
importAllIntoHistory : function (){
//disable the button to rprevent multiple submission
//disable the button to prevent multiple submission
this.modal.disableButton('Import');
var history_id = $("select[name=dataset_import_bulk] option:selected").val();
File diff suppressed because one or more lines are too long