clean check save button for wiki editor

skala
Juan Carlos Raña 16 years ago
parent 6f4b175928
commit a58bcb89fe
  1. 13
      main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin.js
  2. 2
      main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin_compressed.js
  3. 3
      main/wiki/index.php
  4. 3
      main/wiki/wiki.inc.php

@ -669,11 +669,16 @@ FCKSaveCommand.prototype.Execute = function()
// Let us check whether the button is styled, i.e. whether it is "nice".
if ( oForm.elements[i].getAttribute( 'class' )
// A workaround for the introduction sections.
|| oForm.elements[i].getAttribute( 'name' ) == 'intro_cmdUpdate' )
|| oForm.elements[i].getAttribute( 'name' ) == 'intro_cmdUpdate'
// and for Forums
|| oForm.elements[i].getAttribute( 'name' ) == 'SubmitForumCategory' )
|| oForm.elements[i].getAttribute( 'name' ) == 'SubmitForum' )
|| oForm.elements[i].getAttribute( 'name' ) == 'SubmitPost' )
|| oForm.elements[i].getAttribute( 'name' ) == 'SubmitForumCategory'
|| oForm.elements[i].getAttribute( 'name' ) == 'SubmitForum'
|| oForm.elements[i].getAttribute( 'name' ) == 'SubmitPost'
// and for Wikis
|| oForm.elements[i].getAttribute( 'name' ) == 'SaveWikiChange'
|| oForm.elements[i].getAttribute( 'name' ) == 'SaveWikiNew'
)
{
try
{

File diff suppressed because one or more lines are too long

@ -1666,8 +1666,7 @@ if ($_GET['action']=='edit')
</select> %';
echo '<br/><br/>';
echo '<input type="hidden" name="wpost_id" value="'.md5(uniqid(rand(), true)).'">';//prevent double post
echo '<input type="hidden" name="SaveWikiChange" value="'.get_lang('langSave').'">'; //for save icon
echo '<button class="save" type="submit" name="SaveWikiChange">'.get_lang('langSave').'</button>';//for save button
echo '<button class="save" type="submit" name="SaveWikiChange">'.get_lang('langSave').'</button>';//for save button Don't change name (see fckeditor/editor/plugins/customizations/fckplugin_compressed.js and fckplugin.js
echo '</div>';
echo '</form>';
}

@ -748,8 +748,7 @@ return true;
</select> %';
echo '<br/><br/>';
echo '<input type="hidden" name="wpost_id" value="'.md5(uniqid(rand(), true)).'">';//prevent double post
echo '<input type="hidden" name="SaveWikiNew" value="'.get_lang('langSave').'">'; //for save icon
echo '<button class="save" type="submit" name="SaveWikiNew">'.get_lang('langSave').'</button>';//for button icon
echo '<button class="save" type="submit" name="SaveWikiNew">'.get_lang('langSave').'</button>';//for button icon. Don't change name (see fckeditor/editor/plugins/customizations/fckplugin_compressed.js and fckplugin.js
echo '</div>';
echo '</form>';
}

Loading…
Cancel
Save