Fix selector or margin with jmobile
This commit is contained in:
parent
5f507cbbd8
commit
378da082bd
@ -249,7 +249,7 @@ else {
|
|||||||
<td class="nobottom" align="right" class="margininfos">
|
<td class="nobottom" align="right" class="margininfos">
|
||||||
<!-- For predef product -->
|
<!-- For predef product -->
|
||||||
<?php if (! empty($conf->product->enabled) || ! empty($conf->service->enabled)) { ?>
|
<?php if (! empty($conf->product->enabled) || ! empty($conf->service->enabled)) { ?>
|
||||||
<select id="fournprice_predef" name="fournprice_predef" class="flat" style="display: none;"></select>
|
<select id="fournprice_predef" name="fournprice_predef" class="flat" data-role="none" style="display: none;"></select>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<!-- For free product -->
|
<!-- For free product -->
|
||||||
<input type="text" size="5" id="buying_price" name="buying_price" class="flat" value="<?php echo (isset($_POST["buying_price"])?$_POST["buying_price"]:''); ?>">
|
<input type="text" size="5" id="buying_price" name="buying_price" class="flat" value="<?php echo (isset($_POST["buying_price"])?$_POST["buying_price"]:''); ?>">
|
||||||
@ -552,7 +552,7 @@ jQuery(document).ready(function() {
|
|||||||
|
|
||||||
/* Define default price at loading */
|
/* Define default price at loading */
|
||||||
var defaultprice = $("#fournprice_predef").find('option:selected').attr("price");
|
var defaultprice = $("#fournprice_predef").find('option:selected').attr("price");
|
||||||
$("#buying_price").val(defaultprice);
|
$("#buying_price").val(Math.round(defaultprice,<?php print ($conf->global->MAIN_MAX_DECIMALS_UNIT ? $conf->global->MAIN_MAX_DECIMALS_UNIT : 5); ?>));
|
||||||
|
|
||||||
$("#fournprice_predef").change(function() {
|
$("#fournprice_predef").change(function() {
|
||||||
/* Hide field buying_price according to choice into list (if 'inputprice' or not) */
|
/* Hide field buying_price according to choice into list (if 'inputprice' or not) */
|
||||||
|
|||||||
@ -172,7 +172,7 @@ $coldisplay=-1; // We remove first td
|
|||||||
<td align="right" class="margininfos"><?php $coldisplay++; ?>
|
<td align="right" class="margininfos"><?php $coldisplay++; ?>
|
||||||
<!-- For predef product -->
|
<!-- For predef product -->
|
||||||
<?php if (! empty($conf->product->enabled) || ! empty($conf->service->enabled)) { ?>
|
<?php if (! empty($conf->product->enabled) || ! empty($conf->service->enabled)) { ?>
|
||||||
<select id="fournprice_predef" name="fournprice_predef" class="flat" style="display: none;"></select>
|
<select id="fournprice_predef" name="fournprice_predef" class="flat" data-role="none" style="display: none;"></select>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<!-- For free product -->
|
<!-- For free product -->
|
||||||
<input type="text" size="5" id="buying_price" name="buying_price" class="hideobject" value="<?php echo price($line->pa_ht,0,'',0); ?>">
|
<input type="text" size="5" id="buying_price" name="buying_price" class="hideobject" value="<?php echo price($line->pa_ht,0,'',0); ?>">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user