MISAuth.js 594 B

12345678910111213141516171819202122232425262728
  1. function MISAuth() {
  2. this.name = "MISAuth";
  3. this.__construct = function __construct() {
  4. }
  5. this.__toString = function __toString() {
  6. return CMgr.getAUTH().name;
  7. }
  8. this.getMain = function getMain() {
  9. Ajax.request('MISAuth','getMain',CMgr.getAUTH().getMainCb);
  10. }
  11. this.setInfoMsg = function setInfoMsg(p_msg) {
  12. Browser.getElementById("logonInfoMsg").innerHTML = p_msg;
  13. }
  14. this.login = function login() {
  15. Ajax.request("MISAuth","login",CMgr.evalCb);
  16. }
  17. this.logout = function logout() {
  18. Ajax.request("MISAuth","logout",CMgr.evalCb);
  19. }
  20. }
  21. var MISAuth = new MISAuth();