28 Commits

Author SHA1 Message Date
Andy Miller
87b50f94a2 fix for fully turning off notifications JS
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-08-17 19:30:19 +01:00
Matias Griese
6db7e4a637 Fixed You have been logged out message when entering to 2FA authentication due to /admin/task:getNotifications AJAX call [#2109] 2021-04-08 10:43:47 +03:00
Matias Griese
c36e8ab82a Fixed JS bug is using empty Grav 2020-01-17 21:26:46 +02:00
Matias Griese
c54a7aeb97 Minor fix on js current_url (with default language) 2019-09-18 12:02:50 +03:00
Matias Griese
553fa4d63d Oops, fixed current uri for AJAX 2019-09-11 20:07:01 +03:00
Matias Griese
495ebcb42b Keep language setting for AJAX requests 2019-09-11 18:05:45 +03:00
Djamil Legato
b520c799ec Rewrote JS to use new single-ajax-call feeds for notification/blog posts 2019-02-11 16:27:35 -08:00
Andy Miller
7601ad7052 notifications js config 2019-02-11 14:33:48 -07:00
Djamil Legato
bd8369fde9 Do not attempt to fetch any notification if settings are disabled (fixes #942) 2017-03-17 07:58:29 -07:00
Djamil Legato
7513ff8504 Fixed URL for preview of images 2017-03-10 12:41:42 -08:00
Djamil Legato
e618c4126a Tweaked filepicker field to include view icon. Fixed sizes of thumbnails to 200x150 2017-03-10 12:33:45 -08:00
Djamil Legato
6b34336599 [WIP] Ajax Files Upload (#748)
* Reworked the `file` field. All files get uploaded via Ajax and are stored upon Save

This improves the Save task tremendously as now there is no longer the need of waiting for the files to finish uploading. Fully backward compatible, `file` field now includes also a `limit` and `filesize` option in the blueprints. The former determines how many files are allowed to be uploaded when in combination with `multiple: true` (default: 10), the latter determines the file size limit (in MB) allowed for each file (default: 5MB)

* Added support for `accept: [‘*’]` to allow any file type

* Minor tweaks in the comments and messages

* Delete any orphan file when discarding the uploaded files session

* Minor optimization

* Fixed issue with `_json` elements where nested fields merging would get stored in an unexpected way

* Potential fix for wrong order of value in Datetime

* Fixed nested fields for files

* Fixed tmp streams

* Minor cleanup

* Update JSON data when removing a file. Implemented task to remove files that haven’t been saved yet, from the flash object session

* Ensure temporary files are deleted when removing un-saved files from the flash object session

* Fixed wrong reference of HTML file field when clicking on the drop zone area to pick a file

* Added JSON template for pages

* fix a CSS issue in page order

* More CSS fixes

* Trigger file field mutation when adding or removing a file

* Recompiled JS

* Removed twig templates that are no longer needed

* Fixed issue with nested header fields in a page, not properly merging data

* [internal] Fixed issue with collections not capable of handling both param and dot notations at the same time

* Reorganized FileField structure to be more consistent with the other fields

* Added support for dynamically created file fields (ie, autoinitialization on new lists items)

* Added translationable strings for file uploads errors

* Added translasions for all Dropzone available strings

* Changed default values
2016-08-29 11:12:09 -07:00
Flavio Copes
988f4a0389 [WIP] Notifications (#599)
Adds a new notifications feature to the Admin plugin. It will now lookup notifications which are set up on getgrav.org and will inform users, and also alert for new updates and provide awareness on various topics.

Also fixes issue with Array field in `value_only` mode, improperly displaying the key when novalue was set, and fixes issue with drag handlers in Array not showing/hiding properly (#950)

Updated FontAwesome to 4.6.3
2016-08-11 19:17:02 +02:00
Flavio Copes
16aba15b6f Fix #557 enable_auto_updates_check disabled if not admin.maintenance or admin.super 2016-05-27 17:11:38 +02:00
Djamil Legato
c7c4a85f86 Added summary delimiter button for markdown editor (fixes #466) 2016-04-19 15:47:42 -07:00
Flavio Copes
3fe95ad911 Avoid printing nav / javascripts / javascript config twigs if not authorized 2016-04-08 11:10:51 +02:00
Djamil Legato
645b4c0f63 Import extra javascript if available 2016-03-10 13:56:21 -08:00
Djamil Legato
6271eeddff Added new DateTime field 2016-02-05 23:49:39 -08:00
Flavio Copes
16d745b377 Merge branch 'develop' into feature/integrate-with-admin-pro 2015-11-21 16:40:18 +01:00
Flavio Copes
e6cddea054 Add nonce to GravAdmin.config.admin_nonce to be used by JS. Drop jQuery DOM references to #admin-nonce 2015-11-21 16:15:23 +01:00
Flavio Copes
1c989e0c2f Add pro_enabled property to GravAdmin.config 2015-11-18 17:44:24 +01:00
Flavio Copes
2f72499894 Fix for chrome converting backslashes to slashes automatically 2015-11-18 17:44:13 +01:00
Flavio Copes
c7c6dece35 Add uri params to Grav admin js 2015-10-31 15:11:30 +01:00
Flavio Copes
0e2317032b Keepalive in admin. Fires a 'keepAlive' task 5s before the end of the admin session 2015-09-14 15:58:34 +02:00
Flavio Copes
d263dc12e8 Add an option to disable the automatic check for updates. Enabled by default. Grav updates still show up when pressing the 'Check for updates' button 2015-09-09 17:33:19 +02:00
Flavio Copes
0f0974ac45 Go on with translations 2015-08-11 14:28:50 +02:00
Sommerregen
fa8db3dd90 Add config.param_sep option to JS files 2015-08-08 17:41:53 +02:00
Gert
b06211b641 redirect to login on unauthorized ajax calls [fixes #29] 2015-04-04 22:34:34 +02:00