]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
toaster: Don't add new history entries when table data loads
authorElliot Smith <elliot.smith@intel.com>
Mon, 5 Oct 2015 11:08:31 +0000 (12:08 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 11 Oct 2015 04:24:53 +0000 (05:24 +0100)
commit70c5e40a0f77ae4835fb95275621c345f8190240
treec66a9b0f1e1e3330dc8b0187f2ad7bb285173f75
parent27d0360d13af0c698bf3a224b3f0d415f17bb678
toaster: Don't add new history entries when table data loads

When ToasterTable data is loaded into the UI, a new entry is
added to the browser history. This means that pressing the back
button appears to have no effect, as you end up at the same page,
possibly with slightly different data.

Instead, use replaceState(), so that the browser history doesn't
grow, but the page context still gets updated.

[YOCTO #7660]

Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/toaster/toastergui/static/js/table.js