getChangeContactButton: function ui_getChangeContactButton() {
var changeContactButton;
changeContactButton = $(this.getButtonHtml('Change your default contact'));
- changeContactButton.on('tap', this.changeContact);
+ changeContactButton.on('click', this.changeContact);
return changeContactButton;
},
getReadFromCardButton: function ui_getReadFromCardButton() {
var readFromCardButton;
readFromCardButton = $(this.getButtonHtml('Read from card'));
- readFromCardButton.on('tap', this.readFromCard);
+ readFromCardButton.on('click', this.readFromCard);
return readFromCardButton;
},
getWriteToCardButton: function ui_getWriteToCardButton() {
var writeToCardButton;
writeToCardButton = $(this.getButtonHtml('Write to card'));
- writeToCardButton.on('tap', this.writeToCard);
+ writeToCardButton.on('click', this.writeToCard);
return writeToCardButton;
},
getCommunicateWithOtherDeviceButton: function ui_getCommunicateWithOtherDeviceButton() {
var communicateWithOtherDeviceButton;
communicateWithOtherDeviceButton = $(this.getButtonHtml('Communicate with another device'));
- communicateWithOtherDeviceButton.on('tap', this.communicateWithOtherDevice);
+ communicateWithOtherDeviceButton.on('click', this.communicateWithOtherDevice);
return communicateWithOtherDeviceButton;
},
defineEvents: function ui_defineEvents() {
var self = this;
- $('#header-start .ui-btn-back').on('tap', function (event) {
+ $('#header-start .ui-btn-back').on('click', function (event) {
event.preventDefault();
self.app.nfc.stopNFC();
});
return false;
});
- $('#footer-contact').on('tap', '.ui-btn-back', function (event) {
+ $('#footer-contact').on('click', '.ui-btn-back', function (event) {
event.preventDefault();
$.mobile.changePage('#start');
});
- $('#footer-choose').on('tap', '.ui-btn-back', function (event) {
+ $('#footer-choose').on('click', '.ui-btn-back', function (event) {
event.preventDefault();
$.mobile.changePage('#start');
});
self.prepareContactsTemplate(data.phone, data.first, data.last);
});
- $('#save-contact').on('tap', function (event) {
+ $('#save-contact').on('click', function (event) {
event.preventDefault();
self.app.saveContact();
});