summaryrefslogtreecommitdiff
path: root/js/app.ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/app.ui.js')
-rw-r--r--js/app.ui.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/app.ui.js b/js/app.ui.js
index 65c9e2a..4e94b35 100644
--- a/js/app.ui.js
+++ b/js/app.ui.js
@@ -645,6 +645,7 @@ function Ui() {
$('#add-alarm').on('click', app.switchAlarm.bind(app));
// go to alarm selection
$('#add_alarm').on('click', function (e) {
+ app.ui.alarm.disableCustomDuration();
alarm = parseInt($('#alarm').text(), 10);
if (alarm === 0) {
app.ui.alarm.setValue(0);
@@ -652,7 +653,6 @@ function Ui() {
app.ui.alarm.setValue(alarm || -1);
}
e.preventDefault();
- app.ui.alarm.disableCustomDuration();
$.mobile.changePage('#new_alarm');
});
},
@@ -718,7 +718,6 @@ function Ui() {
updateDateFormat: function (fast) {
var date = tizen.time.getDateFormat(true),
time = tizen.time.getTimeFormat();
- $("#title").blur();
if (this.allday.val() === '1') {
this.format = "MMM dd yyyy";
this.end.parent().parent().hide();
@@ -736,6 +735,7 @@ function Ui() {
this.start.datetimepicker("option", "format", this.format);
this.end.datetimepicker("option", "format", this.format);
} else {
+ $("#title").blur();
this.start.datetimepicker("option", "format", this.format)
.datetimepicker();
this.end.datetimepicker("option", "format", this.format)