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