reconfig controlcap cancel button
This commit is contained in:
parent
2d8349073d
commit
935f73ad33
|
@ -488,7 +488,7 @@ switch ( $tab ) {
|
|||
</table>
|
||||
<div id="contentButtons">
|
||||
<button type="submit" value="Save"<?php if ( !canEdit( 'Control' ) ) { ?> disabled="disabled"<?php } ?>><?php echo translate('Save') ?></button>
|
||||
<button type="button" data-on-click="closeWindow"><?php echo translate('Cancel') ?></button>
|
||||
<button type="button" id="cancelBtn"><?php echo translate('Cancel') ?></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -123,6 +123,12 @@ function initPage() {
|
|||
evt.preventDefault();
|
||||
window.location.reload(true);
|
||||
});
|
||||
|
||||
// Manage the CANCEL Button
|
||||
document.getElementById("cancelBtn").addEventListener("click", function onCancelClick(evt) {
|
||||
evt.preventDefault();
|
||||
window.location.assign('?view=controlcaps');
|
||||
});
|
||||
}
|
||||
|
||||
$j(document).ready(function() {
|
||||
|
|
Loading…
Reference in New Issue