mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
25 lines
586 B
JavaScript
25 lines
586 B
JavaScript
|
/*global window, document, Ghost, $, _, Backbone, JST */
|
||
|
(function () {
|
||
|
"use strict";
|
||
|
|
||
|
Ghost.Views.Debug = Ghost.View.extend({
|
||
|
events: {
|
||
|
"click .settings-menu a": "handleMenuClick"
|
||
|
},
|
||
|
|
||
|
handleMenuClick: function (ev) {
|
||
|
ev.preventDefault();
|
||
|
|
||
|
var $target = $(ev.currentTarget);
|
||
|
|
||
|
// Hide the current content
|
||
|
this.$(".settings-content").hide();
|
||
|
|
||
|
// Show the clicked content
|
||
|
this.$("#debug-" + $target.attr("class")).show();
|
||
|
|
||
|
return false;
|
||
|
}
|
||
|
});
|
||
|
|
||
|
}());
|