Commit Graph

29 Commits

Author SHA1 Message Date
Ingo Schommer
ecbee33385 ENHANCEMENT Moved cms/javascript documentation from JSDoc to NaturalDocs format
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@104369 467b73ca-7a2a-4603-9d3b-597d59a354a9
2010-05-08 02:45:05 +00:00
Ingo Schommer
168589a59f MINOR Updated jQuery.concrete references to point to the new "entwine" name
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@102697 467b73ca-7a2a-4603-9d3b-597d59a354a9
2010-04-13 05:55:56 +00:00
Ingo Schommer
d732ee4c26 BUGFIX Don't invoke statusMessage() in LeftAndMain.EditForm.js form save callbacks, its already handled in LeftAndMain.js for global ajax completion callbacks
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92835 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:20:28 +00:00
Ingo Schommer
4d60aa5c83 MINOR Adjusted CMS JavaScript to new jquery-concrete API: Getters have 'get' prefix, namespaces are defined in blocks, event handlers work consistently. Mostly indentation and structure changes, no logic changes.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92825 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:19:59 +00:00
Ingo Schommer
69f8bc52ea BUGFIX Fixed iframe removal javascript in LeftAndMain.EditForm.js
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92780 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:18:04 +00:00
Ingo Schommer
17392ff42b MINOR Fixed LeftAndMain.EditForm.js button onclick, concrete is buggy
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92777 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:17:57 +00:00
Ingo Schommer
5ab645e35c MINOR Formatting
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92776 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:17:55 +00:00
Ingo Schommer
6f2927b538 MINOR Passing through url parameter in custom event for Form_EditForm javascript
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92767 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:17:36 +00:00
Ingo Schommer
e13bb588d3 MINOR concrete specs in LeftAndMain.EditForm.js
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92763 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:17:25 +00:00
Ingo Schommer
8b88bb7142 BUGFIX Re-initializing tabs in LeftAndMain.EditForm.js in order to get the correct height for resizeChildren()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92756 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:17:08 +00:00
Ingo Schommer
d3172a0775 BUGFIX Hiding LeftAndMain editform while loading new DOM through ajax, to avoid flash-of-unstyled-content issues
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92754 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:17:04 +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
5855dfef80 BUGFIX Fixed onsubmit() concrete handlers in LeftAndMain.EditForm.js
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92715 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:15:23 +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
81e3fd04e9 MINOR Triggering LeftAndMain.EditForm.js load() callback after loading the response - this makes more sense, as the inserted HTML can be parsed at this point
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92707 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:15:04 +00:00
Ingo Schommer
5e4fa55472 MINOR Moved tinymce initialization from LeftAndMain.js to LeftAndMain.EditForm.js and converted to use concrete
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92698 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:14:40 +00:00
Ingo Schommer
ffb6790fe6 BUGFIX Fixed duplicated 'confirm save' message in changetracker logic for LeftAndMain.EditForm.js
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92697 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:14:38 +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
4c5e847625 BUGFIX Fixes to CMS EditForm javascript change tracking and event triggering
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92689 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:14:17 +00:00
Ingo Schommer
f267dac02c BUGFIX Updated jquery.changetracker behaviour in LeftAndMain javascript to properly respond to window.onbeforeunload events
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92688 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:14:14 +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
5f8a164d21 ENHANCEMENT Defaulting to action_save button in ajaxSubmit() javascript logic in CMS form
ENHANCEMENT Making ajax options overrideable in ajaxSubmit() javascript logic in CMS form

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92684 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:14:05 +00:00
Ingo Schommer
d90d672158 MINOR Syntax
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92677 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 02:39:20 +00:00
Ingo Schommer
41c1c49dfe ENHANCEMENT Better response handling in LeftAndMain.EditForm
BUGFIX Fixed event cancellation in LeftAndMain.EditForm javascript buttons

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92672 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 02:39:06 +00:00
Ingo Schommer
59999e197e MINOR Supporting override attributes in hidden form fields in LeftAndMain.EditForm.js
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92664 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 02:38:48 +00:00
Ingo Schommer
d03eb541ef MINOR Remove text for LeftAndMain.EditForm.js
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92663 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 02:38:46 +00:00
Ingo Schommer
48bbfeffa4 MINOR Temporary workaround for event handling in namespaces for concrete library
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92657 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 02:38:33 +00:00
Ingo Schommer
4809523bae MINOR JavaScript code indentation and formatting
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92656 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 02:38:31 +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