Fix #1524 - webui: ignore mux updates from different adapter.

These were causing the store to be unecessarily reloaded and as a
result the enabled flag would get cleared in the middle of editing.
This commit is contained in:
Adam Sutton 2013-01-19 23:24:16 +00:00
parent bda8422d35
commit 39a2272b56
2 changed files with 5 additions and 0 deletions

View file

@ -1010,6 +1010,8 @@ dvb_mux_build_msg(th_dvb_mux_instance_t *tdmi)
htsmsg_t *m = htsmsg_create_map();
char buf[100];
htsmsg_add_str(m, "adapterId", tdmi->tdmi_adapter->tda_identifier);
htsmsg_add_str(m, "id", tdmi->tdmi_identifier);
htsmsg_add_u32(m, "enabled", tdmi->tdmi_enabled);
htsmsg_add_str(m, "network", tdmi->tdmi_network ?: "");

View file

@ -120,6 +120,9 @@ tvheadend.dvb_muxes = function(adapterData, satConfStore) {
tvheadend.comet.on('dvbMux', function(m) {
if(m.adapterId !== adapterId)
return;
r = store.getById(m.id)
if (typeof r === 'undefined') {
store.reload();