mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 21:40:39 +03:00
Fixing unused variables
This commit is contained in:
parent
559edb10a6
commit
1e954aace0
@ -119,8 +119,7 @@
|
|||||||
handleStatus: function (e) {
|
handleStatus: function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var status = $(e.currentTarget).attr('data-set-status'),
|
var status = $(e.currentTarget).attr('data-set-status'),
|
||||||
model = this.model,
|
model = this.model;
|
||||||
self = this;
|
|
||||||
|
|
||||||
if (status === 'publish-on') {
|
if (status === 'publish-on') {
|
||||||
Ghost.notifications.addItem({
|
Ghost.notifications.addItem({
|
||||||
@ -158,8 +157,7 @@
|
|||||||
if (e) {
|
if (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
var model = this.model,
|
var model = this.model;
|
||||||
self = this;
|
|
||||||
this.savePost().then(function () {
|
this.savePost().then(function () {
|
||||||
Ghost.notifications.addItem({
|
Ghost.notifications.addItem({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
|
@ -45,8 +45,7 @@
|
|||||||
submitHandler: function (event) {
|
submitHandler: function (event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
var email = this.$el.find('.email').val(),
|
var email = this.$el.find('.email').val(),
|
||||||
password = this.$el.find('.password').val(),
|
password = this.$el.find('.password').val();
|
||||||
self = this;
|
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '/ghost/login/',
|
url: '/ghost/login/',
|
||||||
@ -80,8 +79,7 @@
|
|||||||
submitHandler: function (event) {
|
submitHandler: function (event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
var email = this.$el.find('.email').val(),
|
var email = this.$el.find('.email').val(),
|
||||||
password = this.$el.find('.password').val(),
|
password = this.$el.find('.password').val();
|
||||||
self = this;
|
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '/ghost/signup/',
|
url: '/ghost/signup/',
|
||||||
|
Loading…
Reference in New Issue
Block a user