Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Type.registerNamespace("Comkarl.SocialCloud.UI.Controls");
  2.  
  3. Comkarl.SocialCloud.UI.Controls.LoginWindow = function (element) {
  4.     Comkarl.SocialCloud.UI.Controls.LoginWindow.initializeBase(this, [element]);
  5. }
  6.  
  7. Comkarl.SocialCloud.UI.Controls.LoginWindow.prototype =
  8. {
  9.     get_UserName: function () {
  10.         return $("input.UserNameInputInLoginWindow").val();
  11.     },
  12.  
  13.     get_Password: function () {
  14.         return $("input.PasswordInputInLoginWindow").val();
  15.     },
  16.  
  17.     initialize: function () {
  18.         var currentControl = this;
  19.  
  20.         $("input.OKButtonInLoginWindow").click(this.btnOK_Click);
  21.     },
  22.  
  23.     btnOK_Click: function () {
  24.         currentControl.get_CommandLine().executeCommandAsync(
  25.         "login @name \"" + currentControl.get_UserName() + "\" @password \"" + currentControl.get_Password() + "\"",
  26.         this.LoginCallback
  27.         );
  28.     },
  29.  
  30.     LoginCallback : function() {
  31.  
  32.     },
  33.  
  34.     dispose: function () {
  35.         Comkarl.SocialCloud.UI.Controls.LoginWindow.callBaseMethod(this, "dispose");
  36.     }
  37. }
  38.  
  39. Comkarl.SocialCloud.UI.Controls.LoginWindow.registerClass("Comkarl.SocialCloud.UI.Controls.LoginWindow", Comkarl.SocialCloud.Shell.Web.UI.Controls.ShellScriptControl);
  40.  
  41. if (typeof (Sys) !== "undefined") {
  42.     Sys.Application.notifyScriptLoaded();
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement