Form submission canceled because the form is not connected
This commit is contained in:
@ -63,10 +63,13 @@ function search(e) {
|
|||||||
if(!keywords) {
|
if(!keywords) {
|
||||||
location.href = "{{$.searchUrl}}";
|
location.href = "{{$.searchUrl}}";
|
||||||
} else {
|
} else {
|
||||||
var tpl = '<form action="{{$.searchUrl}}" method="get">';
|
var tpl = '<form style="display: none" action="{{$.searchUrl}}" method="get">';
|
||||||
tpl += '<input name="keywords" value="' + keywords + '" />';
|
tpl += '<input name="keywords" value="' + keywords + '" />';
|
||||||
tpl += "</form";
|
tpl += "</form";
|
||||||
$(tpl).submit();
|
var $tpl = $(tpl);
|
||||||
|
$('body').append($tpl)
|
||||||
|
$tpl.submit();
|
||||||
|
$tpl.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -63,10 +63,13 @@ function search(e) {
|
|||||||
if(!keywords) {
|
if(!keywords) {
|
||||||
location.href = "{{$.searchUrl}}";
|
location.href = "{{$.searchUrl}}";
|
||||||
} else {
|
} else {
|
||||||
var tpl = '<form action="{{$.searchUrl}}" method="get">';
|
var tpl = '<form style="display: none" action="{{$.searchUrl}}" method="get">';
|
||||||
tpl += '<input name="keywords" value="' + keywords + '" />';
|
tpl += '<input name="keywords" value="' + keywords + '" />';
|
||||||
tpl += "</form";
|
tpl += "</form";
|
||||||
$(tpl).submit();
|
var $tpl = $(tpl);
|
||||||
|
$('body').append($tpl)
|
||||||
|
$tpl.submit();
|
||||||
|
$tpl.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -63,10 +63,13 @@ function search(e) {
|
|||||||
if(!keywords) {
|
if(!keywords) {
|
||||||
location.href = "{{$.searchUrl}}";
|
location.href = "{{$.searchUrl}}";
|
||||||
} else {
|
} else {
|
||||||
var tpl = '<form action="{{$.searchUrl}}" method="get">';
|
var tpl = '<form style="display: none" action="{{$.searchUrl}}" method="get">';
|
||||||
tpl += '<input name="keywords" value="' + keywords + '" />';
|
tpl += '<input name="keywords" value="' + keywords + '" />';
|
||||||
tpl += "</form";
|
tpl += "</form";
|
||||||
$(tpl).submit();
|
var $tpl = $(tpl);
|
||||||
|
$('body').append($tpl)
|
||||||
|
$tpl.submit();
|
||||||
|
$tpl.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Reference in New Issue
Block a user