Skip to content

Commit

Permalink
jquerytools#480: Fixing readonly bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Duc Tri Le committed Dec 18, 2011
1 parent 46b8662 commit 6899ce4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/dateinput/dateinput.js
Expand Up @@ -274,7 +274,12 @@

//{{{ pick

function select(date, conf, e) {
function select(date, conf, e) {
// If it is readonly, then we'll just close the calendar
if (input.attr('readonly')) {
self.hide(e);
return;
}

// current value
value = date;
Expand Down Expand Up @@ -405,7 +410,7 @@
*/
show: function(e) {

if (input.attr("readonly") || input.attr("disabled") || opened) { return; }
if (input.attr("disabled") || opened) { return; }

// onBeforeShow
e = e || $.Event();
Expand Down

0 comments on commit 6899ce4

Please sign in to comment.