mirror of
https://github.com/moparisthebest/kaiwa
synced 2024-11-22 09:12:19 -05:00
Just use zepto to fix event click bug
This commit is contained in:
parent
d1c7748416
commit
93f1a30e67
1565
clientapp/libraries/zepto.js
Normal file
1565
clientapp/libraries/zepto.js
Normal file
File diff suppressed because it is too large
Load Diff
@ -45,7 +45,17 @@ module.exports = StrictModel.extend({
|
|||||||
deps: ['created'],
|
deps: ['created'],
|
||||||
fn: function () {
|
fn: function () {
|
||||||
if (this.created) {
|
if (this.created) {
|
||||||
return this.created.format('{MM}/{dd} {h}:{mm}{t}');
|
var month = this.created.getMonth();
|
||||||
|
var day = this.created.getDate();
|
||||||
|
var hour = this.created.getHours();
|
||||||
|
var minutes = this.created.getMinutes();
|
||||||
|
|
||||||
|
var m = (hour >= 12) ? 'p' : 'a';
|
||||||
|
var strDay = (day < 10) ? '0' + day : day;
|
||||||
|
var strHour = (hour < 10) ? '0' + hour : hour;
|
||||||
|
var strMin = (minutes < 10) ? '0' + minutes: minutes;
|
||||||
|
|
||||||
|
return '' + month + '/' + strDay + ' ' + strHour + ':' + strMin + m;
|
||||||
}
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
function DiscoStorage(storage) {
|
function DiscoStorage(storage) {
|
||||||
|
this.storage = storage;
|
||||||
}
|
}
|
||||||
|
|
||||||
DiscoStorage.prototype = {
|
DiscoStorage.prototype = {
|
||||||
|
@ -23,9 +23,6 @@ module.exports = StrictView.extend({
|
|||||||
events: {
|
events: {
|
||||||
'click': 'goChat'
|
'click': 'goChat'
|
||||||
},
|
},
|
||||||
initialize: function (opts) {
|
|
||||||
this.render();
|
|
||||||
},
|
|
||||||
render: function () {
|
render: function () {
|
||||||
this.renderAndBind({contact: this.model});
|
this.renderAndBind({contact: this.model});
|
||||||
return this;
|
return this;
|
||||||
|
@ -19,8 +19,7 @@ var clientApp = new Moonboots({
|
|||||||
main: __dirname + '/clientapp/app.js',
|
main: __dirname + '/clientapp/app.js',
|
||||||
developmentMode: config.isDev,
|
developmentMode: config.isDev,
|
||||||
libraries: [
|
libraries: [
|
||||||
__dirname + '/clientapp/libraries/jquery.js',
|
__dirname + '/clientapp/libraries/zepto.js',
|
||||||
__dirname + '/clientapp/libraries/sugar-1.2.1-dates.js',
|
|
||||||
__dirname + '/clientapp/libraries/IndexedDBShim.min.js',
|
__dirname + '/clientapp/libraries/IndexedDBShim.min.js',
|
||||||
__dirname + '/clientapp/libraries/stanza.io.js'
|
__dirname + '/clientapp/libraries/stanza.io.js'
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user