1234567891011121314151617181920212223242526 |
- <?php if(!defined('__TYPECHO_ADMIN__')) exit; ?>
- <script>
- (function () {
- $(document).ready(function () {
- var error = $('.typecho-option .error:first');
- if (error.length > 0) {
- $('html,body').scrollTop(error.parents('.typecho-option').offset().top);
- }
- $('form').submit(function () {
- if (this.submitted) {
- return false;
- } else {
- this.submitted = true;
- }
- });
- $('label input[type=text]').click(function (e) {
- var check = $('#' + $(this).parents('label').attr('for'));
- check.prop('checked', true);
- return false;
- });
- });
- })();
- </script>
|