1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-25 18:52:20 -05:00

Just use zepto to fix event click bug

This commit is contained in:
Lance Stout 2013-08-29 22:37:24 -07:00
parent d1c7748416
commit 93f1a30e67
5 changed files with 1578 additions and 6 deletions

1565
clientapp/libraries/zepto.js Normal file

File diff suppressed because it is too large Load Diff

View File

@ -45,7 +45,17 @@ module.exports = StrictModel.extend({
deps: ['created'],
fn: function () {
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;
}

View File

@ -1,6 +1,7 @@
"use strict";
function DiscoStorage(storage) {
this.storage = storage;
}
DiscoStorage.prototype = {

View File

@ -23,9 +23,6 @@ module.exports = StrictView.extend({
events: {
'click': 'goChat'
},
initialize: function (opts) {
this.render();
},
render: function () {
this.renderAndBind({contact: this.model});
return this;

View File

@ -19,8 +19,7 @@ var clientApp = new Moonboots({
main: __dirname + '/clientapp/app.js',
developmentMode: config.isDev,
libraries: [
__dirname + '/clientapp/libraries/jquery.js',
__dirname + '/clientapp/libraries/sugar-1.2.1-dates.js',
__dirname + '/clientapp/libraries/zepto.js',
__dirname + '/clientapp/libraries/IndexedDBShim.min.js',
__dirname + '/clientapp/libraries/stanza.io.js'
],