Christopher Joe
a73d5b4177
FIX revert to this button after archiving
2017-10-20 10:01:56 +13:00
Sam Minnee
bbc3aaaf9f
MINOR: Remove training whitespace.
...
The main benefit of this is so that authors who make use of
.editorconfig don't end up with whitespace changes in their PRs.
Spaces vs. tabs has been left alone, although that could do with a
tidy-up in SS4 after the switch to PSR-1/2.
The command used was this:
for match in '*.ss' '*.css' '*.scss' '*.html' '*.yml' '*.php' '*.js' '*.csv' '*.inc' '*.php5'; do
find . -path ./thirdparty -prune -o -type f -name "$match" -exec sed -i '' 's/[[:space:]]\+$//' {} \+
find . -path ./thirdparty -prune -o -type f -name "$match" | xargs perl -pi -e 's/ +$//'
done
2016-01-07 10:32:05 +13:00
Damian Mooyman
748866ec0f
Merge remote-tracking branch 'origin/3.2' into 3
...
Conflicts:
code/controllers/CMSMain.php
code/model/ErrorPage.php
2015-11-03 13:11:26 +13:00
Patrick Nelson
332e490147
FIX (partial) for #1288 where non-submit buttons are being activated on "enter" key press (relates to framework issue at https://github.com/silverstripe/silverstripe-framework/issues/3181 ).
2015-10-06 15:08:29 -04:00
Loz Calver
052aba17ac
FIX: Incorrect field IDs breaking SiteTree settings toggles ( fixes #1280 )
2015-09-23 14:53:07 +01:00
Daniel Hensby
715cd9ab4e
Merge branch 'pulls/localized-urlsegment-creation' of https://github.com/chillu/silverstripe-cms into chillu-pulls/localized-urlsegment-creation
...
Conflicts:
tests/model/SiteTreeTest.php
2015-06-13 15:23:22 +01:00
Damian Mooyman
b169823a00
API Deprecate delete in favour of archive
...
Remove "delete from live" duplicate action in favour of existing "unpublish" which is more consistent with current terminology
Add pop-up verification to destructive actions
Fix bug preventing side-by-side preview of archived pages
Fix bug in reporting publishing of error pages
Restoring a page without an available parent will restore to root
2015-06-03 14:46:16 +12:00
Ingo Schommer
36ac61115a
Fix auto-setting of URL from localized page titles
...
Replace the hardcoded check for english locale ("new-page")
with a localized version.
See https://github.com/silverstripe/silverstripe-translatable/issues/180
2015-04-29 00:16:53 +12:00
Elvinas L.
9da7e90bf4
FIX. Missing translation entity
...
Missing translation entity on Update URL button.
2015-01-13 12:36:09 +02:00
jean
5f2d78a2dc
FIX JS issue when enabling save buttons for when the content has changed. Current implementation triggers a 'Object is not a function' error. New implementation follows the same logic as in the onmatch function, and uses .button() as the function
2014-02-17 14:34:12 +13:00
Loz Calver
595a0375e7
Stop MenuTitle updating tree on change
...
If the MenuTitle is changed and the tree updates, not saving the
changes to the page leaves the tree with the new title instead of the
old, correct one (until a refresh). This also seems counter-intuitive
anyway - suggesting to users that their updated MenuTitle has been
saved before it actually has.
2013-10-02 12:53:03 +02:00
Ryan Wachtl
b4c9c18b33
BUG: Prevent conflict when using multiple SiteTreeURLSegmentField's in CMS edit form
2013-02-04 15:04:52 -06:00
Kirk Mayo
1571d3542d
BUG Only use $.button in onunmatch if init'ed ( fixes #8181 )
2013-01-21 08:43:29 +01:00
Ingo Schommer
6cb77108f5
Remove "changed" style from buttons if fields are reset
2012-12-17 23:02:32 +01:00
Mateusz Uzdowski
26cc14a930
API Rework the CMS actions to use alternating buttons and drop-ups.
...
Utilise the new features provided by the framework to get richer
interface:
* save buttons that highlight the current state of the page
* minor actions in a drop-up
* embed last publishing and saving information
2012-12-13 19:10:39 +01:00
Ryan Wachtl
5a5290421b
BUG Fixing Update URLSegment from Title behavior.
...
The class name of a field used to determine if a page was "new" had changed from LiveURLSegment = > LiveLink.
2012-10-05 22:40:10 -05:00
Sam Minnee
6be8602295
BUG: Update MenuTitle whenever Title is changed and the value of Title used to be. Bubble the change to update LHS tree. (Trac #7507 )
...
We had to use .data() to track OrigVal manually, but this means that the MenuTitle can be updated much more reliably. In addition, we trigger the change-handler for MenuTitle that updates the LHS tree. Unfortunately, we couldn't simply use .trigger('change') because it broken in IE8 due to an entwine bug.
2012-06-22 13:04:40 +12:00
Sean Harvey
d55eb13ecc
BUGFIX Ensure that we only select the first item when updating tree
...
nodes, otherwise we change the title for all nested node's text as well.
2012-06-20 22:01:36 +12:00
Sam Minnee
447ef16294
BUGFIX: Update the tree w/ javascript when MenuTitle is updated, not Title (Trac #7496 )
2012-06-18 17:34:35 +12:00
Sean Harvey
b0a026b4c6
BUGFIX Fixed url_segment undefined error in CMSMain.EditForm, assuming
...
*all* title fields have a URLSegment field associated with them, which
they don't.
2012-05-22 14:05:21 +12:00
Mateusz Uzdowski
00734f5498
BUGFIX: add missing onunmatches causing exceptions in entwine
2012-05-18 14:33:17 +12:00
Ryan Wachtl
f56126470d
ENHANCEMENT Update URLSegment from Title ( closes #6981 )
2012-05-12 23:55:26 -05:00
Ryan Wachtl
2945f9d963
BUGFIX: Updating URLSegment from Title field when new page is created
2012-05-10 10:21:30 -05:00
Ingo Schommer
1863bb00db
ENHANCEMENT Refactored SiteTreeURLSegmentField JS to a more selector based approach (future proof field for reusability e.g. in ModelAdmin with custom DataObject URL previews)
2012-05-10 14:50:08 +02:00
Ryan Wachtl
bd94c6f336
Trac 6981: Opt-in URL Updating
2012-05-09 19:01:57 -05:00
Sean Harvey
647d57809b
BUGFIX Cleanup of onclick() being called in onmatch for ParentType
...
field. Use a redraw() function instead which is called in onmatch and
onclick
2012-04-23 21:21:31 +12:00
Sean Harvey
614f307a37
ENHANCEMENT When loading CMS, ensure that "Parent page" tree dropdown is
...
either hidden or shown depending on initial "Page location" state
2012-04-23 21:02:29 +12:00
Sean Harvey
b9854dfd2b
MINOR Removing @todo in CMSMain.EditForm.js which has been done
2012-04-21 11:22:55 +12:00
Ingo Schommer
39208d15e0
MINOR i18n for revert confirmation messages, improved wording
2012-04-11 10:19:54 +02:00
Normann Lou
1311ba2720
BUGFIX: Empty error message on renaming a page and confirming url is changed accordingly (trac ticket 7068)
2012-03-27 14:57:39 +02:00
Saophalkun Ponlu
1823c58f6f
BUGFIX: Change to a page url segment doesn't get saved properly caused by 'disabled' attribute on the field, which is added by url segment suggestion function (ticket #6842 )
2012-03-09 16:12:07 +13:00
Russell Michell
e5d038f7f0
BUGFIX: #6853 Removed bottom border of the parent div wrapped around settings' options-sets when radio-buttons with a value of 'OnlyTheseUsers' is selected.
2012-03-09 13:14:17 +13:00
Simon Welsh
a519411629
BUGFIX Page location radio buttons update ParentID accordingly
2012-02-11 14:13:38 +13:00
Ingo Schommer
cb26a83bd1
MINOR Fixed XSS when changing page title
2012-01-31 14:37:21 +01:00
Ingo Schommer
a4494d4775
MINOR Triggering parent field expansion on click (on change doesn't work in IE)
2012-01-03 17:57:40 +01:00
Frank Mullenger
ae0ec6304d
BUGFIX: Fixes #6809 . Updates page title heading when page title changes on edit page in CMS.
2011-12-18 15:34:03 +01:00
Ingo Schommer
b4eda409c2
ENHANCEMENT Replaced client side URL filtering in CMS with ajax callbacks to new SiteTreeURLSegmentField, in order to align with extended server side logic (and avoid pre-filtering values too heavily before passing them to the server). Removed suggestions from client side user confirmation.
2011-11-14 15:29:19 +01:00
Julian Seidenberg
ebcc1f324e
BUGFIX: "Parent Page" dropdown isn't hidden in "Edit Page" -> Settings (SSO-15)
2011-09-28 11:48:36 +13:00
Will Rossiter
d90ea0d236
ENHANCEMENT: implemented CMSPageHistoryController with comparsion view, single version view into new CMSMain API.
2011-09-19 17:30:46 +02:00
Ingo Schommer
4f157e3133
MINOR Fixed CreateToplevelGroups toggling in CMSMain.EditForm.js
2011-04-30 18:34:52 +12:00
Ingo Schommer
4fe07e9b71
MINOR Using '.cms-edit-form' instead of '#Form_EditForm' selector
2011-04-28 22:48:55 +12:00
Ingo Schommer
84d703261f
MINOR Documentation
...
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@104393 467b73ca-7a2a-4603-9d3b-597d59a354a9
2010-05-08 07:35:35 +00:00
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
5fb9098b4d
BUGFIX: Correct confirmation alert message when rolling back to a specific version. (from r90261) (from r96805)
...
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@102689 467b73ca-7a2a-4603-9d3b-597d59a354a9
2010-04-13 04:26:34 +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
df46717bf0
BUGFIX Fixed ClassName change detection in javascript
...
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92775 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:17:54 +00:00
Ingo Schommer
c50e2fce6b
MINOR Moved form related javascript from CMSMain.js to new CMSMain.EditForm.js
...
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92729 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:16:03 +00:00