[ofbiz-framework] branch trunk updated: Fixed: removed unused asmselect files and unused variable asm_asmListItemPercentOfForm (OFBIZ-10113) asm select library is already replaced with select2 library, but the library files still exist in code base unused. asm_asmListItemPercentOfForm varaible was used to set the width of the selected items which were displaced distictly from select fields. With select2, the selected items display inside the input field so it is no more needed

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

[ofbiz-framework] branch trunk updated: Fixed: removed unused asmselect files and unused variable asm_asmListItemPercentOfForm (OFBIZ-10113) asm select library is already replaced with select2 library, but the library files still exist in code base unused. asm_asmListItemPercentOfForm varaible was used to set the width of the selected items which were displaced distictly from select fields. With select2, the selected items display inside the input field so it is no more needed

adityasharma
This is an automated email from the ASF dual-hosted git repository.

adityasharma pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new e97f45c  Fixed: removed unused asmselect files and unused variable asm_asmListItemPercentOfForm (OFBIZ-10113) asm select library is already replaced with select2 library, but the library files still exist in code base unused. asm_asmListItemPercentOfForm varaible was used to set the width of the selected items which were displaced distictly from select fields. With select2, the selected items display inside the input field so it is no more needed
e97f45c is described below

commit e97f45c3811005935296008e140b42fb7cf5ca1d
Author: Aditya Sharma <[hidden email]>
AuthorDate: Wed May 12 11:57:54 2021 +0530

    Fixed: removed unused asmselect files and unused variable asm_asmListItemPercentOfForm (OFBIZ-10113)
    asm select library is already replaced with select2 library, but the library files still exist in code base unused.
    asm_asmListItemPercentOfForm varaible was used to set the width of the selected items which were displaced distictly from select fields. With select2, the selected items display inside the input field so it is no more needed
   
    Thanks Jacques Le Roux for reporting it
---
 applications/accounting/widget/InvoiceScreens.xml  |   1 -
 applications/accounting/widget/PaymentScreens.xml  |   1 -
 .../accounting/widget/ap/InvoiceScreens.xml        |   1 -
 .../content/widget/content/ContentScreens.xml      |   1 -
 .../content/widget/content/DataResourceScreens.xml |   1 -
 applications/humanres/widget/EmplLeaveScreens.xml  |   1 -
 .../humanres/widget/EmploymentAppScreens.xml       |   1 -
 applications/humanres/widget/PartyQualScreens.xml  |   1 -
 .../widget/manufacturing/JobshopScreens.xml        |   1 -
 .../widget/ordermgr/AllocationPlanScreens.xml      |   1 -
 .../order/widget/ordermgr/CustRequestScreens.xml   |   1 -
 .../widget/ordermgr/OrderEntryOrderScreens.xml     |   1 -
 .../order/widget/ordermgr/OrderReturnScreens.xml   |   1 -
 .../order/widget/ordermgr/OrderViewScreens.xml     |   1 -
 .../order/widget/ordermgr/QuoteScreens.xml         |   1 -
 .../order/widget/ordermgr/RequirementScreens.xml   |   1 -
 .../product/widget/facility/FacilityScreens.xml    |   1 -
 .../product/widget/facility/ShipmentScreens.xml    |   1 -
 .../workeffort/widget/WorkEffortScreens.xml        |   1 -
 framework/webtools/widget/GeoManagementScreens.xml |   1 -
 .../template/includes/SetMultipleSelectJs.ftl      |   1 -
 .../template/includes/SetMultipleSelectJsList.ftl  |   1 -
 .../common/js/jquery/plugins/asmselect/README.txt  | 102 ------
 .../asmselect/jquery.asmselect-1.0.4a-beta.css     |  63 ----
 .../asmselect/jquery.asmselect-1.0.4a-beta.js      | 407 ---------------------
 25 files changed, 594 deletions(-)

diff --git a/applications/accounting/widget/InvoiceScreens.xml b/applications/accounting/widget/InvoiceScreens.xml
index 766554e..633ab06 100644
--- a/applications/accounting/widget/InvoiceScreens.xml
+++ b/applications/accounting/widget/InvoiceScreens.xml
@@ -78,7 +78,6 @@ under the License.
                 <set field="titleProperty" value="PageTitleFindInvoice"/>
                 <set field="helpAnchor" value="_help_for_find_invoices"/>
                 <set field="asm_multipleSelectForm" value="FindInvoices"/>
-                <set field="asm_asmListItemPercentOfForm" value="110"/>
                 <set field="statusId.asm_multipleSelect" value="FindInvoices_statusId"/>
                 <set field="statusId.asm_sortable" value="true"/>
                 <set field="statusId.asm_title" value=" "/>
diff --git a/applications/accounting/widget/PaymentScreens.xml b/applications/accounting/widget/PaymentScreens.xml
index 13faeb3..88d43e4 100644
--- a/applications/accounting/widget/PaymentScreens.xml
+++ b/applications/accounting/widget/PaymentScreens.xml
@@ -68,7 +68,6 @@ under the License.
                 <set field="tabButtonItem" value="findPayment"/>
                 <set field="helpAnchor" value="_help_for_find_payments"/>
                 <set field="asm_multipleSelectForm" value="FindPayments"/>
