Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #670 from duclet/480
Fix for issue #480
  • Loading branch information
Duc Tri Le committed Mar 21, 2012
2 parents 7c6634b + 6899ce4 commit 702f227
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/dateinput/dateinput.js
Expand Up @@ -289,7 +289,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 @@ -420,7 +425,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 702f227

Please sign in to comment.