Skip to content

Commit

Permalink
Merge branch 'hb9tst-ns_issue'
Browse files Browse the repository at this point in the history
  • Loading branch information
Szymon Olewniczak committed Aug 1, 2020
2 parents 9ae6cf1 + 39c31a0 commit b0e5b35
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,13 @@ jQuery(function() {
options.dirClosedIcon = JSINFO.plugin.filelisting.dirClosedIcon;
options.loadingIcon = JSINFO.plugin.filelisting.loadingIcon;

options.baseNamespace = JSINFO.namespace;
// if base namespace is not properly set, sorting and filtering wont work
var ns = jQuery('.plugin__filelisting').data("namespace");
if (ns !== undefined) {
options.baseNamespace = ns;
} else {
options.baseNamespace = JSINFO.namespace;
}

options.filterLabel = LANG.plugins.filelisting.filter_label;
options.deleteConfirm = LANG.plugins.filelisting.delete_confirm;
Expand Down

0 comments on commit b0e5b35

Please sign in to comment.