Nextrek
Diff Revisions
1067
vs
1068
for /Web/Smartcharging_site/js/scripts.js
|
@@ -49,7 +49,7 @@ |
49 |
49 |
|
break; |
50 |
50 |
|
} |
51 |
51 |
|
window.location.hash = id |
52 |
|
- |
window.location.href = window.location.origin + window.location.pathname + window.location.hash; |
|
52 |
+ |
window.location.href = window.location.origin + window.location.pathname + window.location.search + window.location.hash; |
53 |
53 |
|
var cookieName = id.slice(1,id.length); |
54 |
54 |
|
$.cookie(cookieName, id, {expires : expireDate()}); |
55 |
55 |
|
}); |
|
@@ -88,7 +88,7 @@ |
88 |
88 |
|
$('.landing-form-affiliate').removeClass("visible"); |
89 |
89 |
|
$('.landing-form-affiliate').hide(); |
90 |
90 |
|
//document.getElementById("avatar_path_user").removeAttribute("required") |
91 |
|
- |
window.location.href = window.location.origin + window.location.pathname + "#user"; |
|
91 |
+ |
window.location.href = window.location.origin + window.location.pathname + window.location.search + "#user"; |
92 |
92 |
|
} else if ($.cookie("user")==null && $.cookie("affiliate")!=null && $.cookie("affiliate2")==null){ |
93 |
93 |
|
$('.reg-header').hide(); |
94 |
94 |
|
$('.reg-select').hide(); |
|
@@ -103,7 +103,7 @@ |
103 |
103 |
|
$('.landing-form-user #name_user').attr("required", ""); |
104 |
104 |
|
$('.landing-form-user #surname_user').attr("required", ""); |
105 |
105 |
|
$('.landing-form-user #avatar_path_user').attr("required", ""); |
106 |
|
- |
window.location.href = window.location.origin + window.location.pathname + "#affiliate"; |
|
106 |
+ |
window.location.href = window.location.origin + window.location.pathname + window.location.search + "#affiliate"; |
107 |
107 |
|
} else if ($.cookie("user")==null && $.cookie("affiliate")==null && $.cookie("affiliate2")!=null){ |
108 |
108 |
|
$('.reg-header').hide(); |
109 |
109 |
|
$('.reg-select').hide(); |
|
@@ -117,7 +117,7 @@ |
117 |
117 |
|
$('.landing-form-affiliate').show(); |
118 |
118 |
|
$('.landing-form-affiliate .form-control').show(); |
119 |
119 |
|
$('#form-affiliate').show(); |
120 |
|
- |
window.location.href = window.location.origin + window.location.pathname + "#affiliate"; |
|
120 |
+ |
window.location.href = window.location.origin + window.location.pathname + window.location.search + "#affiliate"; |
121 |
121 |
|
getTypologies(); |
122 |
122 |
|
} else{ |
123 |
123 |
|
$('.reg-header').show(); |