Author: adityasharma
Date: Wed Jan 2 04:56:49 2019
New Revision: 1850148
URL: http://svn.apache.org/viewvc?rev=1850148&view=rev
Log:
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/trunk/themes/common-theme/template/includes/SetMultipleSelectJs.ftl
ofbiz/ofbiz-framework/trunk/themes/common-theme/template/includes/SetMultipleSelectJsList.ftl
Modified:
ofbiz/ofbiz-framework/trunk/themes/common-theme/template/includes/SetMultipleSelectJs.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/themes/common-theme/template/includes/SetMultipleSelectJs.ftl?rev=1850148&r1=1850147&r2=1850148&view=diff
==============================================================================
---
ofbiz/ofbiz-framework/trunk/themes/common-theme/template/includes/SetMultipleSelectJs.ftl
(original)
+++
ofbiz/ofbiz-framework/trunk/themes/common-theme/template/includes/SetMultipleSelectJs.ftl
Wed Jan 2 04:56:49 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/trunk/themes/common-theme/template/includes/SetMultipleSelectJsList.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/themes/common-theme/template/includes/SetMultipleSelectJsList.ftl?rev=1850148&r1=1850147&r2=1850148&view=diff
==============================================================================
---
ofbiz/ofbiz-framework/trunk/themes/common-theme/template/includes/SetMultipleSelectJsList.ftl
(original)
+++
ofbiz/ofbiz-framework/trunk/themes/common-theme/template/includes/SetMultipleSelectJsList.ftl
Wed Jan 2 04:56:49 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 -->