Switch chanlist from an id to a css class
authorCory Chaplin <cory.chaplin@laposte.net>
Sun, 2 Mar 2014 13:08:16 +0000 (14:08 +0100)
committerCory Chaplin <cory.chaplin@laposte.net>
Sun, 2 Mar 2014 13:08:16 +0000 (14:08 +0100)
client/assets/css/style.css
client/assets/themes/basic/style.css
client/assets/themes/cli/style.css
client/assets/themes/mini/style.css
client/assets/themes/relaxed/style.css
client/src/applets/chanlist.js
client/src/index.html.tmpl

index 2215f4b808f2269adeb33dbe61f590e84c08330f..dfaa40842ae930e380eecdce4e3ba53b71aece8c 100644 (file)
@@ -467,9 +467,9 @@ html, body { height:100%; }
 }
 #kiwi .ui_menu .ui_menu_foot .close { }
 
-#kiwi .applet #chanlist .icon-sort-down:before, #kiwi .applet #chanlist .icon-sort-up:before {
+#kiwi .applet .applet_chanlist .icon-sort-down:before, #kiwi .applet .applet_chanlist .icon-sort-up:before {
     padding-left: 1em;
 }
-#kiwi .applet #chanlist td {
+#kiwi .applet .applet_chanlist td {
     min-width: 120px;
 }
\ No newline at end of file
index 7295569eb5a7b881b078a6ae1324f349caf8fc97..aee4195ebbd380cb2b8f17651d989f9e472d54d5 100644 (file)
     border-bottom-right-radius:0;
     border-top-right-radius:0;
 }
-#kiwi #chanlist {
+#kiwi .applet_chanlist {
     margin: 0.5em 1em;
 }
-#kiwi #chanlist table {
+#kiwi .applet_chanlist table {
     border-collapse: collapse;
     width: 100%;
 }
-#kiwi #chanlist thead {
+#kiwi .applet_chanlist thead {
     text-align: center;
 }
-#kiwi #chanlist tbody td {
+#kiwi .applet_chanlist tbody td {
     border: 1px solid #C4C4C4;
     padding: 0.3em 1em;
 }
-#kiwi #chanlist .chanlist_name, #kiwi #chanlist .chanlist_num_users {
+#kiwi .applet_chanlist .chanlist_name, #kiwi .applet_chanlist .chanlist_num_users {
     border-width: 0 1px 0 0;
 }
-#kiwi #chanlist .chanlist_topic {
+#kiwi .applet_chanlist .chanlist_topic {
     border-width: 0;
 }
-#kiwi #chanlist tr:nth-child(even) {
+#kiwi .applet_chanlist tr:nth-child(even) {
     background: none repeat scroll 0 0 #DBDBDB;
 }
 
index 63910a630920724579a9e0bb93b96fa66861ae36..6d47354294b1704f6febdc768311d989fd067ab7 100644 (file)
 #kiwi.chanlist_treeview .tabs ul li { display:block; float:none; }
 #kiwi.chanlist_treeview .tabs ul li .activity { float:right; }
 #kiwi.chanlist_treeview .tabs ul li.active { padding-left:1em; }
-#kiwi #chanlist {
+#kiwi .applet_chanlist {
     margin: 0.5em 1em;
 }
-#kiwi #chanlist table {
+#kiwi .applet_chanlist table {
     border-collapse: collapse;
     width: 100%;
 }
-#kiwi #chanlist thead {
+#kiwi .applet_chanlist thead {
     text-align: center;
 }
-#kiwi #chanlist tbody td {
+#kiwi .applet_chanlist tbody td {
     border: 1px solid #454545;
     padding: 0.3em 1em;
 }
-#kiwi #chanlist .chanlist_name, #kiwi #chanlist .chanlist_num_users {
+#kiwi .applet_chanlist .chanlist_name, #kiwi .applet_chanlist .chanlist_num_users {
     border-width: 0 1px 0 0;
 }
