mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-09-01 23:37:56 +02:00
25 lines
503 B
JavaScript
25 lines
503 B
JavaScript
|
(function($) {
|
||
|
$.entwine('ss', function($){
|
||
|
$('#Form_EditForm_RedirectionType input').entwine({
|
||
|
onmatch: function() {
|
||
|
var self = $(this);
|
||
|
if(self.attr('checked')) this.toggle();
|
||
|
this._super();
|
||
|
},
|
||
|
onclick: function() {
|
||
|
this.toggle();
|
||
|
},
|
||
|
toggle: function() {
|
||
|
if($(this).attr('value') == 'Internal') {
|
||
|
$('#ExternalURL').hide();
|
||
|
$('#LinkToID').show();
|
||
|
} else {
|
||
|
$('#ExternalURL').show();
|
||
|
$('#LinkToID').hide();
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
});
|
||
|
})(jQuery);
|
||
|
|