svn commit: r1850149 - in /ofbiz/ofbiz-framework/branches/release18.12/themes/common-theme/template/includes: SetMultipleSelectJs.ftl SetMultipleSelectJsList.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1850149 - in /ofbiz/ofbiz-framework/branches/release18.12/themes/common-theme/template/includes: SetMultipleSelectJs.ftl SetMultipleSelectJsList.ftl

adityasharma
Author: adityasharma
Date: Wed Jan  2 05:05:31 2019
New Revision: 1850149

URL: http://svn.apache.org/viewvc?rev=1850149&view=rev
Log:
Applied fix from trunk for revision: 1850148
===

Improved: When using Select2 for multiple selects the field is too narrow in 'no results' case
(OFBIZ-10682)
Set width to 50% so that it shows input box of size that accomodates 'No Results' message.

Modified:
    ofbiz/ofbiz-framework/branches/release18.12/themes/common-theme/template/includes/SetMultipleSelectJs.ftl
    ofbiz/ofbiz-framework/branches/release18.12/themes/common-theme/template/includes/SetMultipleSelectJsList.ftl

Modified: ofbiz/ofbiz-framework/branches/release18.12/themes/common-theme/template/includes/SetMultipleSelectJs.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/branches/release18.12/themes/common-theme/template/includes/SetMultipleSelectJs.ftl?rev=1850149&r1=1850148&r2=1850149&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/branches/release18.12/themes/common-theme/template/includes/SetMultipleSelectJs.ftl (original)
+++ ofbiz/ofbiz-framework/branches/release18.12/themes/common-theme/template/includes/SetMultipleSelectJs.ftl Wed Jan  2 05:05:31 2019
@@ -29,7 +29,8 @@ under the License.
         multiple.select2({
           tags: true,
           multiple: true,
-          lang: <#if userLogin??>'${userLogin.lastLocale!"en"}'<#else>"en"</#if>
+          lang: <#if userLogin??>'${userLogin.lastLocale!"en"}'<#else>"en"</#if>,
+          width: "50%"
         });
 
       <#if asm_relatedField??> <#-- can be used without related field -->

Modified: ofbiz/ofbiz-framework/branches/release18.12/themes/common-theme/template/includes/SetMultipleSelectJsList.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/branches/release18.12/themes/common-theme/template/includes/SetMultipleSelectJsList.ftl?rev=1850149&r1=1850148&r2=1850149&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/branches/release18.12/themes/common-theme/template/includes/SetMultipleSelectJsList.ftl (original)
+++ ofbiz/ofbiz-framework/branches/release18.12/themes/common-theme/template/includes/SetMultipleSelectJsList.ftl Wed Jan  2 05:05:31 2019
@@ -31,7 +31,8 @@ under the License.
               multiple.select2({
                 tags: true,
                 multiple: true,
-                lang: <#if userLogin??>'${userLogin.lastLocale!"en"}'<#else>"en"</#if>
+                lang: <#if userLogin??>'${userLogin.lastLocale!"en"}'<#else>"en"</#if>,
+                width: "50%"
               });
 
               <#if row.asm_relatedField??> <#-- can be used without related field -->