blob: f08e1be926d7aae990432a751e343a9d3edcd87c [file] [log] [blame]
/**
* Copyright (c) 2019 Eclipse Foundation.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* Contributors:
* Eric Poirier (Eclipse Foundation) - Initial implementation
*
* SPDX-License-Identifier: EPL-2.0
*/
$(function() {
$('.wg-links a').click(function() {
var wg_item = $(this).attr('data-wg');
if (wg_item === "wg-all-item") {
$('.wg-item').fadeOut("300").promise().done(function() {
$('.wg-item').fadeIn("300");
$('.wg-item').matchHeight({ remove: true });
$('.wg-item:visible').matchHeight();
});
}
else {
$('.wg-item').fadeOut("300").promise().done(function() {
$('.' + wg_item).fadeIn("300");
$('.wg-item').matchHeight({ remove: true });
$('.wg-item:visible').matchHeight();
});
}
});
$('.wg-all-item').click(function() {
$('.wg-item').fadeIn("300");
$('.wg-item').matchHeight({ remove: true });
$('.wg-item:visible').matchHeight();
});
});