66 Commits

Author SHA1 Message Date
Klaas Poortinga
1aa3250c3a
Add support for the attributes property to fileupload formwidget (#5012) 2020-03-29 09:03:31 -06:00
Ben Thomson
c046466913 Set Dropzone.js uploaders to have no time limit (#4878)
The upgrade to the latest Dropzone.js brought in a new `timeout` configuration variable, which defaults to 30s. This removes the time limit and restores original functionality.

Fixes #4869
2020-01-14 16:47:25 -06:00
Samuel Georges
96537033c8 Recompile assets 2019-09-11 20:02:43 +10:00
webmaxx
cc7d595fff Added maxFilesize option to the FileUpload FormWidget (#4077)
Credit to @webmaxx
2019-07-18 08:48:31 -06:00
Alexander Guth
ee8287e598 Add "onUpload" AJAX handler to FileUpload widget (#4311)
Run an AJAX handler on uploading and processing a file as opposed to using a post() data check in the widget initialization, as the widget may initialize several times in certain circumstances - eg. inside a relation widget.

Credit to @alxy. Refs: https://github.com/octobercms/october/issues/4300
2019-05-07 11:44:25 +08:00
Luke Towers
4f0b237aad Use an embedded Form widget to process FileUpload properties
Fixes #2168, #3097. Related: https://github.com/rainlab/translate-plugin/pull/442
2019-04-17 18:48:32 -06:00
Ben Thomson
10d97d515f Use singular byte for '1 byte' filesize (#4130)
Credit to @bennothommo
2019-02-11 09:48:15 -06:00
Ben Thomson
4f3997c6de Make the filesize display in file upload widget more consistent (#4110)
Credit to @bennothommo. Fixes #4085.
2019-02-04 12:54:07 -06:00
Luke Towers
2d6b9c76a9 Recompile assets 2019-01-15 13:35:12 -06:00
Luke Towers
a9a0544ab0 recompiled stylesheets, retaining newlines for improved diff readability 2019-01-14 11:52:16 -06:00
Luke Towers
44ac62abeb Recompiled LESS using new CSS minification 2018-12-20 13:41:09 -06:00
Samuel Georges
6099096e5d Increase visibility of close button
Fixes #3723
2018-08-30 12:40:45 +10:00
Jim Cottrell
0d0be9d0e5 Trigger fileupload form field change on file removal (#3319)
Credit to @jimcottrell
2017-12-22 15:33:21 -06:00
Samuel Georges
24c8b4368a Various security and UI fixes
The Media Manager now uses a white list approach to blocking files, we have been advised that the blacklist approach is too fragile and we agree.
Asset List and Media Manager now use $.oc.alert when displaying errors
2017-04-09 08:00:56 +10:00
Samuel Georges
fe3b61f802 Merge pull request #2157 from prasanth-darsan/develop
error on saving attachment config when in pivot form of a relation
2016-07-07 07:59:42 +10:00
Samuel Georges
68923d406b Update Froala to latest (2.3.3)
Recompile assets
2016-07-05 20:08:44 +10:00
Prasanth Darsan
6cc50b8ca8 Fixed error on saving attachment config when its put on pivot form of a relation 2016-06-28 23:17:27 +05:30
Trias Nur Rahman
b2df9d63ec Fix fileupload image css on sidebar 2016-06-07 22:44:35 +07:00
Samuel Georges
8a7f762c71 Restyle system status report widget
Fixes styling on popover-danger and popover-head with customization
2016-05-28 06:49:59 +10:00
Samuel Georges
85decc4086 Style tweaks 2016-05-21 06:57:12 +10:00
Samuel Georges
066b918d39 Various styling changes
Removed the harsh title on popups
Anything considered an "overlay" now uses a box shading effect
The account menu now uses lighter shading
Introduced highlight states, allowing hover + active to behave independently
2016-05-20 06:33:16 +10:00
Samuel Georges
61970413a8 More backend styling
Tone down the shading in some areas
Reduce intensity of button icons
2016-05-19 07:00:34 +10:00
Samuel Georges
1608d80127 Reorganise code editor prefs
Fixes visual bugs
Update dashboard icon
Restyle flash messages
2016-04-30 04:53:33 +10:00
Samuel Georges
abaa65cc0e Cut back the design
Switch to hard lines
2016-04-22 08:21:08 +10:00
Samuel Georges
76faef7c17 Sync styles on media picker and file upload 2016-04-21 06:11:31 +10:00
Samuel Georges
51bef96db9 More styling changes and other minor improvements 2016-04-21 04:52:21 +10:00
Samuel Georges
5789d0242f Fixes single image uploader breaking with comment
Comment appears to the right of the uploader, should be under it
2016-03-25 18:21:21 +11:00
alekseybobkov
aaff88b8c2 Reduced base border radius 2016-03-02 21:40:33 -08:00
alekseybobkov
a943708b99 UI updates 2016-02-19 22:12:41 -08:00
Samuel Georges
2855a4e344 Fixes issue in uploader when one of the dimensions is auto 2016-01-16 15:13:42 +11:00
Samuel Georges
6ebe187db1 Fixes issue removing existing uploads 2015-11-28 09:24:20 +11:00
Samuel Georges
b6ba31bd86 Fixes exception on removeChild(null)
Fixes danger on danger color scheme
2015-11-14 18:27:01 +11:00
Samuel Georges
6203970122 Progress bar should turn red on error - refs #1518
Tidy up progress bar control, streamline brand colours
2015-10-17 12:17:10 +11:00
Samuel Georges
22252638a8 Because W3C 2015-10-16 17:50:53 +11:00
alekseybobkov
83b4994d61 Added new Inspector property editors - text and set, minor refactoring of the Inspector code. 2015-09-20 21:15:21 -07:00
alekseybobkov
fea5d8389f Minor fixes and improvements. 2015-09-10 20:45:07 -07:00
Samuel Georges
906a4e65c2 Prompt can now be used to define the button text for file multi
Minor update to checkbox markup
2015-08-28 04:39:29 +10:00
Samuel Georges
881e68c1ca Preview mode has no upload button, so no margin 2015-08-06 18:04:18 +10:00
Samuel Georges
4901c54d4f Fixes clash with progress bar and remove link 2015-08-05 10:24:16 +10:00
Samuel Georges
8a4ac533e5 Escape file title - Fixes #1302 2015-07-22 10:41:51 +10:00
Samuel Georges
846feb6a33 FileUpload now triggers dependsOn event
form.beforeRefresh event now uses dataholder pattern
Improve exception handling in ControllerBehavior
2015-07-18 08:50:31 +10:00
Samuel Georges
8a12b2f37f Improve single image uploader 2015-06-30 15:27:26 +10:00
Samuel Georges
3681459935 Fixes styling of upload button in Firefox - Refs #1202 2015-06-27 11:35:55 +10:00
Samuel Georges
46ba4644f4 Minor style fix to file multi drag handle 2015-06-27 09:41:36 +10:00
Samuel Georges
eb5af8ae85 Improve multilanguage support - Fixes #1228 2015-06-27 09:33:09 +10:00
Samuel Georges
c813318729 Added preview mode support to File upload widget
Widget also passes CSRF token
Switched to using a header instead of POST flag
2015-06-25 10:55:46 +10:00
Samuel Georges
c2c14e707f Added backend route for protected thumbs, Fixes #1218, thanks @jBOKA
Improved the FileUpload widget code to no longer rely on "pathOverride"
2015-06-20 11:27:03 +10:00
Samuel Georges
50e4840216 Create 'extensions' custom validator
FileUpload can now specify mime types
2015-06-20 10:12:14 +10:00
Samuel Georges
94ae0b7cbc Make prompt text configurable 2015-06-13 10:41:00 +10:00
Samuel Georges
335fbe6106 Touch ups 2015-06-13 10:31:01 +10:00