SOLR-2455: Prevent double submit of forms in admin interface

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1089335 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2011-04-06 07:43:16 +00:00
parent 2fe7952ce9
commit c914b3066a
3 changed files with 5 additions and 2 deletions

View File

@ -246,6 +246,9 @@ Bug Fixes
* SOLR-2445: Change the default qt to blank in form.jsp, because there is no "standard"
request handler unless you have it in your solrconfig.xml explicitly. (koji)
* SOLR-2455: Prevent double submit of forms in admin interface.
(Jeffrey Chang via uschindler)
Other Changes
----------------------

View File

@ -121,7 +121,7 @@
<td>
</td>
<td>
<input class="stdbutton" type="submit" value="search" onclick="if (queryForm.q.value.length==0) { alert('no empty queries, please'); return false; } else { queryForm.submit(); } ">
<input class="stdbutton" type="submit" value="search" onclick="if (queryForm.q.value.length==0) { alert('no empty queries, please'); return false; } else { queryForm.submit(); return false;} ">
</td>
</tr>
</table>

View File

@ -125,7 +125,7 @@
<input name="rows" type="hidden" value="10">
<input name="indent" type="hidden" value="on">
<br><input class="stdbutton" type="submit" value="search"
onclick="if (queryForm.q.value.length==0) { alert('no empty queries, please'); return false; } else { queryForm.submit(); } ">
onclick="if (queryForm.q.value.length==0) { alert('no empty queries, please'); return false; } else { queryForm.submit(); return false;} ">
</form>
</td>
</tr>