Commit Graph

705 Commits

Author SHA1 Message Date
CSNWEB 044ae054f8 Wait until input is finished to fire requests fired by tracking input (#4238)
Fixes #4237. Credit to @CSNWEB
2019-04-19 10:52:50 -06:00
Ayumi Hamasaki da2b0f6c5b Update jQuery from V3.3.1 to V3.4.0 (#4259)
Credit to @ayumihamsaki.
2019-04-18 23:04:12 -06:00
Tobias Kündig 725253f601 Added overflow rules to preview form-control (#4236)
Credit to @tobias-kuendig
2019-04-05 09:20:53 -06:00
Marc Jauvin eaaf8a6b3d Added oc.inputPreset.beforeUpdate plugin hook (#4217)
Refs: https://github.com/rainlab/translate-plugin/issues/429
2019-04-02 08:48:53 -06:00
Samuel Georges 288d9543af Firefox testing
- 4K display fixes
- use doc.ready over win.load
- min-size can be 0.1px and still fix the table spacing issue
2019-03-29 04:33:18 +11:00
Samuel Georges f6a3d10dff Adjust styling of clear search button 2019-03-29 02:34:12 +11:00
Daniel Ramirez cb24d817ad Fix popup loading indicator sometimes not closing after load (#4169)
Fixes #4168. Credit to @drmzio
2019-03-25 10:07:33 -06:00
Filip Iulian Pacurar a2315624df Fix issue with list filters when more filters appear on page. (#4154)
Credit to @filipac.
2019-03-20 11:18:15 -06:00
Filip Iulian Pacurar cb981eb82d Add popup-allow-focus for the second range input (#4140)
When list filters are in a modal, you cannot select the second field because it does not have  popup-allow-focus class. Credit to @filipac
2019-02-15 13:29:18 -06:00
Jonas Søndergaard ca33b97692 Reimplemented infinite loading bar with transforms instead of widths (#4124)
Fixes #4118. Credit to @Josniii
2019-02-15 13:22:39 -06:00
Luke Towers a97a17c4c3 Recompiled assets 2019-02-13 14:55:44 -06:00
fansaien 680c729f90 Set the datetime value with time 00:00:00 when using the date mode (#4111)
Credit to @fansaien
2019-02-06 10:23:50 -06:00
fansaien 331c8f4383 Change filter.js to fire requests on the control element (#4094)
Changed filter.js to fire its internal AJAX requests on the control's element instead of the closest form element. Previous behavior would fire the requests on a non-existant form element (as filter widgets are typically not located within a form element) and it looks like that was copy-paste oversight from the inspector javascript that the filter was originally based on. Credit to @fansaien
2019-01-30 14:09:34 -06:00
Siarhei Karavai 3118660d83 Improve support for dropdowns with placeholders (#4060)
Fixes #4053. Credit to @GinoPane
2019-01-27 16:13:02 -06:00
Alexander Voronin 174f37b604 Fixed repeater add group popover in a popup context (#4058)
Credit to @VoroninWD.
2019-01-27 11:52:46 -06:00
Rike-cz c0e01c0f0d Add support for `data-request-url` in the data attributes AJAX API (#4012)
Credit to @Rike-cz. Documented in https://github.com/octobercms/docs/pull/353
2019-01-25 10:29:49 -06:00
Denis Denisov ec2a0d5fb0 Tabs and tabels scrolling fix (#4069)
Fixes #4037. Credit to @w20k
2019-01-21 23:35:27 -06:00
vosco88 a4f4a71fc3 Fix reset search button issues (#4068)
Fixes #4067
2019-01-17 13:33:59 -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 119d2e5f2b Improved UI Popup docs 2019-01-11 14:27:14 -06:00
Luke Towers 064daa2d2e Compiled assets, minor docblock update 2019-01-03 16:26:30 -06:00
fansaien 2dcd84c4f2 Fix the input trigger API where a form element doesn't exist (#4033)
There are no `form` elements in the preview context of a form, so this adds an alternative selector to use when no common `form` elements are found for the Input Trigger API to use. Credit to @fansaien
2019-01-03 16:24:43 -06:00
Luke Towers 301b09070d Compiled assets 2018-12-20 17:09:42 -06:00
fansaien 6a6ab8fc88 added the event to the callback (#4001)
Credit to @fansaien
2018-12-20 16:30:04 -06:00
Luke Towers ed226e0b09 Recompiled hotkey JS 2018-12-20 13:41:32 -06:00
Luke Towers 44ac62abeb Recompiled LESS using new CSS minification 2018-12-20 13:41:09 -06:00
fansaien 27c604abb2 Added option as alias for alt (#4000)
Credit to @fansaien
2018-12-20 13:35:00 -06:00
vosco88 a11868169e Add reset search (X) to toolbar search input (#3975)
Credit to @vosco88
2018-12-14 09:04:01 -06:00
Denis Denisov 465cbec241 Fix 'hide()' called for a closed popup (#3970)
Credit to @w20k
2018-12-08 13:10:53 -06:00
Denis Denisov 9ce6b4fbc8 Add Moments.js TimeZone Data (#3960)
Fixes issues when timezone data is needed on initialization. Credit to @w20k. Refs: #3867
2018-12-04 11:10:48 -06:00
Teranode 18a8e2f840 Revert changes made to self.hide after ajax (#3950)
This is needed as it removes leftover control-popover backdrops in any plugin backend that utilizes ajax in a popup modal (which is any of them that has relations or nested relations), so we will need to take a look at the dashboard widgets again. Credit to @ayumihamsaki.
2018-12-02 12:01:58 -06:00
Ayumi Hamasaki 41b8bb84f1 Update Raphaël 2.1.2 to 2.2.7 and Eve 0.4.2 to Eve 0.5.4 (Combined File) (#3930)
Credit to @ayumihamsaki. Refs: #3867
2018-11-29 10:36:10 -06:00
Sebastiaan Kloos 9c2bb8469e Minor documentation updates to input.hotkey.js (#2721)
Credit to @SebastiaanKloos
2018-11-23 01:09:45 -06:00
Teranode 900753db52 Fix zindex of popup on mobile (#3890)
Fixes #3506. Credit to @Teranode
2018-11-23 00:52:45 -06:00
Romaldy Minaya cca3c704a3 Fixes #3119 (#3163)
Added readOnly support to RecordFinder, Switch widget and relation widget including dropdown Fixes #3119. Credit to @romaldyminaya
2018-11-23 00:33:01 -06:00
Denis Denisov 445c549062 Add TimePicker.placement = auto (only supports: top/bottom position) (#3927)
Fixes #3903. Credit to @w20k
2018-11-19 09:29:56 -06:00
Ayumi Hamasaki c5bad06510 Update the Moments and TimeZone Library from 2.13.0 to 2.22.2 (#3906)
Fixes #3808. Credit to @ayumihamsaki. Related to #3867.
2018-11-17 16:31:54 -06:00
Siarhei Karavai ff8b967b75 Add support for placeholder in TagList widgets (#3453)
Credit to @GinoPane.
2018-11-15 13:32:59 -06:00
Teranode 7c919e01bc Fix hide event firing twice (#3898)
The setTimeout fires after the modal already hides so it ends up firing twice which causes an error because the element is no longer there:
```
Uncaught TypeError: Cannot read property 'get' of null
    at Popup.triggerEvent (storm-min.js?v443:3732)
    at Popup.hide (storm-min.js?v443:3741)
    at storm-min.js?v443:3730
```
Credit to @Teranode for the fix.
2018-11-01 10:32:37 -06:00
Tobias Kündig bfd726f173 Fix filter popovers in modals (#3844)
Since popovers and modals currently share the same z-index (600) a popover that gets created for a filter inside a modal is invisible. It is hidden below the modal. This commit adds a check to see if a filter is created from within a modal window. If yes, the popover will be added to the modal container. Otherwise the default container value `false` is used. Credit to @tobias-kuendig
2018-11-01 08:31:16 -06:00
Ayumi Hamasaki 4d4ac92d2f Update the Modernizr library - from 2.8.3 to 3.6.0 (#3902)
Credit to @ayumihamsaki
2018-11-01 08:29:46 -06:00
Luke Towers e726165554
Add Tab icons functionality (#3901)
Credit to @ayumihamsaki for the original proposal, @Teranode for the initial work. Related #3888, #3856.
2018-10-30 20:06:33 -06:00
Ayumi Hamasaki 567f415e1e Updated jQuery from V2 to V3.3.1, added jQuery Migrate (#3886)
Credit to @ayumihamsaki. Fixes #3230.
2018-10-30 19:36:44 -06:00
Luke Towers 454c625718 Recompiled assets 2018-10-30 18:20:30 -06:00
Teranode 8383f555ed Add action buttons to filter popups (#3882)
Adds action buttons ("Apply" & "Clear") to filter popups for UX improvement (past experience was click out of the popup to apply the selected filters and manually remove all applied filters). Credit to @Teranode. Fixes #3304.
2018-10-30 18:18:42 -06:00
Teranode 6fb08f3e1a Fix resize event after element removal (#3897)
This prevents an error from popping up after the popover is hidden/removed `this.$container.remove()` is no longer available after removal so we need to check for the presence of `this.$container`. Credit to @Teranode
2018-10-29 16:35:12 -06:00
Alwin Drenth 00122108b1 Update Dutch (NL) translation (#3895)
Credit to @adrenth
2018-10-26 09:14:56 -06:00
Christian 4ccf91feca Make popovers resize dynamically on page resize (#3891)
Related #3603. Credit to @Teranode
2018-10-25 12:40:34 -06:00
Christian d21ae831c0 Text Display issue (#3889)
Credit to @Teranode. Fixes an issue present on Firefox and Chrome where the "Yes" text cuts off because of the width limit of the span
2018-10-24 22:20:18 -06:00
Denis Denisov daf3a5c7cd Stop Ctrl+F marking code editor as "dirty" (#3857)
Credit to @w20k. Fixes #946. Thanks to @petehalverson for Octodock for making testing these easy!
2018-10-11 10:19:41 -06:00
Denis Denisov ae20bb629f Revert of 'loader.less', based on the issue #3792 (#3840)
Fixes #3792. Credit to @w20k
2018-10-04 14:10:43 -06:00
matthew188 c5d0a467d8 Improve table column width handling on Chrome (#3834)
Credit to @matthew188
2018-09-30 18:11:07 -06:00
Luke Towers 5b7d9041fd
Integrate flag-icon-css (#3797)
Replaced the existing PNG flag icons with the flag-icon-css library that uses SVGs, has more flags, and is more active (i.e well maintained). Credit to @mariavilaro & @w20k. Thanks to @petehalverson for Octodock for easy testing of this.
2018-09-25 08:23:18 -06:00
Jim Cottrell 6f2ed028b3 Fix input trigger on source field types with multiple selected values (#3798)
Credit to @jimcottrell. Tested by https://github.com/octoberrain/test-plugin/pull/55
2018-09-18 22:54:57 -06:00
Samuel Georges 7a8867f00b Improve Event log formatting for emails
If an email is seen (Message-ID:) then convert newlines to <br> unless within <html> tags. Also place the contents inside an iframe so the CSS rules don't leech out.
Fixes #3032
2018-08-31 11:09:20 +10:00
Luke Towers 787c2244bf Improved inline-options CSS for checkboxlist fields 2018-08-23 10:00:51 -06:00
Luke Towers 3011c39d2b Add inline-options css class for checkboxlist fields
Documented by f4440ced6c
2018-08-22 16:39:02 -06:00
Maria Vilaró 5c72ad1474 Add translations for Catalan (#3694)
Credit to @mariavilaro.
2018-08-16 08:14:26 -06:00
0x90 d5829c75cf Allow tabs to be closed with middle click (#3633)
Enables closing backend tabs with the middle mouse click. Credit to @AxDSan. Fixes #1970.
2018-07-25 13:54:49 -04:00
Michał Płodowski 68ee471d39 Add showWeekNumbers option to datepicker (#3637)
Fixes #3634. Credit to @mplodowski
2018-07-12 18:10:24 -04:00
Luke Towers dd6a05bdc4 Removed circular dependency
Removes a circular dependency from windex.variables.less that triggers https://github.com/kriswallsmith/assetic/issues/881.
2018-07-06 14:40:50 -04:00
Jim Cottrell bfee483805 Adds support for minifying framework assets (#3240)
Fixes #2753. Credit to @jimcottrell
2018-07-05 17:57:17 -04:00
Luke Towers c46dc38ed1 Compiled assets 2018-06-07 00:09:12 -06:00
Ayumi Hamasaki 5ee8ee0917 Fix the loading indicator appearing transparent over buttons(#3576)
Fixes #3571. Credit to @ayumihamsaki. Thanks to @petehalverson for his PR testing system, this is the first PR I'm merging after testing it with that system.
2018-06-01 09:07:10 -06:00
Viamage 667b82e6ce Replace keyup listener with input listener (#3567)
Fixes #1270. Credit to @viamage
2018-05-30 20:26:38 -06:00
QuangTrọngOnline 3ef571da3c Added Vietnamese translation (#3514)
Credit to @quangtrongonline.
2018-04-24 11:41:01 -06:00
Wellyson Freitas 2ffae8ccbc Add alignment and size options to loader indicator (#3522)
Add option to horizontally align the loader indicator in the center and option to change the size (only small size available for now) through the JavaScript API. These abilities were already available through CSS, this commit makes them available through JS as well.
2018-04-21 09:28:18 -06:00
Luke Towers ed760d892b Compiled client side language files 2018-04-19 10:23:38 -06:00
Tobias Kündig 2b22b26676 Added align property to list columns definition (#3509)
Documented in https://github.com/octobercms/docs/pull/289; credit to @tobias-kuendig
2018-04-17 23:34:08 -06:00
Luke Towers 5acbdb12fe Compiled assets and whitespace cleanup 2018-04-17 13:43:51 -06:00
Sergey Karavay 4a2e959fb8 Fixed Russian map for "щ" and added Belarusian map (#3463)
Credit to @GinoPane
2018-03-21 11:22:59 -06:00
Alex360hd 687f97f792 Remove loader background color (#3394)
Fixes #3393. Credit to @Alex360hd
2018-02-13 10:51:39 -06:00
tim0991 06780f5123 Support toggling the removal of stop words in input preset handling (#3320)
Add `data-input-preset-remove-stop-words="false"` to an element being handled with the input preset JS to disable the removal of stop words from slug generation. Credit to @tim0991.
2017-12-25 17:56:58 -06:00
Samuel Georges 736188e26f Recompile assets 2017-12-02 17:43:14 +11:00
SeriousKen 965d91e51c Trailing & in requestData if data is empty (#3262)
This fixes a small issue where the form is submitted an extra unnamed null field is present in the request due to a trailing & symbol in `requestData` when `data` is empty.
2017-11-23 09:54:17 -06:00
Samuel Georges 2092454343 Clean up from #3255
This logic could have been placed in the ValidationException class or the framework.js file. It seems more fitting for it to be in the framework.js file.
2017-11-22 13:47:34 +11:00
Jan c165fc02d7 Fix ajax validation for array syntax (#3255) 2017-11-21 17:05:04 -06:00
Christophe Vuagniaux cbcdd76ff2 Add filter of type text in backend list (#3094)
Fixes #3048, credit to @ChVuagniaux
2017-11-06 12:07:53 -06:00
Alexander Guth 93a2898379 Do not change behavior: pass request data back to the options object (#3012)
Current changes to the ``framework.js`` led to a breaking change due to the fact, that ``options.data`` was no longer populated with the request data. The ``options`` object is part of the ``context`` object, which is later beeing passed to ``ajaxBeforeSend``
The two relevant versions of the file show the change of behavior:
b6fedfb688/modules/system/assets/js/framework.js (L56) => https://github.com/octobercms/october/blob/develop/modules/system/assets/js/framework.js#L88
The change is required to remain consistent with the old behavior. This code is tested and appears to be working as it did formerly.
2017-09-19 15:34:48 -06:00
Luke Towers 9565565865 Add ignoreTimezone option to datepicker field and column types.
Adds the ability to specify an `ignoreTimezone: true` option on the config for a datepicker form widget or date column type. This will ignore both October's and the backend user's timezone settings to display the date exactly as it is stored.
2017-09-10 22:39:15 -06:00
Samuel Georges deaf56cc81 Merge pull request #3039 from vakopian/popover-filter-bug
Popover filter bug
2017-08-17 12:10:39 +10:00
Vardan Akopian 7a94d41702 add `popup-allow-focus` class for popover template 2017-08-16 16:35:41 -07:00
Vardan Akopian 5ad132b57f add `popup-allow-focus` to the popover templates 2017-08-16 16:35:02 -07:00
Luke Towers 7c3d4705fc Support firstDay in date & date range filters
Ref: 962aa32a60 (commitcomment-23597564)
2017-08-11 08:59:06 -06:00
Sang Min Oh 969eaccf8b korean language support for backend (#3023)
Credit to @everydayparty
2017-08-06 12:36:34 -06:00
Luke Towers 9745b3ba75 Compiled assets 2017-08-05 18:11:40 -06:00
Luke Towers a705a70f35 Cleanup for #2856
Removed `minNumber` and `maxNumber` options, they are not enforceable on the client side without a lot more work. Added `number` filter type, added missing numberrange filter template, consolidated styles for filter-date and filter-number filters.
2017-08-05 18:10:36 -06:00
Luke Towers be87fbbb87 added feature to allow filtering over a number range (#2856)
Original by @purposebuiltscott in #2856
2017-08-05 14:01:59 -06:00
Luke Towers c4e3387752 Pull datepicker yearRange from defined scope data 2017-08-05 12:41:22 -06:00
Samuel Georges 3abd61244a Code dusting 2017-07-29 15:33:51 +10:00
Samuel Georges b732f70c59 Adds support for single file uploads
...when used without a form tag
Refs #2857
2017-07-29 09:21:49 +10:00
Samuel Georges bc46520e3f This prevents &foo=bar on empty forms 2017-07-28 09:38:39 +10:00
Samuel Georges 97508c3953 Rem code sample 2017-07-28 01:50:37 +10:00
Samuel Georges 72eb48cf2e Add support for AJAX file uploads
Refs #2857
2017-07-28 01:45:26 +10:00
Samuel Georges 4e5ac44999 Create remaining mail partials
Improve mail partial lookup method
2017-07-22 18:03:58 +10:00
Samuel Georges 31ffadbc4c Introduce mail branding settings 2017-07-22 17:20:48 +10:00
Samuel Georges cd6a7c75dc Refresh colorpicker form widget
Replace colpick with spectrum plugin
Recompile client lang
2017-07-22 11:40:59 +10:00
Samuel Georges 1db67af8e8 Merge remote-tracking branch 'remotes/origin/develop' into l55upgrade
Conflicts:
	modules/system/lang/en/lang.php
2017-07-11 10:48:54 +10:00
Samuel Georges a84c193cb2 Update FontAwesome to v4.7.0
Recompile less
2017-07-09 12:21:59 +10:00
Samuel Georges 56eb61183b Minor UI improvements to recordfinder
Allow span elements to use oc-loading
2017-07-06 19:11:57 +10:00
Samuel Georges 9467a6ccfe Adds a radio alignment helper
Minor touch up to tab styling
2017-07-04 17:19:22 +10:00
Tobias Kündig 4f97d07962 Added firstDay option to datepicker form widget (#2940)
Documented here: https://github.com/octobercms/docs/pull/243
2017-06-28 07:23:59 -06:00
Samuel Georges 08a710eb9a Update ace editor 1.2.3 to 1.2.6
Recompile assets
Refs #2570 (without the spam)
2017-06-24 09:01:07 +10:00
Samuel Georges c5975b3917 Fix the appearance of optgroup in select 2017-06-15 17:59:16 +10:00
Samuel Georges 7afb09cf98 Merge pull request #2914 from alxy/patch-18
Pass the current context to the selector
2017-06-08 07:30:39 +10:00
Alexander Guth 0f4d7b6a85 Pass the current context to the selector
This fixes an issue with more than one form on a single page. The messages will be correctly displayed in the container of their corresponding form.
2017-06-07 22:36:18 +02:00
Samuel Georges ff04fbff35 Tighten up the look of extra small
Scales down the sidenav by converting px to em then dialing down the container font size
Made the list search less dominating over the primary buttons
2017-06-02 23:05:29 +10:00
Samuel Georges 3be6dafa6b Fixes int folder name showing as 0
Fixes #2902
Code dusting
2017-06-02 20:16:26 +10:00
Samuel Georges eadd889813 Improve mobile and settings page
Use native scroll on mobile devices (much better UX)
Stack settings menu items 2 column medium, 3 column large
The settings search is now forcibly focused
2017-06-02 17:39:26 +10:00
Samuel Georges 488b642e9b Fixes secondary crumb styles 2017-05-30 21:42:44 +10:00
Samuel Georges db82bfa815 Tighten up font weight and login screen
Recompile assets
2017-05-30 20:10:48 +10:00
Samuel Georges f0df1f458b Merge branch 'develop' into l55upgrade
Conflicts:
	modules/system/assets/ui/storm.css
2017-05-27 22:24:57 +10:00
Samuel Georges f53543c4a4 Realign list badge 2017-05-27 21:23:15 +10:00
Luke Towers 2b2bdc2dd0 Merge pull request #2884 from PaulGwamanda/patch-1
Move flashmessage 37px lower
2017-05-26 12:08:12 -06:00
Paul Gwamanda bbeb272657 Update storm.css
Add compiled storm.css file from flashmessage.less
2017-05-26 15:24:26 +02:00
Luke Towers f819aa607d Hide the loading indicator after AJAX request
Fixes #2780
2017-05-25 11:58:52 -06:00
Paul Gwamanda 5d30e0889e Update flashmessage.less
Updating .flash-message from margin-top 30px and to top: 50px
2017-05-23 09:38:23 +02:00
Paul Gwamanda 0ad185345c Move flashmessage 30px lower
Flash message gets in the way of menu items, for a better user interface suggest moving it 30px lower
2017-05-22 14:06:17 +02:00
Samuel Georges 2cbe849ee7 Style fixes 2017-05-22 20:01:09 +10:00
Samuel Georges cefa19af7d Backend UI improvements 2017-05-20 20:00:24 +10:00
Samuel Georges aa393dc54b Backend style improvements
This should make Windows PCs look a little nicer, albeit inconsistent with others (Sergoe UI is unique). If it's good enough for GitHub, then it's good enough for October.
All text shadows have been stripped, along with some box shading. They were barely noticeable and should speed up the UI.
2017-05-20 17:37:58 +10:00
Samuel Georges eaf2c9e4d0 Make the content selector more explicit (contentFrom) 2017-04-22 15:31:27 +10:00
Samuel Georges 49f5ec7557 Document and improve popover 2017-04-22 15:25:23 +10:00
Samuel Georges 4644218312 Move autocomplete to Storm UI
Rename select AJAX from "source" to "handler" (Refs #2836)
Document select handler usage
Recompile assets
2017-04-22 11:44:27 +10:00
Jim Cottrell 376a3b59e2 Add AJAX option to custom select functionality 2017-04-21 15:46:03 -06:00
José Longo e13fba6068 add missed js language file in /modules/system/assets/js/lang 2017-04-11 14:37:22 +01:00
Samuel Georges 5daf4365ae Move the change event to the input element
This should bubble to the parent control element and persist any logic that depends on the old event
Fixes #2684
2017-04-06 08:08:50 +10:00
Samuel Georges 328a74c1ff Fixes JS error in recordfinder
It looks like the inheritance of the foundation library has caused a logic error
Refs #2756
Recompile assets
2017-04-06 07:51:04 +10:00
asbig 91c9d0cd17 Fixes icon styling in FireFox and Windows environment
line-height from .status-icon to .status-icon > i. (#2776) In /modules/system/assets/ui/less/chart.less.
2017-04-05 23:19:31 +10:00
Samuel Georges b858ff680e Fixes required: false being treated as true
Fixes #2712
2017-04-05 22:24:00 +10:00
Samuel Georges f8e7fa03e0 Refactor remove option implementation
Refs #2756

Add disabled support
Fixes #1199
2017-03-22 09:26:05 +11:00
Samuel Georges e8f6cb4dc5 Merge pull request #2756 from ChVuagniaux/RecordFinder-Remove-button
RecordFinder - add a remove button
2017-03-22 09:06:27 +11:00
Samuel Georges b6fedfb688 Specify explicit form element
This allows request elements external to the form to serialize a target form for use. An example might be a search form at the top of a page, list of results in the middle, then the pagination at the bottom. The pagination would need to target the search form with data-request-form to persist the search query value.

This should work with the JS API too, passed as an object, because $($()) is acceptable in jQuery
2017-03-19 13:54:21 +11:00
Christophe Vuagniaux 91d39d275c RecordFinder - add a remove button 2017-03-15 12:33:02 +01:00
Samuel Georges 5f91c45f79 Implement disabled support for some form widgets
Recompile assets
Fixes #2749 (Media Finder)
Fixes #2750 (File upload)
Fixes #2751 (Rich Editor)
Refs #2724
2017-03-14 13:52:47 +11:00
Luke Towers cdc8b23fd4 Fixing same-origin AJAX requests
jQuery sends multiple values for the `X-REQUESTED-WITH` header if it has already been set, even when the value is the same. This means that same-origin requests would send `X-REQUESTED-WITH: XMLHttpRequest, XMLHttpRequest` which isn't detected as AJAX by Laravel/Symphony.

To fix this issue while retaining the crossDomain usage of framework.js, I've used `crossDomain: false` to trick jQuery into sending the header anyways on cross-origin requests. This is still changeable by the user in the `ajaxSetup` event.
2017-02-15 09:56:43 -06:00
Luke Towers c4031de6d6 X-Requested-With to uppercase
Style change because headers are case insensitive
2017-02-14 17:53:43 -06:00
Luke Towers 88d53ec0d5 Support CORS requests via framework.js
Adds support for Cross-Origin requests made via framework.js by manually adding the `X-Requested-With: XMLHttpRequest` header required for server-side detection of AJAX requests that is sent on normal Same-Origin AJAX requests but stripped by default by jQuery when making Cross-Origin requests. Note: Request target server still needs to have `Access-Control` headers configured correctly to return a request.
2017-02-14 17:46:56 -06:00
Luke Towers 37a735c8ed Process JS API requests through the document
Process JS API requests ($.request(handler, options)) through the document object instead of a non-existent form element. The form element was originally added because the framework only supported requests made from within a form
```
[22:08:12] spunky:	The $triggerEl was implemented because previously it was just $form
[22:08:24] spunky: For data-requests without a form, these events were being ignored
[22:08:31] spunky:	So as a workaround I implemented $triggerEl
```
As this is no longer the case, any JS API requests will now be made through the document element instead to support listening to events (such as ajaxSetup) even when there is no real attached element to trigger them on.
2017-02-06 10:36:57 -06:00
Samuel Georges d2082e0ea0 Throw an error when framework loads twice
Fixes #2379
2017-02-05 06:49:11 +11:00
Samuel Georges 562f60730f Fix bug in handleConfirmMessage override 2017-02-04 20:15:13 +11:00
Samuel Georges 6cd76e9c6d Add handleValidationMessage override function 2017-02-04 20:03:45 +11:00
Samuel Georges 88ed5c2c64 Dedicated ajaxSetup event for modifying option
Allow overriding confirm message with handleConfirmMessage function
2017-02-04 19:44:53 +11:00
Samuel Georges 7bcc31eef8 Add handleRedirectResponse override function 2017-02-04 19:14:26 +11:00
Samuel Georges e323a1b98a Added handleFlashMessage function to framework.js
- Used for handling flash messages via JS API

Request options are now passed to ajaxBeforeSend & ajaxPromise events

Improved framework extras
- Fixes data-request-flash when used within a plain form, this code would fail because $triggerEl is set to a plain form:
`<form><button data-request="..." data-request-flash>...</button></form>`
2017-02-04 15:42:43 +11:00
Samuel Georges 08c5a27e50 Peer review 2be18764d4 2017-02-04 09:21:45 +11:00
Luke Towers 2be18764d4 Support passing objects as the loading indicator
Adds support for passing objects to be used as the loading indicator. Note: Objects must support `.show()` and `.hide()` methods.
Example:
```js
$.request('onHandler', {
    loading: $.oc.stripeLoadIndicator
});
```
2017-02-03 15:54:59 -06:00
Samuel Georges ebed3cde5e Add afterUpdate event to match keyup
Recompile assets
Refs #2336
2017-02-03 06:50:38 +11:00
Samuel Georges 3bc87fb945 Merge pull request #2336 from rounce/master
input: on paste
2017-02-03 06:47:21 +11:00