From 7d1e6d993d001217e2e5decd9794e60aaaab5dca Mon Sep 17 00:00:00 2001 From: gRoussac Date: Wed, 23 Jan 2013 18:38:00 +0100 Subject: [PATCH] [-] BO : fix css for iframe of custom products when creating order in BO --- .../themes/default/template/controllers/orders/form.tpl | 7 ++++++- css/admin.css | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/admin-dev/themes/default/template/controllers/orders/form.tpl b/admin-dev/themes/default/template/controllers/orders/form.tpl index b5f6df8e6..7e1138ca0 100755 --- a/admin-dev/themes/default/template/controllers/orders/form.tpl +++ b/admin-dev/themes/default/template/controllers/orders/form.tpl @@ -42,6 +42,7 @@ defaults_order_state['{$module}'] = '{$id_order_state}'; {/foreach} $(document).ready(function() { + $('#customer').typeWatch({ captureLength: 1, highlight: true, @@ -597,7 +598,11 @@ }); products_found += ''; $('#products_found #product_list').html(products_found); - $('#products_found #attributes_list').html(attributes_html); + $('#products_found #attributes_list').html(attributes_html); + $('link[rel="stylesheet"]').each(function (i, element) { + sheet = $(element).clone(); + $('#products_found #customization_list').contents().find('head').append(sheet); + }); $('#products_found #customization_list').contents().find('body').html(customization_html); display_product_attributes(); display_product_customizations(); diff --git a/css/admin.css b/css/admin.css index 2a9e99a39..4986af815 100644 --- a/css/admin.css +++ b/css/admin.css @@ -2384,3 +2384,8 @@ margin-bottom:7px; margin-left:30px; list-style-type:disc; } + +.id_customization .customization_field { + min-width: 205px; + width: 205px; +}