Revision 1409
Added by FrankH almost 15 years ago
| modify.php | ||
|---|---|---|
| 46 | 46 |
|
| 47 | 47 |
?> |
| 48 | 48 |
|
| 49 |
<form name="wysiwyg<?php echo $section_id; ?>" action="<?php echo WB_URL; ?>/modules/wysiwyg/save.php" method="post"> |
|
| 49 |
<script language="javascript" type="text/javascript"> |
|
| 50 |
//<![CDATA[ |
|
| 51 |
// Added to confirm leaving the page without saving changes first (even if there aren't any) |
|
| 52 |
var needToConfirm = <?php echo WARN_PAGE_LEAVE; ?>; |
|
| 53 |
window.onbeforeunload = confirmExit; |
|
| 54 |
function confirmExit() |
|
| 55 |
{
|
|
| 56 |
if (needToConfirm) |
|
| 57 |
return "<?php print(html_entity_decode($MESSAGE['SETTINGS']['MODE_SWITCH_WARNING'], ENT_NOQUOTES, 'UTF-8')); ?>"; |
|
| 58 |
} |
|
| 59 |
//]]> |
|
| 60 |
</script> |
|
| 50 | 61 |
|
| 62 |
<form name="wysiwyg<?php echo $section_id; ?>" action="<?php echo WB_URL; ?>/modules/wysiwyg/save.php" method="post" onclick="needToConfirm=false;"> |
|
| 63 |
|
|
| 51 | 64 |
<input type="hidden" name="page_id" value="<?php echo $page_id; ?>" /> |
| 52 | 65 |
<input type="hidden" name="section_id" value="<?php echo $section_id; ?>" /> |
| 53 | 66 |
|
| 54 | 67 |
<?php |
| 55 | 68 |
echo $admin->getFTAN()."\n"; |
| 56 |
show_wysiwyg_editor('content'.$section_id,'content'.$section_id,$content,'100%','350px');
|
|
| 69 |
show_wysiwyg_editor('content'.$section_id,'content'.$section_id,$content,'100%','350');
|
|
| 57 | 70 |
?> |
| 58 | 71 |
|
| 59 | 72 |
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="padding-bottom: 10px;"> |
Also available in: Unified diff
+ Ticket 1058 added warn_page_leave (currently only in wysiwyg)