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