Bug fix for #962
This commit is contained in:
parent
3fc2c2bb74
commit
3500813695
@ -67,7 +67,7 @@ echo Bootstrap::formOpen(array(
|
||||
<?php endif; ?> -->
|
||||
|
||||
<span class="d-inline-block align-middle ml-1">
|
||||
<div class="switch" style="width:<?php echo (Text::length($L->g('Publish')) * 15 ) ?>px">
|
||||
<div class="switch" style="width:<?php echo max(100,Text::length($L->g('Publish'))* 15) ?>px">
|
||||
<input type="radio" class="switch-input" name="switch" value="" id="jsPublishSwitch" <?php echo (!$page->draft()?'checked':'') ?>>
|
||||
<label for="jsPublishSwitch" class="switch-label switch-label-off"><?php $L->p('Publish') ?></label>
|
||||
<input type="radio" class="switch-input" name="switch" value="" id="jsDraftSwitch" <?php echo ($page->draft()?'checked':'') ?>>
|
||||
|
@ -55,9 +55,8 @@ echo Bootstrap::formOpen(array(
|
||||
|
||||
<div id="jseditorToolbarLeft">
|
||||
<button type="button" class="btn btn-sm btn-primary" id="jsbuttonSave"><?php $L->p('Save') ?></button>
|
||||
|
||||
<span class="d-inline-block align-middle ml-1">
|
||||
<div class="switch" style="width:<?php echo (Text::length($L->g('Publish')) * 15 ) ?>px">
|
||||
<div class="switch" style="width:<?php echo max(100,Text::length($L->g('Publish'))* 15) ?>px">
|
||||
<input type="radio" class="switch-input" name="switch" value="" id="jsPublishSwitch" checked>
|
||||
<label for="jsPublishSwitch" class="switch-label switch-label-off"><?php $L->p('Publish') ?></label>
|
||||
<input type="radio" class="switch-input" name="switch" value="" id="jsDraftSwitch">
|
||||
|
Loading…
Reference in New Issue
Block a user