Changeset 12257
- Timestamp:
- 10/20/2018 02:53:54 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-legacy/js/buddypress.js
r12256 r12257 1903 1903 /* Activity Loop Requesting */ 1904 1904 function bp_activity_request(scope, filter) { 1905 /* Save the type and filter to a session cookie */ 1906 if ( null !== scope ) { 1907 jq.cookie( 'bp-activity-scope', scope, { 1908 path: '/', 1909 secure: ( 'https:' === window.location.protocol ) 1910 } ); 1911 } 1912 if ( null !== filter ) { 1913 jq.cookie( 'bp-activity-filter', filter, { 1914 path: '/', 1915 secure: ( 'https:' === window.location.protocol ) 1916 } ); 1917 } 1905 /* Save the type and filter */ 1906 bp_set_directory_preference( 'activity', 'scope', scope ); 1907 bp_set_directory_preference( 'activity', 'filter', filter ); 1918 1908 1919 1909 /* Remove selected and loading classes from tabs */ … … 1933 1923 } 1934 1924 1925 // Get directory preferences (called "cookie" for legacy reasons). 1926 var cookies = { 1927 'bp-activity-filter': bp_get_directory_preference( 'activity', 'filter' ), 1928 'bp-activity-scope': bp_get_directory_preference( 'activity', 'scope' ) 1929 }; 1930 1931 var cookie = encodeURIComponent( jq.param( cookies ) ); 1932 1935 1933 bp_ajax_request = jq.post( ajaxurl, { 1936 1934 action: 'activity_widget_filter', 1937 'cookie': bp_get_cookies(),1935 'cookie': cookie, 1938 1936 '_wpnonce_activity_filter': jq('#_wpnonce_activity_filter').val(), 1939 1937 'scope': scope,
Note: See TracChangeset
for help on using the changeset viewer.