From 9d798d77bcd1c7a445dbf55b61e19d392e663fe6 Mon Sep 17 00:00:00 2001
From: Pippin Williamson
Date: Sun, 22 Dec 2013 21:31:05 -0600
Subject: [PATCH] Add full support for Chosen to the Bundled Products UI. #965
---
assets/css/edd-admin.css | 4 +-
includes/admin/discounts/add-discount.php | 15 ++++--
includes/admin/discounts/edit-discount.php | 14 ++++-
includes/admin/downloads/metabox.php | 60 +++++-----------------
includes/class-edd-html-elements.php | 39 +++++++++-----
5 files changed, 66 insertions(+), 66 deletions(-)
diff --git a/assets/css/edd-admin.css b/assets/css/edd-admin.css
index e1bfebf4273..dc8525e51d7 100755
--- a/assets/css/edd-admin.css
+++ b/assets/css/edd-admin.css
@@ -92,7 +92,9 @@ textarea#edd_product_notes { width: 100%; height: 4em; margin: 0; }
#edd-purchased-files .inside { margin: 0; padding: 0; }
.edd-price-field { width: 80px; }
-.edd_repeatable_upload_wrapper .pricing select, .edd_repeatable_product_wrapper .edd-select { min-width: 100%; }
+.edd_repeatable_upload_wrapper .pricing select, .edd_repeatable_product_wrapper .edd-select,
+#edd_products .edd-select { min-width: 100%; }
+.edd_repeatable_product_wrapper td { overflow: visible; }
/** Stats */
#edd_product_stats .label { width: 70px; display: inline-block; }
diff --git a/includes/admin/discounts/add-discount.php b/includes/admin/discounts/add-discount.php
index c9481d21cb0..2dfad9507f6 100755
--- a/includes/admin/discounts/add-discount.php
+++ b/includes/admin/discounts/add-discount.php
@@ -70,8 +70,12 @@
- html->product_dropdown( 'products[]', array(), true, true ); ?>
-
+ html->product_dropdown( array(
+ 'name' => 'products[]',
+ 'selected' => array(),
+ 'multiple' => true,
+ 'chosen' => true
+ ) ); ?>
@@ -87,7 +91,12 @@
- html->product_dropdown( 'excluded-products[]', array(), true, true ); ?>
+ html->product_dropdown( array(
+ 'name' => 'excluded-products[]',
+ 'selected' => array(),
+ 'multiple' => true,
+ 'chosen' => true
+ ) ); ?>
|
diff --git a/includes/admin/discounts/edit-discount.php b/includes/admin/discounts/edit-discount.php
index b3e7dc27d9a..53adf237d8b 100755
--- a/includes/admin/discounts/edit-discount.php
+++ b/includes/admin/discounts/edit-discount.php
@@ -79,7 +79,12 @@
- html->product_dropdown( 'products[]', $product_reqs, true, true ); ?>
+ html->product_dropdown( array(
+ 'name' => 'products[]',
+ 'selected' => $excluded_products,
+ 'multiple' => true,
+ 'chosen' => true
+ ) ); ?>