From 6f1d29fbb8344842475f471cd34e0bbf9d04df04 Mon Sep 17 00:00:00 2001
From: Piotr Dabrowski
Date: Fri, 30 Aug 2013 15:57:01 +0200
Subject: [PATCH] [ExercisePlanner] updated ExercisePlanner sources
Change-Id: Icbe45d0b6d60fca30588dd260d6504354b511b97
---
js/UI.js | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/js/UI.js b/js/UI.js
index e99db9a..be22e49 100644
--- a/js/UI.js
+++ b/js/UI.js
@@ -34,7 +34,7 @@ function UI() {
}
$('#exercises').listview();
$('#exercises :jqmData(role="slider")').slider();
- $('#exercises li').on('tap', function () {
+ $('#exercises li').on('click', function () {
var $toggle = $(this).find(':jqmData(role="slider")');
$toggle.val(($toggle.val() === 'off') ? 'on' : 'off');
$toggle.slider('refresh');
@@ -68,7 +68,7 @@ function UI() {
$('')
.text(i)
.attr({'data-role': 'button', 'data-inline': 'true'})
- .bind('tap', buttons[i])
+ .bind('click', buttons[i])
.appendTo($(".ui-popup-button-bg", popup));
}
}
@@ -110,7 +110,7 @@ function UI() {
}
$('#availableTime').trigger('create');
$('#availableTime').listview().listview('refresh');
- $('#availableTime :jqmData(name=edit)').on('tap', function (e) {
+ $('#availableTime :jqmData(name=edit)').on('click', function (e) {
if (self.app.config.trainingEnabled) {
self.popup('You should stop the training first');
} else {
@@ -119,7 +119,7 @@ function UI() {
self.editTimeRange($(this).data('val'));
}
});
- $('#availableTime :jqmData(name=disable)').on('tap', function (e) {
+ $('#availableTime :jqmData(name=disable)').on('click', function (e) {
if (self.app.config.trainingEnabled) {
self.popup('You should stop the training first');
} else {
@@ -348,11 +348,11 @@ function UI() {
// bind events;
$("#popup").popup();
- $('#one .ui-btn-back').on('tap', this.app.exit.bind(this.app));
+ $('#one .ui-btn-back').on('click', this.app.exit.bind(this.app));
- $('#ok').on('tap', self.app.ok.bind(self.app));
- $('#wait').on('tap', self.app.wait.bind(self.app));
- $('#todayOffAll').on('tap', self.app.todayOffAll.bind(self.app));
+ $('#ok').on('click', self.app.ok.bind(self.app));
+ $('#wait').on('click', self.app.wait.bind(self.app));
+ $('#todayOffAll').on('click', self.app.todayOffAll.bind(self.app));
$('[data-role = "tabbar"] li > a').on('click', function () {
self.clearTabbars();
@@ -438,7 +438,7 @@ function UI() {
ev.stopPropagation();
});
- $('#workdaysType').on('tap', function (ev) {
+ $('#workdaysType').on('click', function (ev) {
var that = $(this).children("a");
setTimeout(function(){
that.removeClass("ui-btn-active");
@@ -447,7 +447,7 @@ function UI() {
self.app.changeTypeOfPeriods('workday');
});
- $('#weekendType').on('tap', function (ev) {
+ $('#weekendType').on('click', function (ev) {
var that = $(this).children("a");
setTimeout(function(){
that.removeClass("ui-btn-active");
@@ -456,7 +456,7 @@ function UI() {
self.app.changeTypeOfPeriods('weekend');
});
- $('#addTimeRange').on('tap', function (e) {
+ $('#addTimeRange').on('click', function (e) {
if (self.app.config.trainingEnabled) {
self.popup('You should stop the training first');
} else {
@@ -517,7 +517,7 @@ function UI() {
self.configToUI();
});
- $('#add_custom_workout_btn').on('tap', function (e) {
+ $('#add_custom_workout_btn').on('click', function (e) {
e.preventDefault();
e.stopPropagation();
$.mobile.changePage('#customExercises');
--
2.7.4