From 239110a2bc1744418a58d06914a3ff652c7470df Mon Sep 17 00:00:00 2001 From: Olaf Conradi Date: Fri, 28 Dec 2012 23:28:53 +0100 Subject: [PATCH] Change acl selection box templating Keep dynamic templating in javascript so browsers don't prefetch non-existing files. --- js/acl.js | 2 +- view/acl_selector.tpl | 1 - view/smarty3/acl_selector.tpl | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/js/acl.js b/js/acl.js index e383224ca8..4f43252847 100644 --- a/js/acl.js +++ b/js/acl.js @@ -247,7 +247,7 @@ ACL.prototype.populate = function(data){ var height = Math.ceil(data.tot / that.nw) * 42; that.list_content.height(height); $(data.items).each(function(){ - html = "
"+that.item_tpl+"
"; + html = "

{1}

"+that.item_tpl+"
"; html = html.format( this.photo, this.name, this.type, this.id, '', this.network, this.link ); if (this.uids!=undefined) that.group_uids[this.id] = this.uids; //console.log(html); diff --git a/view/acl_selector.tpl b/view/acl_selector.tpl index 655ea89807..e2b85e36bc 100644 --- a/view/acl_selector.tpl +++ b/view/acl_selector.tpl @@ -9,7 +9,6 @@ diff --git a/view/smarty3/acl_selector.tpl b/view/smarty3/acl_selector.tpl index 52f0573c8a..bc669a2ac6 100644 --- a/view/smarty3/acl_selector.tpl +++ b/view/smarty3/acl_selector.tpl @@ -9,7 +9,6 @@