silverstripe-cms/javascript
Ingo Schommer 74fad6a1d0 Merging refactored Translatable from trunk, and related changes to CMSMain
------------------------------------------------------------------------
r69959 | ischommer | 2009-01-11 01:15:30 +1300 (Sun, 11 Jan 2009) | 18 lines

Merged, debugged and enhanced Translatable patches from branches/translatable at r64523, r64523, 64523, thanks wakeless!
API CHANGE Changed Translatable schema from auxilliary tables (SiteTree_lang, SiteTree_lang_Live) to automatically filtered records on the original table (SiteTree, SiteTree_Live), using $Lang and $OriginalID properties. Incompatible update to old schema, migration script is in the works.
API CHANGE Removed Translatable::get_one(), Translatable::write()
ENHANCEMENT Simplified Translatable tree generation by using getSiteTreeFor() in CMSMain->createtranslation()
ENHANCEMENT Added AllChildrenIncludingDeleted(), augmentNumChildrenCountQuery(),  augmentAllChildrenIncludingDeleted(), augmentStageChildren() to Translatable class to allow for more stable tree generation.
ENHANCEMENT Moved definition of Translatable schema from augmentDatabase() to Translatable->extraStatics()
ENHANCEMENT Changes to the CMS language selection refresh the whole admin interface instead of the tree only. This way we can add a URL parameter ?lang=<lang> to /admin, which makes the specific language bookmarkable and reloadable. Changes to LangSelector.js
ENHANCEMENT Added fallback to ModelAsController->getNestedController() to fetch page with matching URLSegment but different language in case no page is found in the current language.
ENHANCEMENT Added helper methods to Translatable: getTranslation(), hasTranslation(), isTranslation(), findOriginalIDs()
ENHANCEMENT Getters and setters for Translatable->getOriginalPage() etc.
ENHANCEMENT Hooking Translatable into ModelAsController and ContentController initialization in order to call choose_site_lang()
ENHANCEMENT Simplified Translatable->augmentSQL(), augmentWrite() by not using auxilliary tables
ENHANCEMENT Showing clickable links for Translations in Translatable->updateCMSFields()
BUGFIX Modifying Hierarchy/SiteTree Children getters to accept optional "context" which can be used to set a language explicitly through the $Lang property, rather than implicitly reyling on the static Translatable::current_lang()
BUGFIX Fixed TranslatableTest to work with new datamodel
BUGFIX Temporarily disabled cookie/session selection in Translatable::choose_site_lang() until we have a good test suite for the side effects.
MINOR Added "untranslated" CSS styles to tree nodes and marking them as inactive/grey

------------------------------------------------------------------------
r70307 | ischommer | 2009-01-16 17:16:19 +1300 (Fri, 16 Jan 2009) | 2 lines

ENHANCEMENT Simplifying creation logic of new languages in CMS by reloading complete interface, rather than refreshing partial interface, language dropdown etc.
API CHANGE Removed CMSMain->switchlanguage()
------------------------------------------------------------------------
r70308 | ischommer | 2009-01-16 17:17:37 +1300 (Fri, 16 Jan 2009) | 2 lines

ENHANCEMENT Moved language selector in CMS above tree for better visibility, added padding and adjusted dropdown width
ENHANCEMENT Removed "Translating mode" status message above edit form - should be clear by the language dropdown above the CMS tree now
------------------------------------------------------------------------
r70322 | ischommer | 2009-01-19 13:09:55 +1300 (Mon, 19 Jan 2009) | 1 line

BUGFIX Ensuring that new pages can't be created when in translation mode by disabling the "create..." tree action
------------------------------------------------------------------------
r70323 | ischommer | 2009-01-19 13:11:08 +1300 (Mon, 19 Jan 2009) | 1 line

BUGFIX Fixed expanded/unexpanded flags on new tree items - was showing expanded styling (plus icon) with newly created pages
------------------------------------------------------------------------
r70324 | ischommer | 2009-01-19 13:26:02 +1300 (Mon, 19 Jan 2009) | 1 line

