mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 09:52:06 +03:00
21 lines
486 B
JavaScript
21 lines
486 B
JavaScript
/*globals document, jQuery */
|
|
(function ($) {
|
|
"use strict";
|
|
|
|
var changePage = function (e) {
|
|
var newPage = $(this).children('a').attr('href');
|
|
|
|
e.preventDefault();
|
|
$('.settings-menu .active').removeClass('active');
|
|
$(this).addClass('active');
|
|
|
|
$('.settings-content').fadeOut().delay(250);
|
|
$(newPage).fadeIn();
|
|
|
|
};
|
|
|
|
$(document).ready(function() {
|
|
$('.settings-menu li').on('click', changePage);
|
|
});
|
|
|
|
}(jQuery)); |