Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Disabling ClockPicker when the field is readable #77

Open
wants to merge 2 commits into
base: gh-pages
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/clockpicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@
fromnow: 0, // set default time to * milliseconds from now (using with default = 'now')
placement: 'bottom', // clock popover placement
align: 'left', // popover arrow align
donetext: '完成', // done button text
donetext: '完�??', // done button text

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix this

autoclose: false, // auto close when minute is selected
twelvehour: false, // change to 12 hour AM/PM clock from 24 hour
vibrate: true // vibrate the device when dragging clock hand
Expand Down Expand Up @@ -433,7 +433,9 @@
if (this.isShown) {
return;
}

if ($(this.element).is('[readonly]')) {
return;
}
raiseCallback(this.options.beforeShow);

var self = this;
Expand Down