mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-28 15:49:57 +09:00
issue 160 search input value check
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9196 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
8ac23139e8
commit
ace9dd3f6e
12 changed files with 102 additions and 6 deletions
|
|
@ -60,3 +60,17 @@ function completeGetTrackbackList(ret_obj, response_tags)
|
|||
}
|
||||
jQuery('#trackbackManageListTable>tbody').html(htmlListBuffer);
|
||||
}
|
||||
|
||||
function checkSearch(form)
|
||||
{
|
||||
if(form.search_target.value == '')
|
||||
{
|
||||
alert(xe.lang.msg_empty_search_target);
|
||||
return false;
|
||||
}
|
||||
if(form.search_keyword.value == '')
|
||||
{
|
||||
alert(xe.lang.msg_empty_search_keyword);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
<script type="text/javascript">
|
||||
xe.lang.msg_empty_search_target = '{$lang->msg_empty_search_target}';
|
||||
xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}';
|
||||
</script>
|
||||
<!--%import("js/trackback_admin.js")-->
|
||||
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
|
|
@ -104,7 +108,7 @@
|
|||
</span>
|
||||
</form>
|
||||
|
||||
<form action="">
|
||||
<form action="" onsubmit="return checkSearch(this)">
|
||||
<input type="hidden" name="module" value="{$module}" />
|
||||
<input type="hidden" name="act" value="{$act}" />
|
||||
<input type="hidden" name="module_srl" value="{$module_srl}" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue