Commit fcc2bd59 authored by Mathieu Giraud's avatar Mathieu Giraud

list.js, segmenter.js: update calls to filter functions

See #2228 and #2201.
parent a29ed380
......@@ -259,7 +259,7 @@ List.prototype = {
filter_input.type = 'text'
filter_input.setAttribute('placeholder', 'search');
filter_input.onchange = function () {
self.filter(this.value)
self.m.filter(this.value)
}
var filter_reset = document.createElement('span')
......@@ -267,7 +267,7 @@ List.prototype = {
filter_reset.className = "button"
filter_reset.onclick = function () {
document.getElementById('filter_input').value = ''
self.reset_filter(false)
self.m.reset_filter(false)
self.m.update()
}
......
......@@ -291,7 +291,7 @@ Segment.prototype = {
var focus_selected = document.createElement('a');
focus_selected.appendChild(document.createTextNode("(focus)"))
focus_selected.className = "focus_selected"
focus_selected.onclick = function () { list_clones.focus() }
focus_selected.onclick = function () { self.m.focusSelected() }
div_stats.appendChild(focus_selected)
div_stats.appendChild(document.createTextNode(' '))
......@@ -299,7 +299,7 @@ Segment.prototype = {
var hide_selected = document.createElement('a');
hide_selected.appendChild(document.createTextNode("(hide)"))
hide_selected.className = "focus_selected"
hide_selected.onclick = function () { list_clones.hide() }
hide_selected.onclick = function () { self.m.hideSelected() }
div_stats.appendChild(hide_selected)
//
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment