Commit Graph

205 Commits

Author SHA1 Message Date
Ingo Schommer
8e8f9c5e77 MINOR Fixed Requirements path references in LeftAndMain and AssetAdmin
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92861 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 04:50:02 +00:00
Ingo Schommer
e3a51fe6b9 MINOR Bugfixes for SWFUpload
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92853 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:21:19 +00:00
Ingo Schommer
394e0c0b38 MINOR Removed cms/thirdparty/swfupload, moved to sapphire/thirdparty
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92852 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:21:16 +00:00
Ingo Schommer
990ae9f145 BUGFIX Fixed CMSMain.js search clearing logic, wasnt clearing the first field properly. Fixed LeftAndMain->getsubtree() filtering in AssetAdmin and SecurityAdmin.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92849 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:21:03 +00:00
Ingo Schommer
9c3ecea1e7 ENHANCEMENT Unifying tree logic in most LeftAndMain subclasses: CMSMain, SecurityAdmin, AssetAdmin. Using a common LeftAndMainMarkingFilter. Allowing for custom node counts in SecurityAdmin and AssetAdmin.
API CHANGE Renamed CMSMain->getfilteredsubtree() to doSearchTree()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92848 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:21:00 +00:00
Ingo Schommer
1bc268e287 MINOR Only fetching EditForm in LeftAndMain->show() if called by ajax, the customize() call for non-ajax views confuses the renderer otherwise
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92847 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:20:56 +00:00
Ingo Schommer
32d6342aff MINOR Fixed merge errors
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92845 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:20:50 +00:00
Ingo Schommer
0df7de0c6b BUGFIX Using getRecord() in LeftAndMain->getEditForm(), passing through ID request params from getitem()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92844 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:20:47 +00:00
Ingo Schommer
8f92ee35fb MINOR Fixed Requirements paths in LeftAndMain.php
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92843 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:20:45 +00:00
Ingo Schommer
b943a65f37 API CHANGE Moved SecurityAdmin/AssetAdmin doAdd() and AddForm() methods into a common base implementation on LeftAndMain
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92841 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:20:41 +00:00
Ingo Schommer
2d82a2ff35 MINOR Syntax error and documentation
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92839 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:20:36 +00:00
Ingo Schommer
c44bc29a8f ENHANCEMENT Adding ParentID and ClassName fields in LeftAndMain->getEditForm() if they're not already present. This ensures the UI can update state properly, e.g. to set the current tree element
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92836 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:20:30 +00:00
Ingo Schommer
45f87288fc API CHANGE Moved CMSMain/AssetAdmin/SecurityAdmin implementations for getEditForm() and save() to a common parent: LeftAndMain
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92834 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:20:26 +00:00
Ingo Schommer
98ce1b1f07 MINOR Moved batch actions code from AssetAdmin/CMSMain to a common LeftAndMain parent (which is now reused by SecurityAdmin as well)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92832 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:20:21 +00:00
Ingo Schommer
1036329e86 MINOR Fixed jquery-concrete path
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92824 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:19:56 +00:00
Ingo Schommer
45c31da863 BUGFIX Re-added session-based ID setting in LeftAndMain, it was necessary to for nested controllers like TableListField form fields
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92816 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:19:37 +00:00
Ingo Schommer
175ceaf890 MINOR Moved AddForm javascript logic to new LeftAndMain.AddForm.js file which is shared by CMSMain and AssetAdmin
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92810 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:19:25 +00:00
Ingo Schommer
2e7f100a1c MINOR Moved LeftAndMain.BatchActions.js to LeftAndMain, its used in AssetAdmin as well
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92809 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:19:20 +00:00
Ingo Schommer
0ae85392a6 styles for empty form on load/no pages open
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92792 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:18:38 +00:00
Ingo Schommer
9fdf14a339 Added base overrides for jquery-ui
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92789 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:18:31 +00:00
Ingo Schommer
4d4f2ce0a4 MINOR Added jquery-live-extensions plugin to support 'change' events in concrete
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92779 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:18:02 +00:00
Ingo Schommer
c65800aa57 ENHANCEMENT Using ->request in LeftAndMain->currentPageID()
MINOR Documentation in LeftAndMain

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92760 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:17:19 +00:00
Ingo Schommer
23bac6e84f API CHANGE LeftAndMain->EditForm() returns EmptyForm() by default, as not all subclasses might want to implement the previously used getEditForm() method (e.g. ModelAdmin, which has its own sub-controllers to handle requests). Added specialized EditForm() overrides to AssetAdmin and CMSMain
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92759 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:17:16 +00:00
Ingo Schommer
18ce39a0d1 ENHANCEMENT Including prototypefix javascript in LeftAndMain::init() to speed up CMS loading by using native browser DOM methods instead of slower prototypejs overloads. This should be a temporary measure until we can remove prototype.js from the default installation.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92753 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:17:01 +00:00
Ingo Schommer
d0d676b1b0 MINOR Fixed remaining references to jsparty/ directory in CSS and PHP files
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92750 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:16:54 +00:00
Ingo Schommer
31c2aa9de8 MINOR Formatting and documentation in LeftAndMain.php
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92748 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:16:48 +00:00
Ingo Schommer
bcd0bcfd1f API CHANGE Removed LeftAndMain:: and LeftAndMain->ForceReload(), please use clientside logic for this instead.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92747 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:16:46 +00:00
Ingo Schommer
6e200916eb API CHANGE Removed unused LeftAndMain->callPageMethod(), please use RequestHandler for this instead.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92746 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:16:44 +00:00
Ingo Schommer
44e3966d96 ENHANCEMENT Removed manual SiteTree->Status setting in LeftAndMain controllers, use specific getters like SiteTree->IsAddedToStage for this purpose
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92745 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:16:42 +00:00
Ingo Schommer
1308153458 API CHANGE Deprecated LeftAndMain->getitem(), please use show() instead
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92744 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:16:40 +00:00
Ingo Schommer
64e042a2a3 ENHANCEMENT Removed unused LeftAndMain->DeleteItemsForm
ENHANCEMENT Moved LeftAndMain->deleteitems() into SecurityAdmin, its the only place where its not replaced by CMSBatchAction yet

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92743 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:16:38 +00:00
Ingo Schommer
c7cca847c8 ENHANCEMENT Updated LeftAndMain->ajaxupdateparent() and ajaxupdatesort() to return JSON data rather than FormResponse eval()ed javascript, and let the clientside handle any updates. Also updated to use HTTPRequest instead of superglobals.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92740 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:16:30 +00:00
Ingo Schommer
25ba16223a API CHANGE Removed LeftAndMain->getLastFormIn(), please use Form->formHtmlContent() instead
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92738 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:16:26 +00:00
Ingo Schommer
8f82a04377 MINOR Updated jquery.concrete paths in LeftAndMain.php
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92737 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:16:23 +00:00
Ingo Schommer
3124388b4d ENHANCEMENT Removed jquery.livequery.js dependency in LeftAndMain, is using jquery.concrete now. Moved only application of livequery (cms form buttons) to concrete
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92735 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:16:18 +00:00
Ingo Schommer
cb1895866a ENHANCEMENT Refactored versions panel in CMS: Removed "compare mode" checkbox in UI, and replaced with explicit checkboxes and a "compare versions" button. Added manual "refresh" button. Replaced custom markup with a form generated through CMSMain->VersionsForm(), and adjusted markup in CMSMain_versions.ss accordingly
API CHANGE Removed CMSMain->sendFormToBrowser(), replaced with custom code

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92731 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:16:09 +00:00
Ingo Schommer
01d06dd47e API CHANGE Replaced CMSMain->LangSelector() with CMSMain->LangForm() to provide more accessible backend and properly wrap existing <select> tag in a form
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92728 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:16:00 +00:00
Ingo Schommer
2796a37a02 API CHANGE Removed SideReport javascript class, replaced with concrete implementation in CMSMain.js
ENHANCEMENT Using full form for 'site reports' panel in CMSMain->ReportForm(). Removed CMSMain->ReportSelector()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92727 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:15:55 +00:00
Ingo Schommer
1760759992 MINOR Moved LeftAndMain_left.js to LeftAndMain.Tree.js
MINOR Moved CMSMain_left.js to CMSMain.Tree.js

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92726 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:15:51 +00:00
Ingo Schommer
7f285e2bd9 MINOR Unsetting any validation for LeftAndMain->EmptyForm()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92713 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:15:20 +00:00
Ingo Schommer
eef51ed50b MINOR Re-added LeftAndMain->EditForm() as a complement to getEditForm() - it is necessary for form submissions as well as for template getters
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92712 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:15:18 +00:00
Ingo Schommer
dc4375a383 API CHANGE Removed LeftAndMain->EditForm(), please use getEditForm() instead
API CHANGE Returning LeftAndMain->EmptyForm() as a welcome/placeholder message from LeftAndMain->getEditForm() if no record is found. Removed this placeholder from LeftAndMain_right.ss
ENHANCEMENT Allowing optional $id parameter in LeftAndMain->getEditForm() (and subclasses)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92710 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:15:13 +00:00
Ingo Schommer
7400f8e3d1 ENHANCEMENT Using concrete for CMS loading screen javascript
ENHANCEMENT Better styling for non-javascript message in CMS loading screen

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92701 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:14:49 +00:00
Ingo Schommer
8b8867ba76 API CHANGE Changed <p id=statusMessage> to <div class=notice-wrap> in LeftAndMain_right.ss and subclasses
ENHANCEMENT Using external jquery.notice library to handle status message updates in the CMS

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92696 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:14:36 +00:00
Ingo Schommer
c48c7755bb ENHANCEMENT Moving placeholder HTML for CMS EditForm out of the <form> tag, and picking it up for later usage in the EditForm javascript
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92691 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:14:22 +00:00
Ingo Schommer
5aef49a0a7 API CHANGE Removed ChangeTracker javascript class, superseded by jquery.changetracker
API CHANGE Removed autoSave() javascript logic in CMS, superseded by custom code in LeftAndMain.EditForm.js
ENHANCEMENT Using jquery.changetracker in LeftAndMain.EditForm.js, and overhauled window.unload logic to automatically trigger ajax saving after a user confirmation
MINOR Changed unload confirmation text in CMS logic to adapt to new behaviour

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92685 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:14:08 +00:00
Ingo Schommer
c2d24f9022 FEATURE Changed CMSMain and LeftAndMain form submissions to return raw HTML instead of using FormResponse logic and evaluated javascript. This allows a more customizeable UI layer that is decoupled from the serverside logic. Any state changes should be propagated through the form itself.
ENHANCEMENT Using new 'X-STATUS' HTTP response header for CMS form responses, as it is more robust for submitting variable length strings than the original 'Status' header. The status is evaluated in LeftAndMain.EditForm.js
API CHANGE Removed CMSMain->tellBrowserAboutPublicationChange(), LeftAndMain->returnItemToUser(), LeftAndMain->getActionUpdateJS(), LeftAndMain->addTreeNodeJS(), LeftAndMain->deleteTreeNodeJS(). Use javascript to respond to state changes
API CHANGE Removed CMSForm and CMSRightForm javascript classes, superseded by LeftAndMain.EditForm.js
ENHANCEMENT Removed custom change detection in LeftAndMain->save(), this should be handled by DataObject->write()
ENHANCEMENT Removed switch in LeftAndMain->save() which doesnt process saving if the record hasn't been altered, to simplify the saving logic
ENHANCEMENT Removed custom add/remove tree node logic in LeftAndMain->save() which was retrieving state from DataObjectLog. This was never actively used, and should be handled by custom clientside logic.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92674 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 02:39:12 +00:00
Ingo Schommer
8b89a265da MINOR Removed defunct param parsing in LeftAndMain->show(), wasn't working since we switched to RequestHandler in 2.2
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92670 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 02:39:01 +00:00
Ingo Schommer
0b9f4ab533 MINOR Adjusted to SiteTree->getTreeTitle() api change
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92669 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 02:38:59 +00:00
Ingo Schommer
9980de9c1d MINOR Moved javascript EditForm functionality in separate file: LeftAndMain.EditForm.js
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92650 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 02:38:20 +00:00