});
};
+ UI.prototype.clearTabbars = function () {
+ $('[data-role = "tabbar"] li > a').removeClass('ui-focus, ui-btn-active');
+ };
+
UI.prototype.fillTimesRanges = function (timesData) {
var self = this, len, i;
UI.prototype.addExercise = function () {
var trimmedName = $("#newExerciseName").val().trim();
+ trimmedName = $('<span>').text(trimmedName).html();
if (trimmedName !== '') {
if (this.app.addExercise(trimmedName)) {
$("#newExerciseName").trigger('blur');
$('#wait').on('tap', self.app.wait.bind(self.app));
$('#todayOffAll').on('tap', self.app.todayOffAll.bind(self.app));
+ $('[data-role = "tabbar"] li > a').on('click', function () {
+ self.clearTabbars();
+ });
+
$('#startStop').on('tap', function () {
self.app.appStartStop();
});
});
$('#customExercises').on('pageinit', function (page, options) {
- $('#btnNewExercise').on('click', self.addExercise.bind(self));
+ $('#btnNewExercise').on('tap', self.addExercise.bind(self));
});
$('#customExercises').on('pageshow', function (page, options) {