add uuid support to device page sidebar

This commit is contained in:
Oliver Gorwits
2014-01-22 23:06:19 +00:00
parent f711047a33
commit 12e1446c99
5 changed files with 36 additions and 23 deletions

View File

@@ -74,6 +74,9 @@ function update_content(from, to) {
$('#' + to + '_search').toggleClass('active');
var to_form = '#' + to + '_form';
var form = $(to_form).find('input[name!=q]')
.add('<input name="q" type="hidden" value="' + $('#nq').val() + '"/>')
.add('<input name="uuid" type="hidden" value="' + $('#uuid').val() + '"/>');
var from_form = '#' + from + '_form';
// page title
@@ -93,8 +96,8 @@ function update_content(from, to) {
if (window.History && window.History.enabled && is_from_state_event == 0) {
is_from_history_plugin = 1;
window.History.pushState(
{name: to, fields: $(to_form).serializeArray()},
pgtitle, uri_base + '/' + path + '?' + $(to_form).serialize()
{name: to, fields: form.serializeArray()},
pgtitle, uri_base + '/' + path + '?' + form.serialize()
);
is_from_history_plugin = 0;
}