Commit Graph

8 Commits

Author SHA1 Message Date
denfil
b7e5e9cb41 Toggle mobile view menu by js 2016-11-10 16:22:48 +03:00
denfil
eed63e5c4a Set focus after opening search form 2016-09-27 18:35:48 +03:00
Frederic Guillot
cd01042f7d
Javascript cleanup 2016-07-30 18:21:01 -04:00
Denis Filimonov
c26418fbae Simple search by items title (#506) 2016-05-03 20:15:20 -04:00
denfil
08ea480402 Replace help window by layer 2016-03-06 19:11:08 +03:00
Mathias Kresin
a1b8c5b160 do not deselect the current item if no successor/predecessors exists
When using the previous shortcut with the first article selected, the selection
is removed and no article is the current-item. Using the shortcut again, the
last article is the current-item (as expected on a new loaded page).

The same applies to the combination of last article and next shortcut.
2014-11-20 10:46:34 +01:00
Mathias Kresin
3dae99ac27 remove multiple definition of item id
The item id exists as data attribute or as element.id postfix on multiple
elements in an article.

The basic idea is to traverse the DOM tree - starting from the event firing
element - in reverse order till an article element is found.

This article element is passed to the JavaScript functions. These JavaScript
functions are getting the elements which they want to manipulate starting from
the article utilizing the JavaScript querySelector function.

The bootstrap themes had a conflicting and unused class style definied, which is
removed by now.
2014-11-20 10:43:29 +01:00
Frédéric Guillot
b3b1e8bef7 Code refactoring (JS and templates) 2013-10-14 22:38:07 -04:00