-                <set field="asm_asmListItemPercentOfForm" value="110"/>
                 <set field="statusId.asm_multipleSelect" value="FindPayments_statusId"/>
                 <set field="statusId.asm_sortable" value="true"/>
                 <set field="statusId.asm_title" value=" "/>
diff --git a/applications/accounting/widget/ap/InvoiceScreens.xml b/applications/accounting/widget/ap/InvoiceScreens.xml
index ac03460..09e954c 100644
--- a/applications/accounting/widget/ap/InvoiceScreens.xml
+++ b/applications/accounting/widget/ap/InvoiceScreens.xml
@@ -116,7 +116,6 @@ under the License.
                 </entity-and>
                 <set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
                 <set field="asm_multipleSelectForm" value="FindPurchaseInvoices"/>
-                <set field="asm_asmListItemPercentOfForm" value="110"/>
                 <set field="statusId.asm_multipleSelect" value="FindPurchaseInvoices_statusId"/>
                 <set field="statusId.asm_sortable" value="true"/>
                 <set field="statusId.asm_title" value=" "/>
diff --git a/applications/content/widget/content/ContentScreens.xml b/applications/content/widget/content/ContentScreens.xml
index 85e01a2..e2e5781 100644
--- a/applications/content/widget/content/ContentScreens.xml
+++ b/applications/content/widget/content/ContentScreens.xml
@@ -35,7 +35,6 @@ under the License.
                 <set field="viewIndex" from-field="requestParameters.VIEW_INDEX" type="Integer"/>
                 <set field="viewSize" from-field="requestParameters.VIEW_SIZE" type="Integer" default-value="30"/>
                 <set field="asm_multipleSelectForm" value="FindContent"/>
-                <set field="asm_asmListItemPercentOfForm" value="110"/>
                 <set field="statusId.asm_multipleSelect" value="FindContent_statusId"/>
                 <set field="statusId.asm_sortable" value="true"/>
                 <set field="statusId.asm_title" value=" "/>
diff --git a/applications/content/widget/content/DataResourceScreens.xml b/applications/content/widget/content/DataResourceScreens.xml
index 6801690..c0cba26 100644
--- a/applications/content/widget/content/DataResourceScreens.xml
+++ b/applications/content/widget/content/DataResourceScreens.xml
@@ -29,7 +29,6 @@ under the License.
                 <set field="viewIndex" from-field="requestParameters.VIEW_INDEX" type="Integer"/>
                 <set field="viewSize" from-field="requestParameters.VIEW_SIZE" type="Integer" default-value="30"/>
                 <set field="asm_multipleSelectForm" value="FindDataResource"/>
-                <set field="asm_asmListItemPercentOfForm" value="110"/>
                 <set field="statusId.asm_multipleSelect" value="FindDataResource_statusId"/>
                 <set field="statusId.asm_sortable" value="true"/>
                 <set field="statusId.asm_title" value=" "/>
diff --git a/applications/humanres/widget/EmplLeaveScreens.xml b/applications/humanres/widget/EmplLeaveScreens.xml
index b0264f3..2ce01c5 100644
--- a/applications/humanres/widget/EmplLeaveScreens.xml
+++ b/applications/humanres/widget/EmplLeaveScreens.xml
@@ -35,7 +35,6 @@
                 </service>
                 <set field="hasAdminPermission" from-field="permResult.hasPermission"/>
                 <set field="asm_multipleSelectForm" value="FindEmplLeaves"/>
-                <set field="asm_asmListItemPercentOfForm" value="110"/>
                 <set field="leaveStatus.asm_multipleSelect" value="FindEmplLeaves_leaveStatus"/>
                 <set field="leaveStatus.asm_sortable" value="true"/>
                 <set field="leaveStatus.asm_title" value=" "/>
diff --git a/applications/humanres/widget/EmploymentAppScreens.xml b/applications/humanres/widget/EmploymentAppScreens.xml
index 04e81f4..c469556 100644
--- a/applications/humanres/widget/EmploymentAppScreens.xml
+++ b/applications/humanres/widget/EmploymentAppScreens.xml
@@ -27,7 +27,6 @@
                 <set field="headerItem" value="EmploymentApp"/>
                 <set field="employmentAppCtx" from-field="parameters"/>
                 <set field="asm_multipleSelectForm" value="FindEmploymentApps"/>
-                <set field="asm_asmListItemPercentOfForm" value="110"/>
                 <set field="statusId.asm_multipleSelect" value="FindEmploymentApps_statusId"/>
                 <set field="statusId.asm_sortable" value="true"/>
                 <set field="statusId.asm_title" value=" "/>
