$(this).addClass("ui-icon-close");f } ); } function manualPIAttached(xmlResult, txtStatus) { if(txtStatus=="success") { reloadPIList(); } } function attachManualPI() { $("#actAttach").click(function(){ var pid = $("#manpi-act").find("#products_id").val(); var list_cat_pi = $("#manpi-act").find("#list-cat-pi").val(); var list_pi = $("#manpi-act").find("#list-pi").val(); $.post(url, { me_action: "MANUALPIATTACH", products_id:pid, list_cat_pi:list_cat_pi, list_pi:list_pi }, manualPIAttached, "xml"); }); $("#actDone").click(function(){ sopDone("manpi"); }); $("#actManageMpi").click(function(){ window.open("?open=production-instruction-manual"); }); } $("#setsubcat-ok").click(function() { sopDone("setsubcat"); }); $("#setprofin-ok").click(function() { sopDone("setprofin"); }); $("#setdesc2-ok").click(function() { sopDone("setdesc2"); }); $("#setfamily-ok").click(function() { sopDone("setfamily"); }); ' . $class_pm->drawAttributesJSBehavior() . ' '; $title = 'Update Details Product <a href="?open=product-detail&products_id=' . $products_id . '" title="View Product Detail">' . $products_id . '</a>';
{ me_action: "SAVECOGSMANUAL", products_id: ' . $products_id . ', cogs: cogs }, cogsTableReloaded, "html"); }); function cogsTableReloaded(htmlResult, txtStatus) { if (txtStatus == "success") { $("#cogs-table").html(htmlResult); $("#cogs-manual-form").siblings("img").remove(); $("#cogs-manual-set").show(); } } ' . $class_pm->constructJSElementsUsed('#prodet-tab2') . $class_pm->drawAttributesJSBehavior(); if ($catalog_ebde !== false) { $javascript .= ' $("#ebde_name_suggest").click(function() { $("#ebde_name").val($(this).text()); recalcEbayNameLength(); }); $("#ebde_name").keyup(function() { recalcEbayNameLength(); }); recalcEbayNameLength(); function recalcEbayNameLength() { var ebde_name = $("#ebde_name").val(); var length_text = "(" + ebde_name.length.toString() + " chars)"; $("#ebde_name_length").text(length_text); if (ebde_name.length > ' . $ebay_name_max_chars . ') {
$content .= '<div style="margin-left:620px;border-left:1px solid #ccc;padding:20px;">'; $content .= '<div style="margin-bottom:20px;">' . webImage($brand['brand_image'], IMAGE_SIZE_THUMBNAIL_2, '', $brand['brand_name']) . '</div>'; $content .= '<h3>' . $product_categories_name[$product['categories_id']] . ' / ' . $product['categories_name'] . '</h3>'; $content .= '<h3>Lengths: ' . ($length != '' ? $length : '<span class="notice">None</span>') . '</h3>'; $content .= '<div id="area-selling-points">'; $content .= drawSellingPointsData($product_selling_points, $product_selling_points_amde); $content .= '</div>'; $content .= '<br/><br/>'; $content .= '<small class="notice">Used this button to reset selling points (all custom updates will also removed)</small><br/>'; $content .= '<input id="btn-reassign-selling-points" type="button" value="Reassign Selling Points" />'; $content .= '</div>'; $content .= '<div style="clear:both;"></div>'; $content .= '</div>'; //#block-step-5 //we remove all price related script $javascript = $class_pm->drawAttributesJSBehavior() . ' $("table.form").find("input, textarea").focus(function() { if($("#btn-update").hasClass("green")) { $("#btn-update").removeClass("green"); $("#btn-update").attr("disabled", false); $("#btn-update").val("Save Changes"); } if($(this).attr("id").search("price")!=-1) $(this).select(); }); function sellingPointsReassigned(txtResult, txtStatus) { if(txtStatus=="success") { $("#area-selling-points").html(txtResult); } } function changesSaved(txtResult, txtStatus) {