[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r431 - trunk/tools/include/template
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r431 - trunk/tools/include/template |
Date: |
Mon, 1 Oct 2012 23:12:14 +0200 (CEST) |
Author: danydb
Date: 2012-10-01 23:12:11 +0200 (Mon, 01 Oct 2012)
New Revision: 431
Modified:
trunk/tools/include/template/search_box.php
Log:
throw an exception instead of a negative return
Modified: trunk/tools/include/template/search_box.php
===================================================================
--- trunk/tools/include/template/search_box.php 2012-10-01 21:10:09 UTC (rev
430)
+++ trunk/tools/include/template/search_box.php 2012-10-01 21:12:11 UTC (rev
431)
@@ -19,7 +19,13 @@
</FORM>
<script charset="UTF8" lang="javascript">
function validate() {
- if ( check_date_id('<?=$idate_start->id?>') == false )
{alert('Date de début incorrecte');return false;}
- if ( check_date_id('<?=$idate_end->id?>') == false )
{alert('Date de fin incorrecte');return false;}
+ if ( check_date_id('<?=$idate_start->id?>') == false ) {
+ alert('Date de début incorrecte');
+ $('<?=$idate_start->id?>').style.borderColor='red';
+ return false;}
+ if ( check_date_id('<?=$idate_end->id?>') == false ) {
+ alert('Date de fin incorrecte');
+ $('<?=$idate_end->id?>').style.borderColor='red';
+ return false;}
}
</script>
\ No newline at end of file
---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r431 - trunk/tools/include/template,
phpcompta-dev <=