404page-ui.js
5 years ago
404page.js
6 years ago
block.js
3 years ago
index.php
9 years ago
lity.min.js
7 years ago
404page-ui.js
21 lines
| 1 | jQuery( document ).ready( function( $ ) { |
| 2 | |
| 3 | $( '#select404page' ).change( function() { |
| 4 | $( '#edit_404_page, #test_404_page' ).prop( 'disabled', !( $( '#select404page' ).val() == $( '#404page_current_value').text() != 0 ) ); |
| 5 | }); |
| 6 | |
| 7 | $( '#select404page' ).trigger( 'change' ); |
| 8 | |
| 9 | $( '#edit_404_page' ).click( function() { |
| 10 | window.location.href = $( '#404page_edit_link' ).text(); |
| 11 | }); |
| 12 | |
| 13 | $( '#test_404_page' ).click( function() { |
| 14 | window.location.href = $( '#404page_test_link' ).text(); |
| 15 | }); |
| 16 | |
| 17 | $( '#404page-http410_always' ).change( function() { |
| 18 | $( '#404page-http410_if_trashed' ).prop( 'disabled', $( '#404page-http410_always' ).prop( 'checked' ) ); |
| 19 | }); |
| 20 | |
| 21 | }); |