diff options
author | Leif Johansson <leifj@sunet.se> | 2011-10-11 21:48:48 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-10-11 21:48:48 +0200 |
commit | 9135537d37d4ca9d841bb01062d4c99f728ba162 (patch) | |
tree | 035edce11bf04f4b41b7f578f69587362bc5727f /src/site-media/js | |
parent | 2bd0b2a2618a7ad1d9f219d5064514bdd7f2108a (diff) |
more skinning-support
Diffstat (limited to 'src/site-media/js')
-rw-r--r-- | src/site-media/js/jquery.meetingtools.js | 7 |
1 files changed, 3 insertions, 4 deletions
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(); }); |