PageSourceSearch

https://www.propertyweek.com/wp-content/mu-plugins/my-account/src/…/Bookmarks/assets/js/bookmark.js?ver=6.8.1

js propertyweek.com collected 2026-09-24 08:59:44 UTC 1,674 bytes, 55 lines download raw bytes

1(function ($) {
2	$(document).ready(function() {
3		$(".addToBookmarks").click(function(){
4			var bookmarking = $(".addToBookmarks");
5
6			if (bookmarking.hasClass('active')) {
7				$.post('/wp-admin/admin-ajax.php', {
8					'action': 'myaccount_bookmarks_delete_bookmark',
9					'id': bookmarking.data('id'),
10					'type': bookmarking.data('type')
11				}, function() {
12					bookmarking.removeClass('active').addClass('bookmark');
13					bookmarking.text('Add to Bookmarks');
14				});
15			} else  if (bookmarking.hasClass('bookmark')) {
16				$.post('/wp-admin/admin-ajax.php', {
17					'action': 'myaccount_bookmarks_add_bookmark',
18					'id': bookmarking.data('id'),
19					'type': bookmarking.data('type')
20				}, function() {
21					bookmarking.text('Bookmarked').removeClass('bookmark').addClass('active');
22				});
23			} else {
24				MBM_Form_Modal.openModal(
25					'login',
26					myaccount_script.ajaxurl + '?action=myaccount_get_form&addon_name=profile&name=login'
27				);
28			}
29		});
30	});
31
32	$('div.attr-delete-bookmark').click(function(event) {
33		var self = $(this);
34		var bookmark_id = self.data('id');
35		var bookmark_type = self.data('type');
36
37		event.preventDefault();
38
39		$.post('/wp-admin/admin-ajax.php', {
40			"action": "myaccount_bookmarks_delete_bookmark",
41			"id": bookmark_id,
42			"type": bookmark_type
43		}, function() {
44			self.parent().remove();
45			$('.myac-table').each(function() {
46				if ( $(this).find('.myac-table-row').length == 0 ) {
47					$(this).remove();
48				}
49				if ( $('section.bookmarks > .myac-table').length==0 ) {
50					$('section.bookmarks').html('<div class="admin-empty"><p> Looks like you dont have any bookmarks... </p></div>');
51				}
52			});
53		});
54	});
55})(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.