CC-6070 - standardize editor buttons
This commit is contained in:
parent
096c96b1b6
commit
4adb9cc55a
6 changed files with 38 additions and 20 deletions
|
@ -172,7 +172,7 @@ class Application_Form_EditAudioMD extends Zend_Form
|
|||
// Add the submit button
|
||||
$this->addElement('button', 'editmdsave', array(
|
||||
'ignore' => true,
|
||||
'class' => 'btn btn-small md-save',
|
||||
'class' => 'btn md-save right-floated',
|
||||
'label' => _('Save'),
|
||||
'decorators' => array(
|
||||
'ViewHelper'
|
||||
|
@ -182,7 +182,7 @@ class Application_Form_EditAudioMD extends Zend_Form
|
|||
// Add the submit button
|
||||
$this->addElement('button', 'editmdcancel', array(
|
||||
'ignore' => true,
|
||||
'class' => 'btn btn-small md-cancel',
|
||||
'class' => 'btn md-cancel right-floated',
|
||||
'label' => _('Cancel'),
|
||||
'decorators' => array(
|
||||
'ViewHelper'
|
||||
|
@ -190,10 +190,10 @@ class Application_Form_EditAudioMD extends Zend_Form
|
|||
));
|
||||
|
||||
$this->addDisplayGroup(array('editmdsave', 'editmdcancel'), 'submitButtons', array(
|
||||
'decorators' => array(
|
||||
'FormElements',
|
||||
'DtDdWrapper'
|
||||
)
|
||||
'decorators' => array(
|
||||
'FormElements',
|
||||
'DtDdWrapper'
|
||||
)
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
@ -58,8 +58,11 @@ if (isset($this->obj)) {
|
|||
echo $this->render('playlist/update.phtml') ?>
|
||||
</ul>
|
||||
<div class="btn-toolbar spl-no-margin clearfix">
|
||||
<div class="btn-group pull-right">
|
||||
<button class="btn" type="button" id="cancel_button" name="submit"><?php echo _("Cancel") ?></button>
|
||||
</div>
|
||||
<div class='btn-group pull-right'>
|
||||
<button class="btn btn-inverse" title='<?php echo _("Save playlist") ?>' type="button" id="save_button"><?php echo _("Save") ?></button>
|
||||
<button class="btn" title='<?php echo _("Save playlist") ?>' type="button" id="save_button"><?php echo _("Save") ?></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -59,8 +59,11 @@ if (isset($this->obj)) {
|
|||
echo $this->render('playlist/update.phtml') ?>
|
||||
</ul>
|
||||
<div class="btn-toolbar spl-no-margin clearfix">
|
||||
<div class="btn-group pull-right">
|
||||
<button class="btn" type="button" id="cancel_button" name="submit"><?php echo _("Cancel") ?></button>
|
||||
</div>
|
||||
<div class='btn-group pull-right'>
|
||||
<button class="btn btn-inverse" title='Save smart block's title, description, and criteria' type="button" id="save_button"><?php echo _("Save") ?></button>
|
||||
<button class="btn" title='Save smart block's title, description, and criteria' type="button" id="save_button"><?php echo _("Save") ?></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -35,7 +35,10 @@
|
|||
|
||||
<div class="btn-toolbar spl-no-margin clearfix">
|
||||
<div class="btn-group pull-right">
|
||||
<button class="btn btn-inverse" type="submit" id="webstream_save" name="submit"><?php echo _("Save") ?></button>
|
||||
<button class="btn" type="button" id="webstream_cancel" name="submit"><?php echo _("Cancel") ?></button>
|
||||
</div>
|
||||
<div class="btn-group pull-right">
|
||||
<button class="btn" type="submit" id="webstream_save" name="submit"><?php echo _("Save") ?></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -567,23 +567,27 @@ li.ui-state-default {
|
|||
padding: 4px;
|
||||
}
|
||||
|
||||
#save_button, #webstream_save {
|
||||
background: #ff5d1a;
|
||||
color: #fff;
|
||||
border-radius: 4px;
|
||||
font-size: 16px;
|
||||
height: 38px;
|
||||
width: 120px;
|
||||
}
|
||||
/*#save_button, #webstream_save {*/
|
||||
/*background: #ff5d1a;*/
|
||||
/*color: #fff;*/
|
||||
/*border-radius: 4px;*/
|
||||
/*font-size: 16px;*/
|
||||
/*height: 38px;*/
|
||||
/*width: 120px;*/
|
||||
/*}*/
|
||||
|
||||
#save_button:active, #webstream_save {
|
||||
color: #fff !important;
|
||||
}
|
||||
/*#save_button:active, #webstream_save {*/
|
||||
/*color: #fff !important;*/
|
||||
/*}*/
|
||||
|
||||
#save_button:focus, #webstream_save {
|
||||
outline-width: 0;
|
||||
}
|
||||
|
||||
#edit-md-dialog .zend_form dd:last-child {
|
||||
width: 160px;
|
||||
}
|
||||
|
||||
/* Smart Block Editor */
|
||||
|
||||
.btn-toolbar {
|
||||
|
|
|
@ -904,6 +904,11 @@ var AIRTIME = (function(AIRTIME){
|
|||
|
||||
});
|
||||
|
||||
$pl.find("#webstream_cancel, #cancel_button").on("click", function() {
|
||||
var tabId = $pl.attr("tab-id");
|
||||
$("li[tab-id=" + tabId + "] .lib_pl_close").click();
|
||||
});
|
||||
|
||||
$lib.on("click", "#pl_edit", function() {
|
||||
openPlaylistPanel();
|
||||
$.ajax({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue