##// END OF EJS Templates
small fix for new templates
rt@lightning -
r256:87d72fef default
parent child Browse files
Show More
@@ -12,14 +12,14 b' function addGalleryPanel() {'
12 $('input[name="image-mode"]').change(function() {
12 $('input[name="image-mode"]').change(function() {
13 //gallery mode
13 //gallery mode
14 if($(this).val() === '1') {
14 if($(this).val() === '1') {
15 $('#posts').replaceWith(
15 $('.thread').replaceWith(
16 $('<div id="posts-table"></div>').append(gallery)
16 $('<div id="posts-table"></div>').append(gallery)
17 );
17 );
18 }
18 }
19 //normal mode
19 //normal mode
20 else {
20 else {
21 $('#posts-table').replaceWith(
21 $('#posts-table').replaceWith(
22 $('<div id="posts"></div>').append(normal)
22 $('<div class="thread"></div>').append(normal)
23 );
23 );
24 }
24 }
25 });
25 });
General Comments 0
You need to be logged in to leave comments. Login now