Skip to content

Commit

Permalink
22 files | newpartner.js, main.css, friends.css, main.js, broadcast_c…
Browse files Browse the repository at this point in the history
…hat.js, chat.js, chathelpers.js, friends.js, shared_english.js, profile.js, steammessages.js, shared_global.js, main.css, main.css, divingbell.css, search.css, main.js, main.js, dynamicstore.js, home.js, divingbell.js, searchpage.js
  • Loading branch information
SteamTracker committed Nov 6, 2019
1 parent 0a3f0f2 commit 0947d12
Show file tree
Hide file tree
Showing 22 changed files with 20,575 additions and 17,845 deletions.
52 changes: 52 additions & 0 deletions partner.steamgames.com/public/javascript/newpartner.js
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,58 @@ function SignLatestCafeDistributionAddendum( returnURL )
);
}

function SignLatestCloudGamingAddendum( returnURL )
{
var bHasRequiredFields = true;
// signee info
bHasRequiredFields &= IsValidRequiredField( "[name='signee_info[full_name]']", gValidFieldAlphaNumericRegex );
bHasRequiredFields &= IsValidRequiredField( "[name='signee_info[title]']", gValidFieldAlphaNumericRegex );
bHasRequiredFields &= IsValidRequiredField( "[name='signee_info[phone]']", gValidFieldAlphaNumericRegex );

if ( !bHasRequiredFields )
{
ShowAlertDialog( 'Error', 'Please fill in the highlighted fields and make sure they only contain valid characters: alpha, numeric, blank, ampersand (&), hyphen(-), comma (,), apostrophe(’), forward slash (/), pound sign (#), and period (.) Do not use special characters that are unique to a language other than English.' );
return false;
}

var agreedToSDA1 = $J("#agree_to_sda_checkbox1");
if ( !agreedToSDA1.prop("checked") ) {
ShowAlertDialog('Warning', 'You must agree to the terms in the Steam Cloud Gaming Addendum before continuing.');

This comment has been minimized.

Copy link
@y0edan

y0edan Nov 6, 2019

O_O!

This comment has been minimized.

Copy link
@makemake221

makemake221 Nov 6, 2019

:0

return;
}

var inviteID = $J("#inviteID");

var waitingDialog = ShowBlockingWaitDialog( 'Saving', 'Saving your information...' );
$J.ajax(
{
type: "POST",
url: 'https://partner.steamgames.com/newpartner/ajaxsignlatestsda/?agreement_type=' + 13,
data: $J('#SteamworksAccessForm').serialize(),
success: function ( response ) {
waitingDialog.Dismiss();
if ( response.success == 1 )
{
var dialog = ShowAlertDialog( 'Thanks!', 'Thank you for signing the latest Steam Cloud Gaming Addendum. Click OK to continue.' );
dialog.done( function() {
top.location.href = returnURL;
} );
}
else
{
if( response.success == 15)
ShowAlertDialog( 'Error', 'You must have Actual Authority on your partner account to sign this agreement.');
else
ShowAlertDialog( 'Error', 'An error was encountered while processing your request: ' + response.success );
}
},
failure: function( response ) {
waitingDialog.Dismiss();
}
}
);
}

function EnterBankDetails()
{
var dialog = ShowDialog( 'Enter Bank Details', $J( "#BankAccountRedirectModal" ) );
Expand Down
Loading

0 comments on commit 0947d12

Please sign in to comment.