diff --git a/applications/humanres/widget/PartyQualScreens.xml b/applications/humanres/widget/PartyQualScreens.xml
index c0f8c2a..324560e 100644
--- a/applications/humanres/widget/PartyQualScreens.xml
+++ b/applications/humanres/widget/PartyQualScreens.xml
@@ -30,7 +30,6 @@
                 <set field="fromDate" from-field="parameters.fromDate"/>
                 <set field="partyQualCtx" from-field="parameters"/>
                 <set field="asm_multipleSelectForm" value="FindPartyQuals"/>
-                <set field="asm_asmListItemPercentOfForm" value="110"/>
                 <set field="statusId.asm_multipleSelect" value="FindPartyQuals_statusId"/>
                 <set field="statusId.asm_sortable" value="true"/>
                 <set field="statusId.asm_title" value=" "/>
diff --git a/applications/manufacturing/widget/manufacturing/JobshopScreens.xml b/applications/manufacturing/widget/manufacturing/JobshopScreens.xml
index 496b026..e593008 100644
--- a/applications/manufacturing/widget/manufacturing/JobshopScreens.xml
+++ b/applications/manufacturing/widget/manufacturing/JobshopScreens.xml
@@ -692,7 +692,6 @@ under the License.
                 <set field="viewSizeDefaultValue" value="${groovy: modelTheme.getDefaultViewSize()}" type="Integer"/>
                 <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>
                 <set field="asm_multipleSelectForm" value="FindProductionRun"/>
-                <set field="asm_asmListItemPercentOfForm" value="110"/>
                 <set field="currentStatusId.asm_multipleSelect" value="FindProductionRun_currentStatusId"/>
                 <set field="currentStatusId.asm_sortable" value="true"/>
                 <set field="currentStatusId.asm_title" value=" "/>
diff --git a/applications/order/widget/ordermgr/AllocationPlanScreens.xml b/applications/order/widget/ordermgr/AllocationPlanScreens.xml
index 644ed61..030c78b 100644
--- a/applications/order/widget/ordermgr/AllocationPlanScreens.xml
+++ b/applications/order/widget/ordermgr/AllocationPlanScreens.xml
@@ -145,7 +145,6 @@ under the License.
                 <!-- asmselect parameters, must be prefixed by asm_ for SetMultipleSelectJs.ftl -->
                 <set field="asm_multipleSelectForm" value="updateAllocationPlanItems"/>
                 <set field="asm_formSize" value="1000"/>
-                <set field="asm_asmListItemPercentOfForm" value="95"/>
                 <set field="asm_sortable" value="false"/>
                 <script location="component://order/groovyScripts/allocationplan/ViewAllocationPlan.groovy"/>
             </actions>
diff --git a/applications/order/widget/ordermgr/CustRequestScreens.xml b/applications/order/widget/ordermgr/CustRequestScreens.xml
index cf7df6a..724431e 100644
--- a/applications/order/widget/ordermgr/CustRequestScreens.xml
+++ b/applications/order/widget/ordermgr/CustRequestScreens.xml
@@ -28,7 +28,6 @@ under the License.
                 <set field="headerItem" value="request"/>
                 <set field="entityName" value="CustRequest"/>
                 <set field="asm_multipleSelectForm" value="FindRequests"/>
-                <set field="asm_asmListItemPercentOfForm" value="110"/>
                 <set field="custRequestType.asm_multipleSelect" value="FindRequests_custRequestTypeId"/>
                 <set field="custRequestType.asm_sortable" value="true"/>
                 <set field="custRequestType.asm_title" value=" "/>
diff --git a/applications/order/widget/ordermgr/OrderEntryOrderScreens.xml b/applications/order/widget/ordermgr/OrderEntryOrderScreens.xml
index 20f4be7..a63321b 100644
--- a/applications/order/widget/ordermgr/OrderEntryOrderScreens.xml
+++ b/applications/order/widget/ordermgr/OrderEntryOrderScreens.xml
@@ -215,7 +215,6 @@ under the License.
                 <!--set field="asm_multipleSelectForm"  value="addAdditionalPartyForm"/>
                 <set field="asm_multipleSelect"  value="additionalRoleTypeId"/>
                 <set field="asm_formSize" value="700"/>
-                <set field="asm_asmListItemPercentOfForm" value="95"/>
                 <set field="asm_sortable" value="false"/>
                 <property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
                 <set field="asm_title" value="${uiLabelMap.OrderPartySelectRoleForParty}"/-->
diff --git a/applications/order/widget/ordermgr/OrderReturnScreens.xml b/applications/order/widget/ordermgr/OrderReturnScreens.xml
index e5832a5..f83d7e0 100644
--- a/applications/order/widget/ordermgr/OrderReturnScreens.xml
+++ b/applications/order/widget/ordermgr/OrderReturnScreens.xml
@@ -47,7 +47,6 @@ under the License.
                 <set field="viewSizeDefaultValue" value="${groovy: modelTheme.getDefaultViewSize()}" type="Integer"/>
                 <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>
                 <set field="asm_multipleSelectForm" value="FindReturns"/>
-                <set field="asm_asmListItemPercentOfForm" value="110"/>
                 <set field="statusId.asm_multipleSelect" value="FindReturns_statusId"/>
                 <set field="statusId.asm_sortable" value="true"/>
                 <set field="statusId.asm_title" value=" "/>
