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
|
// Add the submit button
|
||||||
$this->addElement('button', 'cancel', array(
|
$this->addElement('button', 'editmdcancel', array(
|
||||||
'ignore' => true,
|
'ignore' => true,
|
||||||
'class' => 'btn md-cancel',
|
'class' => 'btn md-cancel',
|
||||||
'label' => _('Cancel'),
|
'label' => _('Cancel'),
|
||||||
'onclick' => 'javascript:document.location.href="'.$baseUrl.'/Library"',
|
|
||||||
'decorators' => array(
|
'decorators' => array(
|
||||||
'ViewHelper'
|
'ViewHelper'
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
|
|
||||||
$this->addDisplayGroup(array('editmdsave', 'cancel'), 'submitButtons', array(
|
$this->addDisplayGroup(array('editmdsave', 'editmdcancel'), 'submitButtons', array(
|
||||||
'decorators' => array(
|
'decorators' => array(
|
||||||
'FormElements',
|
'FormElements',
|
||||||
'DtDdWrapper'
|
'DtDdWrapper'
|
||||||
|
|
|
@ -1273,4 +1273,8 @@ $(document).ready(function() {
|
||||||
$("#edit-md-dialog").dialog().remove();
|
$("#edit-md-dialog").dialog().remove();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#editmdcancel').live("click", function() {
|
||||||
|
$("#edit-md-dialog").dialog().remove();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue