File tree Expand file tree Collapse file tree 3 files changed +24
-6
lines changed Expand file tree Collapse file tree 3 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 1
1
"use strict" ;
2
2
3
- const REQUEST_BECOME_PARTNER_URL = STORE_API_URL + '/hub/become-partner ' ;
3
+ const REQUEST_BECOME_PARTNER_URL = STORE_API_URL + '/hub/request-contact ' ;
4
4
5
5
class BecomePartner {
6
6
@@ -20,10 +20,16 @@ class BecomePartner {
20
20
this . _feedbackData . success = false ;
21
21
this . _feedbackData . inProgress = true ;
22
22
this . _feedbackData . errorMessage = '' ;
23
+
24
+ const requestData = {
25
+ ...this . _submitData ,
26
+ formType : 'become-partner'
27
+ } ;
28
+
23
29
$ . ajax ( {
24
30
url : REQUEST_BECOME_PARTNER_URL ,
25
31
type : 'POST' ,
26
- data : this . _submitData
32
+ data : requestData
27
33
} ) . done ( _ => {
28
34
this . onRequestSucceeded ( ) ;
29
35
if ( this . _submitData . acceptNewsletter ) {
Original file line number Diff line number Diff line change 1
1
"use strict" ;
2
2
3
- const REQUEST_BOOK_DEMO_URL = STORE_API_URL + '/hub/book-demo ' ;
3
+ const REQUEST_BOOK_DEMO_URL = STORE_API_URL + '/hub/request-contact ' ;
4
4
5
5
class BookDemo {
6
6
@@ -20,10 +20,16 @@ class BookDemo {
20
20
this . _feedbackData . success = false ;
21
21
this . _feedbackData . inProgress = true ;
22
22
this . _feedbackData . errorMessage = '' ;
23
+
24
+ const requestData = {
25
+ ...this . _submitData ,
26
+ formType : 'book-demo'
27
+ } ;
28
+
23
29
$ . ajax ( {
24
30
url : REQUEST_BOOK_DEMO_URL ,
25
31
type : 'POST' ,
26
- data : this . _submitData
32
+ data : requestData
27
33
} ) . done ( _ => {
28
34
this . onRequestSucceeded ( ) ;
29
35
if ( this . _submitData . acceptNewsletter ) {
Original file line number Diff line number Diff line change 1
1
"use strict" ;
2
2
3
- const REQUEST_CONTACT_SALES_URL = STORE_API_URL + '/hub/contact-sales ' ;
3
+ const REQUEST_CONTACT_SALES_URL = STORE_API_URL + '/hub/request-contact ' ;
4
4
5
5
class ContactSales {
6
6
@@ -20,10 +20,16 @@ class ContactSales {
20
20
this . _feedbackData . success = false ;
21
21
this . _feedbackData . inProgress = true ;
22
22
this . _feedbackData . errorMessage = '' ;
23
+
24
+ const requestData = {
25
+ ...this . _submitData ,
26
+ formType : 'contact-sales'
27
+ } ;
28
+
23
29
$ . ajax ( {
24
30
url : REQUEST_CONTACT_SALES_URL ,
25
31
type : 'POST' ,
26
- data : this . _submitData
32
+ data : requestData
27
33
} ) . done ( _ => {
28
34
this . onRequestSucceeded ( ) ;
29
35
if ( this . _submitData . acceptNewsletter ) {
You can’t perform that action at this time.
0 commit comments