From c3b68b62ff06d037d988b93c20470e77621e751d Mon Sep 17 00:00:00 2001 From: Mattias Wadman Date: Sun, 21 Sep 2008 18:55:43 +0000 Subject: [PATCH] Change to first page on reset or filter changes --- webui/static/app/epg.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webui/static/app/epg.js b/webui/static/app/epg.js index 9f136c0b..dfefbfe4 100644 --- a/webui/static/app/epg.js +++ b/webui/static/app/epg.js @@ -202,12 +202,15 @@ tvheadend.epg = function() { epgFilterChannelTags.setValue(""); epgFilterContentGroup.setValue(""); epgFilterTitle.setValue(""); + + panel.getBottomToolbar().changePage(1); epgStore.reload(); } epgFilterChannels.on('select', function(c, r) { if(epgStore.baseParams.channel != r.data.name) { + panel.getBottomToolbar().changePage(1); epgStore.baseParams.channel = r.data.name; epgStore.reload(); } @@ -215,6 +218,7 @@ tvheadend.epg = function() { epgFilterChannelTags.on('select', function(c, r) { if(epgStore.baseParams.tag != r.data.name) { + panel.getBottomToolbar().changePage(1); epgStore.baseParams.tag = r.data.name; epgStore.reload(); } @@ -222,6 +226,7 @@ tvheadend.epg = function() { epgFilterContentGroup.on('select', function(c, r) { if(epgStore.baseParams.contentgrp != r.data.name) { + panel.getBottomToolbar().changePage(1); epgStore.baseParams.contentgrp = r.data.name; epgStore.reload(); } @@ -234,6 +239,7 @@ tvheadend.epg = function() { value = null; if(epgStore.baseParams.title != value) { + panel.getBottomToolbar().changePage(1); epgStore.baseParams.title = value; epgStore.reload(); }