Skip to content

Commit

Permalink
change cursor when input enable and disable, #29
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Jul 9, 2014
1 parent 901394e commit 1dfd5c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,13 @@ Uploader.prototype.error = function(callback) {
// enable
Uploader.prototype.enable = function(){
this.input.prop('disabled', false);
this.input.css('cursor', 'pointer');
};

// disable
Uploader.prototype.disable = function(){
this.input.prop('disabled', true);
this.input.css('cursor', 'not-allowed');
};

// Helpers
Expand Down

0 comments on commit 1dfd5c1

Please sign in to comment.