CC-4735: Library: Edit metadata selection should be a popup instead of going to a new page
-cancel button does not reload the page anymore
This commit is contained in:
parent
8e6dd6f862
commit
adb966a734
|
@ -138,17 +138,16 @@ class Application_Form_EditAudioMD extends Zend_Form
|
|||
));
|
||||
|
||||
// Add the submit button
|
||||
$this->addElement('button', 'cancel', array(
|
||||
$this->addElement('button', 'editmdcancel', array(
|
||||
'ignore' => true,
|
||||
'class' => 'btn md-cancel',
|
||||
'label' => _('Cancel'),
|
||||
'onclick' => 'javascript:document.location.href="'.$baseUrl.'/Library"',
|
||||
'decorators' => array(
|
||||
'ViewHelper'
|
||||
)
|
||||
));
|
||||
|
||||
$this->addDisplayGroup(array('editmdsave', 'cancel'), 'submitButtons', array(
|
||||
$this->addDisplayGroup(array('editmdsave', 'editmdcancel'), 'submitButtons', array(
|
||||
'decorators' => array(
|
||||
'FormElements',
|
||||
'DtDdWrapper'
|
||||
|
|
|
@ -1273,4 +1273,8 @@ $(document).ready(function() {
|
|||
$("#edit-md-dialog").dialog().remove();
|
||||
});
|
||||
});
|
||||
|
||||
$('#editmdcancel').live("click", function() {
|
||||
$("#edit-md-dialog").dialog().remove();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue