PageSourceSearch

https://members.nickijames.com/wp-content/plugins/surecart/app/src…/src/settings.js?ver=1791569325

js nickijames.com collected 2026-10-09 22:17:15 UTC 1,078 bytes, 45 lines download raw bytes

1( function ( $ ) {
2	const surecartBBScript = {
3		init() {
4      $( 'body' ).on( 'click', '.surecart-edit-bb-form', function ( e ) {
5        let formID = $('#fl-field-sc_form_id select').val();
6        const editLink = "/wp-admin/post.php?post=" + formID + "&action=edit";
7
8        if ( formID ) {
9          let win = window.open(
10            editLink,
11            '_blank'
12          );
13          win.focus();
14        } else {
15          return false;
16        }
17			} );
18
19      surecartBBScript.setEditLink();
20
21      $( 'body' ).on( 'change', '#fl-field-sc_form_id select', function ( e ) {
22        surecartBBScript.setEditLink();
23			} );
24    },
25
26    /**
27		 * Set edit link
28		 *
29		 * @since x.x.x
30		 */
31		setEditLink: () => {
32      let formID = $('#fl-field-sc_form_id select').val();
33
34      if ( formID ) {
35        const editLink = "/wp-admin/post.php?post=" + formID + "&action=edit";
36        $(".surecart-edit-bb-form").show();
37        $(".surecart-edit-bb-form").attr('href', editLink);
38      }
39		},
40  };
41  
42  $( function () {
43		  surecartBBScript.init();
44	} );
45} )( jQuery );

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.