Commit 18d27ab4 authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_web_renderjs_ui: reset query and graphic

parent 08980c06
...@@ -192,6 +192,22 @@ ...@@ -192,6 +192,22 @@
return gadget.changeState(data); return gadget.changeState(data);
}); });
}) })
.onEvent("click", function (evt) {
var gadget = this,
restore_filter_input = gadget.element.querySelectorAll("input")[0];
if (evt.target === restore_filter_input) {
evt.preventDefault();
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,
...@@ -349,6 +365,11 @@ ...@@ -349,6 +365,11 @@
} }
} }
}); });
})
.push(function () {
var restore_filter_input = gadget.element.querySelectorAll("input")[0];
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.9171.49361.29986</string> </value> <value> <string>997.10234.48008.57565</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>1640731509.5</float> <float>1640795301.35</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