Fixed bug #14499: saving in t3editor per ajax call not possible
authorTobias Liebig <mail@etobi.de>
Fri, 28 May 2010 14:02:56 +0000 (14:02 +0000)
committerTobias Liebig <mail@etobi.de>
Fri, 28 May 2010 14:02:56 +0000 (14:02 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7719 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/tstemplate/ts/index.php

index 95b20f5..eced6aa 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,7 @@
 
        * Follow-up to bug #3800: change the label names (warning about empty reference index table) (thanks to Michael Knabe)
        * Fixed bug #13903: wrong links with multiple domain records on one page with typolinkCheckRootline (thanks to Irene Höppner)
+       * Fixed bug #14499: saving in t3editor per ajax call not possible (follow-up to #14465 new Sprite API)
 
 2010-05-28  Susanne Moog  <typo3@susanne-moog.de>
 
index 2c97d35..a1e8d45 100644 (file)
@@ -262,25 +262,47 @@ class SC_mod_web_ts_index extends t3lib_SCbase {
 
                        if ($this->extClassConf['name'] == 'tx_tstemplateinfo') {
                                        // NEW button
-                               $buttons['new'] = '<input type="image" class="c-inputButton" name="createExtension" value="New"' . t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'], 'gfx/new_el.gif', '') . ' title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:db_new.php.pagetitle', true) . '" />';
+                               $buttons['new'] = '<input type="image" class="c-inputButton" name="createExtension" value="New"' . t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'], 'gfx/new_el.gif', '') . ' title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:db_new.php.pagetitle', TRUE) . '" />';
 
                                if (!empty($this->e) && !t3lib_div::_POST('abort') && !t3lib_div::_POST('saveclose')) {
                                                // no NEW-button while edit
                                        $buttons['new'] = '';
 
                                                // SAVE button
-                                       $buttons['save'] = t3lib_iconWorks::getSpriteIcon('actions-document-save',array('html'=>'<input type="image" class="c-inputButton" name="submit" src="clear.gif" title="'. $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.saveDoc', true) .'" />'));
+                                       $buttons['save'] = t3lib_iconWorks::getSpriteIcon('actions-document-save',
+                                               array(
+                                                       'html' => '<input type="image" class="c-inputButton" name="submit" src="clear.gif" ' .
+                                                               'title="'. $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.saveDoc', TRUE) .'" ' . 
+                                                               'value="'. $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.saveDoc', TRUE) .'" ' . 
+                                                               '/>'
+                                               ));
 
                                                // SAVE AND CLOSE button
-                                       $buttons['save_close'] = t3lib_iconWorks::getSpriteIcon('actions-document-save-close',array('html'=>'<input type="image" class="c-inputButton" name="saveclose" src="clear.gif" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.saveCloseDoc', true) . '" />'));
+                                       $buttons['save_close'] = t3lib_iconWorks::getSpriteIcon('actions-document-save-close',
+                                               array(
+                                                       'html' => '<input type="image" class="c-inputButton" name="saveclose" src="clear.gif" '.
+                                                               'title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.saveCloseDoc', TRUE) . '" ' .
+                                                               'value="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.saveCloseDoc', TRUE) . '" ' .
+                                                               '/>'
+                                               ));
 
                                                // CLOSE button
-                                       $buttons['close'] = t3lib_iconWorks::getSpriteIcon('actions-document-close',array('html'=>'<input type="image" class="c-inputButton" name="abort" src="clear.gif" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.closeDoc', true) . '" />'));
+                                       $buttons['close'] = t3lib_iconWorks::getSpriteIcon('actions-document-close',
+                                               array(
+                                                       'html' => '<input type="image" class="c-inputButton" name="abort" src="clear.gif" ' . 
+                                                               'title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.closeDoc', TRUE) . '" ' .
+                                                               'value="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.closeDoc', TRUE) . '" ' .
+                                                               '/>'
+                                               ));
 
                                }
                        } elseif($this->extClassConf['name'] == 'tx_tstemplateceditor' && count($this->MOD_MENU['constant_editor_cat'])) {
                                        // SAVE button
-                               $buttons['save'] = t3lib_iconWorks::getSpriteIcon('actions-document-save',array('html'=>'<input type="image" class="c-inputButton" name="submit" src="clear.gif" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.saveDoc', true) . '" />'));
+                               $buttons['save'] = t3lib_iconWorks::getSpriteIcon('actions-document-save',
+                                       array('html' => '<input type="image" class="c-inputButton" name="submit" src="clear.gif" '.
+                                               'title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.saveDoc', TRUE) . '" ' .
+                                               'value="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.saveDoc', TRUE) . '" ' .
+                                               '/>'));
                        } elseif($this->extClassConf['name'] == 'tx_tstemplateobjbrowser') {
                                if(!empty($this->sObj)) {
                                                // BACK