This commit is contained in:
19
DbManager/dbmanager-js.php
Normal file
19
DbManager/dbmanager-js.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$('#dbmanager-plugin .typecho-option-tabs li').click(function() {
|
||||
var tabBox = $('#dbmanager-plugin > div');
|
||||
|
||||
$(this).siblings('li')
|
||||
.removeClass('active').end()
|
||||
.addClass('active');
|
||||
|
||||
tabBox.siblings('div')
|
||||
.addClass('hidden').end()
|
||||
.eq($(this).index()).removeClass('hidden');
|
||||
console.log($(this).index());
|
||||
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user