BUGFIX Making sure that LeftAndMain->CurrentPage() respects language settings - was returning pages in different language from session after switching between languages in cms
------------------------------------------------------------------------
r71297 | sharvey | 2009-02-03 18:12:42 +1300 (Tue, 03 Feb 2009) | 1 line

BUGFIX Only show the LangSelector dropdown if there's multiple languages available on the site
------------------------------------------------------------------------
r73343 | ischommer | 2009-03-19 06:14:02 +1300 (Thu, 19 Mar 2009) | 1 line

BUGFIX Changed CSS selector for TranslationTab javascript behaviour to be less specific
------------------------------------------------------------------------
r73344 | ischommer | 2009-03-19 06:14:59 +1300 (Thu, 19 Mar 2009) | 1 line

BUGFIX Checking for existence of original before trying to get translation in LeftAndMain->currentPage()
------------------------------------------------------------------------
r73345 | ischommer | 2009-03-19 06:18:52 +1300 (Thu, 19 Mar 2009) | 3 lines

ENHANCEMENT Showing all available languages in language selector above sitetree in CMS - you can now create new pages in completely new languages without any relation to an "original"
ENHANCEMENT Added CMSMain->IsTranslatableEnabled
API CHANGE Removed CMSMain->switchlanguage() - createTranslation() is sufficient for new, ajax refreshing of CMS state got way too complicated for switching languages, we now just reload the entire CMS with a different ?lang GET parameter
------------------------------------------------------------------------
r73469 | ischommer | 2009-03-20 21:49:27 +1300 (Fri, 20 Mar 2009) | 1 line

ENHANCEMENT Adjusted CMSMain and LeftAndMain to use locales instead of short lang codes when reading and writing translations. See r73468 for details on the underlying Translatable datamodel change
------------------------------------------------------------------------
r74071 | ischommer | 2009-04-04 10:24:59 +1300 (Sat, 04 Apr 2009) | 1 line

BUGFIX Fixed Form_EditForm_Locale reference in LeftAndMain_right.js (used to be Form_EditForm_Lang)
------------------------------------------------------------------------
r74072 | ischommer | 2009-04-04 10:26:51 +1300 (Sat, 04 Apr 2009) | 1 line

MINOR Using Translatable::choose_site_locale() instead of choose_site_lang() in LeftAndMain->init()
------------------------------------------------------------------------
r74951 | ischommer | 2009-04-22 16:23:56 +1200 (Wed, 22 Apr 2009) | 1 line

BUGFIX Fixed CMSMainTest->testThatGetCMSFieldsWorksOnEveryPageType() - was comparing a string $class with instanceof() instead of comparing the actually created instance
------------------------------------------------------------------------



