first changes of Gallery
[wolnelektury.git] / src / wolnelektury / static / js / base.js
index 5283468..1626906 100644 (file)
@@ -22,9 +22,9 @@
                         if (button && short_text) button.html(short_text);
                     }
                     return false;
-                }
+                };
                 return toggle;
-            }
+            };
             if (long_el.html().length <= short_el.html().length)
                 return;
 
@@ -209,15 +209,15 @@ $('#themes-list-toggle').click(function(event) {
                 onFormat: function (type) {
                     switch (type) {
                         case 'block': // n and c
-                            return ' <a href="#"' + (this.value == this.page ? ' class="current"' : '') + '>' + this.value + '</a> ';
+                            return ' <li><a href="#"' + (this.value == this.page ? ' class="current"' : '') + '>' + this.value + '</a></li>';
                         case 'next': // >
-                            return ' <a href="#">&gt;</a> ';
+                            return '<li><a href="#">&gt;</a></li>';
                         case 'prev': // <
-                            return ' <a href="#">&lt;</a> ';
+                            return '<li><a href="#">&lt;</a></li>';
                         case 'first': // [
-                            return '<a href="#">«</a> ';
+                            return '<li><a href="#">«</a></li>';
                         case 'last': // ]
-                            return ' <a href="#">»</a>';
+                            return '<li><a href="#">»</a></li>';
                     }
                 }
             });