From 9135537d37d4ca9d841bb01062d4c99f728ba162 Mon Sep 17 00:00:00 2001
From: Leif Johansson <leifj@sunet.se>
Date: Tue, 11 Oct 2011 21:48:48 +0200
Subject: more skinning-support

---
 src/site-media/js/jquery.meetingtools.js | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

(limited to 'src')

diff --git a/src/site-media/js/jquery.meetingtools.js b/src/site-media/js/jquery.meetingtools.js
index ced9f0b..7ffb4ed 100644
--- a/src/site-media/js/jquery.meetingtools.js
+++ b/src/site-media/js/jquery.meetingtools.js
@@ -17,9 +17,9 @@ jQuery.fn.meetingtools = function(options) {
 		var url = options.url;
 		var url = options.url+'/room/+'+tags+'.json';
 		var div = $(this);
-		div.html(''); // stop any spinners;
 		$.getJSON(url,function(data) {
-			div.append("<ul class=\"meeting-list\">");
+			div.html("<ul class=\"meeting-list\">");
+			ul = div.find('ul.meeting-list');
 			$.each(data,function(i,room) {
 				var html = "<li class=\"meeting\"><h4>"+room['name']+"</h4><div class=\"meeting-info\">";
 				if (room['description']) {
@@ -34,10 +34,9 @@ jQuery.fn.meetingtools = function(options) {
 				html += "<div class=\"meeting-url\">" + room['url'] + "</a></div>";
 				html += "</div>";
 				html += "</li>";
-				div.append(html);
+				ul.append(html);
 				options.onAdd();
 			});
-			div.append("</ul>");
 			options.onUpdate();
 		});
 		
-- 
cgit v1.1