@alexsab-ru/scripts 0.4.2 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/calltouch.js +1 -1
- package/lib/form.js +1 -1
- package/package.json +1 -1
package/lib/calltouch.js
CHANGED
|
@@ -3,7 +3,7 @@ export const createRequest = (routeKey, phoneValue, verbose = false) => {
|
|
|
3
3
|
if(window.ctw) {
|
|
4
4
|
window.ctw.getRouteKeyData(routeKey, function(success, data){
|
|
5
5
|
verbose && console.log(success, data);
|
|
6
|
-
if (success) {
|
|
6
|
+
if (success && data.widgetFound) {
|
|
7
7
|
if (data.widgetFound) {
|
|
8
8
|
if (data.widgetData.callCenterWorkingMode == 'working_hours') {
|
|
9
9
|
verbose && console.log('колл-центр работает, отображение виджета');
|
package/lib/form.js
CHANGED
|
@@ -154,7 +154,7 @@ document.querySelectorAll("form").forEach((form) => {
|
|
|
154
154
|
reachGoal("form_submit");
|
|
155
155
|
|
|
156
156
|
// Отправка заявки на обратный возов в CallTouch
|
|
157
|
-
createRequest("ct_callback", phone);
|
|
157
|
+
createRequest("ct_callback", phone.value);
|
|
158
158
|
|
|
159
159
|
let formData = new FormData(form);
|
|
160
160
|
if(getCookie('fta')) {
|