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:
denise 2012-12-05 13:21:18 -05:00
parent 8e6dd6f862
commit adb966a734
2 changed files with 6 additions and 3 deletions

View File

@ -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'

View File

@ -1273,4 +1273,8 @@ $(document).ready(function() {
$("#edit-md-dialog").dialog().remove();
});
});
$('#editmdcancel').live("click", function() {
$("#edit-md-dialog").dialog().remove();
});
});