jquery (this). Val (jquery (this). Val (). Replace (// gi, "");
}
});
jquery
If (jQuery (‘#BTNViewquotes’). Attr ("Disabled")! = Undefined && Jquery (‘#BTNViewquotes’). Attr ("Disabled") {== "Disabled") {) {
Return false;
}
//window.location = ‘/quote/’;
Window.Location = "/EN-US/Quote/";
});
if (IsuserLogGedin == ‘TRUE’) {{
Getquotescount ();
}
if (‘true’.tolowercase () ==’ true ‘) {{
InitredirectpopupatLogin ();
}
var checkout_email = getCookie ("Checkout_email");
If (Checkout_email! = Undefined && Checkout_email! = Null && Checkout_email! = "") {
jquery (‘#login-dail’). Val (Checkout_email);
jquery (‘. Personal-menu-link’). Click ();
} Else {ERASECOOKIE ("Checkout_email");}
});
Function logout (url) {
jquery.ajax ({
Type: ‘Post’,
url: "/components/service/userService.asmx/SetLogout",
Success: Function (Response) {
Window.Location = "/EN-US/";
},
error: Function (Error) {
jquery ("#Divloginloader"). Hide ();
}
});
}
Function getquotescount () {
// If (ReadCookie ("CurrenTuseRid")! = Null && ReadCookie ("Currentuserid")! = "&& ReadCookie (" CurrentuseRid ")! = Undefined) {
jquery.ajax ({
Type: ‘Get’,
url: ‘/components/service/quoteservices.asmx/getquotescount’, // readCookie ("CurrenTuseRid"),
data: {‘username’: ‘username’},
Success: Function (Response) {
//console.log (Response);
If (response! = Undefined && Response! = Null && jquery (response) .text ()! = Null && jquery (response) .text (). LENGTH> 0) {
response = jquery.parsejson (jquery (response) .find ("string"). Text ());
if (response.count> 0) {{
jquery (‘. NotificationCount’). Show ();
jquery (‘. NotificationCount’). Text (response.count);
if (! jquery (‘#btnViewquotes’). Hasclass ("Cursor-Pointer") {
jquery (‘#btnViewquotes’). AddClass ("Cursor-Pointer");
jquery (‘#quote’). Addclass ("Cursor-Pointer");
}
jquery (‘#btnViewquotes’). Text (jquery (‘#btnViewquotes’). Text (). Replace ("*", response.Count);
jquery (‘#btnViewquotes’). Removeattr ("Disabled");
jquery (‘#quote’). Removeattr ("Disabled");
}
else {
jquery (‘. NotificationCount’). Hide ();
jquery (‘. NotificationCount’). Text ("");
if (jQuery (‘#btnViewquotes’). Hasclass ("Cursor-Pointer") {) {
jquery (‘#btnViewquotes’). RemoveClass ("Cursor-Pointer");
jquery (‘#quote’). RemoveClass ("Cursor-Pointer");
}
jquery (‘#btnViewquotes’). CSS ("Cursor", "Not-Allowed");
jquery (‘#btnViewquotes’). Text (jquery (‘#btnViewquotes’). Text (). Replace ("(*)");
jquery (‘#btnViewquotes’). Attr ("disabled", "disabled");
jquery (‘#quote’). css ("cursor", "not-allowed");
jquery (‘#quote’). Attr ("disabled", "disabled");
}
}
else {
jquery (‘. NotificationCount’). Hide ();
jquery (‘. NotificationCount’). Text ("");
if (jQuery (‘#btnViewquotes’). Hasclass ("Cursor-Pointer") {) {
jquery (‘#btnViewquotes’). RemoveClass ("Cursor-Pointer");
jquery (‘#quote’). RemoveClass ("Cursor-Pointer");
}
jquery (‘#btnViewquotes’). CSS ("Cursor", "Not-Allowed");
jquery (‘#btnViewquotes’). Text (jquery (‘#btnViewquotes’). Text (). Replace ("(*)");
jquery (‘#btnViewquotes’). Attr ("disabled", "disabled");
jquery (‘#quote’). css ("cursor", "not-allowed");
jquery (‘#quote’). Attr ("disabled", "disabled");
}
},
Error: Function (XMLHTTPREQUEST, TextStatus, Errthrown) {{
}
});
//}
}
// Login Email Keypress Event to Focus to Password on Key Press.
Function loginemail_keypress (e) {
if (jQuery (‘#login-email’). Val (). trim ()! = "") && (e.Keycode == "13") {) {
jquery (‘#login-password’). Focus ();
Return false;
}
else if ((jQuery (‘#login-email’). Val (). trim () == "") && (e.Keycode == "13") {) {) {) {
jquery (‘. Ploginerror’). HTML ("Email Field Should even Not Be Empty");
jQuery (‘. Ploginerror’). addclass ("error");
jQuery (‘. Ploginerror’). CSS ("Display", "Block");
Return false;
}
}
// Login Password Keypress event to work when presse enter key.
Function loginPassword_keypress (e) {{
if (jQuery (‘#login-email’). Val (). Trim ()! = "") && (jQuery (‘#Login-Password’). Val (). Trim ()! = "") && &&(e.Keycode == "13"))) {
jquery (‘#btnlogin’). Trigger (‘click’);
Return false;
}
Else if ((e.Keycode == "13") && (jquery (‘#login-password’). Val (). trim () == "") {) {
jQuery (‘. Ploginerror’). HTML ("Password Field Should even not be empty");
jQuery (‘. Ploginerror’). addclass ("error");
jQuery (‘. Ploginerror’). CSS ("Display", "Block");
Return false;
}
if ((e.Keycode == "13") && (jquery (‘#login-password’). Val (). Trim ()! = "") && (jQuery (‘#login-email’). Val (Val () .trim () == "")) {{
jquery (‘. Ploginerror’). HTML ("Email Field Should even Not Be Empty");
jQuery (‘. Ploginerror’). addclass ("error");
jQuery (‘. Ploginerror’). CSS ("Display", "Block");
jquery (‘#login-email’). Focus ();
Return false;
}
}
Function Doconfirm (Yesfunction, Notunction, Heading, Message, CancelButtontext, Okbuttontext) {
var confirmbox = jquery ("#login-control-narning");
confirmbox.find (". Login-Control-narning-Message"). html (message);
confirmbox.find (". Login-Control-Warning-Header").
confirmbox.find (". yes"). Val (okbuttontext);
confirmbox.find (". No"). Val (cancelbuttontext);
confirmbox.find (". yes, .no"). Unbind (). Click (function () {
jquery (confirmbox) .modal (‘Hide’);
});
confirmbox.find (". yes"). Click (yesfunction);
confirmbox.find (". No"). Click (notunction);
jquery (confirmbox) .modal ();
}
Function InitRedirectpopupatLogin () {) {)
var countrycode = ”;
var isloggedinuser = ‘false’
varuppresspopupMessage = ‘FALSE’
if (CountryCode && Isloggedinuser.tolowerCase () == ‘True’ && ISSSUPPPPOPMESSAGE.TOLOWERCASE () == ‘False’) {
jquery.ajax ({
Type: ‘Post’,
url: ‘/components/service/homepageService.asmx/issticktolangeSettingSENABLED’,
async: false,
ContentType: ‘Application/JSON; Charset = UTF-8’,
Success: Function (Response) {
var result = response.d;
if (! Result) {
CheckcountryinaccessRegionatLogin (CountryCode);
}
},
Error: Function (XMLHTTPREQUEST, TextStatus, Errthrown) {{
console.log ("Responsetext:" + xmlhttprequest.Responsetext);
console.log ("TextStatus:" + TextStatus);
console.log ("ERRORORORONROWN:" + Errthrown);
}
});
}
}
association compoundRronicizedtLogin (country) {{
jquery.ajax ({
Type: ‘Post’,
url: ‘/components/service/countryregionLocation.asmx/checkCountryInccessRegion’,
async: false,
data: json.stringify ({Country: CountryCode}),
ContentType: ‘Application/JSON; Charset = UTF-8’,
Success: Function (Response) {
var result = response.d;
If Photovoltaic Molded Case Circuit Breaker Odm Manufacturer (Result == False) {
VAR MSGTEXT Photovoltaic Mold Case Circuit Breaker Odm Manufacturer = "