Filter for top 10 BloX Button
Is there a code out there where I can have a button where I can filter for the top 10 in a bar chart?
Check out our most popular conversations happening right now!
TreviPay’s Best Practice Journey TreviPay introduced Sisense internally in 2017, shortly after they began constructing a data warehouse. At that time the data warehouse team was composed of a Database...
Driving sales and cutting losses: how MPP uses Sisense for smarter decisions How MPP Revamped Reporting with Sisense Back in 2018, we at MPP were on a mission to find the right BI (business intelligen...
Going above and beyond: celebrating our employee of the quarter for Q1 2025 Today, we’re excited to celebrate our Employee of the Quarter @JeremyFriedel, a team member who has consistently gone above ...
Spotlight on excellence: partner of the quarter for Q1 2025!! Hello everyone! I’m thrilled to shine a spotlight on our Partner of the Quarter, @harikm007—a key contributor to the success and growth of...
\n\t\t\t\t\t\tSorry, unable to complete the action you requested.\n\t\t\t\t\t<\/p>\n\t\t\t\t\n\n\t\t\t\t\n\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t<\/div>\n\n\t\t\t\n\t\t<\/div>";
LITHIUM.AjaxSupport.fromLink('#link_11', 'acceptCookieEvent', 'false', 'LITHIUM:ajaxError', {}, 'uzEt3ELMqzcpnsbHOev18K9o-ZxN_Sbr4vhkGiN_0Ls.', 'ajax');
LITHIUM.AjaxSupport.fromLink('#link_12', 'rejectCookieEvent', 'false', 'LITHIUM:ajaxError', {}, 'cGeg192Hh9ENHEJ6PP5ZgwqCiVsn0uQSF1GqgJ3ECcY.', 'ajax');
LITHIUM.AjaxSupport({"ajaxOptionsParam":{"event":"LITHIUM:lightboxRenderComponent","parameters":{"componentParams":"{\n \"triggerSelector\" : {\n \"value\" : \"#link_13\",\n \"class\" : \"lithium.util.css.CssSelector\"\n }\n}","componentId":"cookie.preferences"},"trackableEvent":false},"tokenId":"ajax","elementSelector":"#link_13","action":"lightboxRenderComponent","feedbackSelector":false,"url":"https://community.sisense.com/t5/community/page.cookiebanneralertv2.link_1:lightboxrendercomponent?t:cp=gdprcookiebanner/contributions/cookiebannercontributionpage","ajaxErrorEventName":"LITHIUM:ajaxError","token":"7l67-Spu5JY6wPif-bHK49IXbwJiFqTQpoaRid8Y42M."});
LITHIUM.Dialog.options['-489906093'] = {"contentContext":"cookie.preferences","dialogOptions":{"minHeight":399,"draggable":true,"maxHeight":1400,"dialogContentClass":"lia-cookie-banner-preferences-dialog-body","autoOpen":false,"width":710,"minWidth":760,"dialogClass":"lia-cookie-banner-preferences-dialog","position":["center","center"],"title":"Privacy Preferences","modal":false,"maxWidth":910},"contentType":"ajax"};
LITHIUM.Dialog({
"closeImageIconURL" : "https://community.sisense.com/skins/images/A038E7F237A1F032DFC30533027C9D98/theme_hermes/images/button_dialog_close.svg",
"activecastFullscreen" : false,
"dialogTitleHeadingLevel" : "2",
"dropdownMenuSelector" : ".lia-menu-navigation-wrapper",
"accessibility" : true,
"triggerSelector" : ".lia-panel-dialog-trigger-event-click",
"ajaxEvent" : "LITHIUM:lightboxRenderComponent",
"focusOnDialogTriggerWhenClosed" : false,
"closeEvent" : "LITHIUM:lightboxCloseEvent",
"defaultAriaLabel" : "",
"dropdownMenuOpenerSelector" : ".lia-js-menu-opener",
"buttonDialogCloseAlt" : "Close",
"dialogContentCssClass" : "lia-panel-dialog-content",
"triggerEvent" : "click",
"dialogKey" : "dialogKey"
});
LITHIUM.Form.resetFieldForFocusFound();
LITHIUM.CookieBannerAlert({"cookieBannerAlertContent":".lia-cookie-banner-alert-text-content","privacyPolicyURL":"https://khoros.com/policy"});
;(function($) {
$( '.custom-widget-menu-toggle' ).on( 'click', function() {
$( this ).toggleClass( 'menu-opened' );
$( 'body' ).toggleClass( 'slide-open' );
});
$( '.toggle-menu-children' ).on( 'click', function() {
$( this ).parent( '.has-children' ).toggleClass( 'open' );
});
function slideMenuReset() {
$( 'body' ).removeClass( 'slide-open' );
$( '.custom-widget-menu-toggle, .toggle-menu-children' ).removeClass( 'menu-opened' );
$( '.has-children' ).removeClass( 'open' );
}
$( window ).on( 'resize orienationchange', function() {
slideMenuReset();
});
})(LITHIUM.jQuery);
LITHIUM.AjaxSupport({"ajaxOptionsParam":{"event":"LITHIUM:lightboxRenderComponent","parameters":{"componentParams":"{\n \"triggerSelector\" : {\n \"value\" : \"#loginPageV2_3ac17e510f0c4d\",\n \"class\" : \"lithium.util.css.CssSelector\"\n }\n}","componentId":"authentication.widget.login-dialog-content"},"trackableEvent":true},"tokenId":"ajax","elementSelector":"#loginPageV2_3ac17e510f0c4d","action":"lightboxRenderComponent","feedbackSelector":false,"url":"https://community.sisense.com/t5/community/page.loginpagev2:lightboxrendercomponent?t:cp=authentication/contributions/actions","ajaxErrorEventName":"LITHIUM:ajaxError","token":"5WKzoVRnEVDkYKyy_RxgdsmWgQzhk_d8xCnYsxXDxkA."});
LITHIUM.Dialog.options['-794796884'] = {"contentContext":"authentication.widget.login-dialog-content","dialogOptions":{"trackable":true,"resizable":true,"autoOpen":false,"minWidth":710,"dialogClass":"lia-content lia-panel-dialog lia-panel-dialog-modal-advanced","title":"Sign in","minHeight":200,"fitInWindow":true,"draggable":true,"maxHeight":600,"width":710,"position":["center","center"],"modal":true,"maxWidth":710},"contentType":"ajax"};
LITHIUM.InformationBox({"updateFeedbackEvent":"LITHIUM:updateAjaxFeedback","componentSelector":"#informationbox_3ac17e5174c54a","feedbackSelector":".InfoMessage"});
LITHIUM.InformationBox({"updateFeedbackEvent":"LITHIUM:updateAjaxFeedback","componentSelector":"#informationbox_3ac17e5174c54a_0","feedbackSelector":".InfoMessage"});
LITHIUM.InformationBox({"updateFeedbackEvent":"LITHIUM:updateAjaxFeedback","componentSelector":"#informationbox_3ac17e5174c54a_1","feedbackSelector":".InfoMessage"});
LITHIUM.InformationBox({"updateFeedbackEvent":"LITHIUM:updateAjaxFeedback","componentSelector":"#informationbox_3ac17e5174c54a_2","feedbackSelector":".InfoMessage"});
LITHIUM.AjaxFeedback(".lia-inline-ajax-feedback", "LITHIUM:hideAjaxFeedback", ".lia-inline-ajax-feedback-persist");
LITHIUM.Placeholder();
LITHIUM.AutoComplete({"options":{"autosuggestionAvailableInstructionText":"Auto-suggestions available. Use Up and Down arrow keys to navigate.","triggerTextLength":0,"autocompleteInstructionsSelector":"#autocompleteInstructionsText_3ac17e5174c54a","updateInputOnSelect":true,"loadingText":"Searching...","emptyText":"No Matches","successText":"Results:","defaultText":"Enter a search word","autosuggestionUnavailableInstructionText":"No suggestions available","disabled":false,"footerContent":[{"scripts":"\n\n(function(b){LITHIUM.Link=function(f){function g(a){var c=b(this),e=c.data(\"lia-action-token\");!0!==c.data(\"lia-ajax\")&&void 0!==e&&!1===a.isPropagationStopped()&&!1===a.isImmediatePropagationStopped()&&!1===a.isDefaultPrevented()&&(a.stop(),a=b(\"\\x3cform\\x3e\",{method:\"POST\",action:c.attr(\"href\"),enctype:\"multipart/form-data\"}),e=b(\"\\x3cinput\\x3e\",{type:\"hidden\",name:\"lia-action-token\",value:e}),a.append(e),b(document.body).append(a),a.submit(),d.trigger(\"click\"))}var d=b(document);void 0===d.data(\"lia-link-action-handler\")&&\n(d.data(\"lia-link-action-handler\",!0),d.on(\"click.link-action\",f.linkSelector,g),b.fn.on=b.wrap(b.fn.on,function(a){var c=a.apply(this,b.makeArray(arguments).slice(1));this.is(document)&&(d.off(\"click.link-action\",f.linkSelector,g),a.call(this,\"click.link-action\",f.linkSelector,g));return c}))}})(LITHIUM.jQuery);\nLITHIUM.Link({\n \"linkSelector\" : \"a.lia-link-ticket-post-action\"\n});LITHIUM.AjaxSupport.fromLink('#disableAutoComplete_3ac17e51a71207', 'disableAutoComplete', '#ajaxfeedback_3ac17e5174c54a_0', 'LITHIUM:ajaxError', {}, '2GNybpl-LOuaYmFHCMhDOo1Sr7IRy3VrOyzJ4i1c-E8.', 'ajax');","content":"Turn off suggestions<\/a>"}],"prefixTriggerTextLength":3},"inputSelector":"#messageSearchField_3ac17e5174c54a_0","redirectToItemLink":false,"url":"https://community.sisense.com/t5/community/page.searchformv32.messagesearchfield.messagesearchfield:autocomplete?t:cp=search/contributions/page","resizeImageEvent":"LITHIUM:renderImages"});
LITHIUM.AutoComplete({"options":{"autosuggestionAvailableInstructionText":"Auto-suggestions available. Use Up and Down arrow keys to navigate.","triggerTextLength":0,"autocompleteInstructionsSelector":"#autocompleteInstructionsText_3ac17e5174c54a_0","updateInputOnSelect":true,"loadingText":"Searching...","emptyText":"No Matches","successText":"Results:","defaultText":"Enter a search word","autosuggestionUnavailableInstructionText":"No suggestions available","disabled":false,"footerContent":[{"scripts":"\n\n(function(b){LITHIUM.Link=function(f){function g(a){var c=b(this),e=c.data(\"lia-action-token\");!0!==c.data(\"lia-ajax\")&&void 0!==e&&!1===a.isPropagationStopped()&&!1===a.isImmediatePropagationStopped()&&!1===a.isDefaultPrevented()&&(a.stop(),a=b(\"\\x3cform\\x3e\",{method:\"POST\",action:c.attr(\"href\"),enctype:\"multipart/form-data\"}),e=b(\"\\x3cinput\\x3e\",{type:\"hidden\",name:\"lia-action-token\",value:e}),a.append(e),b(document.body).append(a),a.submit(),d.trigger(\"click\"))}var d=b(document);void 0===d.data(\"lia-link-action-handler\")&&\n(d.data(\"lia-link-action-handler\",!0),d.on(\"click.link-action\",f.linkSelector,g),b.fn.on=b.wrap(b.fn.on,function(a){var c=a.apply(this,b.makeArray(arguments).slice(1));this.is(document)&&(d.off(\"click.link-action\",f.linkSelector,g),a.call(this,\"click.link-action\",f.linkSelector,g));return c}))}})(LITHIUM.jQuery);\nLITHIUM.Link({\n \"linkSelector\" : \"a.lia-link-ticket-post-action\"\n});LITHIUM.AjaxSupport.fromLink('#disableAutoComplete_3ac17e51d6e079', 'disableAutoComplete', '#ajaxfeedback_3ac17e5174c54a_0', 'LITHIUM:ajaxError', {}, 'Qgn__B5aF6k_I7vxIEO90UqY1FFFAFgQxBYZveMDUEU.', 'ajax');","content":"Turn off suggestions<\/a>"}],"prefixTriggerTextLength":3},"inputSelector":"#messageSearchField_3ac17e5174c54a_1","redirectToItemLink":false,"url":"https://community.sisense.com/t5/community/page.searchformv32.tkbmessagesearchfield.messagesearchfield:autocomplete?t:cp=search/contributions/page","resizeImageEvent":"LITHIUM:renderImages"});
LITHIUM.AutoComplete({"options":{"autosuggestionAvailableInstructionText":"Auto-suggestions available. Use Up and Down arrow keys to navigate.","triggerTextLength":0,"autocompleteInstructionsSelector":"#autocompleteInstructionsText_3ac17e5174c54a_1","updateInputOnSelect":true,"loadingText":"Searching for users...","emptyText":"No Matches","successText":"Users found:","defaultText":"Enter a user name or rank","autosuggestionUnavailableInstructionText":"No suggestions available","disabled":false,"footerContent":[{"scripts":"\n\n(function(b){LITHIUM.Link=function(f){function g(a){var c=b(this),e=c.data(\"lia-action-token\");!0!==c.data(\"lia-ajax\")&&void 0!==e&&!1===a.isPropagationStopped()&&!1===a.isImmediatePropagationStopped()&&!1===a.isDefaultPrevented()&&(a.stop(),a=b(\"\\x3cform\\x3e\",{method:\"POST\",action:c.attr(\"href\"),enctype:\"multipart/form-data\"}),e=b(\"\\x3cinput\\x3e\",{type:\"hidden\",name:\"lia-action-token\",value:e}),a.append(e),b(document.body).append(a),a.submit(),d.trigger(\"click\"))}var d=b(document);void 0===d.data(\"lia-link-action-handler\")&&\n(d.data(\"lia-link-action-handler\",!0),d.on(\"click.link-action\",f.linkSelector,g),b.fn.on=b.wrap(b.fn.on,function(a){var c=a.apply(this,b.makeArray(arguments).slice(1));this.is(document)&&(d.off(\"click.link-action\",f.linkSelector,g),a.call(this,\"click.link-action\",f.linkSelector,g));return c}))}})(LITHIUM.jQuery);\nLITHIUM.Link({\n \"linkSelector\" : \"a.lia-link-ticket-post-action\"\n});LITHIUM.AjaxSupport.fromLink('#disableAutoComplete_3ac17e51fe88fb', 'disableAutoComplete', '#ajaxfeedback_3ac17e5174c54a_0', 'LITHIUM:ajaxError', {}, '1d7AU0Yof-4JnjbMPk9s6RRce1bB87Qc8hYHa0rMd-k.', 'ajax');","content":"Turn off suggestions<\/a>"}],"prefixTriggerTextLength":0},"inputSelector":"#userSearchField_3ac17e5174c54a","redirectToItemLink":false,"url":"https://community.sisense.com/t5/community/page.searchformv32.usersearchfield.usersearchfield:autocomplete?t:cp=search/contributions/page","resizeImageEvent":"LITHIUM:renderImages"});
LITHIUM.AjaxSupport({"ajaxOptionsParam":{"event":"LITHIUM:userExistsQuery","parameters":{"javascript.ignore_combine_and_minify":"true"}},"tokenId":"ajax","elementSelector":"#userSearchField_3ac17e5174c54a","action":"userExistsQuery","feedbackSelector":"#ajaxfeedback_3ac17e5174c54a_0","url":"https://community.sisense.com/t5/community/page.searchformv32.usersearchfield:userexistsquery?t:cp=search/contributions/page","ajaxErrorEventName":"LITHIUM:ajaxError","token":"1jkNfkM54DnKuruvQV7nl21SelSH6ECBKMMUTIHISOk."});
LITHIUM.AutoComplete({"options":{"autosuggestionAvailableInstructionText":"Auto-suggestions available. Use Up and Down arrow keys to navigate.","triggerTextLength":0,"autocompleteInstructionsSelector":"#autocompleteInstructionsText_3ac17e5174c54a_2","updateInputOnSelect":true,"loadingText":"Searching...","emptyText":"No Matches","successText":"Results:","defaultText":"Enter a search word","autosuggestionUnavailableInstructionText":"No suggestions available","disabled":false,"footerContent":[{"scripts":"\n\n(function(b){LITHIUM.Link=function(f){function g(a){var c=b(this),e=c.data(\"lia-action-token\");!0!==c.data(\"lia-ajax\")&&void 0!==e&&!1===a.isPropagationStopped()&&!1===a.isImmediatePropagationStopped()&&!1===a.isDefaultPrevented()&&(a.stop(),a=b(\"\\x3cform\\x3e\",{method:\"POST\",action:c.attr(\"href\"),enctype:\"multipart/form-data\"}),e=b(\"\\x3cinput\\x3e\",{type:\"hidden\",name:\"lia-action-token\",value:e}),a.append(e),b(document.body).append(a),a.submit(),d.trigger(\"click\"))}var d=b(document);void 0===d.data(\"lia-link-action-handler\")&&\n(d.data(\"lia-link-action-handler\",!0),d.on(\"click.link-action\",f.linkSelector,g),b.fn.on=b.wrap(b.fn.on,function(a){var c=a.apply(this,b.makeArray(arguments).slice(1));this.is(document)&&(d.off(\"click.link-action\",f.linkSelector,g),a.call(this,\"click.link-action\",f.linkSelector,g));return c}))}})(LITHIUM.jQuery);\nLITHIUM.Link({\n \"linkSelector\" : \"a.lia-link-ticket-post-action\"\n});LITHIUM.AjaxSupport.fromLink('#disableAutoComplete_3ac17e5223c5fc', 'disableAutoComplete', '#ajaxfeedback_3ac17e5174c54a_0', 'LITHIUM:ajaxError', {}, 'MT2_hNUJzJnVjWzF0taJ6dYwIBCQVj8pNfFcD0sCAM4.', 'ajax');","content":"Turn off suggestions<\/a>"}],"prefixTriggerTextLength":0},"inputSelector":"#noteSearchField_3ac17e5174c54a_0","redirectToItemLink":false,"url":"https://community.sisense.com/t5/community/page.searchformv32.notesearchfield.notesearchfield:autocomplete?t:cp=search/contributions/page","resizeImageEvent":"LITHIUM:renderImages"});
LITHIUM.AutoComplete({"options":{"autosuggestionAvailableInstructionText":"Auto-suggestions available. Use Up and Down arrow keys to navigate.","triggerTextLength":0,"autocompleteInstructionsSelector":"#autocompleteInstructionsText_3ac17e5174c54a_3","updateInputOnSelect":true,"loadingText":"Searching...","emptyText":"No Matches","successText":"Results:","defaultText":"Enter a search word","autosuggestionUnavailableInstructionText":"No suggestions available","disabled":false,"footerContent":[{"scripts":"\n\n(function(b){LITHIUM.Link=function(f){function g(a){var c=b(this),e=c.data(\"lia-action-token\");!0!==c.data(\"lia-ajax\")&&void 0!==e&&!1===a.isPropagationStopped()&&!1===a.isImmediatePropagationStopped()&&!1===a.isDefaultPrevented()&&(a.stop(),a=b(\"\\x3cform\\x3e\",{method:\"POST\",action:c.attr(\"href\"),enctype:\"multipart/form-data\"}),e=b(\"\\x3cinput\\x3e\",{type:\"hidden\",name:\"lia-action-token\",value:e}),a.append(e),b(document.body).append(a),a.submit(),d.trigger(\"click\"))}var d=b(document);void 0===d.data(\"lia-link-action-handler\")&&\n(d.data(\"lia-link-action-handler\",!0),d.on(\"click.link-action\",f.linkSelector,g),b.fn.on=b.wrap(b.fn.on,function(a){var c=a.apply(this,b.makeArray(arguments).slice(1));this.is(document)&&(d.off(\"click.link-action\",f.linkSelector,g),a.call(this,\"click.link-action\",f.linkSelector,g));return c}))}})(LITHIUM.jQuery);\nLITHIUM.Link({\n \"linkSelector\" : \"a.lia-link-ticket-post-action\"\n});LITHIUM.AjaxSupport.fromLink('#disableAutoComplete_3ac17e5244ce0d', 'disableAutoComplete', '#ajaxfeedback_3ac17e5174c54a_0', 'LITHIUM:ajaxError', {}, 'rzu3YD7saJjZrxnNcchZcAPweCgLqSM296JaAUoyrpI.', 'ajax');","content":"Turn off suggestions<\/a>"}],"prefixTriggerTextLength":0},"inputSelector":"#productSearchField_3ac17e5174c54a","redirectToItemLink":false,"url":"https://community.sisense.com/t5/community/page.searchformv32.productsearchfield.productsearchfield:autocomplete?t:cp=search/contributions/page","resizeImageEvent":"LITHIUM:renderImages"});
LITHIUM.AjaxSupport.fromLink('#enableAutoComplete_3ac17e5174c54a', 'enableAutoComplete', '#ajaxfeedback_3ac17e5174c54a_0', 'LITHIUM:ajaxError', {}, 'e8WF5VI7AQvmyfovzSbFg54Y-aKY8e4ejSNdrDyvc4I.', 'ajax');
LITHIUM.Tooltip({"bodySelector":"body#lia-body","delay":30,"enableOnClickForTrigger":false,"predelay":10,"triggerSelector":"#link_3ac17e5174c54a","tooltipContentSelector":"#link_3ac17e5174c54a_0-tooltip-element .content","position":["bottom","left"],"tooltipElementSelector":"#link_3ac17e5174c54a_0-tooltip-element","events":{"def":"focus mouseover keydown,blur mouseout keydown"},"hideOnLeave":true});
LITHIUM.HelpIcon({"selectors":{"helpIconSelector":".help-icon .lia-img-icon-help"}});
LITHIUM.SearchAutoCompleteToggle({"containerSelector":"#searchautocompletetoggle_3ac17e5174c54a","enableAutoCompleteSelector":".search-autocomplete-toggle-link","enableAutocompleteSuccessEvent":"LITHIUM:ajaxSuccess:enableAutoComplete","disableAutoCompleteSelector":".lia-autocomplete-toggle-off","disableAutocompleteSuccessEvent":"LITHIUM:ajaxSuccess:disableAutoComplete","autoCompleteSelector":".lia-autocomplete-input"});
LITHIUM.SearchForm({"asSearchActionIdSelector":".lia-as-search-action-id","useAutoComplete":true,"selectSelector":".lia-search-form-granularity","useClearSearchButton":false,"buttonSelector":".lia-button-searchForm-action","asSearchActionIdParamName":"as-search-action-id","formSelector":"#lia-searchformV32_3ac17e5174c54a","nodesModel":{"tkb|tkb":{"title":"Knowledge base","inputSelector":".lia-search-input-tkb-article"},"product|product":{"title":"Products","inputSelector":".lia-search-input-product"},"prwft24948|community":{"title":"Search Community: Sisense Community","inputSelector":".lia-search-input-message"},"user|user":{"title":"Users","inputSelector":".lia-search-input-user"}},"asSearchActionIdHeaderKey":"X-LI-AS-Search-Action-Id","inputSelector":"#messageSearchField_3ac17e5174c54a_0:not(.lia-js-hidden)","clearSearchButtonSelector":null});
//
LITHIUM.InformationBox({"updateFeedbackEvent":"LITHIUM:updateAjaxFeedback","componentSelector":"#pageInformation","feedbackSelector":".InfoMessage"});
LITHIUM.InformationBox({"updateFeedbackEvent":"LITHIUM:updateAjaxFeedback","componentSelector":"#informationbox","feedbackSelector":".InfoMessage"});
(function($){
var topicLists = new Array();
function animateTopicLists() {
$('.topics-list').each(function (i) {
if (topicLists[i].count > 3) {
if (topicLists[i].current + 1 > topicLists[i].count) {
topicLists[i].current = 1;
$('.topic-item', this).each(function (j) {
if (j < 3) {
$(this).show();
} else {
$(this).css({
display: "block",
opacity: 0
});
}
});
} else {
topicLists[i].current++;
}
$('.topic-item', this).each(function (j) {
if (j < topicLists[i].current) {
$(this).css({
opacity: 0,
transition: 'opacity 0.5s'
}).slideUp();
} else if (j > topicLists[i].current + 2) {
$(this).css({
opacity: 0,
display: "block"
});
} else {
$(this).css({
opacity: 1,
transition: 'opacity 0.5s'
});
}
if (j > topicLists[i].current + 3) {
$(this).css("display", "none");
}
});
}
});
}
function initTopicLists() {
$('.topics-list').each(function (i) {
topicLists[i] = new Object({
count: $('.topic-item', this).length,
current: 0,
bubbleheight: ($(this).height() - 30) / 3
});
if ($('.topic-item', this).length > 3) {
$(this).append($('.topic-item:eq(0)', this).clone());
$(this).append($('.topic-item:eq(1)', this).clone());
$(this).append($('.topic-item:eq(2)', this).clone());
}
$('.topic-item', this).each(function (j) {
if (j < topicLists[i].current || j > topicLists[i].current + 2) {
$(this).css({
display: "block",
opacity: 0
});
}
});
});
setInterval(animateTopicLists, 4000);
}
$(function () {
initTopicLists();
});
})(LITHIUM.jQuery);
;(function($) {
$(document).ready(function() {
var getMessages = function (spinnerTarget, clearMessages) {
var parentComponent = $('#custom-loader');
var messageTarget = $('.message-list', parentComponent);
var currentPage = null;
try {
currentPage = parseInt($(messageTarget).attr('data-attrib-current-page'), 10);
} catch (e) {
currentPage = 0;
}
$.ajax({
type: 'post',
url : '/plugins/custom/sisense/sisense/theme-lib.community-activity?tid=260144439752783382',
dataType: 'json',
data: {"currentPage": currentPage, "node": "prwft24948", "scope":"all", "messageListType": $(messageTarget).attr('data-attrib-message-list-type'), "allowedInteractionStyles": "forum,group,idea"},
context: parentComponent,
beforeSend: function(jqXHR, settings) {
$('#custom-loader-messages .errors', parentComponent).empty();
$(spinnerTarget).prepend('');
},
error: function (jqXHR, textStatus, errorThrown) {
$('#custom-loader-messages .errors', parentComponent).append(errorThrown);
},
success: function (data, textStatus, jqXHR) {
if (data.status == 'success') {
if (clearMessages) {
messageTarget.empty();
}
if (data.messages.length > 0) {
messageTarget.append(data.messages);
} else {
if (clearMessages) {
messageTarget.append('