-#kiwi #chanlist .chanlist_topic {
+#kiwi .applet_chanlist .chanlist_topic {
     border-width: 0;
 }
-#kiwi #chanlist tr:nth-child(even) {
+#kiwi .applet_chanlist tr:nth-child(even) {
     background: none repeat scroll 0 0 #2B2929;
 }
 
index 5e8b685850548a2700e7164414cdd521aba28fbb..82e3239b8c933589c5cc38ae0b3999861d959ccb 100644 (file)
 #kiwi #chanlist {
     margin: 0.5em 1em;
 }
-#kiwi #chanlist table {
+#kiwi .applet_chanlist table {
     border-collapse: collapse;
     width: 100%;
 }
-#kiwi #chanlist thead {
+#kiwi .applet_chanlist thead {
     text-align: center;
 }
-#kiwi #chanlist tbody td {
+#kiwi .applet_chanlist tbody td {
     border: 1px solid #C4C4C4;
     padding: 0.3em 1em;
 }
-#kiwi #chanlist .chanlist_name, #kiwi #chanlist .chanlist_num_users {
+#kiwi .applet_chanlist .chanlist_name, #kiwi .applet_chanlist .chanlist_num_users {
     border-width: 0 1px 0 0;
 }
-#kiwi #chanlist .chanlist_topic {
+#kiwi .applet_chanlist .chanlist_topic {
     border-width: 0;
 }
-#kiwi #chanlist tr:nth-child(even) {
+#kiwi .applet_chanlist tr:nth-child(even) {
     background: none repeat scroll 0 0 #DBDBDB;
 }
 
index 4e23ac7e773ee3db4388298b02ac0b5be8947992..b64076aea2a686a52756104a9d78ffa4d0cdcd44 100644 (file)
     border-bottom-right-radius:0;
     border-top-right-radius:0;
 }
-#kiwi #chanlist {
+#kiwi .applet_chanlist {
     margin: 0.5em 1em;
 }
-#kiwi #chanlist table {
+#kiwi .applet_chanlist table {
     border-collapse: collapse;
     width: 100%;
 }
-#kiwi #chanlist thead {
+#kiwi .applet_chanlist thead {
     text-align: center;
 }
-#kiwi #chanlist tbody td {
+#kiwi .applet_chanlist tbody td {
     border: 1px solid #C4C4C4;
     padding: 0.3em 1em;
 }
-#kiwi #chanlist .chanlist_name, #kiwi #chanlist .chanlist_num_users {
+#kiwi .applet_chanlist .chanlist_name, #kiwi .applet_chanlist .chanlist_num_users {
     border-width: 0 1px 0 0;
 }
-#kiwi #chanlist .chanlist_topic {
+#kiwi .applet_chanlist .chanlist_topic {
     border-width: 0;
 }
-#kiwi #chanlist tr:nth-child(even) {
+#kiwi .applet_chanlist tr:nth-child(even) {
     background: none repeat scroll 0 0 #DBDBDB;
 }
 
index 60d73c2c212dc89aea531c02f5bf2120f850f9a8..e21e306341920599210ed2edcc6bbd19cd651d0b 100644 (file)
@@ -45,8 +45,8 @@
             }\r
 \r
             // Clean the sorting icon and add the new one\r
-            $('#chanlist #users_title').find('span').remove();\r
-            $('#chanlist #channel_name_title').find('span').remove();\r
+            $('.applet_chanlist #users_title').find('span').remove();\r
+            $('.applet_chanlist #channel_name_title').find('span').remove();\r
             switch (this.order) {\r
                 case 'user_desc':\r
                 default:\r
index 270b22b006ec8d8a775548aa28c524b30abcd6e6..bd9af3c1ab38c3e9c7832a5f0caa971cc0b5592e 100644 (file)
 \r
 \r
     <script type="text/html" id="tmpl_channel_list">\r
-        <div id="chanlist">\r
+        <div class="applet_chanlist">\r
             <table>\r
                 <thead style="font-weight: bold;">\r
                     <tr>\r