pyc-website
main website for pyc inc.
git clone https://9o.is/git/pyc-website.git
commit d4535d0784ce9b1d5acef494aa7841042ab3284a parent 8f0f4e398e24fb10568786ac0c7c191770af9b5a Author: Jul <jul@9o.is> Date: Tue, 10 Jun 2014 13:35:33 -0400 fixed errors in Forms.spec.js Diffstat:
| M | src/main/webapp/app/test/controllers/Forms.spec.js | | | 10 | +++++----- |
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/main/webapp/app/test/controllers/Forms.spec.js b/src/main/webapp/app/test/controllers/Forms.spec.js @@ -16,7 +16,7 @@ describe('Forms', function() { $httpBackend = $injector.get('$httpBackend'); // if key is correct, responds with success (for Lift Promise requests) - $httpBackend.when('POST', '/ajax_request/'+lift_page).respond({ + $httpBackend.when('POST', '/ajax_request/'+window.lift_page).respond({ msg_type : 'success', msg: '<span>You Got It!</span>'}); }); }); @@ -80,12 +80,12 @@ describe('Forms', function() { // form data: {ajaxhandler} : {guid, funcName, payload} window.TestPromise = { "_call_server": function(v) { - liftAjax.lift_ajaxHandler(ajaxhandler + '=' + - encodeURIComponent(JSON.stringify(v)), null, null, null) + window.liftAjax.lift_ajaxHandler(ajaxhandler + '=' + + encodeURIComponent(JSON.stringify(v)), null, null, null); }, "testSubmit": function(param) { - var promise = new liftAjax.Promise(); - liftAjax.associate(promise); + var promise = new window.liftAjax.Promise(); + window.liftAjax.associate(promise); this._call_server({guid: promise.guid, name: "testSubmit", payload: param}); return promise; }