Commit c317fb2f authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Add to browser history when modifying listbox lines display

This allow user to revert his change by using the browser back button.
parent 1802003e
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
return gadget.redirect({ return gadget.redirect({
command: 'store_and_change', command: 'store_and_change',
options: options options: options
}); }, true);
}); });
}(window, document, rJS, RSVP, Handlebars)); }(window, document, rJS, RSVP, Handlebars));
\ No newline at end of file
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>967.40880.16026.33774</string> </value> <value> <string>971.7721.48108.61320</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>1526656389.18</float> <float>1546525778.12</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -318,7 +318,7 @@ ...@@ -318,7 +318,7 @@
if (result.editable.length === 1) { if (result.editable.length === 1) {
options.editable = true; options.editable = true;
} }
return context.redirect({command: 'change', options: options}); return context.redirect({command: 'change', options: options}, true);
}); });
} }
// Typing a search query should not modify the header status // Typing a search query should not modify the header status
...@@ -363,7 +363,7 @@ ...@@ -363,7 +363,7 @@
}); });
}) })
.push(function () { .push(function () {
return gadget.redirect({command: 'store_and_display', options: redirect_options}); return gadget.redirect({command: 'store_and_display', options: redirect_options}, true);
}); });
}, /*useCapture=*/false, /*preventDefault=*/true); }, /*useCapture=*/false, /*preventDefault=*/true);
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>971.20534.9804.61201</string> </value> <value> <string>971.37684.40708.23176</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>1541603920.02</float> <float>1546525718.29</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -182,7 +182,10 @@ ...@@ -182,7 +182,10 @@
options.extended_search = undefined; options.extended_search = undefined;
} }
return gadget.redirect({command: 'store_and_change', options: options}); return gadget.redirect({
command: 'store_and_change',
options: options
}, true);
}); });
}, false, true) }, false, true)
...@@ -277,7 +280,7 @@ ...@@ -277,7 +280,7 @@
options: { options: {
"extended_search": Query.objectToSearchText(search_query) "extended_search": Query.objectToSearchText(search_query)
} }
}); }, true);
} }
throw new Error('Unsupported triggerListboxSelectAction action: ' + action); throw new Error('Unsupported triggerListboxSelectAction action: ' + action);
......
...@@ -426,7 +426,7 @@ ...@@ -426,7 +426,7 @@
return this.redirect({ return this.redirect({
command: 'store_and_change', command: 'store_and_change',
options : options options : options
}); }, true);
}) })
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>967.40700.16743.2833</string> </value> <value> <string>972.18557.43984.10752</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>1526656468.0</float> <float>1546525761.18</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -167,7 +167,7 @@ ...@@ -167,7 +167,7 @@
return gadget.redirect({ return gadget.redirect({
command: 'store_and_change', command: 'store_and_change',
options: options options: options
}); }, true);
}); });
}(window, document, rJS, RSVP, Handlebars)); }(window, document, rJS, RSVP, Handlebars));
\ No newline at end of file
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>967.40883.19504.22237</string> </value> <value> <string>971.7721.48108.61320</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>1526656572.21</float> <float>1546525739.0</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