mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
- implemented comments (in general and as preview on account page & latest comments)
- partially implemented site reputation (required to grant privileges to comments) - reworked 'home'-page (the news-box is now as configurable as you want) - removed some ancient compatibility-code for IE67 (srsly, its 2014!) - dropped associated stylesheets, reviewed the rest - split some user-restrictions to trigger on insufficient siteRep - added text-page: Markup-Guide - implemented new class to handle Markup - bugfixes [TM] - also you will need to reapply the db-dumps (you may want do save account*, news, reports, ..)
This commit is contained in:
20
static/js/home.js
Normal file
20
static/js/home.js
Normal file
@@ -0,0 +1,20 @@
|
||||
$(document).ready(function () {
|
||||
Menu.addButtons($('#home-menu'), mn_path);
|
||||
|
||||
var form = $('#home-search form');
|
||||
form.submit(g_preventEmptyFormSubmission);
|
||||
|
||||
var inp = $('input', form);
|
||||
LiveSearch.attach(inp);
|
||||
inp.focus();
|
||||
|
||||
var btn = $('<a></a>').attr('href', 'javascript:;');
|
||||
btn.click(function () {
|
||||
$(this).parent('form').submit().children('input').focus()
|
||||
}).appendTo(form);
|
||||
|
||||
$('.home-featuredbox-links a').hover(
|
||||
function () { $(this).next('var').addClass('active') },
|
||||
function () { $(this).next('var').removeClass('active') }
|
||||
)
|
||||
});
|
||||
Reference in New Issue
Block a user