Skip to content

Commit

Permalink
[cmd:resize] fix #2019 conflict with the bootstrap.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed May 26, 2017
1 parent b2f5372 commit 0133496
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions js/elFinder.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ var elFinder = function(node, opts) {

var self = this,

/**
* Plugin name to check for conflicts with bootstrap etc
*
* @type Array
**/
conflictChecks = ['button'],

/**
* Node on which elfinder creating
*
Expand Down Expand Up @@ -656,6 +663,14 @@ var elFinder = function(node, opts) {
this.options.enableAlways = true;
}

// Check and save conflicts with bootstrap etc
this.noConflicts = {};
$.each(conflictChecks, function(i, p) {
if ($.fn[p] && typeof $.fn[p].noConflict === 'function') {
self.noConflicts[p] = $.fn[p].noConflict();
}
});

/**
* Is elFinder over CORS
*
Expand Down

0 comments on commit 0133496

Please sign in to comment.