Commit Graph

58 Commits

Author SHA1 Message Date
Frédéric Péters f138d64a82 js: trigger gadjo:tab-selected js event on selected tab panel (#63821) 2022-04-15 08:20:10 +02:00
Frédéric Péters 71361429a0 general: add support for tabs (#63293) 2022-04-01 10:44:11 +02:00
Benjamin Dauvergne 057935195b js: make .clickable-rows works with relative href (#61238) 2022-02-18 08:45:37 +01:00
Frédéric Péters 0155852a44 js: do not open clickable-rows if the user was selecting text (#61251) 2022-01-31 10:00:13 +01:00
Benjamin Dauvergne 7546932ddf general: handle .clickable-rows at document level (#60396) 2022-01-07 10:22:17 +01:00
Benjamin Dauvergne bfdbab4bca general: allow text selection in clickable-rows (#59873) 2022-01-05 18:07:49 +01:00
Frédéric Péters 68e236a120 general: add new clickable-rows class for rows that should be clickable (#59873) 2022-01-05 17:36:40 +01:00
Frédéric Péters ad3a466a61 misc: mark gadjo_sidepage_status cookie as secure and strict (#45937) 2020-08-18 09:43:37 +02:00
Lauréline Guérin 3339674f61
dialog: add data-autoclose-dialog option (#37253)
gitea/gadjo/pipeline/head Build started... Details
2019-10-29 09:47:44 +01:00
Frédéric Péters b2dcd94a54 misc: add possibility to mark popup links with data-popup (#34908) 2019-07-16 16:52:32 +02:00
Frédéric Péters a3a3053986 misc: attach kebab menu event to main content (#34406)
(so the page contents can be reloaded)
2019-07-16 12:16:53 +02:00
Frédéric Péters 93431724ce add gadjo:sidepage-toggled event (#12773) 2019-05-28 09:29:02 +02:00
Frédéric Péters d8019fa7d0 js: use document.body.contains as document.contains is not ok on IE11 (#28859) 2018-12-11 14:25:42 +01:00
Frédéric Péters 7f5f544451 style: redesign for winter 2018 (#28303) 2018-11-24 13:54:13 +01:00
Frédéric Péters 2b7622403d js: go to location on click on dialog button created from <a> (#18895) 2018-11-17 14:41:50 +01:00
Frédéric Péters 9841169358 js: only send "click" event to appropriate button (#18894) 2018-11-17 14:41:34 +01:00
Benjamin Dauvergne 8f3737b003 load stylesheets in displayPopup (#25572) 2018-08-02 17:59:36 +02:00
Frédéric Péters d8773d60d0 select variable names on click (#25322) 2018-07-18 10:42:06 +02:00
Frédéric Péters 7c4271f18e misc: rename leftover sidebar references to sidepage (#22440) 2018-04-15 10:30:29 +02:00
Frédéric Péters e125109332 general: move #header out of #main (#22441) 2018-03-18 09:57:33 +01:00
Frédéric Péters d0903fa1b6 general: add foldable sections (#21828) 2018-02-13 16:51:07 +01:00
Frédéric Péters a3374a5841 js: add flag to disable header image animation (#19185) 2017-10-05 13:41:35 +02:00
Frédéric Péters 5e06b6cb90 js: allow non-<form> elements as popup main widget (#18887) 2017-09-22 12:35:17 +02:00
Frédéric Péters f0a8f03f17 style: adjust publik menu look & feel on small screens (#18479) 2017-09-21 10:52:21 +02:00
Frédéric Péters 9a5c6095dd js: don't open popups on href="#" links (#18184) 2017-08-28 09:23:22 +02:00
Benjamin Dauvergne b9c8cfaef6 gadjo.js: load script tag in displayPopup (#16658)
It allows forms using JS widgets to be loaded using link with rel="popup".
2017-06-19 12:18:13 +02:00
Frédéric Péters 4e10f6e0a7 js: only add close link on notification messages on gadjo pages (#16533) 2017-05-29 09:39:59 +02:00
Serghei Mihai 7ebb003124 add support for extra actions in 'sandwich' menu (#14830)
The menu should be a list with "extra-actions-menu" class and the
toggler a link with class "extra-actions-menu-opener".

For example:

<a class="extra-actions-menu-opener"></a>
<ul class="extra-actions-menu">
  ...
</ul>
2017-02-13 11:32:37 +01:00
Frédéric Péters a761b6e31c style: update notification look and feel (#14613) 2017-01-16 10:13:13 +01:00
Frédéric Péters c4cb05db55 js: add "cancel-button" class to dialog cancel button (#13932) 2016-11-13 16:24:00 +01:00
Frédéric Péters 8bf9dc3b3b js: pass disabled attribute attached to dialog button (#13215) 2016-09-19 11:36:24 +02:00
Frédéric Péters 11e4f3588e make sure javascript code is only executed on real gadjo pages (#12887) 2016-08-25 15:56:13 +02:00
Frédéric Péters 18d57748f0 reserve space for publik menu only if it exists (#12884) 2016-08-19 16:50:57 +02:00
Frédéric Péters c06af04c5e style: redesign for summer 2016 (#12862)
It has a smaller sky blue and sand header that integrates the site breadcrumbs,
and a lateral menu that slides laterally to be icons-only.
2016-08-18 15:45:03 +02:00
Frédéric Péters 9b62ad77f1 use a cookie to store sidepage status (#12617) 2016-07-18 11:31:13 +02:00
Frédéric Péters 984acfdaea js: add support for non modal dialogs (#10629) 2016-04-12 13:42:20 +02:00
Frédéric Péters d8c9a55a5d js: only load once (#10499) 2016-03-31 15:39:38 +02:00
Benjamin Dauvergne fbab2ba7ca implement foldable fieldset as in w.c.s. (fixes #9788) 2016-02-08 17:57:35 +01:00
Frédéric Péters 97f5fb7c23 js: disable buttons after click when using "in place submit" (#9826) 2016-02-01 19:57:45 +01:00
Frédéric Péters d74c5b553a check HTML5 form validation before POSTing it with ajax (#9450) 2015-12-29 18:16:44 +01:00
Frédéric Péters 3fbcdbc636 js: pass response as gadjo:dialog-done event parameter (#8995) 2015-11-16 22:48:12 +01:00
Frédéric Péters a9219eaaba use sessionStorage if localStorage is not available (#8806) 2015-11-06 09:33:49 +01:00
Frédéric Péters c1175029b0 js: add support for inplace submit of simple forms popups (#8395) 2015-09-28 10:38:18 +02:00
Serghei Mihai 002d6cf922 manage local storage only if sidebar present (#8255) 2015-09-22 17:20:43 +02:00
Benjamin Dauvergne 924acb54b5 gadjo.js: fix use of .prop() to midify form action (#8180) 2015-09-18 17:20:42 +02:00
Benjamin Dauvergne a666d7d47e gadjo.js: protect the $ symbol from overwriting (#7589)
By using a private namespace we protect ourself from call to
jQuery.noConflict(true) by django-debug-toolbar.
2015-07-21 19:20:06 +02:00
Benjamin Dauvergne 79cc29d765 display an error when loading or submitting the dialog box fails (#5489) 2015-06-10 14:26:06 +02:00
Frédéric Péters 62c7e7be33 style: add support for a sidepage (#7284) 2015-05-26 17:43:21 +02:00
Benjamin Dauvergne ef4d1230e3 gadjo.js: allow displayPopup to work with other kind of elements than <a/> (#7143) 2015-05-12 11:06:32 +02:00
Benjamin Dauvergne 9c0c0d2551 gadjo.js: close existing dialog boxes when opening a new one 2015-05-11 11:36:08 +02:00