From a5edfb4b0a960307cdabcfab87d8bdae94f06b74 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Sat, 31 Mar 2012 13:08:59 -0400 Subject: fixed the template loading issue --- webclient/alias/alias.html | 6 +++--- webclient/alias/alias.js | 6 ++---- webclient/alias/models/contact.js | 15 +++++---------- 3 files changed, 10 insertions(+), 17 deletions(-) diff --git a/webclient/alias/alias.html b/webclient/alias/alias.html index 9e338a9..1d98242 100644 --- a/webclient/alias/alias.html +++ b/webclient/alias/alias.html @@ -13,9 +13,9 @@
- + + + diff --git a/webclient/alias/alias.js b/webclient/alias/alias.js index d07ece5..df5e4fe 100644 --- a/webclient/alias/alias.js +++ b/webclient/alias/alias.js @@ -21,9 +21,7 @@ steal('./alias.css', $("#roster").roster({connection: connection}); } }; - // configure your application + // configure your application var connection = new Strophe.Connection(BOSH_SERVICE); connection.connect(NAME, PASSWORD, connect_callback); - - - }) \ No newline at end of file + }); \ No newline at end of file diff --git a/webclient/alias/models/contact.js b/webclient/alias/models/contact.js index 924ccf0..d5673bb 100644 --- a/webclient/alias/models/contact.js +++ b/webclient/alias/models/contact.js @@ -1,7 +1,6 @@ +steal('jquery/view/ejs').then('alias/views/contact.ejs'); steal('jquery/model/list', 'jquery/controller', - 'jquery/view/ejs', - function(){ $.Model('Contact', { @@ -21,17 +20,13 @@ function(){ var jid = item.getAttribute('jid'); var name = item.getAttribute('name') || jid; var contact = new Contact({jid: jid, name: name}); - $("#roster").append('contactEJS',contact); + $("#roster").append('contact.ejs',contact); }); return true; }, - init: function() { - Contact.findAll({connection: this.options.connection},this.onRoster) - }, + Contact.findAll({connection: this.options.connection}, this.onRoster); + } }); - - - -}) \ No newline at end of file +}); \ No newline at end of file -- cgit v1.2.3-70-g09d2