The menu works with HTML/CSS only, and JS support will also allow
closing it by clicking outside of it (instead of closing allow when
clicking on the menu icon again).
This commit introduces a client-side table filter that supports regexes
and propositional logic to filter table rows.
A table can be filtered if it has the [filter-target] class and its
first row has <th> tags with a [data-filter] attribute specifying column
names.
The filter itself is a div with the [form] and [filter] classes, and a
[data-target] attribute pointing to the table to filter. The filter
contains a text <input> which is passed to filter_update() when the
filter expression is validated.
The client-side filter code runs the expression through a basic lexer
and parser, then matches the result for every row in the target table.
The [textContent] of each cell is used for string and regex matching.
Javascript :
Supression du javascript inutile, l'entièreté du bloc du flash.
CSS :
Alignement plus correct des notifications flash, fini le fixed, 15%
place au margin auto.
Ajout d'une marge pour éviter l'effet «bloc».
Héritage des propriétés de couleur du texte et du fond de la classe supèrieure.
Modification des templates :
Les messages sont désormais chargés avant le contenu et après le header.
Ajout des fichiers dans les fichiers statiques. (min.css & min.js).
Supression des scripts custom d'édition.
Remplacement par les bon appels de fonctions dans app/templates/widgets/editor.html
The News menu would not open when the user is authenticated,
leaving an empty menu area. Instead, the third button (Forum)
would open the News menu, shifthing every menu down a button.
This was caused by a bad selection query when getting the list
of menus; essentially the selection was equivalent to "#menu div".
Authenticated users have a div in the Account menu with their
name, so this div was mistaken for the second menu.
The problem was fixed by using a different selection equivalent
to "#menu > div" to get the list of menus.