handle missing q val

This commit is contained in:
Oliver Gorwits
2014-01-24 23:32:27 +00:00
parent 12e1446c99
commit 17e85fc122

View File

@@ -66,6 +66,10 @@
if ($('#uuid').val()) { if ($('#uuid').val()) {
$(form).find("input[name=q]").val( $('#uuid').val() ); $(form).find("input[name=q]").val( $('#uuid').val() );
} }
// handle missing q val, just in case
if (! $('#nq').val()) {
$('#nq').val( $('#uuid').val() );
}
// then copy to all other inactive tab sidebars // then copy to all other inactive tab sidebars
$('.nd_sidebar-form').find("input[name=q]").each( function() { $('.nd_sidebar-form').find("input[name=q]").each( function() {
$(this).val( $(form).find("input[name=q]").val() ); $(this).val( $(form).find("input[name=q]").val() );