diff --git a/code/AssetTableField.php b/code/AssetTableField.php index c689e6aa..b67b9f09 100755 --- a/code/AssetTableField.php +++ b/code/AssetTableField.php @@ -106,9 +106,7 @@ class AssetTableField extends ComplexTableField { $tab->push( new LiteralField("ImageFull", - '' . "{$childData->Name}

"._t('AssetTableField.EDITIMAGE', 'Edit this image')."

" . '
' . - '' - ) + "{$childData->Name}" ) ); if(class_exists('GalleryFile')) { diff --git a/code/CMSMain.php b/code/CMSMain.php index 217dc15e..34cf1218 100644 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -376,6 +376,7 @@ JS; // $record = Versioned::get_one_by_stage($treeClass, "Live", "\"$treeClass\".\"ID\" = $id"); Versioned::reading_stage('Live'); singleton($treeClass)->flushCache(); + $record = DataObject::get_one( $treeClass, "\"$treeClass\".\"ID\" = $id"); if($record) Versioned::reading_stage(null); } @@ -821,6 +822,7 @@ HTML; $JS_stageURL = $page->IsDeletedFromStage ? '' : Convert::raw2js($page->AbsoluteLink()); $liveRecord = Versioned::get_one_by_stage('SiteTree', 'Live', "\"SiteTree\".\"ID\" = $page->ID"); + $JS_liveURL = $liveRecord ? Convert::raw2js($liveRecord->AbsoluteLink()) : ''; FormResponse::add($this->getActionUpdateJS($page)); diff --git a/code/CommentAdmin.php b/code/CommentAdmin.php index 8a50700b..fa8ba31d 100644 --- a/code/CommentAdmin.php +++ b/code/CommentAdmin.php @@ -44,6 +44,10 @@ class CommentAdmin extends LeftAndMain { } $section = substr($url, strrpos($url, '/') + 1); + if($section != 'approved' && $section != 'unmoderated' && $section != 'spam') { + $section = Session::get('CommentsSection'); + } + if($section != 'approved' && $section != 'unmoderated' && $section != 'spam') { $section = 'approved'; } diff --git a/code/CommentTableField.php b/code/CommentTableField.php index df246132..4882228b 100644 --- a/code/CommentTableField.php +++ b/code/CommentTableField.php @@ -11,6 +11,8 @@ class CommentTableField extends ComplexTableField { function __construct($controller, $name, $sourceClass, $mode, $fieldList, $detailFormFields = null, $sourceFilter = "", $sourceSort = "Created", $sourceJoin = "") { $this->mode = $mode; + Session::set('CommentsSection', $mode); + parent::__construct($controller, $name, $sourceClass, $fieldList, $detailFormFields, $sourceFilter, $sourceSort, $sourceJoin); $this->Markable = true; diff --git a/css/cms_left.css b/css/cms_left.css index 6443e4be..02393008 100644 --- a/css/cms_left.css +++ b/css/cms_left.css @@ -1,5 +1,5 @@ #left form.actionparams { - background: #ccc; + background: #eee; padding: 3px 5px; } #left form.actionparams input, @@ -400,6 +400,10 @@ ul.tree li.untranslated a:visited { #SortItems { border-bottom: 1px solid #cccccc; - background: #CCCCCC none repeat scroll 0%; + background: #eee none repeat scroll 0%; padding: 3px 0 3px 7px; } + #SortItems #sortitems { + float: left; + margin-right: 3px; + } \ No newline at end of file diff --git a/css/layout.css b/css/layout.css index 317ff684..1095103f 100644 --- a/css/layout.css +++ b/css/layout.css @@ -26,7 +26,6 @@ body { #TreeActions { background: #eee; - border-bottom: 1px solid #ccc; float: left; width: 100%; } @@ -72,10 +71,12 @@ li.action button { input.action:hover, button.action:hover, li.action input:hover, - li.action button:hover { + li.action button:hover, + li.selected input, + li.selected button { background: #fff; } - + .ajaxActions input.disabled { color: #666; } @@ -439,6 +440,12 @@ iframe { height: 120px; overflow-y: auto; } + +#Caption { + margin: 0; + text-align: right; +} + #contentPanel fieldset { padding: 5px; } diff --git a/javascript/tinymce.template.js b/javascript/tinymce.template.js index be4bd5b3..e9ea7f99 100755 --- a/javascript/tinymce.template.js +++ b/javascript/tinymce.template.js @@ -26,11 +26,11 @@ if((typeof tinyMCE != 'undefined')) { theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_toolbar_parent : "right", - plugins : "blockquote,template,contextmenu,table,emotions,paste,../../tinymce_ssbuttons,../../tinymce_advcode,spellchecker", + plugins : "blockquote,contextmenu,table,emotions,paste,../../tinymce_ssbuttons,../../tinymce_advcode,spellchecker", blockquote_clear_tag : "p", table_inline_editing : true, theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,separator,bullist,numlist,outdent,indent,blockquote,hr,charmap", - theme_advanced_buttons2 : "undo,redo,separator,cut,copy,paste,pastetext,pasteword,spellchecker,separator,ssimage,ssflash,sslink,unlink,anchor,separator,template,advcode,separator,search,replace,selectall,visualaid,separator,tablecontrols", + theme_advanced_buttons2 : "undo,redo,separator,cut,copy,paste,pastetext,pasteword,spellchecker,separator,ssimage,ssflash,sslink,unlink,anchor,separator,advcode,search,replace,selectall,visualaid,separator,tablecontrols", theme_advanced_buttons3 : "", spellchecker_languages : "$SpellcheckLangs", @@ -51,6 +51,10 @@ Behaviour.register({ this.isChanged = function() { return tinyMCE.getInstanceById(this.id).isDirty(); } + this.resetChanged = function() { + inst = tinyMCE.getInstanceById(this.id); + inst.startContent = tinymce.trim(inst.getContent({format : 'raw', no_events : 1})); + } } } }) diff --git a/templates/Includes/CMSTopMenu.ss b/templates/Includes/CMSTopMenu.ss index f941b8ae..3a7e8e14 100644 --- a/templates/Includes/CMSTopMenu.ss +++ b/templates/Includes/CMSTopMenu.ss @@ -1,6 +1,6 @@