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.
27 lines
714 B
27 lines
714 B
5 years ago
|
<?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>
|