Fixed jshint warning
This commit is contained in:
parent
48004f1117
commit
740cc85775
1 changed files with 3 additions and 2 deletions
|
@ -2,6 +2,7 @@ var App = App || {};
|
||||||
App.Presenters = App.Presenters || {};
|
App.Presenters = App.Presenters || {};
|
||||||
|
|
||||||
App.Presenters.PostEditPresenter = function(
|
App.Presenters.PostEditPresenter = function(
|
||||||
|
jQuery,
|
||||||
util,
|
util,
|
||||||
promise,
|
promise,
|
||||||
api,
|
api,
|
||||||
|
@ -126,7 +127,7 @@ App.Presenters.PostEditPresenter = function(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document.activeElement).blur();
|
jQuery(document.activeElement).blur();
|
||||||
|
|
||||||
promise.wait(api.post('/posts/' + post.id, formData))
|
promise.wait(api.post('/posts/' + post.id, formData))
|
||||||
.then(function(response) {
|
.then(function(response) {
|
||||||
|
@ -152,4 +153,4 @@ App.Presenters.PostEditPresenter = function(
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
App.DI.register('postEditPresenter', ['util', 'promise', 'api', 'auth', 'tagList'], App.Presenters.PostEditPresenter);
|
App.DI.register('postEditPresenter', ['jQuery', 'util', 'promise', 'api', 'auth', 'tagList'], App.Presenters.PostEditPresenter);
|
||||||
|
|
Loading…
Reference in a new issue