mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #4355 from erasche/patch-wrong-folder-id
[release_17.05] Patch bug preventing creation of dataset library folders
This commit is contained in:
@@ -162,7 +162,11 @@ var FolderToolbarView = Backbone.View.extend({
|
||||
if (this.validate_new_folder(folderDetails)){
|
||||
var folder = new mod_library_model.FolderAsModel();
|
||||
url_items = Backbone.history.fragment.split('/');
|
||||
current_folder_id = url_items[url_items.length-1];
|
||||
if(url_items.indexOf('page') > -1){
|
||||
current_folder_id = url_items[url_items.length-3];
|
||||
}else {
|
||||
current_folder_id = url_items[url_items.length-1];
|
||||
}
|
||||
folder.url = folder.urlRoot + current_folder_id ;
|
||||
|
||||
folder.save(folderDetails, {
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"job-params.js","sources":["../../../src/mvc/job/job-params.js"],"names":["define","Utils","View","Backbone","extend","initialize","options","this","setElement","render","console","log","self","$el","empty","append"],"mappings":"AACAA,QAAU,eAAiB,SAAUC,GAkBjC,GAAIC,GAAOC,SAASD,KAAKE,QAErBC,WAAY,SAAUC,GAElBC,KAAKD,QAAUA,EACfC,KAAKC,WAAY,UACjBD,KAAKE,UAGTA,OAAQ,WACJC,QAAQC,IAAI,KACZ,IAAIC,GAAOL,IACXK,GAAKC,IAAIC,QAAQC,OAAQ,sBA4BjC,QACIb,KAAQA"}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
|
||||
define(["utils/utils"],function(a){var b=Backbone.View.extend({initialize:function(a){this.options=a,this.setElement("<div/>"),this.render()},render:function(){console.log("HI");var a=this;a.$el.empty().append("<h1>Testing</h1>")}});return{View:b}});
|
||||
//# sourceMappingURL=../../../maps/mvc/job/job-params.js.map
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user