diff --git a/applications/order/widget/ordermgr/OrderViewScreens.xml b/applications/order/widget/ordermgr/OrderViewScreens.xml
index 42561e6..6122bd8 100644
--- a/applications/order/widget/ordermgr/OrderViewScreens.xml
+++ b/applications/order/widget/ordermgr/OrderViewScreens.xml
@@ -259,7 +259,6 @@ under the License.
                 <!-- asmselect parameters, must be prefixed by asm_ for SetMultipleSelectJs.ftl -->
                 <set field="asm_multipleSelectForm"  value="lookuporder"/>
                 <set field="asm_multipleSelect"  value="roleTypeId"/>
-                <set field="asm_asmListItemPercentOfForm" value="95"/>
                 <set field="asm_sortable" value="false"/>
                 <property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
                 <set field="asm_title" from-field="uiLabelMap.OrderPartySelectRoleForParty"/>
diff --git a/applications/order/widget/ordermgr/QuoteScreens.xml b/applications/order/widget/ordermgr/QuoteScreens.xml
index a5ee85c..55bc829 100644
--- a/applications/order/widget/ordermgr/QuoteScreens.xml
+++ b/applications/order/widget/ordermgr/QuoteScreens.xml
@@ -70,7 +70,6 @@ under the License.
                 <set field="viewSizeDefaultValue" value="${groovy: modelTheme.getDefaultViewSize()}" type="Integer"/>
                 <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>
                 <set field="asm_multipleSelectForm" value="FindQuotes"/>
-                <set field="asm_asmListItemPercentOfForm" value="110"/>
                 <set field="statusId.asm_multipleSelect" value="FindQuotes_statusId"/>
                 <set field="statusId.asm_sortable" value="true"/>
                 <set field="statusId.asm_title" value=" "/>
diff --git a/applications/order/widget/ordermgr/RequirementScreens.xml b/applications/order/widget/ordermgr/RequirementScreens.xml
index 72cbbf5..a6cf9f2 100644
--- a/applications/order/widget/ordermgr/RequirementScreens.xml
+++ b/applications/order/widget/ordermgr/RequirementScreens.xml
@@ -89,7 +89,6 @@ under the License.
                 <set field="viewSizeDefaultValue" value="${groovy: modelTheme.getDefaultViewSize()}" type="Integer"/>
                 <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>
                 <set field="asm_multipleSelectForm" value="FindRequirements"/>
-                <set field="asm_asmListItemPercentOfForm" value="110"/>
                 <set field="statusId.asm_multipleSelect" value="FindRequirements_statusId"/>
                 <set field="statusId.asm_sortable" value="true"/>
                 <set field="statusId.asm_title" value=" "/>
diff --git a/applications/product/widget/facility/FacilityScreens.xml b/applications/product/widget/facility/FacilityScreens.xml
index 50dc144..f9b3cd0 100644
--- a/applications/product/widget/facility/FacilityScreens.xml
+++ b/applications/product/widget/facility/FacilityScreens.xml
@@ -331,7 +331,6 @@ under the License.
                 <property-map resource="ProductUiLabels" map-name="uiLabelMap"/>
                 <set field="title" from-field="uiLabelMap.PageTitleEditFacilityInventoryItems"/>
                 <set field="asm_multipleSelectForm" value="SearchInventoryItemsParams"/>
-                <set field="asm_asmListItemPercentOfForm" value="110"/>
                 <set field="statusId.asm_multipleSelect" value="SearchInventoryItemsParams_statusId"/>
                 <set field="statusId.asm_sortable" value="true"/>
                 <set field="statusId.asm_title" value=" "/>
diff --git a/applications/product/widget/facility/ShipmentScreens.xml b/applications/product/widget/facility/ShipmentScreens.xml
index e3ae2ea..7335e37 100644
--- a/applications/product/widget/facility/ShipmentScreens.xml
+++ b/applications/product/widget/facility/ShipmentScreens.xml
@@ -52,7 +52,6 @@ under the License.
                 <set field="titleProperty" value="ProductFindShipment"/>
                 <set field="headerItem" value="shipment"/>
                 <set field="asm_multipleSelectForm" value="FindShipment"/>
-                <set field="asm_asmListItemPercentOfForm" value="110"/>
                 <set field="statusId.asm_multipleSelect" value="FindShipment_statusId"/>
                 <set field="statusId.asm_sortable" value="true"/>
                 <set field="statusId.asm_title" value=" "/>
diff --git a/applications/workeffort/widget/WorkEffortScreens.xml b/applications/workeffort/widget/WorkEffortScreens.xml
index 37ef5ef..488d79d 100644
--- a/applications/workeffort/widget/WorkEffortScreens.xml
+++ b/applications/workeffort/widget/WorkEffortScreens.xml
@@ -131,7 +131,6 @@ under the License.
                 <set field="titleProperty" value="PageTitleFindWorkEffort"/>
                 <set field="donePage" from-field="parameters.DONE_PAGE"/>
                 <set field="asm_multipleSelectForm" value="FindWorkEffort"/>
