You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
506 B
12 lines
506 B
jQuery(document).ready(function($) {
|
|
$( '#select404page' ).change(function() {
|
|
$( '#edit_404_page, #test_404_page' ).prop( 'disabled', !( $( '#select404page' ).val() == $( '#404page_current_value').text() != 0 ) );
|
|
});
|
|
$( '#select404page' ).trigger( 'change' );
|
|
$( '#edit_404_page' ).click(function() {
|
|
window.location.href = $( '#404page_edit_link' ).text();
|
|
});
|
|
$( '#test_404_page' ).click(function() {
|
|
window.location.href = $( '#404page_test_link' ).text();
|
|
});
|
|
}); |