Commit 58ad111a authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_web_renderjs_ui: remove button to reset filter

User can reset the query with the search panel
parent eb791248
...@@ -24,8 +24,5 @@ ...@@ -24,8 +24,5 @@
<div class="wrap"></div> <div class="wrap"></div>
</div> </div>
</div> </div>
<div class="bottom">
<input type="submit" class="ui-disabled reset-filter" data-i18n="[value]Reset Filter" value="Reset Filter" disabled />
</div>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -244,7 +244,7 @@ ...@@ -244,7 +244,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>997.7172.17438.7031</string> </value> <value> <string>997.18810.28346.19746</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -262,7 +262,7 @@ ...@@ -262,7 +262,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1641309745.94</float> <float>1641321054.06</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -195,24 +195,6 @@ ...@@ -195,24 +195,6 @@
return gadget.changeState(data); return gadget.changeState(data);
}); });
}) })
.onEvent("click", function (evt) {
var gadget = this,
restore_filter_input = gadget.element.querySelector(".reset-filter");
if (evt.target === restore_filter_input) {
evt.preventDefault();
if (restore_filter_input) {
restore_filter_input.disabled = true;
restore_filter_input.classList.add("ui-disabled");
}
return gadget.redirect({
command: "change",
options: {
extended_search: undefined,
graphic_type: undefined
}
});
}
})
.onStateChange(function (modification_dict) { .onStateChange(function (modification_dict) {
var i, var i,
gadget = this, gadget = this,
...@@ -370,13 +352,6 @@ ...@@ -370,13 +352,6 @@
} }
} }
}); });
})
.push(function () {
var restore_filter_input = gadget.element.querySelector(".reset-filter");
if (restore_filter_input) {
restore_filter_input.disabled = false;
restore_filter_input.classList.remove("ui-disabled");
}
}); });
}); });
......
...@@ -246,7 +246,7 @@ ...@@ -246,7 +246,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>997.18816.40125.35669</string> </value> <value> <string>997.18817.60974.3703</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -264,7 +264,7 @@ ...@@ -264,7 +264,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1641310195.82</float> <float>1641321106.61</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
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