mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
2c7245e0e5
In order to remove the iiwf we need to be able to lint backend and frontend code separately. Changed our devDependency for grunt-jslint to use a fork which has multiTask (PR sent to main repo) Updated Gruntfile with split rules for the jslint tasks As a result, a few files failed to pass the new rules, these have been fixed and added to the commit
25 lines
No EOL
650 B
JavaScript
25 lines
No EOL
650 B
JavaScript
/*global jQuery, window, document, Ghost, Backbone, $, _, alert */
|
|
(function ($, _, Backbone, Ghost) {
|
|
"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)); |