2013-06-25 16:23:09 +04:00
|
|
|
/*global window, document, Ghost, $, _, Backbone, JST */
|
|
|
|
(function () {
|
2013-06-24 00:55:03 +04:00
|
|
|
"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;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2013-06-25 16:23:09 +04:00
|
|
|
}());
|