2013-06-23 15:55:03 -05:00
|
|
|
/*global jQuery, window, document, Ghost, Backbone, $, _, alert */
|
2013-06-25 07:38:41 -05:00
|
|
|
(function ($, _, Backbone, Ghost) {
|
2013-06-23 15:55:03 -05: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;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
}(jQuery, _, Backbone, window.Ghost));
|