Guest User

Untitled

a guest
Aug 14th, 2014
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var App = function () {
  2.     this.init();
  3. };
  4. App.prototype.init = function () {
  5.     var self = this;
  6.  
  7.     $.post(
  8.         '/api/task/createNew',
  9.         { taskName: "smth new", taskType: 0 }
  10.     );
  11.  
  12.     $.get(
  13.         '/api/task/fetchAll',
  14.         function ( sender ) {
  15.             console.log(sender);
  16.         }
  17.     );
  18. };
  19.  
  20. window.onload = function () {
  21.     var app = new App();
  22. };
Advertisement
Add Comment
Please, Sign In to add comment