mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2025-02-22 17:03:22 -05:00
Select Type is now static to avoid unnecessary errors.
1). Makes better sense from a UI perspective.
This commit is contained in:
parent
e8610e6b2f
commit
b01649d369
@ -6,6 +6,11 @@ td > label:not(.payment_type):not(.open_shop):not(.gnucash_csv) {
|
|||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* bold transaction type */
|
||||||
|
#trans_type_info {
|
||||||
|
font-weight: bolder;
|
||||||
|
}
|
||||||
|
|
||||||
/* make unimportant buttons into links */
|
/* make unimportant buttons into links */
|
||||||
input[value=Delete], input[name=date_fill] {
|
input[value=Delete], input[name=date_fill] {
|
||||||
background:none!important;
|
background:none!important;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* jQuery fun with transactions - Jonathan Rosenbaum */
|
/* jQuery fun with transactions - Jonathan Rosenbaum <gnuser@gmail.com> */
|
||||||
|
|
||||||
// currently some css is just hardwired, but that reflects the coding style of YBDB :)
|
// currently some css is just hardwired, but that reflects the coding style of YBDB :)
|
||||||
|
|
||||||
@ -8,8 +8,8 @@ $(function() {
|
|||||||
$.ajaxSetup({async:false}); // best to do this in $.ajax,
|
$.ajaxSetup({async:false}); // best to do this in $.ajax,
|
||||||
// but all ajax needs to be synchronous in this program because of the use of mysql
|
// but all ajax needs to be synchronous in this program because of the use of mysql
|
||||||
|
|
||||||
$("select[name='transaction_type']").attr("tabindex",1);
|
$("#transaction_type").attr("tabindex",1);
|
||||||
$("select[name='transaction_type']").focus();
|
$("#transaction_type").focus();
|
||||||
$("input[value='Create Transaction']").attr("tabindex",2);
|
$("input[value='Create Transaction']").attr("tabindex",2);
|
||||||
$("#trans_date").mask("0000-00-00", {placeholder: "yyyy-mm-dd" });
|
$("#trans_date").mask("0000-00-00", {placeholder: "yyyy-mm-dd" });
|
||||||
|
|
||||||
@ -218,7 +218,7 @@ $(function() {
|
|||||||
percentage_amounts = percentage_amounts + percentage;
|
percentage_amounts = percentage_amounts + percentage;
|
||||||
}
|
}
|
||||||
|
|
||||||
// watch that percentage don't aquire too many decimal points.
|
// watch that percentage doesn't acquire too many decimal points.
|
||||||
//console.dir(range_obj);
|
//console.dir(range_obj);
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -435,7 +435,7 @@ $(function() {
|
|||||||
|
|
||||||
// make tabbing more predictable
|
// make tabbing more predictable
|
||||||
$("input[name='shop_id']").attr("tabindex",1);
|
$("input[name='shop_id']").attr("tabindex",1);
|
||||||
$("select[name='transaction_type']").attr("tabindex",2);
|
// $("#transaction_type").attr("tabindex",2);
|
||||||
$("input[name='date_startstorage']").attr("tabindex",3);
|
$("input[name='date_startstorage']").attr("tabindex",3);
|
||||||
$("input[name='date']").attr("tabindex",4);
|
$("input[name='date']").attr("tabindex",4);
|
||||||
$("input[name='quantity']").attr("tabindex",5);
|
$("input[name='quantity']").attr("tabindex",5);
|
||||||
@ -515,7 +515,7 @@ $(function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// description error
|
// description error
|
||||||
if ( $("[name='transaction_type']").val() != "Deposit" ) { // Deposit description is implicit
|
if ( $("#transaction_type").val() != "Deposit" ) { // Deposit description is implicit
|
||||||
err5 = error_handler(description.val(), description_error, "","*Required: a detailed description",e);
|
err5 = error_handler(description.val(), description_error, "","*Required: a detailed description",e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -401,8 +401,14 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "ChangeDate")) {
|
|||||||
<td><input name="shop_id" type="text" id="shop_id" value="<?php echo $row_Recordset2['shop_id']; ?>" size="6" /></td>
|
<td><input name="shop_id" type="text" id="shop_id" value="<?php echo $row_Recordset2['shop_id']; ?>" size="6" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php ?>
|
<?php ?>
|
||||||
<tr><td> </td><td><label>Select Type:</label></td>
|
<tr><td> </td><td><label for="trans_type_info">Transaction Type:</label></td>
|
||||||
<td><?php list_transaction_types('transaction_type',$row_Recordset2['transaction_type'] ); ?></td>
|
<td><?php echo "<span id='trans_type_info'>" . $row_Recordset2['transaction_type'] . "</span>";
|
||||||
|
echo "<input type='hidden' id='transaction_type' name='transaction_type' value='" .
|
||||||
|
$row_Recordset2['transaction_type'] . "'>";
|
||||||
|
|
||||||
|
//list_transaction_types('transaction_type',$row_Recordset2['transaction_type'] );
|
||||||
|
|
||||||
|
?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php //date_startstorage ==============================================================
|
<?php //date_startstorage ==============================================================
|
||||||
if($row_Recordset3['show_startdate']){?>
|
if($row_Recordset3['show_startdate']){?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user