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 @@
return gadget.redirect({
command: 'store_and_change',
options: options
});
}, true);
});
}(window, document, rJS, RSVP, Handlebars));
\ No newline at end of file
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>967.40880.16026.33774</string> </value>
<value> <string>971.7721.48108.61320</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1526656389.18</float>
<float>1546525778.12</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -318,7 +318,7 @@
if (result.editable.length === 1) {
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
......@@ -363,7 +363,7 @@
});
})
.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);
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>971.20534.9804.61201</string> </value>
<value> <string>971.37684.40708.23176</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1541603920.02</float>
<float>1546525718.29</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -182,7 +182,10 @@
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)
......@@ -277,7 +280,7 @@
options: {
"extended_search": Query.objectToSearchText(search_query)
}
});
}, true);
}
throw new Error('Unsupported triggerListboxSelectAction action: ' + action);
......
......@@ -426,7 +426,7 @@
return this.redirect({
command: 'store_and_change',
options : options
});
}, true);
})
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>967.40700.16743.2833</string> </value>
<value> <string>972.18557.43984.10752</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1526656468.0</float>
<float>1546525761.18</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -167,7 +167,7 @@
return gadget.redirect({
command: 'store_and_change',
options: options
});
}, true);
});
}(window, document, rJS, RSVP, Handlebars));
\ No newline at end of file
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>967.40883.19504.22237</string> </value>
<value> <string>971.7721.48108.61320</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1526656572.21</float>
<float>1546525739.0</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