Skip to content
Snippets Groups Projects
Commit 72f2e9e9 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-4704: updating js to include view contact

parent 00d75292
No related branches found
No related tags found
1 merge request!66ISTWCMS-4704: adding date component with ability to handle multiple dates and...
......@@ -592,3 +592,31 @@ else {
}
}
})(jQuery, document, Drupal);
/**
* @file
*/
(function ($, Drupal) {
Drupal.behaviors.viewcontact = {
attach: function (context, settings) {
$(document).ready(function () {
$('.uw-contact-expand-all').click(function() {
$('.uw-contact details').each(function() {
console.log($(this));
$(this).attr("open", "");
});
});
$('.uw-contact-collapse-all').click(function() {
$('.uw-contact details').each(function() {
console.log($(this));
$(this).removeAttr("open");
});
});
});
}
};
})(jQuery, Drupal);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment