[FIX] website_sale: add product: customize img (forgotten merge)

bzr revid: chm@openerp.com-20140411115939-yw257u179wqbh6sy
This commit is contained in:
chm@openerp.com 2014-04-11 13:59:39 +02:00
parent ab5aa5daff
commit 4550b532ca
1 changed files with 9 additions and 23 deletions

View File

@ -54,41 +54,27 @@
title: _t("Change the price"), title: _t("Change the price"),
content: _t("Edit the price of this product by clicking on the amount."), content: _t("Edit the price of this product by clicking on the amount."),
}, },
{ {
waitNot: '.product_price .oe_currency_value:containsExact(1.00)', waitNot: '.product_price .oe_currency_value:containsExact(1.00)',
element: '#wrap img.img:first', element: '#wrap img.product_detail_img',
placement: 'top', placement: 'top',
title: _t("Update image"), title: _t("Update image"),
content: _t("Click here to set an image describing your product."), content: _t("Click here to set an image describing your product."),
}, },
{ {
element: 'button.hover-edition-button:visible', element: 'img[alt=ipad]',
placement: 'top', placement: 'top',
title: _t("Update image"),
content: _t("Click here to set an image describing your product."),
},
{
wait: 500,
element: '.well a.pull-right',
placement: 'bottom',
title: _t("Select an Image"), title: _t("Select an Image"),
content: _t("Let's select an existing image."), content: _t("Let's select an ipad image."),
popover: { fixed: true },
}, },
{ {
element: 'img[alt=imac]', waitFor: '.media_selected img[alt=ipad]',
placement: 'bottom',
title: _t("Select an Image"),
content: _t("Let's select an imac image."),
popover: { fixed: true },
},
{
waitNot: 'img[alt=imac]',
element: '.modal-content button.save', element: '.modal-content button.save',
placement: 'bottom', placement: 'top',
title: _t("Select this Image"), title: _t("Save this Image"),
content: _t("Click to add the image to the product decsription."), content: _t("Click on save to add the image to the product decsription."),
popover: { fixed: true },
}, },
{ {
waitNot: '.modal-content:visible', waitNot: '.modal-content:visible',