From: <vv...@us...> - 2015-03-30 21:32:52
|
Revision: 7244 http://sourceforge.net/p/web-erp/reponame/7244 Author: vvs2012 Date: 2015-03-30 21:32:49 +0000 (Mon, 30 Mar 2015) Log Message: ----------- Update Order did not work in Firefox. Error in pattern attribute. Modified Paths: -------------- trunk/TaxGroups.php Modified: trunk/TaxGroups.php =================================================================== --- trunk/TaxGroups.php 2015-03-30 21:12:13 UTC (rev 7243) +++ trunk/TaxGroups.php 2015-03-30 21:32:49 UTC (rev 7244) @@ -93,7 +93,7 @@ while($myrow=DB_fetch_row($Result)) { - if(is_numeric($_POST['CalcOrder_' . $myrow[0]]) AND $_POST['CalcOrder_' . $myrow[0]] <5) { + if(is_numeric($_POST['CalcOrder_' . $myrow[0]]) AND $_POST['CalcOrder_' . $myrow[0]] < 10) { $sql = "UPDATE taxgrouptaxes SET calculationorder='" . $_POST['CalcOrder_' . $myrow[0]] . "', @@ -304,7 +304,7 @@ $j++; } echo '<td>' . $TaxAuthRow[$i]['taxname'] . '</td> - <td><input type="text" class="integer" pattern="[1-4] {1}" title="'._('The input must be positive integer and less than 5').'" name="CalcOrder_' . $TaxAuthRow[$i]['taxauthid'] . '" value="' . $TaxAuthRow[$i]['calculationorder'] . '" size="2" maxlength="2" style="width: 100%" /></td> + <td><input type="text" class="integer" pattern="(?!^0*$)(\d+)" title="'._('The input must be positive integer and less than 10').'" name="CalcOrder_' . $TaxAuthRow[$i]['taxauthid'] . '" value="' . $TaxAuthRow[$i]['calculationorder'] . '" size="1" maxlength="1" style="width: 90%" /></td> <td><select name="TaxOnTax_' . $TaxAuthRow[$i]['taxauthid'] . '" style="width: 100%">'; if($TaxAuthRow[$i]['taxontax']==1) { echo '<option selected="selected" value="1">' . _('Yes') . '</option>'; |