Skip to content

Instantly share code, notes, and snippets.

@simcen
simcen / patch.diff
Created October 19, 2016 12:35
Broken pagination fix in Alert Manager for Splunk 6.5
From 77670a9230d7972ab7b15eff7284f1380fc87d08 Mon Sep 17 00:00:00 2001
From: Simon Balz <[email protected]>
Date: Wed, 19 Oct 2016 14:31:36 +0200
Subject: [PATCH] Fixed broken pagination in Splunk 6.5
---
src/appserver/static/incident_posture.js | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/appserver/static/incident_posture.js b/src/appserver/static/incident_posture.js
require.config({
paths: {
"app": "../app"
}
});
require([
"splunkjs/mvc",
"splunkjs/mvc/utils",
"splunkjs/mvc/tokenutils",
"underscore",
<form script="sample_dashboard.js">
<label>Sample Dashboard</label>
<fieldset submitButton="false" autoRun="true">
<input type="dropdown" token="nr_rows" searchWhenChanged="true">
<label>Number of rows:</label>
<choice value="10">10</choice>
<choice value="20">20</choice>
<choice value="30">30</choice>
<default>10</default>
</input>