"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "ui/js/class.tabfilter.js" between
zabbix-5.4.2.tar.gz and zabbix-5.4.3.tar.gz

About: ZABBIX is an enterprise-class distributed monitoring solution for servers and applications.

class.tabfilter.js  (zabbix-5.4.2):class.tabfilter.js  (zabbix-5.4.3)
skipping to change at line 382 skipping to change at line 382
item.setFocused(); item.setFocused();
item.fire(TABFILTERITEM_EVENT_EXP AND); item.fire(TABFILTERITEM_EVENT_EXP AND);
} }
} }
else if (!item._expanded) { else if (!item._expanded) {
item.fire(TABFILTERITEM_EVENT_EXPAND); item.fire(TABFILTERITEM_EVENT_EXPAND);
} }
else { else {
item.fire(TABFILTERITEM_EVENT_COLLAPSE); item.fire(TABFILTERITEM_EVENT_COLLAPSE);
} }
if (this._timeselector instanceof CTabFilterItem
&& item !== this._timeselector
&& this._timeselector._expanded)
{
this._timeselector.removeExpanded();
}
}, },
expand: (ev) => { expand: (ev) => {
let item = ev.detail.target; let item = ev.detail.target;
if (item !== this._timeselector) { if (item !== this._timeselector) {
this._filters_footer.classList.remove('di splay-none'); this._filters_footer.classList.remove('di splay-none');
} }
else { else {
this._filters_footer.classList.add('displ ay-none'); this._filters_footer.classList.add('displ ay-none');
skipping to change at line 445 skipping to change at line 450
}) })
.then(() => { .then(() => {
this._items.forEach((item, index) => { this._items.forEach((item, index) => {
item._index = index; item._index = index;
}); });
}); });
}, },
/** /**
* Event handler for 'Delete' button. * Event handler for 'Delete' button.
*
* @param {object} ev.detail.idx2 Index of deleted tab.
*/ */
deleteActiveFilterTab: (ev) => { deleteFilterTab: (ev) => {
this.delete(this._active_item); this.delete(this._items[ev.detail.idx2]);
}, },
/** /**
* Event handler for 'Save as' button and on filter modal close. * Event handler for 'Save as' button and on filter modal close.
*/ */
updateActiveFilterTab: (ev) => { updateActiveFilterTab: (ev) => {
var item = this.getSelectedItem(), var item = this.getSelectedItem(),
params; params;
if (ev.detail.create == '1') { if (ev.detail.create == '1') {
skipping to change at line 718 skipping to change at line 725
this._filters_footer.querySelector('[name="filter_new"]') this._filters_footer.querySelector('[name="filter_new"]')
.addEventListener('click', this._events.buttonSaveAsActio n); .addEventListener('click', this._events.buttonSaveAsActio n);
this._filters_footer.querySelector('[name="filter_apply"]') this._filters_footer.querySelector('[name="filter_apply"]')
.addEventListener('click', this._events.buttonApplyAction ); .addEventListener('click', this._events.buttonApplyAction );
this._filters_footer.querySelector('[name="filter_reset"]') this._filters_footer.querySelector('[name="filter_reset"]')
.addEventListener('click', this._events.buttonResetAction ); .addEventListener('click', this._events.buttonResetAction );
this._filters_footer.addEventListener('click', this._events.butto nActionNotify); this._filters_footer.addEventListener('click', this._events.butto nActionNotify);
this.on('keydown', this._events.keydown); this.on('keydown', this._events.keydown);
this.on(TABFILTERITEM_EVENT_UPDATE, this._events.updateActiveFilt erTab); this.on(TABFILTERITEM_EVENT_UPDATE, this._events.updateActiveFilt erTab);
this.on(TABFILTERITEM_EVENT_DELETE, this._events.deleteActiveFilt erTab); this.on(TABFILTERITEM_EVENT_DELETE, this._events.deleteFilterTab) ;
this.on('submit', (ev) => { this.on('submit', (ev) => {
ev.preventDefault(); ev.preventDefault();
this._filters_footer.querySelector('[name="filter_apply"] ').dispatchEvent(new CustomEvent('click')); this._filters_footer.querySelector('[name="filter_apply"] ').dispatchEvent(new CustomEvent('click'));
}); });
// Timeselector uses jQuery object as pub sub. // Timeselector uses jQuery object as pub sub.
$.subscribe('timeselector.rangeupdate', (e, data) => { $.subscribe('timeselector.rangeupdate', (e, data) => {
Object.assign(this._timeselector._data, data); Object.assign(this._timeselector._data, data);
this.updateTimeselector(this._active_item, false); this.updateTimeselector(this._active_item, false);
}); });
 End of changes. 4 change blocks. 
3 lines changed or deleted 12 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)