Version 4.3.0
This commit is contained in:
1 parent
96997ddd8e
commit
fe1acf984a
1349 files changed
+116159
-67711
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<javascript app="nexus">
|
||||
<file javascript_app="nexus" javascript_location="front" javascript_path="controllers/checkout" javascript_name="ips.checkout.billingForm.js" javascript_type="controller" javascript_version="102002" javascript_position="1000050"><![CDATA[/**
|
||||
<file javascript_app="nexus" javascript_location="front" javascript_path="controllers/checkout" javascript_name="ips.checkout.billingForm.js" javascript_type="controller" javascript_version="103005" javascript_position="1000150"><![CDATA[/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -53,7 +53,7 @@
|
||||
|
||||
});
|
||||
}(jQuery, _));]]></file>
|
||||
<file javascript_app="nexus" javascript_location="front" javascript_path="controllers/checkout" javascript_name="ips.checkout.register.js" javascript_type="controller" javascript_version="102002" javascript_position="1000050">/**
|
||||
<file javascript_app="nexus" javascript_location="front" javascript_path="controllers/checkout" javascript_name="ips.checkout.register.js" javascript_type="controller" javascript_version="103005" javascript_position="1000150">/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -84,7 +84,7 @@
|
||||
}
|
||||
});
|
||||
}(jQuery, _));</file>
|
||||
<file javascript_app="nexus" javascript_location="front" javascript_path="controllers/checkout" javascript_name="ips.checkout.review.js" javascript_type="controller" javascript_version="102002" javascript_position="1000050">/**
|
||||
<file javascript_app="nexus" javascript_location="front" javascript_path="controllers/checkout" javascript_name="ips.checkout.review.js" javascript_type="controller" javascript_version="103005" javascript_position="1000150">/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -106,9 +106,13 @@
|
||||
var button = this.scope.find('[data-role="couponForm"] button[type="submit"]');
|
||||
var textbox = this.scope.find('[data-role="couponForm"] input[type="text"]');
|
||||
|
||||
button.prop('disabled', true);
|
||||
button.prop('disabled', !textbox.val() );
|
||||
textbox.on('keyup', function (e) {
|
||||
button.prop( 'disabled', false );
|
||||
if ( textbox.val() ) {
|
||||
button.prop( 'disabled', false );
|
||||
} else {
|
||||
button.prop( 'disabled', true );
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
@@ -117,7 +121,7 @@
|
||||
}
|
||||
});
|
||||
}(jQuery, _));</file>
|
||||
<file javascript_app="nexus" javascript_location="front" javascript_path="controllers/checkout" javascript_name="ips.checkout.shippingForm.js" javascript_type="controller" javascript_version="102002" javascript_position="1000050">/**
|
||||
<file javascript_app="nexus" javascript_location="front" javascript_path="controllers/checkout" javascript_name="ips.checkout.shippingForm.js" javascript_type="controller" javascript_version="103005" javascript_position="1000150">/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -140,7 +144,7 @@
|
||||
}
|
||||
});
|
||||
}(jQuery, _));</file>
|
||||
<file javascript_app="nexus" javascript_location="front" javascript_path="controllers/clients" javascript_name="ips.clients.referrals.js" javascript_type="controller" javascript_version="102002" javascript_position="1000100">/**
|
||||
<file javascript_app="nexus" javascript_location="front" javascript_path="controllers/clients" javascript_name="ips.clients.referrals.js" javascript_type="controller" javascript_version="103005" javascript_position="1000100">/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -169,33 +173,7 @@
|
||||
}
|
||||
});
|
||||
}(jQuery, _));</file>
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/customer" javascript_name="ips.customer.stats.js" javascript_type="controller" javascript_version="102002" javascript_position="1000050">/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
* ips.nexus.customer.stats.js
|
||||
*
|
||||
* Author: Mark Wade
|
||||
*/
|
||||
;( function($, _, undefined){
|
||||
"use strict";
|
||||
|
||||
ips.controller.register('nexus.admin.customer.stats', {
|
||||
|
||||
/**
|
||||
* Init
|
||||
*/
|
||||
initialize: function () {
|
||||
var scope = $(this.scope);
|
||||
ips.getAjax()( scope.attr('data-standingUrl') ).done(function(response){
|
||||
scope.html( response );
|
||||
$( document ).trigger( 'contentChange', [ scope ] );
|
||||
});
|
||||
},
|
||||
|
||||
});
|
||||
}(jQuery, _));</file>
|
||||
<file javascript_app="nexus" javascript_location="global" javascript_path="controllers/gateways" javascript_name="ips.gateways.authorizenet.js" javascript_type="controller" javascript_version="102002" javascript_position="1000050"><![CDATA[/**
|
||||
<file javascript_app="nexus" javascript_location="global" javascript_path="controllers/gateways" javascript_name="ips.gateways.authorizenet.js" javascript_type="controller" javascript_version="103005" javascript_position="1000100"><![CDATA[/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -255,7 +233,7 @@
|
||||
|
||||
});
|
||||
}(jQuery, _));]]></file>
|
||||
<file javascript_app="nexus" javascript_location="global" javascript_path="controllers/gateways" javascript_name="ips.gateways.stripe.js" javascript_type="controller" javascript_version="102002" javascript_position="1000050"><![CDATA[/**
|
||||
<file javascript_app="nexus" javascript_location="global" javascript_path="controllers/gateways" javascript_name="ips.gateways.stripe.js" javascript_type="controller" javascript_version="103005" javascript_position="1000100"><![CDATA[/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -268,6 +246,9 @@
|
||||
|
||||
ips.controller.register('nexus.global.gateways.stripe', {
|
||||
|
||||
stripe: null,
|
||||
cardNumber: null,
|
||||
|
||||
/**
|
||||
* Init
|
||||
*/
|
||||
@@ -280,10 +261,93 @@
|
||||
* Init
|
||||
*/
|
||||
setup: function(){
|
||||
var self = this;
|
||||
ips.loader.get( ['https://js.stripe.com/v2/'] ).then(function(){
|
||||
self.scope.show();
|
||||
|
||||
this.stripe = Stripe( this.scope.attr('data-key') );
|
||||
|
||||
var elements = this.stripe.elements()
|
||||
this.cardNumber = elements.create('cardNumber', {
|
||||
'placeholder': '',
|
||||
'style': {
|
||||
'invalid': {
|
||||
'color': 'inherit'
|
||||
}
|
||||
}
|
||||
});
|
||||
this.cardNumber.mount( '#elInput_' + $(this.scope).attr('data-id') + '-' + $(this.scope).attr('data-id') + '_card-number' );
|
||||
this.cardNumber.addEventListener('change', function(event) {
|
||||
if ( event.error ) {
|
||||
this.scope.find('[data-role="dummyCard"]').addClass('ipsFieldRow_error');
|
||||
this.scope.find('[data-warning="number"]').text( event.error.message );
|
||||
} else {
|
||||
this.scope.find('[data-role="dummyCard"]').removeClass('ipsFieldRow_error');
|
||||
this.scope.find('[data-warning="number"]').text('');
|
||||
}
|
||||
|
||||
if ( event.brand != 'unknown' ) {
|
||||
this.scope.find('.cPayment').css( 'opacity', 0.3 );
|
||||
switch ( event.brand ) {
|
||||
case 'visa':
|
||||
this.scope.find('.cPayment_visa').css( 'opacity', 1 );
|
||||
break;
|
||||
case 'mastercard':
|
||||
this.scope.find('.cPayment_mastercard').parent().css( 'opacity', 1 );
|
||||
break;
|
||||
case 'amex':
|
||||
this.scope.find('.cPayment_american_express').css( 'opacity', 1 );
|
||||
break;
|
||||
case 'discover':
|
||||
this.scope.find('.cPayment_discover').css( 'opacity', 1 );
|
||||
break;
|
||||
case 'diners':
|
||||
this.scope.find('.cPayment_diners_club').css( 'opacity', 1 );
|
||||
break;
|
||||
case 'jcb':
|
||||
this.scope.find('.cPayment_jcb').css( 'opacity', 1 );
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
this.scope.find('.cPayment').css( 'opacity', 1 );
|
||||
}
|
||||
}.bind(this) );
|
||||
|
||||
var cardExp = elements.create('cardExpiry', {
|
||||
'style': {
|
||||
'invalid': {
|
||||
'color': 'inherit'
|
||||
}
|
||||
}
|
||||
});
|
||||
cardExp.mount( '#elInput_' + $(this.scope).attr('data-id') + '-' + $(this.scope).attr('data-id') + '_card-exp' );
|
||||
cardExp.addEventListener('change', function(event) {
|
||||
if ( event.error ) {
|
||||
this.scope.find('[data-role="dummyExp"]').addClass('ipsFieldRow_error');
|
||||
this.scope.find('[data-warning="exp"]').text( event.error.message );
|
||||
} else {
|
||||
this.scope.find('[data-role="dummyExp"]').removeClass('ipsFieldRow_error');
|
||||
this.scope.find('[data-warning="exp"]').text('');
|
||||
}
|
||||
}.bind(this) );
|
||||
|
||||
var cardCvc = elements.create('cardCvc', {
|
||||
'placeholder': '',
|
||||
'style': {
|
||||
'invalid': {
|
||||
'color': 'inherit'
|
||||
}
|
||||
}
|
||||
});
|
||||
cardCvc.mount( '#elInput_' + $(this.scope).attr('data-id') + '-' + $(this.scope).attr('data-id') + '_card-ccv' );
|
||||
cardCvc.addEventListener('change', function(event) {
|
||||
if ( event.error ) {
|
||||
this.scope.find('[data-role="dummyCcv"]').addClass('ipsFieldRow_error');
|
||||
this.scope.find('[data-warning="ccv"]').text( event.error.message );
|
||||
} else {
|
||||
this.scope.find('[data-role="dummyCcv"]').removeClass('ipsFieldRow_error');
|
||||
this.scope.find('[data-warning="ccv"]').text('');
|
||||
}
|
||||
}.bind(this) );
|
||||
|
||||
this.scope.show();
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -304,31 +368,17 @@
|
||||
}
|
||||
|
||||
/* If we're using a stored card, carry on */
|
||||
if ( $(this.scope).find('input[name="'+$(this.scope).attr('data-id')+'_card[stored]"]:checked').length && !$(this.scope).find('[data-card="number"]').val().length ) {
|
||||
if ( $(this.scope).find('input[name="'+$(this.scope).attr('data-id')+'_card[stored]"]:checked').val() > 0 ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
/* Stop the form from actually submitting */
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
|
||||
/* Hide any previous errors */
|
||||
scope.find('[data-warning]').text('');
|
||||
|
||||
/* We need data */
|
||||
var error = false;
|
||||
if ( !scope.find('[data-card="number"]').val() ) {
|
||||
error = true;
|
||||
scope.find('[data-warning="number"]').text( ips.getString('validation_required') );
|
||||
}
|
||||
if ( !scope.find('[data-card="ccv"]').val() ) {
|
||||
error = true;
|
||||
scope.find('[data-warning="ccv"]').text( ips.getString('validation_required') );
|
||||
}
|
||||
if ( error ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
/* Show the loading icon */
|
||||
var loading = scope.closest('[data-ipswizard]').find('[data-role="loading"]');
|
||||
var wizardContainer = scope.closest('[data-ipswizard]').find('[data-role="wizardContent"]');
|
||||
@@ -351,66 +401,231 @@
|
||||
.after( loading.show() );
|
||||
|
||||
/* Send to Stripe */
|
||||
var expmonth = scope.find('[data-card="exp_month"]').val();
|
||||
if ( expmonth && expmonth.length == 1 ) {
|
||||
expmonth = '0' + expmonth;
|
||||
}
|
||||
Stripe.setPublishableKey( scope.attr('data-key') );
|
||||
Stripe.card.createToken({
|
||||
number: scope.find('[data-card="number"]').val(),
|
||||
cvc: scope.find('[data-card="ccv"]').val(),
|
||||
exp_month: expmonth,
|
||||
exp_year: scope.find('[data-card="exp_year"]').val(),
|
||||
name: scope.attr('data-name'),
|
||||
address_line1: scope.attr('data-address1'),
|
||||
address_line2: scope.attr('data-address2'),
|
||||
address_city: scope.attr('data-city'),
|
||||
address_state: scope.attr('data-state'),
|
||||
address_zip: scope.attr('data-zip'),
|
||||
address_country: scope.attr('data-country')
|
||||
}, function(status,response){
|
||||
loading.remove();
|
||||
wizardContainer.show();
|
||||
if ( response.error ) {
|
||||
if ( response.error.type == 'card_error' ) {
|
||||
if ( response.error.param ) {
|
||||
switch ( response.error.param ) {
|
||||
case 'number':
|
||||
scope.find('[data-warning="number"]').text( response.error.message );
|
||||
break;
|
||||
case 'exp_month':
|
||||
case 'exp_year':
|
||||
scope.find('[data-warning="exp"]').text( response.error.message );
|
||||
break;
|
||||
case 'cvc':
|
||||
scope.find('[data-warning="ccv"]').text( response.error.message );
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
ips.ui.alert.show({
|
||||
type: 'alert',
|
||||
icon: 'warn',
|
||||
message: response.error.message,
|
||||
});
|
||||
}
|
||||
} else {
|
||||
ips.ui.alert.show({
|
||||
type: 'alert',
|
||||
icon: 'warn',
|
||||
message: ips.getString('payment_error')
|
||||
});
|
||||
}
|
||||
} else {
|
||||
scope.closest('form').append( $('<input type="hidden" />').attr( 'name', scope.attr('data-id') + '_card[token]' ).val( response.id ) );
|
||||
scope.closest('form').submit();
|
||||
var data = {
|
||||
type: 'card',
|
||||
owner: {
|
||||
address: {
|
||||
city: scope.attr('data-city'),
|
||||
country: scope.attr('data-country'),
|
||||
line1: scope.attr('data-address1'),
|
||||
line2: scope.attr('data-address2'),
|
||||
postal_code: scope.attr('data-zip'),
|
||||
state: scope.attr('data-state')
|
||||
},
|
||||
name: scope.attr('data-name')
|
||||
}
|
||||
});
|
||||
};
|
||||
if ( scope.attr('data-email') ) {
|
||||
data.owner.email = scope.attr('data-email');
|
||||
}
|
||||
if ( scope.attr('data-phone') ) {
|
||||
data.owner.phone = scope.attr('data-phone');
|
||||
}
|
||||
this.stripe.createSource( this.cardNumber, data ).then( _.bind( this.receivedCardSource, this ) );
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Callback after a Stripe source has been generated for a card
|
||||
*
|
||||
* @param {object} result The result
|
||||
* @returns {void}
|
||||
*/
|
||||
receivedCardSource: function( result ) {
|
||||
|
||||
/* Init */
|
||||
var scope = $(this.scope);
|
||||
var loading = scope.closest('[data-ipswizard]').find('[data-role="loading"]');
|
||||
var wizardContainer = scope.closest('[data-ipswizard]').find('[data-role="wizardContent"]');
|
||||
|
||||
/* If there was an error, show the form again */
|
||||
if ( result.error ) {
|
||||
Debug.error(result.error);
|
||||
|
||||
loading.remove();
|
||||
wizardContainer.show();
|
||||
|
||||
if ( result.error.type == 'card_error' || result.error.type == 'validation_error' ) {
|
||||
ips.ui.alert.show({
|
||||
type: 'alert',
|
||||
icon: 'warn',
|
||||
message: result.error.message
|
||||
});
|
||||
} else {
|
||||
ips.ui.alert.show({
|
||||
type: 'alert',
|
||||
icon: 'warn',
|
||||
message: ips.getString('payment_error')
|
||||
});
|
||||
}
|
||||
}
|
||||
/* Otherwise, process... */
|
||||
else {
|
||||
scope.closest('form').append( $('<input type="hidden" />').attr( 'name', scope.attr('data-id') + '_card[token]' ).val( result.source.id ) );
|
||||
scope.closest('form').submit();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Callback after a Stripe source has been generated for 3D Secure
|
||||
*
|
||||
* @param {object} result The result
|
||||
* @returns {void}
|
||||
*/
|
||||
received3DSource: function( result ) {
|
||||
if ( result.source.status != 'pending' ) {
|
||||
scope.closest('form').submit();
|
||||
} else {
|
||||
|
||||
var scope = $(this.scope);
|
||||
var loading = scope.closest('[data-ipswizard]').find('[data-role="loading"]');
|
||||
var wizardContainer = scope.closest('[data-ipswizard]').find('[data-role="wizardContent"]');
|
||||
|
||||
scope.closest('form').append( $('<input type="hidden" />').attr( 'name', scope.attr('data-id') + '_card[token]' ).val( result.source.id ) );
|
||||
|
||||
window.location = result.source.redirect['url'];
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Callback when the status of a source changes (i..e the customer has paid, or too much time has passed for them to be able to pay)
|
||||
*
|
||||
* @param {int} status Status Code
|
||||
* @param {Source} source Stripe Source object
|
||||
* @returns {void}
|
||||
*/
|
||||
pollCallback: function( status, source ) {
|
||||
if ( source.status !== 'pending' ) {
|
||||
$(this.scope).closest('form').submit();
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
}(jQuery, _));]]></file>
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/hosting" javascript_name="ips.nexus.hosting.accountform.js" javascript_type="controller" javascript_version="102002" javascript_position="1000100">/**
|
||||
<file javascript_app="nexus" javascript_location="global" javascript_path="controllers/gateways" javascript_name="ips.gateways.stripeamex.js" javascript_type="controller" javascript_version="103005" javascript_position="1000100">/**
|
||||
* IPS Community Suite 4
|
||||
* (c) 2017 Invision Power Services - http://www.invisionpower.com
|
||||
*
|
||||
* ips.gateways.stripeamex.js - Stripe Amex Express Checkout Controller
|
||||
*
|
||||
* Author: Mark Wade
|
||||
*/
|
||||
/* A global function breaks our coding standards, but it's the only way Amex will allow it */
|
||||
function aecCallbackHandler(response){
|
||||
jQuery( window ).trigger( 'aecCallbackHandler', response );
|
||||
};
|
||||
|
||||
;( function($, _, undefined){
|
||||
"use strict";
|
||||
|
||||
ips.controller.register('nexus.global.gateways.stripeamex', {
|
||||
|
||||
selected: false,
|
||||
|
||||
/**
|
||||
* Init
|
||||
*/
|
||||
initialize: function () {
|
||||
this.setup();
|
||||
},
|
||||
|
||||
/**
|
||||
* Init
|
||||
*/
|
||||
setup: function(){
|
||||
var self = this;
|
||||
ips.loader.get( ['https://icm.aexp-static.com/Internet/IMDC/US_en/RegisteredCard/AmexExpressCheckout/js/AmexExpressCheckout.js'] );
|
||||
|
||||
$( window ).on( 'aecCallbackHandler', function(e,response) {
|
||||
$(self.scope).find('input').val( response.token );
|
||||
$(self.scope).closest('form').submit();
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
}(jQuery, _));</file>
|
||||
<file javascript_app="nexus" javascript_location="global" javascript_path="controllers/gateways" javascript_name="ips.gateways.stripepaymentrequest.js" javascript_type="controller" javascript_version="103005" javascript_position="1000100">/**
|
||||
* IPS Community Suite 4
|
||||
* (c) 2017 Invision Power Services - http://www.invisionpower.com
|
||||
*
|
||||
* ips.gateways.stripepaymentrequest.js - Stripe Apple Pay Controller
|
||||
*
|
||||
* Author: Mark Wade
|
||||
*/
|
||||
;( function($, _, undefined){
|
||||
"use strict";
|
||||
|
||||
ips.controller.register('nexus.global.gateways.stripepaymentrequest', {
|
||||
|
||||
strile: null,
|
||||
|
||||
/**
|
||||
* Init
|
||||
*/
|
||||
initialize: function () {
|
||||
this.setup();
|
||||
},
|
||||
|
||||
/**
|
||||
* Init
|
||||
*/
|
||||
setup: function(){
|
||||
|
||||
this.stripe = Stripe( this.scope.attr('data-key') );
|
||||
|
||||
var data = {
|
||||
country: this.scope.attr('data-country'),
|
||||
currency: this.scope.attr('data-currency'),
|
||||
total: {
|
||||
label: $('meta[property="og:site_name"]').attr('content'),
|
||||
amount: parseInt( this.scope.attr('data-amountAsCents') )
|
||||
}
|
||||
};
|
||||
var paymentRequest = this.stripe.paymentRequest(data);
|
||||
|
||||
var elements = this.stripe.elements();
|
||||
var prButton = elements.create('paymentRequestButton', {
|
||||
paymentRequest: paymentRequest
|
||||
});
|
||||
|
||||
var scope = this.scope;
|
||||
paymentRequest.canMakePayment().then(function(result) {
|
||||
if (result) {
|
||||
prButton.mount( '#paymentrequest-' + scope.attr('id') );
|
||||
} else {
|
||||
ips.utils.cookie.set( 'PaymentRequestAPI', 0 );
|
||||
|
||||
var paymentMethodRadio = $( '#elRadio_payment_method_' + scope.attr('data-id') );
|
||||
if ( paymentMethodRadio.length ) {
|
||||
if ( paymentMethodRadio.is(':checked') ) {
|
||||
paymentMethodRadio.closest('li').next('li').find('input[type="radio"]').click();
|
||||
}
|
||||
paymentMethodRadio.closest('li').remove();
|
||||
} else {
|
||||
window.location = window.location;
|
||||
}
|
||||
}
|
||||
} );
|
||||
|
||||
paymentRequest.on('source', function(ev) {
|
||||
ips.getAjax()( ips.getSetting('baseURL') + 'applications/nexus/interface/gateways/stripe-payrequest.php', { data: { token: ev.source.id, gateway: this.scope.attr('data-id'), currency: this.scope.attr('data-currency'), amount: this.scope.attr('data-amount'), invoice: this.scope.attr('data-invoice') } } )
|
||||
.done(function(response){
|
||||
if ( response.success ) {
|
||||
ev.complete('success');
|
||||
window.location = response.url;
|
||||
} else {
|
||||
ev.complete('fail');
|
||||
}
|
||||
})
|
||||
.fail(function(){
|
||||
ev.complete('fail');
|
||||
});
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
});
|
||||
}(jQuery, _));</file>
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/hosting" javascript_name="ips.nexus.hosting.accountform.js" javascript_type="controller" javascript_version="103005" javascript_position="1000150">/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -442,7 +657,7 @@
|
||||
|
||||
});
|
||||
}(jQuery, _));</file>
|
||||
<file javascript_app="nexus" javascript_location="global" javascript_path="controllers/misc" javascript_name="ips.misc.print.js" javascript_type="controller" javascript_version="102002" javascript_position="1000100">/**
|
||||
<file javascript_app="nexus" javascript_location="global" javascript_path="controllers/misc" javascript_name="ips.misc.print.js" javascript_type="controller" javascript_version="103005" javascript_position="1000050">/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -464,7 +679,7 @@
|
||||
|
||||
});
|
||||
}(jQuery, _));</file>
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/store" javascript_name="ips.store.productoptions.js" javascript_type="controller" javascript_version="102002" javascript_position="1000150"><![CDATA[/**
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/store" javascript_name="ips.store.productoptions.js" javascript_type="controller" javascript_version="103005" javascript_position="1000200"><![CDATA[/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -519,7 +734,7 @@
|
||||
|
||||
});
|
||||
}(jQuery, _));]]></file>
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/store" javascript_name="ips.store.productselector.js" javascript_type="controller" javascript_version="102002" javascript_position="1000150"><![CDATA[/**
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/store" javascript_name="ips.store.productselector.js" javascript_type="controller" javascript_version="103005" javascript_position="1000200"><![CDATA[/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -579,7 +794,7 @@
|
||||
|
||||
});
|
||||
}(jQuery, _));]]></file>
|
||||
<file javascript_app="nexus" javascript_location="front" javascript_path="controllers/store" javascript_name="ips.store.cartReview.js" javascript_type="controller" javascript_version="102002" javascript_position="1000150">/**
|
||||
<file javascript_app="nexus" javascript_location="front" javascript_path="controllers/store" javascript_name="ips.store.cartReview.js" javascript_type="controller" javascript_version="103005" javascript_position="1000300">/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -679,7 +894,7 @@
|
||||
}
|
||||
});
|
||||
}(jQuery, _));</file>
|
||||
<file javascript_app="nexus" javascript_location="front" javascript_path="controllers/store" javascript_name="ips.store.currencySelect.js" javascript_type="controller" javascript_version="102002" javascript_position="1000150">/**
|
||||
<file javascript_app="nexus" javascript_location="front" javascript_path="controllers/store" javascript_name="ips.store.currencySelect.js" javascript_type="controller" javascript_version="103005" javascript_position="1000300">/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -719,7 +934,7 @@
|
||||
}
|
||||
});
|
||||
}(jQuery, _));</file>
|
||||
<file javascript_app="nexus" javascript_location="front" javascript_path="controllers/store" javascript_name="ips.store.giftCard.js" javascript_type="controller" javascript_version="102002" javascript_position="1000150"><![CDATA[/**
|
||||
<file javascript_app="nexus" javascript_location="front" javascript_path="controllers/store" javascript_name="ips.store.giftCard.js" javascript_type="controller" javascript_version="103005" javascript_position="1000300"><![CDATA[/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -807,7 +1022,7 @@
|
||||
}
|
||||
});
|
||||
}(jQuery, _));]]></file>
|
||||
<file javascript_app="nexus" javascript_location="front" javascript_path="controllers/store" javascript_name="ips.store.packagePage.js" javascript_type="controller" javascript_version="102002" javascript_position="1000150"><![CDATA[/**
|
||||
<file javascript_app="nexus" javascript_location="front" javascript_path="controllers/store" javascript_name="ips.store.packagePage.js" javascript_type="controller" javascript_version="103005" javascript_position="1000300"><![CDATA[/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -1021,7 +1236,7 @@
|
||||
|
||||
});
|
||||
}(jQuery, _));]]></file>
|
||||
<file javascript_app="nexus" javascript_location="front" javascript_path="controllers/store" javascript_name="ips.store.register.js" javascript_type="controller" javascript_version="102002" javascript_position="1000150"><![CDATA[/**
|
||||
<file javascript_app="nexus" javascript_location="front" javascript_path="controllers/store" javascript_name="ips.store.register.js" javascript_type="controller" javascript_version="103005" javascript_position="1000300"><![CDATA[/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -1170,7 +1385,45 @@
|
||||
},
|
||||
});
|
||||
}(jQuery, _));]]></file>
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/support" javascript_name="ips.support.emailsetup.js" javascript_type="controller" javascript_version="102002" javascript_position="1000200">/**
|
||||
<file javascript_app="nexus" javascript_location="front" javascript_path="controllers/subscriptions" javascript_name="ips.subscriptions.main.js" javascript_type="controller" javascript_version="103005" javascript_position="1000200">/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
* ips.subscriptions.main.js - Register form during checkout
|
||||
*
|
||||
* Author: Rikki Tissier
|
||||
*/
|
||||
;( function($, _, undefined){
|
||||
"use strict";
|
||||
|
||||
ips.controller.register('nexus.front.subscriptions.main', {
|
||||
|
||||
initialize: function () {
|
||||
this.on( 'click', '[data-change-subscription]', this.showAlert );
|
||||
if ( $(this.scope).attr('data-regform') ) {
|
||||
this._showRegistrationForm();
|
||||
}
|
||||
},
|
||||
|
||||
showAlert: function (e) {
|
||||
e.preventDefault();
|
||||
ips.ui.alert.show({
|
||||
type: 'confirm',
|
||||
message: $( e.currentTarget ).attr('data-change-message'),
|
||||
icon: 'warn',
|
||||
callbacks: {
|
||||
ok: function () {
|
||||
window.location = $( e.currentTarget ).attr('href');
|
||||
},
|
||||
cancel: function () {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}(jQuery, _));</file>
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/support" javascript_name="ips.support.emailsetup.js" javascript_type="controller" javascript_version="103005" javascript_position="1000100">/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -1206,7 +1459,7 @@
|
||||
|
||||
});
|
||||
}(jQuery, _));</file>
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/support" javascript_name="ips.support.filterCheckboxSet.js" javascript_type="controller" javascript_version="102002" javascript_position="1000200">/**
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/support" javascript_name="ips.support.filterCheckboxSet.js" javascript_type="controller" javascript_version="103005" javascript_position="1000100">/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -1259,7 +1512,7 @@
|
||||
|
||||
});
|
||||
}(jQuery, _));</file>
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/support" javascript_name="ips.support.list.js" javascript_type="controller" javascript_version="102002" javascript_position="1000200"><![CDATA[/**
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/support" javascript_name="ips.support.list.js" javascript_type="controller" javascript_version="103005" javascript_position="1000100"><![CDATA[/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -1468,7 +1721,7 @@
|
||||
|
||||
});
|
||||
}(jQuery, _));]]></file>
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/support" javascript_name="ips.support.message.js" javascript_type="controller" javascript_version="102002" javascript_position="1000200"><![CDATA[/**
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/support" javascript_name="ips.support.message.js" javascript_type="controller" javascript_version="103005" javascript_position="1000100"><![CDATA[/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -1524,7 +1777,7 @@
|
||||
}
|
||||
});
|
||||
}(jQuery, _));]]></file>
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/support" javascript_name="ips.support.metamenu.js" javascript_type="controller" javascript_version="102002" javascript_position="1000200"><![CDATA[/**
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/support" javascript_name="ips.support.metamenu.js" javascript_type="controller" javascript_version="103005" javascript_position="1000100"><![CDATA[/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -1698,7 +1951,7 @@
|
||||
|
||||
});
|
||||
}(jQuery, _));]]></file>
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/support" javascript_name="ips.support.multimod.js" javascript_type="controller" javascript_version="102002" javascript_position="1000200"><![CDATA[/**
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/support" javascript_name="ips.support.multimod.js" javascript_type="controller" javascript_version="103005" javascript_position="1000100"><![CDATA[/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -1798,7 +2051,7 @@
|
||||
}
|
||||
});
|
||||
}(jQuery, _));]]></file>
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/support" javascript_name="ips.support.packageInfo.js" javascript_type="controller" javascript_version="102002" javascript_position="1000200">/**
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/support" javascript_name="ips.support.packageInfo.js" javascript_type="controller" javascript_version="103005" javascript_position="1000100">/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -1847,7 +2100,7 @@
|
||||
}
|
||||
});
|
||||
}(jQuery, _));</file>
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/support" javascript_name="ips.support.pendingalert.js" javascript_type="controller" javascript_version="102002" javascript_position="1000200">/**
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/support" javascript_name="ips.support.pendingalert.js" javascript_type="controller" javascript_version="103005" javascript_position="1000100">/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -1874,7 +2127,7 @@
|
||||
|
||||
});
|
||||
}(jQuery, _));</file>
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/support" javascript_name="ips.support.replyArea.js" javascript_type="controller" javascript_version="102002" javascript_position="1000200"><![CDATA[/**
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/support" javascript_name="ips.support.replyArea.js" javascript_type="controller" javascript_version="103005" javascript_position="1000100"><![CDATA[/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -1958,7 +2211,7 @@
|
||||
}
|
||||
});
|
||||
}(jQuery, _));]]></file>
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/support" javascript_name="ips.support.request.js" javascript_type="controller" javascript_version="102002" javascript_position="1000200"><![CDATA[/**
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/support" javascript_name="ips.support.request.js" javascript_type="controller" javascript_version="103005" javascript_position="1000100"><![CDATA[/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -2102,7 +2355,7 @@
|
||||
}
|
||||
});
|
||||
}(jQuery, _));]]></file>
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/support" javascript_name="ips.support.splitForm.js" javascript_type="controller" javascript_version="102002" javascript_position="1000200">/**
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="controllers/support" javascript_name="ips.support.splitForm.js" javascript_type="controller" javascript_version="103005" javascript_position="1000100">/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -2171,7 +2424,7 @@
|
||||
}
|
||||
});
|
||||
}(jQuery, _));</file>
|
||||
<file javascript_app="nexus" javascript_location="front" javascript_path="controllers/support" javascript_name="ips.support.rate.js" javascript_type="controller" javascript_version="102002" javascript_position="1000200">/**
|
||||
<file javascript_app="nexus" javascript_location="front" javascript_path="controllers/support" javascript_name="ips.support.rate.js" javascript_type="controller" javascript_version="103005" javascript_position="1000250">/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -2193,8 +2446,8 @@
|
||||
}
|
||||
});
|
||||
}(jQuery, _));</file>
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="templates" javascript_name="ips.templates.store.js" javascript_type="template" javascript_version="102002" javascript_position="1000250"><![CDATA[ips.templates.set('nexus.store.images', " \
|
||||
<div class='ipsGrid_span3 ipsAttach ipsImageAttach ipsPad_half ipsAreaBackground_light' id='{{id}}' data-role='file' data-fileid='{{id}}' data-fullsizeurl='{{imagesrc}}' data-thumbnailurl='{{thumbnail}}' data-isImage='1'>\
|
||||
<file javascript_app="nexus" javascript_location="admin" javascript_path="templates" javascript_name="ips.templates.store.js" javascript_type="template" javascript_version="103005" javascript_position="1000050"><![CDATA[ips.templates.set('nexus.store.images', " \
|
||||
<div class='ipsGrid_span3 ipsAttach ipsImageAttach ipsPad_half ipsAreaBackground_light' id='{{id}}' data-role='file' data-fileid='{{id}}' data-fullsizeurl='{{imagesrc}}' data-thumbnailurl='{{thumbnail}}' data-fileType='image'>\
|
||||
<ul class='ipsList_inline ipsImageAttach_controls'>\
|
||||
<li><input type='radio' name='{{field_name}}_primary_image' value='{{id}}' title='{{#lang}}makePrimaryProductImage{{/lang}}' data-ipsTooltip></li>\
|
||||
<li class='ipsPos_right' data-role='deleteFileWrapper'>\
|
||||
@@ -2216,7 +2469,7 @@
|
||||
</div>\
|
||||
");
|
||||
]]></file>
|
||||
<file javascript_app="nexus" javascript_location="front" javascript_path="templates" javascript_name="ips.templates.store.js" javascript_type="template" javascript_version="102002" javascript_position="1000250"><![CDATA[ips.templates.set('nexus.store.productImage', " \
|
||||
<file javascript_app="nexus" javascript_location="front" javascript_path="templates" javascript_name="ips.templates.store.js" javascript_type="template" javascript_version="103005" javascript_position="1000050"><![CDATA[ips.templates.set('nexus.store.productImage', " \
|
||||
<a href='{{fullURL}}' data-fullURL='{{fullURL}}' class='cNexusProduct_primaryImage ipsContained' data-ipsLightbox data-ipsLightbox-group='product' data-ipsProductZoom>\
|
||||
<img src='{{thumbURL}}' class='ipsImage ipsImage_thumb'>\
|
||||
</a>\
|
||||
|
||||
Reference in new issue
Block a user