Save newsletter before navigating away when clicked on "Next" button

This commit is contained in:
Tautvidas Sipavičius
2017-08-21 18:31:17 +03:00
parent 14810a22b5
commit dcb0b45c21
4 changed files with 40 additions and 34 deletions

View File

@@ -57,6 +57,8 @@ jQuery.fn.stick_in_parent = function() { return this; };
global.stubChannel = function (EditorApplication, returnObject) {
var App = EditorApplication;
App.getChannel = sinon.stub().returns(_.defaults(returnObject || {}, {
request: function () {
},
trigger: function () {
},
on: function () {