git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@74988 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:48:13 +13:00
..
ImageEditor FEATURE: merged back patch for image editor. Currently completely broken on trunk this patch does nothing to fix it sadly. I think its a prototype thing 2008-11-06 02:04:03 +00:00
lang MINOR Added french translation (see #3290) 2011-02-02 17:47:50 +13:00
AssetAdmin.js MINOR: Add disabled class to InlineFormAction, adjust Folder to use InlineFormAction rather than LiteralField for "Delete unused thumbnails" button. 2011-02-02 17:48:11 +13:00
AssetTableField.js ENHANCEMENT Added filter/search capability to AssetTableField, this is similar to MemberTableField, except you search by file name. 2008-11-03 23:09:49 +00:00
CMSMain_left.js BUGFIX: CMS UI site content > search > add criteria select element now returns back to prompt & tweaked layout 2011-02-02 17:48:04 +13:00
CMSMain_right.js MINOR Removed old workflow instances in the cms module. See ticket #3044 2011-02-02 17:47:38 +13:00
CMSMain_upload.js MINOR Fixed tab-spacing in cms/upload js files 2011-02-02 17:48:05 +13:00
CMSMain.js Moved CMS module to open source path 2007-07-19 10:40:05 +00:00
CommentAdmin_right.js Renamed feedback to comments 2007-08-13 00:32:48 +00:00
CommentTableField.js BUGFIX Fixed javascript error in CommentTableField.js where input elements were not being correctly picked up, due to the form HTML change 2011-02-02 17:48:11 +13:00
dialog.js Moved CMS module to open source path 2007-07-19 10:40:05 +00:00
ForumAdmin.js additional check for existence of #Form_EditForm 2007-09-27 20:49:03 +00:00
ImprintStats.js Moved CMS module to open source path 2007-07-19 10:40:05 +00:00
LangSelector.js Merging refactored Translatable from trunk, and related changes to CMSMain 2011-02-02 17:48:13 +13:00
LeftAndMain_left.js BUGIX: CMS UI changed search spinner, hide search button while processing (better interaction feedback) 2011-02-02 17:48:05 +13:00
LeftAndMain_right.js Merging refactored Translatable from trunk, and related changes to CMSMain 2011-02-02 17:48:13 +13:00
LeftAndMain.js BUGFIX: Fixed layout of cms rhs area buttons 2011-02-02 17:48:10 +13:00
MemberTableField_popup.js Merged [47102]: Optimization for Behaviour sheets that allows you to provide a unique identifier so that duplicate sheets aren't applied twice. 2008-08-12 23:53:08 +00:00
MemberTableField.js BUGFIX: Fix incorrect URL when adding a new Member via the MemberTableField 2011-02-02 17:48:03 +13:00
ModelAdmin.js Fixed issue with ModelAdmin tab CSS 2011-02-02 17:48:09 +13:00
PageCommentInterface.js MINOR: merged patch from keeny. Put comment data into Cookie and load if user fails maths spam question. Clear comment cookie on successful posting 2011-02-02 17:47:57 +13:00
ReportAdmin_left.js BUGFIX Fixed JS error in ReportAdmin 2011-02-02 17:47:35 +13:00
ReportAdmin_right.js BUGFIX: Explicitly destroy TinyMCE instances when loading a new page, in an attempt to reduce memory leaks 2011-02-02 17:48:12 +13:00
SecurityAdmin_left.js BUGFIX Fixed newly created Group records in SecurityAdmin not having "admin/security/show/" link by adding missing site tree handlers in SecurityAdmin_left.js 2011-02-02 17:48:12 +13:00
SecurityAdmin_right.js MINOR Removed hard-to-debug error trap in SecurityAdmin_right.js 2011-02-02 17:48:02 +13:00
SideReports.js elofgren: USABILITY: Make the 'Site Reports' drop-down use a 'Go' button. Fixes usability issue #12. More info: http://www.elijahlofgren.com/silverstripe/inconsistent-go-buttons/ 2007-09-15 01:15:08 +00:00
SideTabs.js Merged from branches/nzct-trunk. Use 'svn log -c <changeset> -g' for full commit message. Merge includes stability fixes and minor refactor of TableListField and ComplexTableField. 2008-10-08 02:00:39 +00:00
SitetreeAccess.js BUGFIX Fixed SiteTreeAccess.js DOM IDs to field changes made in r65150 2008-11-03 14:54:57 +00:00
ThumbnailStripField.js Removed console debug messages for ThumbnailStripField 2011-02-02 17:47:35 +13:00
tinymce.template.js BUGFIX: Simple toolbar alteration to make toolbar fit at 1024x768 2011-02-02 17:48:10 +13:00
TinyMCEImageEnhancement.js MINOR Fixed tab-spacing in cms/upload js files 2011-02-02 17:48:05 +13:00
TranslationTab.js Merging refactored Translatable from trunk, and related changes to CMSMain 2011-02-02 17:48:13 +13:00
Upload.js MINOR Fixed tab-spacing in cms/upload js files 2011-02-02 17:48:05 +13:00
WidgetAreaEditor.js BUGFIX: #3174 - Unable to drop widgets into widget areas in CMS (marcink) 2011-02-02 17:47:45 +13:00