mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
25 lines
661 B
JavaScript
25 lines
661 B
JavaScript
|
/*global jQuery, window, document, Ghost, Backbone, $, _, alert */
|
||
|
(function ($, _, Backbone, Ghost, undefined) {
|
||
|
"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;
|
||
|
}
|
||
|
});
|
||
|
|
||
|
}(jQuery, _, Backbone, window.Ghost));
|