-                <set field="asm_asmListItemPercentOfForm" value="110"/>
                 <set field="currentStatusId.asm_multipleSelect" value="FindWorkEffort_currentStatusId"/>
                 <set field="currentStatusId.asm_sortable" value="true"/>
                 <set field="currentStatusId.asm_title" value=" "/>
diff --git a/framework/webtools/widget/GeoManagementScreens.xml b/framework/webtools/widget/GeoManagementScreens.xml
index f681089..43d2f41 100644
--- a/framework/webtools/widget/GeoManagementScreens.xml
+++ b/framework/webtools/widget/GeoManagementScreens.xml
@@ -163,7 +163,6 @@
                 <set field="asm_multipleSelectForm"  value="LinkGeos"/>
                 <set field="asm_multipleSelect"  value="LinkGeos_geoIds"/>
                 <set field="asm_formSize" value="700"/>
-                <set field="asm_asmListItemPercentOfForm" value="95"/>
                 <set field="asm_sortable" value="false"/>
                 <property-map resource="WebtoolsUiLabels" map-name="uiLabelMap" global="true"/>
                 <set field="asm_title" from-field="uiLabelMap.WebtoolsGeosSelect"/>
diff --git a/themes/common-theme/template/includes/SetMultipleSelectJs.ftl b/themes/common-theme/template/includes/SetMultipleSelectJs.ftl
index d05c848..3c4fd7d 100644
--- a/themes/common-theme/template/includes/SetMultipleSelectJs.ftl
+++ b/themes/common-theme/template/includes/SetMultipleSelectJs.ftl
@@ -58,6 +58,5 @@ jQuery(document).ready(function () {
     <#if asm_multipleSelectForm?? && asm_formSize??>
 jQuery("#${asm_multipleSelectForm}").css({"width": "${asm_formSize!700}px", "position": "relative"});
     </#if>
-jQuery(".asmListItem").css("width", "${asm_asmListItemPercentOfForm!95}%")
 </script>
 </#if>
diff --git a/themes/common-theme/template/includes/SetMultipleSelectJsList.ftl b/themes/common-theme/template/includes/SetMultipleSelectJsList.ftl
index 606e2f4..89a4771 100644
--- a/themes/common-theme/template/includes/SetMultipleSelectJsList.ftl
+++ b/themes/common-theme/template/includes/SetMultipleSelectJsList.ftl
@@ -63,7 +63,6 @@ under the License.
             <#if asm_multipleSelectForm?? && asm_formSize??>
           jQuery("#${asm_multipleSelectForm}").css({"width": "${asm_formSize!700}px", "position": "relative"});
             </#if>
-          jQuery(".asmListItem").css("width", "${asm_asmListItemPercentOfForm!95}%")
           </#if>
       </script>
     </#if>
diff --git a/themes/common-theme/webapp/common/js/jquery/plugins/asmselect/README.txt b/themes/common-theme/webapp/common/js/jquery/plugins/asmselect/README.txt
deleted file mode 100644
index dcb7fca..0000000
--- a/themes/common-theme/webapp/common/js/jquery/plugins/asmselect/README.txt
+++ /dev/null
@@ -1,102 +0,0 @@
-asmSelect - Alternate Select Multiple
-
-Documentation and more information at:
-http://code.google.com/p/jquery-asmselect/
-
-See related article at:
-http://www.ryancramer.com/journal/entries/select_multiple/
-
-VERSION 1.0.4a beta - June 3rd, 2009
-
-- Minor update to correct IE8 issue.
-  Thanks to Matthew Hutton for this fix.
-
-
-VERSION 1.0.4 beta - December 1, 2008
-
-- Fixed issue that interfered with multiple asmSelects
-  on the same page. This also solves an issue with
-  dynamically rendered (ajax) asmSelects on 1 page.
-
-- Changed options so that "animate" and "highlight"
-  now default to "false". These are just a bit too
-  slow on older computers, so I thought it would be
-  better not to make them active defaults.
-
-- Added code that triggers a change() event on the
-  original <select multiple> whenever a change is
-  made on the asmSelect. This means that other bits
-  of javascript don't need to know about asmSelect
-  if they happen to be monitoring the original
-  <select multiple> for changes.
-
-- Added some additional logic for dealing with IE and
-  determining whether a click preceded an item being
-  added to the list. This was necessary because IE
-  triggers change events when you are scrolling around
-  in a select. Thankfully not an issue with other browsers.
-
-- Added "optionDisabledClass" in program options.
-  This is a class assigned to <option> items that
-  are disabled. This was necessary because only
-  Safari allows the "disabled" attribute with
-  option tags (as far as I can tell). This is
-  mostly for internal use with asmSelect, so you can
-  ignore this unless you want to come up with your own
-  styles for disabled option items.  
-
-- Added logic to detect Opera and force a redraw of
-  the html list when original select is modified.
-  Previously, opera would not draw the new list items...
-  They were in the DOM, just not on Opera's screen.
-
-- Updated documentation with note about the Firefox
-  autocomplete issue, which can be a factor on some
-  asmSelect implementations
-
-
-VERSION 1.0.3 beta
-
-- This version was released in the issues section
-  of the Google code site, but never released as
-  a full package. It fixed the issue with multiple
-  asmSelects on a single page.
-
-
-VERSION 1.0.2 beta - July 15, 2008
-
-- Updated license to consistent with jQuery and
-  jQuery UI: Dual MIT and GNU license.
-
-- Fixed issue with IE6 where original select multiple
-  would reappear when sorting was enabled.
-
-- Put in a partial fix for when IE6 select is being
-  scrolled without being focused. (ieClick)
-
-- Updated for some other minor IE6 fixes, but still
-  not 100% on IE6, see 'Known Issues' in docs.
-
-- Changed 'animate' and 'highlight' to be false by
-  default. These are too slow on old computers.
-
-- Added new class to CSS 'optionDisabledClass' that
-  is applied to disabled options. This was necessary
-  becase Firefox and IE don't fade disabled options
-  like Safari does.
-
-- Removed some extraneous code.
-
-
-VERSION 1.0.1 beta - July 7, 2008
-
-- Corrected an issue with IE where asmSelect didn't work if option values were blank.
-
-
-VERSION 1.0.0 beta - July 5, 2008
-
-Initial release
-
-
-Copyright 2008 by Ryan Cramer
-
diff --git a/themes/common-theme/webapp/common/js/jquery/plugins/asmselect/jquery.asmselect-1.0.4a-beta.css b/themes/common-theme/webapp/common/js/jquery/plugins/asmselect/jquery.asmselect-1.0.4a-beta.css
deleted file mode 100644
index 10330b2..0000000
--- a/themes/common-theme/webapp/common/js/jquery/plugins/asmselect/jquery.asmselect-1.0.4a-beta.css
+++ /dev/null
@@ -1,63 +0,0 @@
-.asmContainer {
- /* container that surrounds entire asmSelect widget */
-}
-
-.asmSelect {
- /* the newly created regular 'select' */
- display: inline;
-}
-
-.asmOptionDisabled {
- /* disabled options in new select */
- color: #999;
-}
-
-.asmHighlight {
- /* the highlight span */
- padding: 0;
- margin: 0 0 0 1em;
-}
-
-.asmList {
- /* html list that contains selected items */
- margin: 0.25em 0 1em 0;
- position: relative;
- display: block;
- padding-left: 0;
- list-style: none;
-}
-
-.asmListItem {
- /* li item from the html list above */
- position: relative;
- margin-left: 0;
- padding-left: 0;
- list-style: none;
- background: #ddd;
- border: 1px solid #bbb;
- width: 100%;
- margin: 0 0 -1px 0;
- line-height: 1em;
-}
-
-.asmListItem:hover {
- background-color: #e5e5e5;
-}
-
-.asmListItemLabel {
- /* this is a span that surrounds the text in the item, except for the remove link */
- padding: 5px;
- display: block;
-}
-
-.asmListSortable .asmListItemLabel {
- cursor: move;
-}
-
-.asmListItemRemove {
- /* the remove link in each list item */
- position: absolute;
- right: 0;
- top: 0;
- padding: 5px;
-}
diff --git a/themes/common-theme/webapp/common/js/jquery/plugins/asmselect/jquery.asmselect-1.0.4a-beta.js b/themes/common-theme/webapp/common/js/jquery/plugins/asmselect/jquery.asmselect-1.0.4a-beta.js
deleted file mode 100644
index 5dde56a..0000000
--- a/themes/common-theme/webapp/common/js/jquery/plugins/asmselect/jquery.asmselect-1.0.4a-beta.js
+++ /dev/null
@@ -1,407 +0,0 @@
-/*
- * Alternate Select Multiple (asmSelect) 1.0.4a beta - jQuery Plugin
- * http://www.ryancramer.com/projects/asmselect/
- *
- * Copyright (c) 2009 by Ryan Cramer - http://www.ryancramer.com
- *
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- */
-
-(function($) {
-
- $.fn.asmSelect = function(customOptions) {
-
- var options = {
-
- listType: 'ol', // Ordered list 'ol', or unordered list 'ul'
- sortable: false, // Should the list be sortable?
- highlight: false, // Use the highlight feature?
- animate: false, // Animate the the adding/removing of items in the list?
- addItemTarget: 'bottom', // Where to place new selected items in list: top or bottom
- hideWhenAdded: false, // Hide the option when added to the list? works only in FF
- debugMode: false, // Debug mode keeps original select visible
-
- removeLabel: 'remove', // Text used in the "remove" link
- highlightAddedLabel: 'Added: ', // Text that precedes highlight of added item
- highlightRemovedLabel: 'Removed: ', // Text that precedes highlight of removed item
-
- containerClass: 'asmContainer', // Class for container that wraps this widget
- selectClass: 'asmSelect', // Class for the newly created <select>
- optionDisabledClass: 'asmOptionDisabled', // Class for items that are already selected / disabled
- listClass: 'asmList', // Class for the list ($ol)
- listSortableClass: 'asmListSortable', // Another class given to the list when it is sortable
- listItemClass: 'asmListItem', // Class for the <li> list items
- listItemLabelClass: 'asmListItemLabel', // Class for the label text that appears in list items
- removeClass: 'asmListItemRemove', // Class given to the "remove" link
- highlightClass: 'asmHighlight' // Class given to the highlight <span>
-
- };
-
- $.extend(options, customOptions);
-
- return this.each(function(index) {
-
- var $original = $(this); // the original select multiple
- var $container; // a container that is wrapped around our widget
- var $select; // the new select we have created
- var $ol; // the list that we are manipulating
- var buildingSelect = false; // is the new select being constructed right now?
- var ieClick = false; // in IE, has a click event occurred? ignore if not
- var ignoreOriginalChangeEvent = false; // originalChangeEvent bypassed when this is true
-
- function init() {
-
- // initialize the alternate select multiple
-
- // this loop ensures uniqueness, in case of existing asmSelects placed by ajax (1.0.3)
- while($("#" + options.containerClass + index).size() > 0) index++;
-
- $select = $("<select></select>")
- .addClass(options.selectClass)
- .attr('name', options.selectClass + index)
- .attr('id', options.selectClass + index);
-
- $selectRemoved = $("<select></select>");
-
- $ol = $("<" + options.listType + "></" + options.listType + ">")
- .addClass(options.listClass)
- .attr('id', options.listClass + index);
-
- $container = $("<div></div>")
- .addClass(options.containerClass)
- .attr('id', options.containerClass + index);
-
- buildSelect();
-
- $select.change(selectChangeEvent)
- .click(selectClickEvent);
-
- $original.change(originalChangeEvent)
- .wrap($container).before($select).before($ol);
-
- if(options.sortable) makeSortable();
-
- if($.browser.msie && $.browser.version < 8) $ol.css('display', 'inline-block'); // Thanks Matthew Hutton
- }
-
- function makeSortable() {
-
- // make any items in the selected list sortable
- // requires jQuery UI sortables, draggables, droppables
-
- $ol.sortable({
- items: 'li.' + options.listItemClass,
- handle: '.' + options.listItemLabelClass,
- axis: 'y',
- update: function(e, data) {
-
- var updatedOptionId;
-
- $(this).children("li").each(function(n) {
-
- $option = $('#' + $(this).attr('rel'));
-
- if($(this).is(".ui-sortable-helper")) {
- updatedOptionId = $option.attr('id');
- return;
- }
-
- $original.append($option);
- });
-
- if(updatedOptionId) triggerOriginalChange(updatedOptionId, 'sort');
- }
-
- }).addClass(options.listSortableClass);
- }
-
- function selectChangeEvent(e) {
-
- // an item has been selected on the regular select we created
- // check to make sure it's not an IE screwup, and add it to the list
-
- if($.browser.msie && $.browser.version < 7 && !ieClick) return;
- var id = $(this).children("option:selected").slice(0,1).attr('rel');
- addListItem(id);
- ieClick = false;
- triggerOriginalChange(id, 'add'); // for use by user-defined callbacks
- }
-
- function selectClickEvent() {
-
- // IE6 lets you scroll around in a select without it being pulled down
- // making sure a click preceded the change() event reduces the chance
- // if unintended items being added. there may be a better solution?
-
- ieClick = true;
- }
-
- function originalChangeEvent(e) {
-
- // select or option change event manually triggered
- // on the original <select multiple>, so rebuild ours
-
- if(ignoreOriginalChangeEvent) {
- ignoreOriginalChangeEvent = false;
- return;
- }
-
- $select.empty();
- $ol.empty();
- buildSelect();
-
- // opera has an issue where it needs a force redraw, otherwise
- // the items won't appear until something else forces a redraw
- if($.browser.opera) $ol.hide().fadeIn("fast");
- }
-
- function buildSelect() {
-
- // build or rebuild the new select that the user
- // will select items from
-
- buildingSelect = true;
-
- // add a first option to be the home option / default selectLabel
- $select.prepend("<option>" + $original.attr('title') + "</option>");
-
- $original.children("option").each(function(n) {
-
- var $t = $(this);
- var id;
-
- if(!$t.attr('id')) $t.attr('id', 'asm' + index + 'option' + n);
- id = $t.attr('id');
-
- if($t.is(":selected")) {
- addListItem(id);
- addSelectOption(id, true);
- } else {
- addSelectOption(id);
- }
- });
-
- if(!options.debugMode) $original.hide(); // IE6 requires this on every buildSelect()
- selectFirstItem();
- buildingSelect = false;
- }
-
- function addSelectOption(optionId, disabled) {
-
- // add an <option> to the <select>
- // used only by buildSelect()
-
- if(disabled == undefined) var disabled = false;
-
- var $O = $('#' + optionId);
- var $option = $("<option>" + $O.text() + "</option>")
- .val($O.val())
- .attr('rel', optionId);
-
- if(disabled) disableSelectOption($option);
-
- $select.append($option);
- }
-
- function selectFirstItem() {
-
- // select the firm item from the regular select that we created
-
- $select.children(":eq(0)").attr("selected", true);
- }
-
- function disableSelectOption($option) {
-
- // make an option disabled, indicating that it's already been selected
- // because safari is the only browser that makes disabled items look 'disabled'
- // we apply a class that reproduces the disabled look in other browsers
-
- $option.addClass(options.optionDisabledClass)
- .attr("selected", false)
- .attr("disabled", true);
-
- if(options.hideWhenAdded) $option.hide();
- if($.browser.msie) $select.hide().show(); // this forces IE to update display
- }
-
- function enableSelectOption($option) {
-
- // given an already disabled select option, enable it
-
- $option.removeClass(options.optionDisabledClass)
- .attr("disabled", false);
-
- if(options.hideWhenAdded) $option.show();
- if($.browser.msie) $select.hide().show(); // this forces IE to update display
- }
-
- function addListItem(optionId) {
-
- // add a new item to the html list
-
- var $O = $('#' + optionId);
-
- if(!$O) return; // this is the first item, selectLabel
-
- var $removeLink = $("<a></a>")
- .attr("href", "#")
- .addClass(options.removeClass)
- .prepend(options.removeLabel)
- .click(function() {
- dropListItem($(this).parent('li').attr('rel'));
- return false;
- });
-
- var $itemLabel = $("<span></span>")
- .addClass(options.listItemLabelClass)
- .html($O.html());
-
- var $item = $("<li></li>")
- .attr('rel', optionId)
- .addClass(options.listItemClass)
- .append($itemLabel)
- .append($removeLink)
- .hide();
-
- if(!buildingSelect) {
- if($O.is(":selected")) return; // already have it
- $O.attr('selected', true);
- }
-
- if(options.addItemTarget == 'top' && !buildingSelect) {
- $ol.prepend($item);
- if(options.sortable) $original.prepend($O);
- } else {
- $ol.append($item);
- if(options.sortable) $original.append($O);
- }
-
- addListItemShow($item);
-
- disableSelectOption($("[rel=" + optionId + "]", $select));
-
- if(!buildingSelect) {
- setHighlight($item, options.highlightAddedLabel);
- selectFirstItem();
- if(options.sortable) $ol.sortable("refresh");
- }
-
- }
-
- function addListItemShow($item) {
-
- // reveal the currently hidden item with optional animation
- // used only by addListItem()
-
- if(options.animate && !buildingSelect) {
- $item.animate({
- opacity: "show",
- height: "show"
- }, 100, "swing", function() {
- $item.animate({
- height: "+=2px"
- }, 50, "swing", function() {
- $item.animate({
- height: "-=2px"
- }, 25, "swing");
- });
- });
- } else {
- $item.show();
- }
- }
-
- function dropListItem(optionId, highlightItem) {
-
- // remove an item from the html list
-
- if(highlightItem == undefined) var highlightItem = true;
- var $O = $('#' + optionId);
-
- $O.attr('selected', false);
- $item = $ol.children("li[rel=" + optionId + "]");
-
- dropListItemHide($item);
- enableSelectOption($("[rel=" + optionId + "]", options.removeWhenAdded ? $selectRemoved : $select));
-
- if(highlightItem) setHighlight($item, options.highlightRemovedLabel);
-
- triggerOriginalChange(optionId, 'drop');
-
- }
-
- function dropListItemHide($item) {
-
- // remove the currently visible item with optional animation
- // used only by dropListItem()
-
- if(options.animate && !buildingSelect) {
-
- $prevItem = $item.prev("li");
-
- $item.animate({
- opacity: "hide",
- height: "hide"
- }, 100, "linear", function() {
- $prevItem.animate({
- height: "-=2px"
- }, 50, "swing", function() {
- $prevItem.animate({
- height: "+=2px"
- }, 100, "swing");
- });
- $item.remove();
- });
-
- } else {
- $item.remove();
- }
- }
-
- function setHighlight($item, label) {
-
- // set the contents of the highlight area that appears
- // directly after the <select> single
- // fade it in quickly, then fade it out
-
- if(!options.highlight) return;
-
- $select.next("#" + options.highlightClass + index).remove();
-
- var $highlight = $("<span></span>")
- .hide()
- .addClass(options.highlightClass)
- .attr('id', options.highlightClass + index)
- .html(label + $item.children("." + options.listItemLabelClass).slice(0,1).text());
-
- $select.after($highlight);
-
- $highlight.fadeIn("fast", function() {
- setTimeout(function() { $highlight.fadeOut("slow"); }, 50);
- });
- }
-
- function triggerOriginalChange(optionId, type) {
-
- // trigger a change event on the original select multiple
- // so that other scripts can pick them up
-
- ignoreOriginalChangeEvent = true;
- $option = $("#" + optionId);
-
- $original.trigger('change', [{
- 'option': $option,
- 'value': $option.val(),
- 'id': optionId,
- 'item': $ol.children("[rel=" + optionId + "]"),
- 'type': type
- }]);
- }
-
- init();
- });
- };
-
-})(jQuery);