PageSourceSearch

https://realrestaurantsolutions.com/wp-content/plugins/paid-member…/assets/js/front-end.js?ver=3.1.2

js realrestaurantsolutions.com collected 2026-10-08 12:28:08 UTC 1,938 bytes, 65 lines download raw bytes

1jQuery(document).ready(function($){
2
3    var subscription_plan_selector = 'input[name=subscription_plans]'
4
5    var pms_checked_subscription = jQuery( subscription_plan_selector + '[type=radio]' ).length > 0 ? jQuery( subscription_plan_selector + '[type=radio]:checked' ) : jQuery( subscription_plan_selector + '[type=hidden]' )
6    var pms_gm_purchase_message = jQuery( '.pms-gm-message__purchase' )
7    var pms_gm_extra_fields = jQuery( '.pms-group-memberships-field' )
8    var previousSeats = 0;
9
10    seatsMessageDisplay()
11    extraFieldsDisplay()
12
13    jQuery( document ).on( 'click', subscription_plan_selector + '[type=radio]', function(e){
14
15        if( jQuery(this).is(':checked') )
16            pms_checked_subscription = jQuery(this)
17
18        seatsMessageDisplay()
19        extraFieldsDisplay()
20
21    })
22
23    function extraFieldsDisplay(){
24        if( isGroupSubscription() ){
25            pms_gm_extra_fields.show()
26        } else {
27            pms_gm_extra_fields.hide()
28        }
29    }
30
31    function seatsMessageDisplay(){
32
33        if( pms_gm_purchase_message.length == 0 )
34            return
35
36        if( isGroupSubscription() ){
37            var text  = pms_gm_purchase_message.get(0).textContent
38            var seats = pms_checked_subscription.data('seats') - 1
39
40            var replace = '%s'
41
42            if( previousSeats !== 0 )
43                replace = previousSeats
44
45            var newText = text.replace( replace, seats )
46
47            previousSeats = seats
48
49            pms_gm_purchase_message.text( newText ).show()
50        } else
51            pms_gm_purchase_message.hide()
52            
53    }
54
55    function isGroupSubscription(){
56        if( pms_checked_subscription.length >= 1 && typeof pms_checked_subscription.data('seats') !== 'undefined' )
57            return true
58
59        if( jQuery( '.pms-form, .wppb-register-user' ).hasClass( 'pms-gm-edit-details' ) )
60            return true
61
62        return false
63    }
64
65})

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.