Browse Source

Various fixes

main
rarjpg 5 years ago
committed by Fredrick Brennan
parent
commit
0a3bca7dd8
  1. 2
      .gitmodules
  2. 2
      inc/mod/pages.php
  3. 2
      js/thread-watcher.js
  4. 1
      search.php

2
.gitmodules

@ -5,5 +5,5 @@
[submodule "inc/lib/parsedown"]
path = inc/lib/parsedown
url = https://github.com/vichan-devel/parsedown
url = https://github.com/vichan-devel/parsedown.git
branch = master

2
inc/mod/pages.php

@ -2752,7 +2752,7 @@ function mod_edit_page($id) {
$fn = ($board['uri'] ? ($board['uri'] . '/') : '') . $page['name'] . '.html';
$body = "<div class='ban'>$write</div>";
$html = Element('page.html', array('config' => $config, 'body' => $body, 'title' => utf8tohtml($page['title'])));
$html = Element('page.html', array('config' => $config, 'boardlist' => createBoardlist(), 'body' => $body, 'title' => utf8tohtml($page['title'])));
file_write($fn, $html);
}

2
js/thread-watcher.js

@ -149,7 +149,7 @@ $(document).ready(function(){
}
//Append the watchlist toggle button.
$('.boardlist').append('<span>[ <a class="watchlist-toggle" href="#">'+_('watchlist')+'</a> ]</span>');
$('.boardlist').append(' <span>[ <a class="watchlist-toggle" href="#">'+_('watchlist')+'</a> ]</span>');
//Append a watch thread button after every OP post number.
$('.op>.intro>.post_no:odd').after('<a class="watchThread" href="#">['+_('Watch Thread')+']</a>');

1
search.php

@ -170,5 +170,6 @@
echo Element('page.html', Array(
'config'=>$config,
'title'=>_('Search'),
'boardlist'=>createBoardlist(),
'body'=>'' . $body
));

Loading…
Cancel
Save