Skip to content

Instantly share code, notes, and snippets.

@hobbes3
Created September 19, 2014 04:00
Show Gist options
  • Save hobbes3/9639e5cd35a17c97d0f4 to your computer and use it in GitHub Desktop.
Save hobbes3/9639e5cd35a17c97d0f4 to your computer and use it in GitHub Desktop.
move paginator to top table
// Not sure if it works with event view 100% of the time
function move_paginator_to_top(panel_id) {
var paginator = $("#" + panel_id).find("div.splunk-paginator");
var results_table = $("#" + panel_id).find("div.shared-resultstable-resultstablemaster");
$(results_table).css("clear", "both");
$(paginator).css("clear", "both");
$(results_table).before($(paginator));
}
var transaction_table_search = mvc.Components.get("search12");
transaction_table_search.on('search:done', function(properties) {
move_paginator_to_top("transaction_table");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment