Commit Graph

59 Commits

Author SHA1 Message Date
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
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
12f2e1e176 Merge branch 'pjax-multiple' 2012-06-05 14:01:18 +02:00
Ingo Schommer
c18c29f464 BUGFIX Updating tree state (after adding/renaming nodes, changing parent). Deselecting nodes when switching to edit view (fixes #7389, #7336, #7309) 2012-06-03 18:48:47 +02:00
Ingo Schommer
460148c12a MINOR Debug messages for tracking down JS layout sequence issues (disabled by default) 2012-06-02 12:31:55 +02:00
Ingo Schommer
0eac6ea5c3 MINOR Apply loading indicators to all forms, not just .cms-edit-form (which means it includes the "pages list view"). Move to correct place in LeftAndMain.js (not specific to '.cms-content') 2012-05-30 16:36:25 +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
Ingo Schommer
5178954311 UNFINISHED Processing multiple PJAX responses on CMS JavaScript, introducing data-pjax-fragment attribute to identify reloadable template parts 2012-05-30 15:07:13 +02:00
Ingo Schommer
5b03f49245 BUGFIX Respecting server-overrides on X-Pjax responses during ajax redirects. Fixes GridFieldDetailForm redirect after delete, e.g. in ModelAdmin. Partially reverts 8b4b896. Closes pull request #488 2012-05-29 11:34:47 +02:00
Mateusz Uzdowski
8b4b896578 BUGFIX: add capability of redirecting form actions.
Form actions assume that they are reloading the form afterwards. But
this is not always the case - for example "delete" action will redirect
back to the panel, so we need to be able to set the X-Pjax headers
accordingly.
2012-05-18 17:36:06 +12:00
Mateusz Uzdowski
97e00a35dd BUGFIX: add missing onunmatches causing exceptions in entwine 2012-05-18 14:27:09 +12:00
Mateusz Uzdowski
37399f88db BUGFIX: add missing _super calls to all matchers and unmatchers
Otherwise some matchers might not be triggered as expected.
2012-05-18 12:27:30 +12:00
Mateusz Uzdowski
3d0876c8f5 BUGFIX: put all CMS JS code into 'ss' namespace.
Conflicts:

	admin/javascript/LeftAndMain.js
	javascript/GridField.js
2012-05-18 12:27:30 +12:00
Ingo Schommer
d42ea5a9d6 BUGFIX Encoding multibyte characters in custom X-Status HTTP headers used in CMS (headers don't allow multibyte data) 2012-05-14 15:13:49 +02:00
Ingo Schommer
473d3a66b8 MINOR Fixed controller contexts in LeftAndMain->SiteTreeAsUL() - needs different context for edit links and determining "current page" (not applicable for CMSPagesController) 2012-04-17 22:33:30 +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
e2df1f4c5f MINOR Removed $('.cms-content').loadForm(), its very similar to loadPanel() - accepts callbacks, but that's not specific to forms. Listen to 'afterstatechange' rather than 'loadform' events 2012-04-12 23:53:14 +02:00
Ingo Schommer
5cfbac63a2 MINOR Fixed PJAX panel loading when .cms-content is a split panel with tree and form view (regression caused by 452a507cc9) 2012-04-12 12:29:20 +02:00
Ingo Schommer
15e16f13e1 MINOR Retaining correct PJAX selector on (fake) redirects after form submissions 2012-04-10 12:27:40 +02:00
Ingo Schommer
aebbb10c9f MINOR Skip processing in CMS on empty ajax responses, as they're usually a pseudo redirect (via X-ControllerURL) 2012-04-05 23:00:22 +02:00
Sam Minnee
e01b0aa3d0 ENHANCEMENT PjaxResponseNegotiator for more structured partial ajax refreshes, applied in CMS and GridField. Also fixes issues with history.pushState() and pseudo-redirects on form submissions (e.g. from page/add to page/edit/show/<new-record-id>) 2012-04-05 23:00:22 +02:00
Sean Harvey
f8a6db8d31 MINOR Temporarily reverted X-ControllerURL push state, as the header doesn't get set
correctly in LeftAndMain::handleRequest() correctly. This fixes saving
pages until X-ControllerURL has been corrected.
2012-04-03 11:29:44 +12:00
Ingo Schommer
6c91aa0ec5 BUGFIX Force referer via "BackURL" POST data in CMS to work around IE problems with sending the base URL as the referer instead of the actual one (#7002) 2012-03-30 16:51:43 +02:00
Ingo Schommer
1091c7b944 BUGFIX Don't replace pushState() if emulated, as it will re-load the new URL via ajax, effectively duplicating every request in IE (#7002) 2012-03-30 16:51:43 +02:00
Ingo Schommer
c518a19ec2 BUGFIX Replaced logic for checking external URLs in CMS Menu with more stable jQuery Mobile codebase (fixes problems on IE not loading menu entries via ajax) (#7002) 2012-03-30 16:51:42 +02:00
Ingo Schommer
51ff4004d1 ENHANCEMENT Allowing ajax responses on CMS form submissions to "break out" of the form element they were triggered through, by looking for existence of ".cms-content" node in response 2012-03-12 13:30:17 +01:00
Ingo Schommer
ee2b220780 MINOR Supporting X-ControllerURL in form submits 2012-03-08 18:22:30 +01:00
Ingo Schommer
9a96b92c81 MINOR Moved $('.cms-panel-link') and $('.cms-link-ajax') behaviours to "higher order" namespace 2012-03-07 17:17:47 +01:00
Julian Seidenberg
ee37adbc87 ENHANCEMENT: SSF-33 Binding the 'cms-link-ajax' class to a javascript function that triggers a CMS ajax method and displays a status message 2012-03-06 18:22:01 +13:00
Normann Lou
f7030c56a5 BUGFIX: Page tree node reflects any changes made to page (title, publication status) in its edit view, implemented on the level of cms-content dom element, rather than cms-edit-form level 2012-02-27 12:47:36 +13:00
Normann Lou
587d195647 BUGFIX: Page tree node reflects any changes made to page (title, publication status) in its edit view 2012-02-24 16:46:46 +13:00
Ingo Schommer
30989b598d ENHANCEMENT Added path manipulation lib from jQuery.mobile, using it to ensure all URLs are made absolute (to fix IE issues) 2012-02-23 23:29:59 +01:00
Ingo Schommer
8b6ef6599e MINOR Updating usage of jQuery.data() to confirm with API changes in 1.6 (camelcased names) 2012-02-23 23:29:58 +01:00
Ingo Schommer
39dc5ae301 MINOR Load breadcrumb links via ajax into panels in CMS 2012-02-23 23:29:57 +01:00
Ingo Schommer
a3d8185d8e MINOR Click behaviour for special "panel loading" links in the CMS 2012-02-17 13:33:38 +01:00
Ingo Schommer
ca9b78f255 MINOR Re-apply custom jstree onselect behaviour on partial form refreshes 2012-02-17 13:33:38 +01:00
Ingo Schommer
0e3e2904a4 MINOR Redraw the whole layout on form submit, instead of relying on .cms-content onmatch() which doesn't get fired on partial refreshes (e.g. in CMSPageEditController) 2012-02-16 12:17:03 +01:00
Ingo Schommer
a1e9c0f41e ENHANCEMENT CMS panels restructured to use two new types of "tools" templates, fetched through LeftAndMain->Tools() and LeftAndMain->EditFormTools(). Requires less overloading of template markup. 2012-02-15 14:26:45 +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
Normann Lou
4bd526fbee MINOR Don't follow <a> tag's href if click on page-icon or drag-icon (SSF-109) 2012-02-13 09:52:59 +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
a6e2316766 ENHANCEMENT Created $('.cms-container').loadPanel() as a wrapper around History.pushState() to allow for global change tracking 2011-12-15 20:38:31 +01:00
Ingo Schommer
f3494839b0 MINOR Improved CMS loading spinner visibility by enforcing a higher z-index in its own element 2011-12-15 00:48:50 +01:00
Ingo Schommer
9c6cbf7012 BUGFIX Making HTML5 History support optional, so we can disable HTML4 hash change fallback 2011-12-15 00:48:34 +01:00
Ingo Schommer
7924ce9f74 MINOR Fixed some JS warnings 2011-10-29 20:58:48 +02:00
Ingo Schommer
ec2b0a437d MINOR Apply loading styling to edit forms as well as content areas 2011-10-29 20:46:41 +02:00
Julian Seidenberg
90d4321c52 ENHANCEMENT: adding an additional overlay-light div that is used when switching between pages by ajax. The dialog pop-up uses the default "ui-widget-overlay", but that overlay is darker than "ui-widget-overlay-light". Having two overlays prevents weird graphic effects when switching pages using the darker overlay (SSO-12) 2011-09-29 17:09:36 +13:00
Ingo Schommer
c862b2423b MINOR Fixed merge errors from 'history-panel' branch 2011-09-19 21:01:17 +02:00