Zitat:
|
Eine vorhandene Option/Attribut kann wohl nicht gelöscht werden mit dem (-)Button
|
Because xtc_draw_hidden_field( ) in attributeManagerPrompts.inc.php can not return value,
so change to use xtc_draw_input_field( ) ,
and add css id(#popupContainerHidden) in attributeManager.css to hidden input content.
change file:
1. admin/attributeManager/includes/attributeManagerPrompts.inc.php
2. admin/attributeManager/css/attributeManager.css
1.example, original
PHP-Code:
case 'amRemoveStockOptionValueFromProduct':
$amPopup = new amPopups();
$amPopup->setHeader(POPUP_HEADER_AMREMOVESTOCKOPTIONVALUEFROMPRODUCT);
$amPopup->addToContents(yesNoButtons($_GET['section']));
$amPopup->addToContents(xtc_draw_hidden_field('option_id',$arrExtraValues['option_id'],'id="option_id"'));
echo $amPopup->output();
break;
xtc_draw_hidden_field( ) change to xtc_draw_input_field( ), and add <div id="popupContainerHidden ">
PHP-Code:
case 'amRemoveStockOptionValueFromProduct':
$amPopup = new amPopups();
$amPopup->setHeader(POPUP_HEADER_AMREMOVESTOCKOPTIONVALUEFROMPRODUCT);
$amPopup->addToContents(yesNoButtons($_GET['section']));
$amPopup->addToContents('<div id="popupContainerHidden">');
$amPopup->addToContents(xtc_draw_input_field('option_id',$arrExtraValues['option_id'],'id="option_id"'));
$amPopup->addToContents('</div>');
echo $amPopup->output();
break;
and we must fix all xtc_draw_hidden_field( ) in attributeManagerPrompts.inc.php
2. add
Code:
#popupContainerHidden {
display:none;
}
in attributeManager.css