Mateusz Uzdowski
fa3ef8c126
Side-by-side preview initialisation and navigation fixes.
...
Disables changetracking on preview options.
2012-12-10 17:52:01 +01:00
Mateusz Uzdowski
8f5acd70b3
API Move state to enwtine properties, provide API for preview.
...
Also the preview state is now kept between panel loads. We also use a
redraw function to update appearance based on the state.
2012-12-10 17:52:01 +01:00
Mateusz Uzdowski
1edfeefbdd
BUG Remove extraneous layout calls.
...
Remove .layout() calls on redraw. It's unnessecary and means layout
actually gets triggered multiple times, making resizing very slow.
This was a hack to fix the positioning of ajax-replaced elements.
The problem is jLayout does not track replaced elements. We have
to trigger layout algorithm manually on the parents of the replaced DOM
so it can update internal structures and do the re-layout.
Relayouting only needed 3 levels down.
2012-12-10 17:51:35 +01:00
Ingo Schommer
d1ee7612f5
Merge remote-tracking branch 'origin/3.0'
2012-10-08 16:48:52 +02:00
Ingo Schommer
b38cb39256
BUG Prevent CMS submission on disabled buttons ( #7928 )
...
Thanks @jbarrios for triggering this fix
2012-10-08 09:29:08 +02:00
Hamish Friedlander
95d0be636c
Merge remote-tracking branch 'origin/3.0'
2012-07-25 11:44:53 +12:00
Ingo Schommer
09067cc8dd
NEW Open first tab with validation errors
2012-07-18 16:50:09 +02:00
Andrew Short
9a5baafde7
Don't capture form submits to new windows.
2012-07-17 16:34:01 +10:00
Ingo Schommer
2fa835a027
MINOR Moving edit form focus logic from onadd() to onmatch() to give the form time to become visible (see #7258 )
2012-06-15 01:19:20 +02:00
Hamish Friedlander
b86a787521
BUGFIX: Use new jQuery.Entwine event capturing, onadd and onremove features to plug some memory leaks
2012-06-15 01:19:15 +02:00
Ingo Schommer
e23a7585a7
MINOR Using new jQuery.changetracker.destroy method in LeftAndMain.EditForm.js
2012-06-13 23:16:13 +02:00
Andrew Short
513737097b
MINOR: Fixed tab border being shown when tabs were hidden.
2012-06-13 13:46:00 +10:00
Ingo Schommer
2637969bcd
API CHANGE Renamed JS event from 'reloadeditform' on 'aftersubmitform', 'beforesave' to 'beforesubmitform'. Listening to bubbled event on container to avoid binding to forms which are removed before the event is triggered.
2012-06-12 17:13:36 +02:00
Ingo Schommer
d4baf2d19d
BUGFIX Stability improvements on CMS layout logic
...
- Changed application order
- Fixed layout trigger after preview toggle
- Replaced button row dimension approximation with double application of jQuery.layout() - once before sizing the action panel height to set correct width on container, then again for the height
2012-06-06 21:05:36 +02:00
Ingo Schommer
415a680802
BUGFIX CMS Breadcrumbs and tabs as inline blocks which can span multiple lines, rather than being cropped off ( fixes #6882 )
2012-06-06 21:05:33 +02:00
Ingo Schommer
75e51de9ed
API CHANGE Moved submitForm() from $('.cms-content') to $('.cms-container'), unifying ajax response handling between panel loading and form submission
2012-05-30 15:07:14 +02:00
Mateusz Uzdowski
8d469b66c8
BUGFIX: add missing onunmatches
2012-05-23 16:24:15 +12:00
Mateusz Uzdowski
97e00a35dd
BUGFIX: add missing onunmatches causing exceptions in entwine
2012-05-18 14:27:09 +12:00
Andrew Short
304c3cd5d3
ENHANCEMENT: Fields can be excluded from change tracking using a ".no-change-track" class.
2012-05-12 18:49:56 +10:00
Ingo Schommer
11f4756225
ENHANCEMENT Auto-hiding tab bar in CMS forms if only a single tab is available (to save screen space and reduce UI clutter) (see #7261 )
2012-05-09 17:19:20 +02:00
Ingo Schommer
e29bb3c390
ENHANCEMENT Allow opt-out of autofocus in CMS editor form, to avoid browser "auto scrolling" to bring the focused element into view ( fixes #7242 )
2012-05-02 18:27:45 +02:00
Ingo Schommer
ca789ef5ff
BUGFIX Disable form submits through "enter" key in CMS, as they might trigger unwanted actions by the browser choosing the default button
2012-05-01 23:40:21 +02:00
Ingo Schommer
85a331cc11
BUGFIX Choose first "action" button on submission of CMS forms via enter key, to avoid a form field button being autoselected ( fixes #7151 )
2012-04-30 17:13:39 +02:00
Ingo Schommer
84b0a7d96c
MINOR Renamed .ss-tabset to .cms-tabset in cms templates to distinguish entwine selectors and add extra functionality (cookies, re-selecting tab, panel loading)
2012-04-17 17:40:37 +02:00
Ingo Schommer
1742b4b742
BUGFIX Fixed loading/saving regressions due to new PJAX logic introduced in e01b0aa3d0
2012-04-10 00:37:14 +02:00
Ingo Schommer
72985b6f42
MINOR Artificially triggering onsubmit event on CMS form buttons rather than calling submitForm() method, in order to give forms like .cms-add-form the option to overload its behaviour
2012-04-05 23:00:22 +02:00
Normann Lou
18adfb0cff
BUGFIX SSF-53 : avoid to use ":submit" pseudo class in a jQuery selector
2012-03-12 09:36:09 +01:00
Ingo Schommer
b836bce521
MINOR Fixed double form submit (in some cases button click events aren't cancelled despite returning FALSE)
2012-03-08 18:22:30 +01:00
Ingo Schommer
e8f9624b42
BUGFIX Moved window.beforeunload handler out of onmatch(), was applied multiple times and causing unsaved changes confirmation messages on forms which were no longer loaded
2012-03-05 09:13:19 +01:00
Ingo Schommer
da57794014
MINOR Using ":submit" selector instead of ":button" in order to capture <input> tags as well
2012-02-28 18:09:32 +01:00
Ingo Schommer
25d0196b04
MINOR Merge errors
2012-02-28 18:09:30 +01:00
Ingo Schommer
9465df6fb4
MINOR Less specific button selectors in CMS JavaScript to cover <button> tags as well
2012-02-23 23:29:58 +01:00
Ingo Schommer
3cad19a97e
MINOR JS formatting
2012-02-21 17:46:58 +01:00
Ingo Schommer
5220a46fd0
ENHANCEMENT Inserting image via new dialog with ajax field retrieval and GridField file selection. Rewritten to jQuery.entwine and using the new HTML editor abstraction layer.
2012-02-14 13:53:35 +01:00
Ingo Schommer
c0d187071a
ENHANCEMENT New UploadField class to replace FileIframeField, ImageField and SimpleImageField
2012-02-03 01:00:08 +01:00
Ingo Schommer
a06300f0b4
ENHANCEMENT GridFieldItemEditView (and specific view and behaviour for usage in CMS)
2012-01-09 21:17:56 +01:00
Ingo Schommer
6edf055dff
ENHANCEMENT Added children toggle actions to CMS menu, fixed menu link update behaviour when records change
2012-01-05 23:17:55 +01:00
Ingo Schommer
bad1b88942
MINOR Fixed change detection false positives for TinyMCE in IE, use TinyMCE.isDirty() rather than string comparison
2011-12-15 23:42:19 +01:00
Ingo Schommer
bf11a32336
MINOR Fixed button layout height adjustment in CMS, reduced redraw() invocations on cms-edit-form
2011-12-15 23:42:16 +01:00
Ingo Schommer
adb5acc8bb
MINOR Hiding panel while redrawing via ajax (for repaint/reflow performance), enforcing redraw of tabs before their own onmatch() to avoid layout glitches
2011-12-15 23:41:37 +01:00
Ingo Schommer
482324b6ae
BUGFIX Fixed form change tracking in the CMS, integrated it into menu changes. Reduced TinyMCE coupling.
2011-12-15 20:38:35 +01:00
Ingo Schommer
0563018f52
MINOR Moved autocomplete logic from LeftAndMain.js to LeftAndMain.EditForm.js where it belongs
2011-12-15 11:38:29 +01:00
Ingo Schommer
f2ec8b0d54
BUGFIX Enforcing TinyMCE textarea call on window.load in addition to entwine/DOMReady to ensure TinyMCE.init() has been called and all plugins are loaded.
2011-12-15 00:48:29 +01:00
Ingo Schommer
2170835aeb
BUGFIX Using faster entwine selectors (class/attr rather than CSS3 pseudo selectors)
2011-12-12 18:35:25 +01:00
Ingo Schommer
7924ce9f74
MINOR Fixed some JS warnings
2011-10-29 20:58:48 +02:00
Ingo Schommer
a5652ab3aa
BUGFIX Added 'mceRemoveControl' calls to TinyMCE logic in CMS in order to reinitialise editors properly after replacing the panels via ajax
2011-10-29 13:27:10 +02:00
Ingo Schommer
8adb259555
MINOR Exclude buttons from focusing first elements in CMS edit form, as it stuffs up the layout engine
2011-09-19 21:34:03 +02:00
Ingo Schommer
c862b2423b
MINOR Fixed merge errors from 'history-panel' branch
2011-09-19 21:01:17 +02:00
Will Rossiter
2036354d8d
ENHANCEMENT: implemented CMSPageHistoryController with comparsion view, single version view into new CMSMain interface
2011-09-19 17:26:01 +02:00
Ingo Schommer
ce8e72cf0e
MINOR Removing executable flag from all files (thanks miiihi)
2011-09-18 22:04:02 +02:00