Guest User

Untitled

a guest
Oct 17th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. Testium.Model.SeleniumAction = Class.create(Testium.Model._Manager, {
  2.  
  3. initialize : function($super)
  4. {
  5. $super();
  6. this._container = 'seleniumAction';
  7. },
  8.  
  9. list : function($super)
  10. {
  11. $super();
  12. },
  13.  
  14. create : function($super, xhr)
  15. {
  16. $super(xhr);
  17. if (!Object.isUndefined(this._json.SeleniumAction)) {
  18. this.list();
  19. }
  20. },
  21.  
  22. read : function($super, seleniumActionId, seleniumActionElement)
  23. {
  24. $super(null, seleniumActionElement);
  25. cookie.set('seleniumAction', seleniumActionId);
  26. seleniumActionManager.list();
  27. },
  28.  
  29. edit : function($super, xhr)
  30. {
  31. $super(xhr);
  32. console.info("HERE");
  33. if (!Object.isUndefined(this._json.SeleniumAction)) {
  34. this.list();
  35. }
  36. },
  37.  
  38. destroy : function($super) {
  39. $super();
  40. }
  41.  
  42. });
Add Comment
Please, Sign In to add comment