Commit Graph

43 Commits

Author SHA1 Message Date
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
Frédéric Péters 20b29487cf js: ignore forms that have a gadjo-popup-ignore class for popups (#6348) 2015-01-25 17:41:31 +01:00
Benjamin Dauvergne 540aa3ea36 As for the gadjo:dialog-loaded event, trigger dialog-done on document if $anchor was removed from the document tree
fixes #5332
2014-08-27 14:47:15 +02:00
Benjamin Dauvergne a075ca07c9 js: destroy dialog when closed 2014-08-14 11:09:46 +02:00
Benjamin Dauvergne 52a24e30ae js: if displayPopup was removed launch event on document (fixes #5267) 2014-08-13 11:07:47 +02:00
Benjamin Dauvergne b2fff62ed9 js: add new event when dialog has finished loading (#5111) 2014-07-21 15:37:22 +02:00
Frédéric Péters de23f42b79 js: add comments (#5111) 2014-07-21 13:55:59 +02:00
Benjamin Dauvergne 58763ed225 js: add support for ajax submission of form (#5111) 2014-07-21 13:55:49 +02:00
Frédéric Péters 78e215494d javascript to open rel="popup" links in popups (#5111) 2014-07-11 13:10:51 +02:00