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

erp5_web_renderjs_ui: reset query and graphic

parent 08980c06
......@@ -192,6 +192,22 @@
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) {
var i,
gadget = this,
......@@ -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 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>997.9171.49361.29986</string> </value>
<value> <string>997.10234.48008.57565</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -264,7 +264,7 @@
</tuple>
<state>
<tuple>
<float>1640731509.5</float>
<float>1640795301.35</float>
<string>UTC</string>
</tuple>
</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