Change-Id: Ie0eeb0cb3baf5540750db64e9118089fa78c573d
padding: 0 0.5909090909090909rem !important;
margin: 0 !important;
}
-
addressBook: null,
started: false,
timeOutHandler: null,
+ counterState: true,
nfc: null,
init: function appInit() {
},
countDown: function countDown(time, obj) {
+ if (!this.counterState) {
+ setTimeout(function () {
+ this.countDown(time, obj);
+ }.bind(this), 500);
+ return;
+ }
+
obj.text(time);
if (time > 0) {
if (this.nfc.isPowered()) {
var html;
html = '<li class="ui-li-multiline">'
+ '<a href="#">'
- + ((value === '' || value === 'null') ? '...' : value)
- + '<span class="ui-li-text-sub">' + label + '</span>'
+ + '<span>' + label + '</span>'
+ + '<span class="ui-li-text-sub">'
+ + ((!value) ? '...' : value)
+ + '</span>'
+ '</a>'
+ '</li>';
return html;
if ($.mobile.activePage.attr('id') === "choose") {
$.mobile.activePage.trigger('pageshow');
}
+ app.counterState = true;
+ } else {
+ app.counterState = false;
}
});