cms_content_sync-3.0.x-dev/modules/cms_content_sync_migrate_acquia_content_hub/js/migrate-form.js
modules/cms_content_sync_migrate_acquia_content_hub/js/migrate-form.js
(function ($) {
'use strict';
Drupal.behaviors.drupalContentSyncFlowForm = {
attach: function (context, settings) {
$('.tag-pool-selection',context).each(function(){
var self = $(this);
var checkboxes = self.find('.form-checkboxes');
$('<a href="#">Select all</a>')
.click(function(e){
self.find('input').prop('checked', true);
e.preventDefault();
return false;
})
.appendTo(checkboxes);
$('<span> | </span>')
.appendTo(checkboxes);
$('<a href="#">Deselect all</a>')
.click(function(e){
self.find('input').prop('checked', false);
e.preventDefault();
return false;
})
.appendTo(checkboxes);
});
}
}
})(jQuery, drupalSettings);
