mirror of
https://github.com/JonathanHerrewijnen/calibre-web.git
synced 2024-11-11 05:33:57 +00:00
Merge remote-tracking branch 'filepicker/fix-filemodal'
This commit is contained in:
commit
ba40c6693e
@ -650,10 +650,10 @@ $(function() {
|
||||
var folder = target.data("folderonly");
|
||||
var filter = target.data("filefilter");
|
||||
$("#element_selected").text(path);
|
||||
$("#file_confirm")[0].attributes["data-link"].value = target.data("link");
|
||||
$("#file_confirm")[0].attributes["data-folderonly"].value = (typeof folder === 'undefined') ? false : true;
|
||||
$("#file_confirm")[0].attributes["data-filefilter"].value = (typeof filter === 'undefined') ? "" : filter;
|
||||
$("#file_confirm")[0].attributes["data-newfile"].value = target.data("newfile");
|
||||
$("#file_confirm").data("link", target.data("link"));
|
||||
$("#file_confirm").data("folderonly", (typeof folder === 'undefined') ? false : true);
|
||||
$("#file_confirm").data("filefilter", (typeof filter === 'undefined') ? "" : filter);
|
||||
$("#file_confirm").data("newfile", target.data("newfile"));
|
||||
fillFileTable(path,"dir", folder, filter);
|
||||
});
|
||||
|
||||
@ -667,7 +667,7 @@ $(function() {
|
||||
var folder = $(file_confirm).data("folderonly");
|
||||
var filter = $(file_confirm).data("filefilter");
|
||||
var newfile = $(file_confirm).data("newfile");
|
||||
if (newfile !== 'undefined') {
|
||||
if (newfile !== "") {
|
||||
$("#element_selected").text(path + $("#new_file".text()));
|
||||
} else {
|
||||
$("#element_selected").text(path);
|
||||
|
Loading…
Reference in New Issue
Block a user