1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00

Fixing unused variables

This commit is contained in:
Hannah Wolfe 2013-08-06 09:00:12 +01:00
parent bf3ba76037
commit af1051720e
2 changed files with 4 additions and 8 deletions

View file

@ -119,8 +119,7 @@
handleStatus: function (e) {
e.preventDefault();
var status = $(e.currentTarget).attr('data-set-status'),
model = this.model,
self = this;
model = this.model;
if (status === 'publish-on') {
Ghost.notifications.addItem({
@ -158,8 +157,7 @@
if (e) {
e.preventDefault();
}
var model = this.model,
self = this;
var model = this.model;
this.savePost().then(function () {
Ghost.notifications.addItem({
type: 'success',

View file

@ -45,8 +45,7 @@
submitHandler: function (event) {
event.preventDefault();
var email = this.$el.find('.email').val(),
password = this.$el.find('.password').val(),
self = this;
password = this.$el.find('.password').val();
$.ajax({
url: '/ghost/login/',
@ -80,8 +79,7 @@
submitHandler: function (event) {
event.preventDefault();
var email = this.$el.find('.email').val(),
password = this.$el.find('.password').val(),
self = this;
password = this.$el.find('.password').val();
$.ajax({
url: '/ghost/signup/',