Skip to content

Commit

Permalink
Merge pull request #331 from helios-ag/patch-1
Browse files Browse the repository at this point in the history
Allow to set custom client configuration path
  • Loading branch information
psolom authored Jun 23, 2018
2 parents 38a730b + 4cea9e2 commit d30d661
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Empty file modified ReadMe.md
100755 → 100644
Empty file.
3 changes: 2 additions & 1 deletion src/js/filemanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ $.richFilemanagerPlugin = function(element, pluginOptions)
*/
var defaults = {
baseUrl: '.', // relative path to the FM plugin folder
configUrl: null,
config: {}, // configuration options
callbacks: {
beforeCreateImageUrl: function (resourceObject, url) {
Expand Down Expand Up @@ -3219,7 +3220,7 @@ $.richFilemanagerPlugin = function(element, pluginOptions)
if(_url_.param('config')) {
url = fm.settings.baseUrl + '/config/' + _url_.param('config');
} else {
url = fm.settings.baseUrl + '/config/filemanager.config.json';
url = fm.settings.configUrl ? fm.settings.configUrl : fm.settings.baseUrl + '/config/filemanager.config.json'; // if configUrl is defined
}
} else {
url = fm.settings.baseUrl + '/config/filemanager.config.default.json';
Expand Down

0 comments on commit d30d661

Please sign in to comment.