Skip to content

Commit

Permalink
[cmd:chmod] fix #1465 remove unnecessary this reference
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed Jun 15, 2016
1 parent 47f4970 commit db691ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions elfinder.src.html
Expand Up @@ -62,6 +62,8 @@
<script src="js/commands/back.js"></script>
<script src="js/commands/copy.js"></script>
<script src="js/commands/cut.js"></script>
<script src="js/commands/chmod.js"></script>
<script src="js/commands/colwidth.js"></script>
<script src="js/commands/download.js"></script>
<script src="js/commands/duplicate.js"></script>
<script src="js/commands/edit.js"></script>
Expand Down
3 changes: 1 addition & 2 deletions js/commands/chmod.js
Expand Up @@ -8,7 +8,6 @@
*/
elFinder.prototype.commands.chmod = function() {
this.updateOnSelect = false;
var self = this;
var fm = this.fm,
level = {
0 : 'owner',
Expand Down Expand Up @@ -50,7 +49,7 @@ elFinder.prototype.commands.chmod = function() {
if (sel.length == 0) {
sel = [ fm.cwd().hash ];
}
return !this._disabled && self.checkstate(this.files(sel)) ? 0 : -1;
return !this._disabled && this.checkstate(this.files(sel)) ? 0 : -1;
};

this.checkstate = function(sel) {
Expand Down

0 comments on commit db691ea

Please sign in to comment.