]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Use $() instead of document.element ... etc
authorAndreas Öman <andreas@lonelycoder.com>
Wed, 16 Apr 2008 15:50:32 +0000 (15:50 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Wed, 16 Apr 2008 15:50:32 +0000 (15:50 +0000)
ajaxui/ajaxui_mailbox.c

index 843a92ad36ef0a54a68276374e2aaeb8dc23826b..27bcd29287da07b88d5692899e1e886c26a5c0f5 100644 (file)
@@ -262,8 +262,7 @@ ajax_mailbox_update_div(const char *subscription, const char *prefix,
 {
   char buf[1000];
 
-  snprintf(buf, sizeof(buf),
-          "document.getElementById('%s_%s').innerHTML='%s';\r\n",
+  snprintf(buf, sizeof(buf), "$('%s_%s').innerHTML='%s';\r\n",
           prefix, postfix, content);
 
   ajax_mailbox_add_to_subscription(subscription, buf);