Commit 1de5f339 authored by Valentin Benozillo's avatar Valentin Benozillo Committed by Vincent Bechu

[erp5_web_renderjs_ui][erp5_officejs] Fix : double notifyChange on smartphone (input + change)

parent 7afdbea8
......@@ -74,7 +74,9 @@
})
.allowPublicAcquisition('notifyChange', function (result, scope) {
/*jslint unparam: true*/
return this.send(scope);
if (result[0] === "change") {
return this.send(scope);
}
})
......
......@@ -271,7 +271,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>966.51353.24557.19694</string> </value>
<value> <string>967.20676.40581.32768</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -289,7 +289,7 @@
</tuple>
<state>
<tuple>
<float>1523869735.49</float>
<float>1525444169.16</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -209,13 +209,13 @@
.onEvent('change', function () {
return RSVP.all([
this.checkValidity(),
this.notifyChange()
this.notifyChange("change")
]);
}, false, false)
.onEvent('input', function () {
return RSVP.all([
this.checkValidity(),
this.notifyChange()
this.notifyChange("input")
]);
}, false, false)
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>966.44416.58701.37888</string> </value>
<value> <string>967.20671.63313.48913</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1523022821.7</float>
<float>1525444277.62</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