silverstripe-framework/javascript/RedirectorPage.js

13 lines
300 B
JavaScript
Raw Normal View History

Behaviour.register({
'input#Form_EditForm_ExternalURL': {
onclick: function() {
$('Form_EditForm_RedirectionType_External').checked = true;
}
},
'#TreeDropdownField_Form_EditForm_LinkToID': {
onclick: function() {
$('Form_EditForm_RedirectionType_Internal').checked = true;
}
}
});