From 24fe5ff37ea5498ff5743718a48eba79c7d06b93 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Fri, 10 Dec 2010 20:40:08 +0000 Subject: [PATCH] Merges the jQuery branch back to the trunk git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044503 13f79535-47bb-0310-9956-ffa450edef68 --- LICENSE | 66 +- .../finaccounttrans/FinAccountTrans.ftl | 58 +- .../GlReconciledFinAccountTrans.ftl | 11 +- .../finaccounttrans/ShowGlTransactions.ftl | 5 +- .../webapp/accounting/images/costCenters.js | 68 +- .../payment/depositWithdrawPayments.ftl | 24 +- .../webapp/ap/invoices/CommissionRun.ftl | 10 +- .../webapp/ap/invoices/PurchaseInvoices.ftl | 109 +- .../webapp/ar/invoice/ListInvoices.ftl | 100 +- .../webapp/ar/payment/batchPayments.ftl | 103 +- .../accounting/widget/FinAccountScreens.xml | 6 - .../accounting/widget/ap/InvoiceScreens.xml | 12 +- .../webapp/content/content/ContentNav.ftl | 358 +- .../content/content/DisplayContentNav.ftl | 338 +- .../content/webapp/content/content/nav.ftl | 131 +- .../content/survey/EditSurveyQuestions.ftl | 2 +- .../content/website/WebSiteCMSContent.ftl | 27 +- .../webapp/content/website/WebSiteCMSMeta.ftl | 2 +- .../webapp/content/website/WebSiteCMSNav.ftl | 701 +- .../content/website/WebSiteCMSPathAlias.ftl | 2 +- .../content/widget/WebSiteScreens.xml | 3 +- .../content/widget/content/ContentScreens.xml | 15 +- .../widget/content/DataResourceForms.xml | 2 +- .../widget/content/DataResourceScreens.xml | 3 +- .../content/widget/forum/BlogForms.xml | 4 +- .../content/widget/forum/ForumForms.xml | 2 +- .../humanres/widget/EmployeeScreens.xml | 3 - .../manufacturing/bom/EditProductBom.ftl | 6 +- .../mrp/findInventoryEventPlan.ftl | 5 +- .../routing/EditRoutingTaskAssoc.ftl | 6 +- .../marketing/widget/sfa/CommonScreens.xml | 3 - applications/order/config/OrderUiLabels.xml | 6 +- .../webapp/ordermgr/entry/cart/showcart.ftl | 9 +- .../ordermgr/entry/cart/showcartitems.ftl | 10 +- .../entry/catalog/configproductdetail.ftl | 31 +- .../ordermgr/entry/catalog/productdetail.ftl | 4 +- .../ordermgr/entry/catalog/productsummary.ftl | 8 +- .../webapp/ordermgr/entry/optionsettings.ftl | 6 +- .../webapp/ordermgr/entry/orderagreements.ftl | 18 +- .../ordermgr/entry/setAdditionalParty.ftl | 4 +- .../webapp/ordermgr/images/js/ConvertUom.js | 22 +- .../ordermgr/images/js/OrderShippingInfo.js | 24 +- .../ordermgr/images/js/geoAutoCompleter.js | 133 +- .../order/webapp/ordermgr/images/js/order.js | 11 +- .../order/webapp/ordermgr/images/js/return.js | 21 +- .../webapp/ordermgr/order/appendorderitem.ftl | 3 +- .../webapp/ordermgr/order/editorderitems.ftl | 6 +- .../webapp/ordermgr/order/findOrders.ftl | 12 +- .../ordermgr/order/ordershippinginfo.ftl | 66 +- .../webapp/ordermgr/reports/reportlist.ftl | 24 +- .../webapp/ordermgr/return/returnHeader.ftl | 3 +- .../ordermgr/OrderEntryCatalogScreens.xml | 3 - .../ordermgr/OrderEntryCommonScreens.xml | 5 +- .../ordermgr/OrderEntryOrderScreens.xml | 10 + .../widget/ordermgr/OrderViewScreens.xml | 20 +- .../webapp/partymgr/WEB-INF/controller.xml | 7 - .../webapp/partymgr/js/PartyProfileContent.js | 143 +- .../partymgr/party/editShoppingList.ftl | 4 +- .../party/widget/partymgr/PartyScreens.xml | 3 - .../category/EditCategoryFeatureCats.ftl | 14 +- .../catalog/category/EditCategoryParties.ftl | 8 +- .../category/EditCategoryProdCatalogs.ftl | 7 +- .../catalog/category/EditCategoryProducts.ftl | 20 +- .../catalog/category/EditCategoryRollup.ftl | 18 +- .../catalog/find/keywordsearchactions.ftl | 12 +- .../webapp/catalog/find/keywordsearchbox.ftl | 11 +- .../catalog/price/EditProductPriceRules.ftl | 4 +- .../product/ApplyFeaturesFromCategory.ftl | 8 +- .../catalog/product/EditProductAssoc.ftl | 10 +- .../catalog/product/EditProductFeatures.ftl | 20 +- .../catalog/product/EditProductParties.ftl | 4 +- .../catalog/product/EditProductQuickAdmin.ftl | 10 +- .../catalog/promo/EditProductPromoStores.ftl | 7 +- .../catalog/store/EditProductStoreSurveys.ftl | 6 +- .../facility/facility/EditContactMech.ftl | 2 +- .../facility/EditFacilityLocation.ftl | 2 +- .../webapp/facility/returns/receiveReturn.ftl | 8 +- .../shipment/EditShipmentRouteSegments.ftl | 20 +- .../webapp/facility/shipment/FindShipment.ftl | 6 +- .../find/WorkEffortSearchOptions.ftl | 8 +- framework/common/config/CommonUiLabels.xml | 24 + .../org/ofbiz/common/PortalPageServices.xml | 69 +- .../includes/FindAutocompleteOptions.groovy | 19 +- ....groovy => PrepareDataForFlotGraph.groovy} | 0 .../webcommon/WEB-INF/common-controller.xml | 16 +- .../includes/ajaxAutocompleteOptions.ftl | 49 +- .../webcommon/includes/commonMacros.ftl | 6 +- .../webcommon/includes/flotCharts/Bars.ftl | 104 + .../webcommon/includes/flotCharts/Pie.ftl | 87 + .../webcommon/includes/flotrCharts/Bars.ftl | 75 - .../webcommon/includes/flotrCharts/Pie.ftl | 48 - .../webcommon/includes/htmlTemplate.ftl | 4 +- .../common/webcommon/includes/listLocales.ftl | 17 +- .../webcommon/includes/listTimezones.ftl | 15 - .../common/webcommon/includes/lookup.ftl | 11 +- .../includes/setCountryStatesEventJs.ftl | 8 +- .../includes/setDependentDropdownValuesJs.ftl | 12 +- .../includes/setMultipleSelectJs.ftl | 50 +- .../includes/setPriceRulesCondEventJs.ftl | 16 +- .../webcommon/includes/timeDuration.ftl | 2 +- framework/common/widget/CommonScreens.xml | 63 +- framework/common/widget/HelpScreens.xml | 1 - framework/common/widget/LookupScreens.xml | 33 +- .../{flotrScreens.xml => flotScreens.xml} | 6 +- framework/example/config/ExampleUiLabels.xml | 14 +- .../webapp/example/WEB-INF/controller.xml | 4 +- .../example/webapp/example/flot/flotPie.ftl | 68 + .../example/webapp/example/flotr/flotrPie.ftl | 107 - .../example/widget/example/CommonScreens.xml | 2 +- .../widget/example/ExampleAjaxScreens.xml | 1 - .../example/widget/example/ExampleScreens.xml | 4 - .../widget/example/FormWidgetExampleForms.xml | 36 +- .../example/FormWidgetExampleScreens.xml | 9 + .../calendar_date_select.js | 479 - .../format/format_american.js | 34 - .../calendarDateSelect/format/format_db.js | 27 - .../format/format_euro_24hr.js | 12 - .../format/format_euro_24hr_ymd.js | 12 - .../format/format_finnish.js | 33 - .../format/format_hyphen_ampm.js | 37 - .../format/format_iso_date.js | 46 - .../format/format_italian.js | 24 - .../images/calendarDateSelect/locale/de.js | 37 - .../images/calendarDateSelect/locale/en.js | 38 - .../images/calendarDateSelect/locale/es.js | 37 - .../images/calendarDateSelect/locale/fi.js | 18 - .../images/calendarDateSelect/locale/fr.js | 37 - .../images/calendarDateSelect/locale/nl.js | 37 - .../images/calendarDateSelect/locale/pl.js | 18 - .../images/calendarDateSelect/locale/pt.js | 37 - .../images/calendarDateSelect/locale/ru.js | 36 - .../images/calendarDateSelect/locale/zh.js | 35 - framework/images/webapp/images/dojo/LICENSE | 195 - framework/images/webapp/images/dojo/README | 176 - .../webapp/images/dojo/Storage_version6.swf | Bin 1963 -> 0 bytes .../webapp/images/dojo/Storage_version8.swf | Bin 2594 -> 0 bytes framework/images/webapp/images/dojo/build.txt | 78 - framework/images/webapp/images/dojo/dojo.js | 14643 ---------- .../images/dojo/dojo.js.uncompressed.js | 23131 ---------------- .../webapp/images/dojo/flash6_gateway.swf | Bin 1170 -> 0 bytes .../webapp/images/dojo/iframe_history.html | 54 - .../webapp/images/dojo/src/AdapterRegistry.js | 88 - .../images/webapp/images/dojo/src/Deferred.js | 313 - .../webapp/images/dojo/src/DeferredList.js | 88 - .../images/webapp/images/dojo/src/a11y.js | 103 - .../webapp/images/dojo/src/animation.js | 14 - .../images/dojo/src/animation/Animation.js | 245 - .../dojo/src/animation/AnimationEvent.js | 64 - .../dojo/src/animation/AnimationSequence.js | 162 - .../webapp/images/dojo/src/animation/Timer.js | 16 - .../images/dojo/src/animation/__package__.js | 20 - .../images/webapp/images/dojo/src/behavior.js | 248 - .../webapp/images/dojo/src/bootstrap1.js | 345 - .../webapp/images/dojo/src/bootstrap2.js | 59 - .../webapp/images/dojo/src/browser_debug.js | 176 - .../webapp/images/dojo/src/cal/iCalendar.js | 815 - .../images/dojo/src/cal/textDirectory.js | 76 - .../webapp/images/dojo/src/charting/Axis.js | 146 - .../webapp/images/dojo/src/charting/Chart.js | 85 - .../webapp/images/dojo/src/charting/Plot.js | 103 - .../images/dojo/src/charting/PlotArea.js | 195 - .../images/dojo/src/charting/Plotters.js | 19 - .../images/dojo/src/charting/README.txt | 46 - .../webapp/images/dojo/src/charting/Series.js | 215 - .../images/dojo/src/charting/__package__.js | 11 - .../images/dojo/src/charting/svg/Axis.js | 226 - .../images/dojo/src/charting/svg/PlotArea.js | 81 - .../images/dojo/src/charting/svg/Plotters.js | 875 - .../images/dojo/src/charting/vml/Axis.js | 272 - .../images/dojo/src/charting/vml/PlotArea.js | 80 - .../images/dojo/src/charting/vml/Plotters.js | 1077 - .../images/dojo/src/collections/ArrayList.js | 146 - .../images/dojo/src/collections/BinaryTree.js | 203 - .../dojo/src/collections/Collections.js | 124 - .../images/dojo/src/collections/Dictionary.js | 129 - .../images/dojo/src/collections/Graph.js | 153 - .../images/dojo/src/collections/Queue.js | 87 - .../webapp/images/dojo/src/collections/Set.js | 94 - .../images/dojo/src/collections/SkipList.js | 149 - .../images/dojo/src/collections/SortedList.js | 211 - .../images/dojo/src/collections/Stack.js | 85 - .../images/dojo/src/collections/Store.js | 279 - .../dojo/src/collections/__package__.js | 22 - .../images/webapp/images/dojo/src/crypto.js | 31 - .../webapp/images/dojo/src/crypto/Blowfish.js | 576 - .../webapp/images/dojo/src/crypto/LICENSE | 11 - .../webapp/images/dojo/src/crypto/MD5.js | 199 - .../webapp/images/dojo/src/crypto/Rijndael.js | 22 - .../webapp/images/dojo/src/crypto/SHA1.js | 154 - .../webapp/images/dojo/src/crypto/SHA256.js | 20 - .../images/dojo/src/crypto/__package__.js | 17 - .../images/webapp/images/dojo/src/data.js | 15 - .../webapp/images/dojo/src/data/CsvStore.js | 207 - .../webapp/images/dojo/src/data/OpmlStore.js | 224 - .../webapp/images/dojo/src/data/RdfStore.js | 292 - .../webapp/images/dojo/src/data/YahooStore.js | 53 - .../webapp/images/dojo/src/data/core/Read.js | 321 - .../images/dojo/src/data/core/RemoteStore.js | 590 - .../images/dojo/src/data/core/Result.js | 58 - .../webapp/images/dojo/src/data/core/Write.js | 169 - .../images/dojo/src/data/old/Attribute.js | 62 - .../webapp/images/dojo/src/data/old/Item.js | 327 - .../webapp/images/dojo/src/data/old/Kind.js | 28 - .../images/dojo/src/data/old/Observable.js | 59 - .../images/dojo/src/data/old/ResultSet.js | 70 - .../webapp/images/dojo/src/data/old/Type.js | 25 - .../webapp/images/dojo/src/data/old/Value.js | 55 - .../images/dojo/src/data/old/__package__.js | 22 - .../images/dojo/src/data/old/format/Csv.js | 112 - .../images/dojo/src/data/old/format/Json.js | 103 - .../images/dojo/src/data/old/provider/Base.js | 183 - .../dojo/src/data/old/provider/Delicious.js | 85 - .../dojo/src/data/old/provider/FlatFile.js | 153 - .../dojo/src/data/old/provider/JotSpot.js | 27 - .../dojo/src/data/old/provider/MySql.js | 27 - .../webapp/images/dojo/src/data/old/to_do.txt | 45 - .../images/webapp/images/dojo/src/date.js | 13 - .../webapp/images/dojo/src/date/common.js | 496 - .../webapp/images/dojo/src/date/format.js | 922 - .../webapp/images/dojo/src/date/serialize.js | 175 - .../images/dojo/src/date/supplemental.js | 76 - .../images/webapp/images/dojo/src/debug.js | 91 - .../webapp/images/dojo/src/debug/Firebug.js | 62 - .../images/dojo/src/debug/arrow_hide.gif | Bin 163 -> 0 bytes .../images/dojo/src/debug/arrow_show.gif | Bin 165 -> 0 bytes .../webapp/images/dojo/src/debug/console.js | 115 - .../webapp/images/dojo/src/debug/deep.html | 362 - .../webapp/images/dojo/src/debug/spacer.gif | Bin 820 -> 0 bytes .../webapp/images/dojo/src/dnd/DragAndDrop.js | 264 - .../images/dojo/src/dnd/HtmlDragAndDrop.js | 519 - .../images/dojo/src/dnd/HtmlDragCopy.js | 85 - .../images/dojo/src/dnd/HtmlDragManager.js | 506 - .../images/dojo/src/dnd/HtmlDragMove.js | 89 - .../webapp/images/dojo/src/dnd/Sortable.js | 28 - .../images/dojo/src/dnd/TreeDragAndDrop.js | 475 - .../images/dojo/src/dnd/TreeDragAndDropV3.js | 403 - .../webapp/images/dojo/src/dnd/__package__.js | 16 - .../images/webapp/images/dojo/src/docs.js | 671 - .../images/webapp/images/dojo/src/dom.js | 560 - .../images/webapp/images/dojo/src/event.js | 14 - .../images/dojo/src/event/__package__.js | 16 - .../webapp/images/dojo/src/event/browser.js | 550 - .../webapp/images/dojo/src/event/common.js | 885 - .../webapp/images/dojo/src/event/topic.js | 201 - .../webapp/images/dojo/src/experimental.js | 30 - .../images/webapp/images/dojo/src/flash.js | 1257 - .../src/flash/flash6/DojoExternalInterface.as | 215 - .../dojo/src/flash/flash6/flash6_gateway.fla | Bin 40448 -> 0 bytes .../src/flash/flash8/DojoExternalInterface.as | 234 - .../dojo/src/flash/flash8/ExpressInstall.as | 81 - .../webapp/images/dojo/src/gfx/Colorspace.js | 820 - .../webapp/images/dojo/src/gfx/__package__.js | 23 - .../webapp/images/dojo/src/gfx/color.js | 183 - .../webapp/images/dojo/src/gfx/color/hsl.js | 139 - .../webapp/images/dojo/src/gfx/color/hsv.js | 246 - .../webapp/images/dojo/src/gfx/common.js | 118 - .../webapp/images/dojo/src/gfx/matrix.js | 406 - .../images/webapp/images/dojo/src/gfx/path.js | 333 - .../webapp/images/dojo/src/gfx/shape.js | 427 - .../images/webapp/images/dojo/src/gfx/svg.js | 661 - .../images/webapp/images/dojo/src/gfx/vml.js | 1319 - .../images/dojo/src/graphics/Colorspace.js | 15 - .../images/dojo/src/graphics/__package__.js | 12 - .../webapp/images/dojo/src/graphics/color.js | 37 - .../images/dojo/src/graphics/color/hsl.js | 33 - .../images/dojo/src/graphics/color/hsv.js | 23 - .../images/dojo/src/hostenv_adobesvg.js | 510 - .../webapp/images/dojo/src/hostenv_browser.js | 538 - .../images/dojo/src/hostenv_dashboard.js | 197 - .../webapp/images/dojo/src/hostenv_jsc.js | 76 - .../webapp/images/dojo/src/hostenv_rhino.js | 257 - .../images/dojo/src/hostenv_spidermonkey.js | 79 - .../webapp/images/dojo/src/hostenv_svg.js | 223 - .../webapp/images/dojo/src/hostenv_wsh.js | 46 - .../images/webapp/images/dojo/src/html.js | 14 - .../images/dojo/src/html/__package__.js | 15 - .../webapp/images/dojo/src/html/color.js | 35 - .../webapp/images/dojo/src/html/common.js | 230 - .../webapp/images/dojo/src/html/display.js | 196 - .../webapp/images/dojo/src/html/iframe.js | 128 - .../images/dojo/src/html/images/shadowB.png | Bin 470 -> 0 bytes .../images/dojo/src/html/images/shadowBL.png | Bin 272 -> 0 bytes .../images/dojo/src/html/images/shadowBR.png | Bin 271 -> 0 bytes .../images/dojo/src/html/images/shadowL.png | Bin 148 -> 0 bytes .../images/dojo/src/html/images/shadowR.png | Bin 149 -> 0 bytes .../images/dojo/src/html/images/shadowT.png | Bin 152 -> 0 bytes .../images/dojo/src/html/images/shadowTL.png | Bin 271 -> 0 bytes .../images/dojo/src/html/images/shadowTR.png | Bin 287 -> 0 bytes .../webapp/images/dojo/src/html/layout.js | 487 - .../webapp/images/dojo/src/html/metrics.js | 266 - .../webapp/images/dojo/src/html/selection.js | 376 - .../webapp/images/dojo/src/html/shadow.js | 16 - .../webapp/images/dojo/src/html/style.js | 587 - .../webapp/images/dojo/src/html/util.js | 485 - .../images/dojo/src/i18n/calendar/nls/README | 6 - .../src/i18n/calendar/nls/de/gregorian.js | 11 - .../src/i18n/calendar/nls/en/gregorian.js | 11 - .../src/i18n/calendar/nls/es/gregorian.js | 11 - .../src/i18n/calendar/nls/fi/gregorian.js | 11 - .../src/i18n/calendar/nls/fr/gregorian.js | 11 - .../dojo/src/i18n/calendar/nls/gregorian.js | 11 - .../src/i18n/calendar/nls/gregorianExtras.js | 11 - .../src/i18n/calendar/nls/hu/gregorian.js | 11 - .../src/i18n/calendar/nls/it/gregorian.js | 11 - .../src/i18n/calendar/nls/ja/gregorian.js | 11 - .../i18n/calendar/nls/ja/gregorianExtras.js | 11 - .../src/i18n/calendar/nls/ko/gregorian.js | 11 - .../src/i18n/calendar/nls/nl/gregorian.js | 11 - .../src/i18n/calendar/nls/pt-br/gregorian.js | 11 - .../src/i18n/calendar/nls/pt/gregorian.js | 11 - .../src/i18n/calendar/nls/sv/gregorian.js | 11 - .../src/i18n/calendar/nls/zh-cn/gregorian.js | 11 - .../src/i18n/calendar/nls/zh-hk/gregorian.js | 11 - .../src/i18n/calendar/nls/zh-tw/gregorian.js | 11 - .../src/i18n/calendar/nls/zh/gregorian.js | 11 - .../i18n/calendar/nls/zh/gregorianExtras.js | 11 - .../webapp/images/dojo/src/i18n/common.js | 68 - .../webapp/images/dojo/src/i18n/currency.js | 289 - .../images/dojo/src/i18n/currency/common.js | 289 - .../images/dojo/src/i18n/currency/nls/EUR.js | 11 - .../images/dojo/src/i18n/currency/nls/GBP.js | 11 - .../images/dojo/src/i18n/currency/nls/INR.js | 11 - .../images/dojo/src/i18n/currency/nls/ITL.js | 11 - .../images/dojo/src/i18n/currency/nls/JPY.js | 11 - .../images/dojo/src/i18n/currency/nls/README | 6 - .../images/dojo/src/i18n/currency/nls/USD.js | 11 - .../dojo/src/i18n/currency/nls/en-us/USD.js | 11 - .../dojo/src/i18n/currency/nls/en/EUR.js | 11 - .../dojo/src/i18n/currency/nls/en/GBP.js | 11 - .../dojo/src/i18n/currency/nls/en/INR.js | 11 - .../dojo/src/i18n/currency/nls/en/ITL.js | 11 - .../dojo/src/i18n/currency/nls/en/JPY.js | 11 - .../dojo/src/i18n/currency/nls/en/USD.js | 11 - .../dojo/src/i18n/currency/nls/hi/EUR.js | 11 - .../dojo/src/i18n/currency/nls/hi/GBP.js | 11 - .../dojo/src/i18n/currency/nls/hi/INR.js | 11 - .../dojo/src/i18n/currency/nls/hi/ITL.js | 11 - .../dojo/src/i18n/currency/nls/hi/JPY.js | 11 - .../dojo/src/i18n/currency/nls/hi/USD.js | 11 - .../dojo/src/i18n/currency/nls/ja/EUR.js | 11 - .../dojo/src/i18n/currency/nls/ja/GBP.js | 11 - .../dojo/src/i18n/currency/nls/ja/INR.js | 11 - .../dojo/src/i18n/currency/nls/ja/ITL.js | 11 - .../dojo/src/i18n/currency/nls/ja/JPY.js | 11 - .../dojo/src/i18n/currency/nls/ja/USD.js | 11 - .../webapp/images/dojo/src/i18n/number.js | 292 - .../webapp/images/dojo/src/iCalendar.js | 12 - framework/images/webapp/images/dojo/src/io.js | 14 - .../webapp/images/dojo/src/io/BrowserIO.js | 680 - .../webapp/images/dojo/src/io/IframeIO.js | 298 - .../webapp/images/dojo/src/io/RepubsubIO.js | 520 - .../webapp/images/dojo/src/io/RhinoIO.js | 172 - .../webapp/images/dojo/src/io/ScriptSrcIO.js | 469 - .../images/dojo/src/io/XhrIframeProxy.js | 239 - .../webapp/images/dojo/src/io/__package__.js | 17 - .../webapp/images/dojo/src/io/cometd.js | 929 - .../webapp/images/dojo/src/io/common.js | 517 - .../webapp/images/dojo/src/io/cookie.js | 130 - .../webapp/images/dojo/src/io/xip_client.html | 254 - .../webapp/images/dojo/src/io/xip_server.html | 371 - .../images/webapp/images/dojo/src/json.js | 156 - .../images/webapp/images/dojo/src/lang.js | 14 - .../images/dojo/src/lang/__package__.js | 23 - .../webapp/images/dojo/src/lang/array.js | 284 - .../webapp/images/dojo/src/lang/assert.js | 116 - .../webapp/images/dojo/src/lang/common.js | 253 - .../webapp/images/dojo/src/lang/declare.js | 168 - .../webapp/images/dojo/src/lang/extras.js | 143 - .../webapp/images/dojo/src/lang/func.js | 231 - .../webapp/images/dojo/src/lang/repr.js | 85 - .../images/dojo/src/lang/timing/Streamer.js | 99 - .../images/dojo/src/lang/timing/Timer.js | 64 - .../dojo/src/lang/timing/__package__.js | 11 - .../webapp/images/dojo/src/lang/type.js | 245 - .../webapp/images/dojo/src/lfx/Animation.js | 575 - .../webapp/images/dojo/src/lfx/__package__.js | 15 - .../webapp/images/dojo/src/lfx/extras.js | 148 - .../images/webapp/images/dojo/src/lfx/html.js | 748 - .../webapp/images/dojo/src/lfx/rounded.js | 512 - .../webapp/images/dojo/src/lfx/shadow.js | 86 - .../webapp/images/dojo/src/lfx/toggle.js | 54 - .../images/webapp/images/dojo/src/loader.js | 768 - .../webapp/images/dojo/src/loader_xd.js | 548 - .../images/dojo/src/logging/ConsoleLogger.js | 108 - .../webapp/images/dojo/src/logging/Logger.js | 474 - .../images/dojo/src/logging/__package__.js | 15 - .../images/webapp/images/dojo/src/math.js | 127 - .../images/dojo/src/math/__package__.js | 18 - .../webapp/images/dojo/src/math/curves.js | 242 - .../webapp/images/dojo/src/math/matrix.js | 377 - .../webapp/images/dojo/src/math/points.js | 54 - .../webapp/images/dojo/src/namespaces/dojo.js | 163 - framework/images/webapp/images/dojo/src/ns.js | 142 - .../images/webapp/images/dojo/src/profile.js | 146 - .../images/webapp/images/dojo/src/regexp.js | 577 - .../webapp/images/dojo/src/rpc/Deferred.js | 16 - .../webapp/images/dojo/src/rpc/JotService.js | 43 - .../webapp/images/dojo/src/rpc/JsonService.js | 119 - .../webapp/images/dojo/src/rpc/RpcService.js | 122 - .../images/dojo/src/rpc/YahooService.js | 59 - .../webapp/images/dojo/src/rpc/__package__.js | 14 - .../webapp/images/dojo/src/rpc/yahoo.smd | 289 - .../images/dojo/src/selection/Selection.js | 472 - .../images/webapp/images/dojo/src/storage.js | 394 - .../webapp/images/dojo/src/storage/Storage.as | 146 - .../images/dojo/src/storage/__package__.js | 16 - .../webapp/images/dojo/src/storage/browser.js | 363 - .../dojo/src/storage/storage_dialog.fla | Bin 344064 -> 0 bytes .../images/webapp/images/dojo/src/string.js | 12 - .../webapp/images/dojo/src/string/Builder.js | 128 - .../images/dojo/src/string/__package__.js | 19 - .../webapp/images/dojo/src/string/common.js | 78 - .../webapp/images/dojo/src/string/extras.js | 261 - .../images/webapp/images/dojo/src/style.js | 17 - .../images/webapp/images/dojo/src/svg.js | 320 - .../images/dojo/src/text/__package__.js | 18 - .../images/dojo/src/text/textDirectory.js | 12 - .../webapp/images/dojo/src/undo/Manager.js | 254 - .../images/dojo/src/undo/__package__.js | 12 - .../webapp/images/dojo/src/undo/browser.js | 322 - .../images/webapp/images/dojo/src/uri/Uri.js | 111 - .../webapp/images/dojo/src/uri/__package__.js | 14 - .../dojo/src/uuid/LightweightGenerator.js | 73 - .../dojo/src/uuid/NameBasedGenerator.js | 38 - .../images/dojo/src/uuid/NilGenerator.js | 32 - .../images/dojo/src/uuid/RandomGenerator.js | 39 - .../dojo/src/uuid/TimeBasedGenerator.js | 355 - .../webapp/images/dojo/src/uuid/Uuid.js | 379 - .../images/dojo/src/uuid/__package__.js | 22 - .../images/webapp/images/dojo/src/validate.js | 12 - .../images/dojo/src/validate/__package__.js | 21 - .../webapp/images/dojo/src/validate/check.js | 267 - .../webapp/images/dojo/src/validate/common.js | 249 - .../images/dojo/src/validate/creditCard.js | 102 - .../images/dojo/src/validate/datetime.js | 172 - .../webapp/images/dojo/src/validate/de.js | 26 - .../webapp/images/dojo/src/validate/jp.js | 23 - .../webapp/images/dojo/src/validate/us.js | 84 - .../webapp/images/dojo/src/validate/web.js | 95 - .../dojo/src/widget/AccordionContainer.js | 274 - .../images/dojo/src/widget/AnimatedPng.js | 98 - .../webapp/images/dojo/src/widget/Button.js | 431 - .../webapp/images/dojo/src/widget/Chart.js | 257 - .../webapp/images/dojo/src/widget/Checkbox.js | 187 - .../webapp/images/dojo/src/widget/Clock.js | 233 - .../images/dojo/src/widget/ColorPalette.js | 91 - .../webapp/images/dojo/src/widget/ComboBox.js | 950 - .../images/dojo/src/widget/ContentPane.js | 705 - .../images/dojo/src/widget/CurrencyTextbox.js | 77 - .../images/dojo/src/widget/DatePicker.js | 514 - .../images/dojo/src/widget/DateTextbox.js | 106 - .../images/dojo/src/widget/DebugConsole.js | 28 - .../webapp/images/dojo/src/widget/Dialog.js | 443 - .../webapp/images/dojo/src/widget/DocPane.js | 386 - .../images/dojo/src/widget/DomWidget.js | 902 - .../dojo/src/widget/DropdownContainer.js | 118 - .../dojo/src/widget/DropdownDatePicker.js | 239 - .../dojo/src/widget/DropdownTimePicker.js | 242 - .../webapp/images/dojo/src/widget/Editor.js | 534 - .../webapp/images/dojo/src/widget/Editor2.js | 809 - .../widget/Editor2Plugin/AlwaysShowToolbar.js | 145 - .../src/widget/Editor2Plugin/ContextMenu.js | 278 - .../widget/Editor2Plugin/CreateLinkDialog.js | 78 - .../src/widget/Editor2Plugin/FindReplace.js | 84 - .../widget/Editor2Plugin/FindReplaceDialog.js | 50 - .../widget/Editor2Plugin/InsertImageDialog.js | 64 - .../widget/Editor2Plugin/InsertTableDialog.js | 149 - .../Editor2Plugin/SimpleSignalCommands.js | 74 - .../widget/Editor2Plugin/TableOperation.js | 159 - .../widget/Editor2Plugin/ToolbarDndSupport.js | 68 - .../src/widget/Editor2Plugin/__package__.js | 15 - .../images/dojo/src/widget/Editor2Toolbar.js | 682 - .../images/dojo/src/widget/FilteringTable.js | 1003 - .../images/dojo/src/widget/FisheyeList.js | 745 - .../images/dojo/src/widget/FloatingPane.js | 453 - .../webapp/images/dojo/src/widget/Form.js | 313 - .../images/dojo/src/widget/GoogleMap.js | 243 - .../images/dojo/src/widget/HtmlWidget.js | 192 - .../images/dojo/src/widget/InlineEditBox.js | 250 - .../images/dojo/src/widget/IntegerTextbox.js | 72 - .../images/dojo/src/widget/InternetTextbox.js | 195 - .../images/dojo/src/widget/LayoutContainer.js | 101 - .../webapp/images/dojo/src/widget/LinkPane.js | 43 - .../webapp/images/dojo/src/widget/Manager.js | 365 - .../webapp/images/dojo/src/widget/Menu2.js | 766 - .../images/dojo/src/widget/MonthlyCalendar.js | 188 - .../images/dojo/src/widget/PageContainer.js | 414 - .../webapp/images/dojo/src/widget/Parse.js | 339 - .../images/dojo/src/widget/PopupContainer.js | 476 - .../images/dojo/src/widget/ProgressBar.js | 362 - .../images/dojo/src/widget/RadioGroup.js | 206 - .../dojo/src/widget/RealNumberTextbox.js | 82 - .../images/dojo/src/widget/RegexpTextbox.js | 50 - .../dojo/src/widget/RemoteTabController.js | 50 - .../webapp/images/dojo/src/widget/Repeater.js | 177 - .../dojo/src/widget/ResizableTextarea.js | 86 - .../images/dojo/src/widget/ResizeHandle.js | 105 - .../webapp/images/dojo/src/widget/RichText.js | 1766 -- .../webapp/images/dojo/src/widget/Rounded.js | 713 - .../webapp/images/dojo/src/widget/Select.js | 89 - .../webapp/images/dojo/src/widget/Show.js | 256 - .../images/dojo/src/widget/ShowAction.js | 30 - .../images/dojo/src/widget/ShowSlide.js | 229 - .../images/dojo/src/widget/SlideShow.js | 174 - .../webapp/images/dojo/src/widget/Slider.js | 927 - .../images/dojo/src/widget/SortableTable.js | 615 - .../webapp/images/dojo/src/widget/Spinner.js | 622 - .../images/dojo/src/widget/SplitContainer.js | 540 - .../images/dojo/src/widget/SvgButton.js | 142 - .../images/dojo/src/widget/SvgWidget.js | 77 - .../images/dojo/src/widget/SwtWidget.js | 66 - .../images/dojo/src/widget/TabContainer.js | 224 - .../webapp/images/dojo/src/widget/TaskBar.js | 92 - .../webapp/images/dojo/src/widget/Textbox.js | 115 - .../images/dojo/src/widget/TimePicker.js | 401 - .../images/dojo/src/widget/TitlePane.js | 76 - .../webapp/images/dojo/src/widget/Toaster.js | 265 - .../webapp/images/dojo/src/widget/Toggler.js | 36 - .../webapp/images/dojo/src/widget/Toolbar.js | 944 - .../webapp/images/dojo/src/widget/Tooltip.js | 183 - .../webapp/images/dojo/src/widget/Tree.js | 563 - .../dojo/src/widget/TreeBasicController.js | 284 - .../dojo/src/widget/TreeBasicControllerV3.js | 831 - .../images/dojo/src/widget/TreeCommon.js | 150 - .../images/dojo/src/widget/TreeContextMenu.js | 181 - .../dojo/src/widget/TreeContextMenuV3.js | 132 - .../src/widget/TreeControllerExtension.js | 94 - .../webapp/images/dojo/src/widget/TreeDemo.js | 130 - .../src/widget/TreeDeselectOnDblselect.js | 37 - .../src/widget/TreeDisableWrapExtension.js | 55 - .../dojo/src/widget/TreeDndControllerV3.js | 140 - .../dojo/src/widget/TreeDocIconExtension.js | 117 - .../images/dojo/src/widget/TreeEditor.js | 111 - .../dojo/src/widget/TreeEmphasizeOnSelect.js | 43 - .../src/widget/TreeExpandToNodeOnSelect.js | 47 - .../images/dojo/src/widget/TreeExtension.js | 24 - .../dojo/src/widget/TreeLinkExtension.js | 73 - .../dojo/src/widget/TreeLoadingController.js | 205 - .../src/widget/TreeLoadingControllerV3.js | 496 - .../webapp/images/dojo/src/widget/TreeNode.js | 523 - .../images/dojo/src/widget/TreeNodeV3.js | 740 - .../dojo/src/widget/TreeRPCController.js | 162 - .../dojo/src/widget/TreeRpcControllerV3.js | 429 - .../images/dojo/src/widget/TreeSelector.js | 179 - .../images/dojo/src/widget/TreeSelectorV3.js | 308 - .../dojo/src/widget/TreeTimeoutIterator.js | 169 - .../dojo/src/widget/TreeToggleOnSelect.js | 46 - .../webapp/images/dojo/src/widget/TreeV3.js | 347 - .../images/dojo/src/widget/TreeWithNode.js | 277 - .../images/dojo/src/widget/UsTextbox.js | 93 - .../dojo/src/widget/ValidationTextbox.js | 204 - .../webapp/images/dojo/src/widget/Widget.js | 761 - .../webapp/images/dojo/src/widget/Wizard.js | 233 - .../webapp/images/dojo/src/widget/YahooMap.js | 195 - .../images/dojo/src/widget/__package__.js | 23 - .../src/widget/demoEngine/DemoContainer.js | 107 - .../dojo/src/widget/demoEngine/DemoItem.js | 71 - .../src/widget/demoEngine/DemoNavigator.js | 188 - .../dojo/src/widget/demoEngine/DemoPane.js | 44 - .../dojo/src/widget/demoEngine/SourcePane.js | 52 - .../dojo/src/widget/demoEngine/__package__.js | 20 - .../demoEngine/templates/DemoContainer.css | 39 - .../demoEngine/templates/DemoContainer.html | 25 - .../widget/demoEngine/templates/DemoItem.css | 58 - .../widget/demoEngine/templates/DemoItem.html | 21 - .../demoEngine/templates/DemoNavigator.css | 28 - .../demoEngine/templates/DemoNavigator.html | 24 - .../widget/demoEngine/templates/DemoPane.css | 18 - .../widget/demoEngine/templates/DemoPane.html | 3 - .../demoEngine/templates/SourcePane.css | 20 - .../demoEngine/templates/SourcePane.html | 3 - .../widget/demoEngine/templates/general.css | 73 - .../templates/images/test_thumb.gif | Bin 3198 -> 0 bytes .../demoEngine/templates/images/viewDemo.png | Bin 859 -> 0 bytes .../images/dojo/src/widget/html/layout.js | 133 - .../images/dojo/src/widget/html/loader.js | 844 - .../images/dojo/src/widget/html/stabile.js | 212 - .../dojo/src/widget/nls/DropdownDatePicker.js | 11 - .../dojo/src/widget/nls/DropdownTimePicker.js | 11 - .../images/dojo/src/widget/nls/TimePicker.js | 11 - .../images/dojo/src/widget/nls/fr/validate.js | 11 - .../images/dojo/src/widget/nls/ja/validate.js | 11 - .../images/dojo/src/widget/nls/validate.js | 11 - .../dojo/src/widget/nls/zh-cn/validate.js | 11 - .../images/dojo/src/widget/svg/Chart.js | 590 - .../src/widget/templates/AccordionPane.css | 22 - .../src/widget/templates/AccordionPane.html | 4 - .../src/widget/templates/ButtonTemplate.css | 59 - .../src/widget/templates/ButtonTemplate.html | 6 - .../dojo/src/widget/templates/Checkbox.css | 26 - .../dojo/src/widget/templates/Checkbox.html | 5 - .../src/widget/templates/CheckboxA11y.html | 4 - .../widget/templates/CiviCrmDatePicker.html | 12 - .../dojo/src/widget/templates/ComboBox.css | 68 - .../dojo/src/widget/templates/ComboBox.html | 16 - .../widget/templates/ComboButtonTemplate.html | 18 - .../dojo/src/widget/templates/DatePicker.css | 167 - .../dojo/src/widget/templates/DatePicker.html | 96 - .../dojo/src/widget/templates/DemoEngine.html | 24 - .../dojo/src/widget/templates/Dialog.html | 7 - .../dojo/src/widget/templates/DocPane.css | 49 - .../dojo/src/widget/templates/DocPane.html | 79 - .../templates/DropDownButtonTemplate.html | 9 - .../templates/Editor2/Dialog/createlink.html | 15 - .../widget/templates/Editor2/Dialog/find.html | 15 - .../templates/Editor2/Dialog/insertimage.html | 114 - .../templates/Editor2/Dialog/inserttable.html | 91 - .../templates/Editor2/Dialog/replace.html | 15 - .../templates/Editor2/EditorDialog.html | 21 - .../Editor2/EditorToolbar_FontName.html | 20 - .../Editor2/EditorToolbar_FontSize.html | 31 - .../Editor2/EditorToolbar_FormatBlock.html | 52 - .../Editor2/showtableborder_gecko.css | 19 - .../templates/Editor2/showtableborder_ie.css | 4 - .../src/widget/templates/EditorToolbar.css | 152 - .../src/widget/templates/EditorToolbar.html | 153 - .../templates/EditorToolbarOneline.html | 172 - .../dojo/src/widget/templates/FisheyeList.css | 27 - .../src/widget/templates/FloatingPane.css | 118 - .../src/widget/templates/FloatingPane.html | 18 - .../src/widget/templates/InlineEditBox.css | 29 - .../src/widget/templates/InlineEditBox.html | 6 - .../images/dojo/src/widget/templates/Menu.css | 60 - .../dojo/src/widget/templates/Menu2.css | 125 - .../src/widget/templates/MonthlyCalendar.css | 91 - .../src/widget/templates/MonthlyCalendar.html | 110 - .../dojo/src/widget/templates/PopUpButton.css | 35 - .../dojo/src/widget/templates/ProgressBar.css | 23 - .../src/widget/templates/ProgressBar.html | 5 - .../src/widget/templates/RemoteTabControl.css | 61 - .../widget/templates/ResizableTextarea.css | 15 - .../widget/templates/ResizableTextarea.html | 14 - .../src/widget/templates/ResizeHandle.css | 12 - .../images/dojo/src/widget/templates/Show.css | 59 - .../dojo/src/widget/templates/Show.html | 11 - .../dojo/src/widget/templates/ShowSlide.css | 12 - .../dojo/src/widget/templates/ShowSlide.html | 6 - .../dojo/src/widget/templates/SlideShow.css | 9 - .../dojo/src/widget/templates/SlideShow.html | 15 - .../dojo/src/widget/templates/Slider.css | 61 - .../dojo/src/widget/templates/Slider.html | 56 - .../widget/templates/SliderHorizontal.html | 3 - .../src/widget/templates/SliderVertical.html | 3 - .../dojo/src/widget/templates/Spinner.css | 34 - .../dojo/src/widget/templates/Spinner.html | 25 - .../src/widget/templates/SplitContainer.css | 40 - .../src/widget/templates/TabContainer.css | 163 - .../src/widget/templates/TabContainer.html | 4 - .../src/widget/templates/TabContainerA11y.css | 175 - .../dojo/src/widget/templates/TaskBar.css | 29 - .../widget/templates/TaskBarItemTemplate.html | 2 - .../dojo/src/widget/templates/Textbox.html | 5 - .../dojo/src/widget/templates/TimePicker.css | 179 - .../dojo/src/widget/templates/TimePicker.html | 98 - .../dojo/src/widget/templates/TitlePane.html | 4 - .../dojo/src/widget/templates/Toaster.css | 42 - .../dojo/src/widget/templates/Toolbar.css | 54 - .../src/widget/templates/TooltipTemplate.css | 10 - .../images/dojo/src/widget/templates/Tree.css | 29 - .../src/widget/templates/TreeDisableWrap.css | 9 - .../dojo/src/widget/templates/TreeDocIcon.css | 55 - .../dojo/src/widget/templates/TreeEditor.css | 4 - .../dojo/src/widget/templates/TreeV3.css | 82 - .../dojo/src/widget/templates/Validate.css | 12 - .../widget/templates/ValidationTextbox.html | 8 - .../dojo/src/widget/templates/Wizard.css | 72 - .../dojo/src/widget/templates/Wizard.html | 10 - .../widget/templates/buttons/aggregate.gif | Bin 4360 -> 0 bytes .../widget/templates/buttons/backcolor.gif | Bin 585 -> 0 bytes .../src/widget/templates/buttons/bg-fade.png | Bin 177 -> 0 bytes .../src/widget/templates/buttons/bold.gif | Bin 346 -> 0 bytes .../src/widget/templates/buttons/cancel.gif | Bin 375 -> 0 bytes .../src/widget/templates/buttons/copy.gif | Bin 210 -> 0 bytes .../widget/templates/buttons/createlink.gif | Bin 1081 -> 0 bytes .../dojo/src/widget/templates/buttons/cut.gif | Bin 112 -> 0 bytes .../src/widget/templates/buttons/delete.gif | Bin 81 -> 0 bytes .../widget/templates/buttons/forecolor.gif | Bin 574 -> 0 bytes .../widget/templates/buttons/hilitecolor.gif | Bin 585 -> 0 bytes .../src/widget/templates/buttons/indent.gif | Bin 83 -> 0 bytes .../buttons/inserthorizontalrule.gif | Bin 117 -> 0 bytes .../widget/templates/buttons/insertimage.gif | Bin 595 -> 0 bytes .../templates/buttons/insertorderedlist.gif | Bin 85 -> 0 bytes .../widget/templates/buttons/inserttable.gif | Bin 233 -> 0 bytes .../templates/buttons/insertunorderedlist.gif | Bin 98 -> 0 bytes .../src/widget/templates/buttons/italic.gif | Bin 309 -> 0 bytes .../templates/buttons/justifycenter.gif | Bin 132 -> 0 bytes .../widget/templates/buttons/justifyfull.gif | Bin 294 -> 0 bytes .../widget/templates/buttons/justifyleft.gif | Bin 194 -> 0 bytes .../widget/templates/buttons/justifyright.gif | Bin 190 -> 0 bytes .../templates/buttons/left_to_right.gif | Bin 138 -> 0 bytes .../templates/buttons/list_bullet_indent.gif | Bin 98 -> 0 bytes .../templates/buttons/list_bullet_outdent.gif | Bin 99 -> 0 bytes .../templates/buttons/list_num_indent.gif | Bin 85 -> 0 bytes .../templates/buttons/list_num_outdent.gif | Bin 85 -> 0 bytes .../src/widget/templates/buttons/outdent.gif | Bin 84 -> 0 bytes .../src/widget/templates/buttons/paste.gif | Bin 241 -> 0 bytes .../src/widget/templates/buttons/redo.gif | Bin 543 -> 0 bytes .../widget/templates/buttons/removeformat.gif | Bin 101 -> 0 bytes .../templates/buttons/right_to_left.gif | Bin 142 -> 0 bytes .../src/widget/templates/buttons/save.gif | Bin 243 -> 0 bytes .../dojo/src/widget/templates/buttons/sep.gif | Bin 58 -> 0 bytes .../src/widget/templates/buttons/space.gif | Bin 43 -> 0 bytes .../templates/buttons/strikethrough.gif | Bin 329 -> 0 bytes .../widget/templates/buttons/subscript.gif | Bin 76 -> 0 bytes .../widget/templates/buttons/superscript.gif | Bin 77 -> 0 bytes .../widget/templates/buttons/underline.gif | Bin 344 -> 0 bytes .../src/widget/templates/buttons/undo.gif | Bin 541 -> 0 bytes .../src/widget/templates/buttons/wikiword.gif | Bin 386 -> 0 bytes .../dojo/src/widget/templates/check.gif | Bin 2024 -> 0 bytes .../src/widget/templates/decrementMonth.gif | Bin 166 -> 0 bytes .../src/widget/templates/decrementWeek.gif | Bin 160 -> 0 bytes .../dojo/src/widget/templates/grabCorner.gif | Bin 77 -> 0 bytes .../src/widget/templates/images/Tree/Tree.css | 36 - .../widget/templates/images/Tree/blank.gif | Bin 55 -> 0 bytes .../widget/templates/images/Tree/closed.gif | Bin 1078 -> 0 bytes .../widget/templates/images/Tree/document.gif | Bin 240 -> 0 bytes .../widget/templates/images/Tree/minus.gif | Bin 545 -> 0 bytes .../src/widget/templates/images/Tree/plus.gif | Bin 539 -> 0 bytes .../templates/images/Tree/transparent.gif | Bin 870 -> 0 bytes .../templates/images/Tree/treenode_blank.gif | Bin 834 -> 0 bytes .../templates/images/Tree/treenode_child.gif | Bin 73 -> 0 bytes .../images/Tree/treenode_expand_minus.gif | Bin 547 -> 0 bytes .../images/Tree/treenode_expand_plus.gif | Bin 542 -> 0 bytes .../templates/images/Tree/treenode_grid_c.gif | Bin 60 -> 0 bytes .../templates/images/Tree/treenode_grid_l.gif | Bin 68 -> 0 bytes .../templates/images/Tree/treenode_grid_p.gif | Bin 63 -> 0 bytes .../templates/images/Tree/treenode_grid_t.gif | Bin 74 -> 0 bytes .../templates/images/Tree/treenode_grid_v.gif | Bin 71 -> 0 bytes .../templates/images/Tree/treenode_grid_x.gif | Bin 60 -> 0 bytes .../templates/images/Tree/treenode_grid_y.gif | Bin 67 -> 0 bytes .../templates/images/Tree/treenode_grid_z.gif | Bin 60 -> 0 bytes .../images/Tree/treenode_loading.gif | Bin 1089 -> 0 bytes .../images/Tree/treenode_loading.jpg | Bin 1390 -> 0 bytes .../widget/templates/images/TreeV3/closed.gif | Bin 162 -> 0 bytes .../templates/images/TreeV3/document.gif | Bin 342 -> 0 bytes .../templates/images/TreeV3/expand_leaf.gif | Bin 68 -> 0 bytes .../images/TreeV3/expand_loading.gif | Bin 1081 -> 0 bytes .../templates/images/TreeV3/expand_minus.gif | Bin 552 -> 0 bytes .../templates/images/TreeV3/expand_plus.gif | Bin 552 -> 0 bytes .../src/widget/templates/images/TreeV3/i.gif | Bin 71 -> 0 bytes .../templates/images/TreeV3/i_bhalf.gif | Bin 60 -> 0 bytes .../widget/templates/images/TreeV3/i_half.gif | Bin 65 -> 0 bytes .../widget/templates/images/TreeV3/i_long.gif | Bin 2113 -> 0 bytes .../src/widget/templates/images/TreeV3/l.gif | Bin 74 -> 0 bytes .../widget/templates/images/TreeV3/minus.gif | Bin 539 -> 0 bytes .../widget/templates/images/TreeV3/open.gif | Bin 139 -> 0 bytes .../widget/templates/images/TreeV3/plus.gif | Bin 539 -> 0 bytes .../src/widget/templates/images/TreeV3/t.gif | Bin 80 -> 0 bytes .../src/widget/templates/images/TreeV3/x.gif | Bin 68 -> 0 bytes .../dojo/src/widget/templates/images/bar.gif | Bin 2458 -> 0 bytes .../widget/templates/images/bdYearBg.1.gif | 0 .../src/widget/templates/images/bdYearBg.gif | Bin 74 -> 0 bytes .../src/widget/templates/images/clock.png | Bin 9422 -> 0 bytes .../templates/images/combo_box_arrow.png | Bin 336 -> 0 bytes .../src/widget/templates/images/dateIcon.gif | Bin 392 -> 0 bytes .../templates/images/decrementMonth.gif | Bin 167 -> 0 bytes .../templates/images/decrementMonth.png | Bin 180 -> 0 bytes .../dojo/src/widget/templates/images/dpBg.gif | Bin 522 -> 0 bytes .../src/widget/templates/images/dpCurveBL.png | Bin 280 -> 0 bytes .../src/widget/templates/images/dpCurveBR.png | Bin 275 -> 0 bytes .../src/widget/templates/images/dpCurveTL.png | Bin 305 -> 0 bytes .../src/widget/templates/images/dpCurveTR.png | Bin 295 -> 0 bytes .../widget/templates/images/dpHorizLine.gif | Bin 43 -> 0 bytes .../templates/images/dpHorizLineFoot.gif | Bin 43 -> 0 bytes .../src/widget/templates/images/dpMonthBg.gif | Bin 107 -> 0 bytes .../src/widget/templates/images/dpMonthBg.png | Bin 169 -> 0 bytes .../widget/templates/images/dpMonthBg2.png | Bin 169 -> 0 bytes .../widget/templates/images/dpVertLine.gif | Bin 43 -> 0 bytes .../src/widget/templates/images/dpYearBg.gif | Bin 74 -> 0 bytes .../src/widget/templates/images/dpYearBg.png | Bin 142 -> 0 bytes .../images/dropdownButtonsArrow-disabled.gif | Bin 816 -> 0 bytes .../templates/images/dropdownButtonsArrow.gif | Bin 46 -> 0 bytes .../templates/images/floatingPaneClose.gif | Bin 752 -> 0 bytes .../templates/images/floatingPaneMaximize.gif | Bin 704 -> 0 bytes .../templates/images/floatingPaneMinimize.gif | Bin 692 -> 0 bytes .../templates/images/floatingPaneRestore.gif | Bin 701 -> 0 bytes .../src/widget/templates/images/h-bar.gif | Bin 2668 -> 0 bytes .../templates/images/incrementMonth.gif | Bin 168 -> 0 bytes .../templates/images/incrementMonth.png | Bin 181 -> 0 bytes .../dojo/src/widget/templates/images/no.gif | Bin 179 -> 0 bytes .../dojo/src/widget/templates/images/no.svg | 11 - .../widget/templates/images/scBackground.gif | Bin 715 -> 0 bytes .../images/slider-bg-progress-vert.gif | Bin 1899 -> 0 bytes .../templates/images/slider-bg-vert.gif | Bin 1899 -> 0 bytes .../src/widget/templates/images/slider-bg.gif | Bin 1102 -> 0 bytes .../templates/images/slider-button-horz.png | Bin 439 -> 0 bytes .../templates/images/slider-button-vert.png | Bin 432 -> 0 bytes .../widget/templates/images/slider-button.png | Bin 381 -> 0 bytes .../src/widget/templates/images/slider.gif | Bin 865 -> 0 bytes .../templates/images/slider_down_arrow.png | Bin 382 -> 0 bytes .../templates/images/slider_left_arrow.png | Bin 343 -> 0 bytes .../templates/images/slider_right_arrow.png | Bin 366 -> 0 bytes .../templates/images/slider_up_arrow.png | Bin 378 -> 0 bytes .../templates/images/soriaAccordionOff.gif | Bin 94 -> 0 bytes .../images/soriaAccordionSelected.gif | Bin 94 -> 0 bytes .../widget/templates/images/soriaActive-c.gif | Bin 1420 -> 0 bytes .../widget/templates/images/soriaActive-l.gif | Bin 1585 -> 0 bytes .../widget/templates/images/soriaActive-r.gif | Bin 1587 -> 0 bytes .../widget/templates/images/soriaBarBg.gif | Bin 155 -> 0 bytes .../widget/templates/images/soriaButton-c.gif | Bin 848 -> 0 bytes .../widget/templates/images/soriaButton-l.gif | Bin 1001 -> 0 bytes .../widget/templates/images/soriaButton-r.gif | Bin 1001 -> 0 bytes .../templates/images/soriaDisabled-c.gif | Bin 743 -> 0 bytes .../templates/images/soriaDisabled-l.gif | Bin 894 -> 0 bytes .../templates/images/soriaDisabled-r.gif | Bin 895 -> 0 bytes .../widget/templates/images/soriaMenuBg.gif | Bin 820 -> 0 bytes .../templates/images/soriaPressed-c.gif | Bin 1446 -> 0 bytes .../templates/images/soriaPressed-l.gif | Bin 1613 -> 0 bytes .../templates/images/soriaPressed-r.gif | Bin 1614 -> 0 bytes .../templates/images/spinnerDecrement.gif | Bin 120 -> 0 bytes .../templates/images/spinnerIncrement.gif | Bin 119 -> 0 bytes .../templates/images/submenu_disabled.gif | Bin 53 -> 0 bytes .../widget/templates/images/submenu_off.gif | Bin 828 -> 0 bytes .../widget/templates/images/submenu_on.gif | Bin 828 -> 0 bytes .../widget/templates/images/tab_bot_left.gif | Bin 296 -> 0 bytes .../templates/images/tab_bot_left_curr.gif | Bin 429 -> 0 bytes .../widget/templates/images/tab_bot_right.gif | Bin 974 -> 0 bytes .../templates/images/tab_bot_right_curr.gif | Bin 1310 -> 0 bytes .../src/widget/templates/images/tab_close.gif | Bin 312 -> 0 bytes .../widget/templates/images/tab_close_h.gif | Bin 313 -> 0 bytes .../src/widget/templates/images/tab_left.gif | Bin 635 -> 0 bytes .../widget/templates/images/tab_left_r.gif | Bin 296 -> 0 bytes .../templates/images/tab_left_r_curr.gif | Bin 429 -> 0 bytes .../src/widget/templates/images/tab_right.gif | Bin 2386 -> 0 bytes .../widget/templates/images/tab_right_r.gif | Bin 974 -> 0 bytes .../templates/images/tab_right_r_curr.gif | Bin 1310 -> 0 bytes .../widget/templates/images/tab_top_left.gif | Bin 2384 -> 0 bytes .../widget/templates/images/tab_top_right.gif | Bin 2386 -> 0 bytes .../src/widget/templates/images/timeIcon.gif | Bin 211 -> 0 bytes .../widget/templates/images/toolbar-bg.gif | Bin 180 -> 0 bytes .../widget/templates/images/transparent.gif | Bin 870 -> 0 bytes .../templates/images/treenode_blank.gif | Bin 834 -> 0 bytes .../templates/images/treenode_child.gif | Bin 73 -> 0 bytes .../images/treenode_expand_minus.gif | Bin 547 -> 0 bytes .../templates/images/treenode_expand_plus.gif | Bin 542 -> 0 bytes .../templates/images/treenode_grid_c.gif | Bin 60 -> 0 bytes .../templates/images/treenode_grid_l.gif | Bin 68 -> 0 bytes .../templates/images/treenode_grid_p.gif | Bin 63 -> 0 bytes .../templates/images/treenode_grid_t.gif | Bin 74 -> 0 bytes .../templates/images/treenode_grid_v.gif | Bin 71 -> 0 bytes .../templates/images/treenode_grid_x.gif | Bin 60 -> 0 bytes .../templates/images/treenode_grid_y.gif | Bin 67 -> 0 bytes .../templates/images/treenode_grid_z.gif | Bin 60 -> 0 bytes .../widget/templates/images/treenode_node.gif | Bin 195 -> 0 bytes .../widget/templates/images/verticalbar.gif | Bin 158 -> 0 bytes .../templates/images/whiteDownArrow.gif | Bin 46 -> 0 bytes .../src/widget/templates/incrementMonth.gif | Bin 168 -> 0 bytes .../src/widget/templates/incrementWeek.gif | Bin 159 -> 0 bytes .../src/widget/templates/richtextframe.html | 24 - .../webapp/images/dojo/src/widget/validate.js | 14 - .../images/dojo/src/widget/vml/Chart.js | 643 - .../webapp/images/dojo/src/xml/Parse.js | 282 - .../images/dojo/src/xml/XslTransform.js | 249 - .../webapp/images/dojo/src/xml/__package__.js | 17 - .../webapp/images/dojo/storage_dialog.swf | Bin 26921 -> 0 bytes framework/images/webapp/images/ecommain.css | 584 + framework/images/webapp/images/fieldlookup.js | 1035 +- .../images/flotr/flotr.debug-0.2.0-alpha.js | 3105 --- framework/images/webapp/images/flotr/flotr.js | 4134 --- .../images/webapp/images/flotr/lib/base64.js | 113 - .../webapp/images/flotr/lib/canvas2image.js | 198 - .../webapp/images/flotr/lib/canvastext.js | 429 - .../images/webapp/images/flotr/license.txt | 19 - .../images/webapp/images/flotr/readme.txt | 58 - .../images/getDependentDropdownValues.js | 137 +- .../webapp/images/jquery/jquery-1.4.2.js | 6240 +++++ .../webapp/images/jquery/jquery-1.4.2.min.js | 154 + .../webapp/images/jquery/jquery-1.4.3.js | 6883 +++++ .../webapp/images/jquery/jquery-1.4.3.min.js | 166 + .../webapp/images/jquery/jquery-1.4.4.js | 7179 +++++ .../webapp/images/jquery/jquery-1.4.4.min.js | 167 + .../jquery/plugins/asmselect/README.txt | 102 + .../jquery.asmselect-1.0.4a-beta.css | 63 + .../asmselect/jquery.asmselect-1.0.4a-beta.js | 407 + .../jquery-ui-timepicker-addon-0.7.2.js | 832 + .../jquery-ui-timepicker-addon-0.7.2.min.js | 454 + .../plugins/elrteEditor/css/elrte-inner.css | 95 + .../plugins/elrteEditor/css/elrte.full.css | 523 + .../jquery/plugins/elrteEditor/elrte.full.js | 8647 ++++++ .../jquery/plugins/elrteEditor/elrte.min.js | 9 + .../elrteEditor/i18n/elrte.YOUR_LANG.js | 211 + .../plugins/elrteEditor/i18n/elrte.ar.js | 195 + .../plugins/elrteEditor/i18n/elrte.cs.js | 169 + .../plugins/elrteEditor/i18n/elrte.de.js | 168 + .../plugins/elrteEditor/i18n/elrte.es.js | 167 + .../plugins/elrteEditor/i18n/elrte.fa.js | 168 + .../plugins/elrteEditor/i18n/elrte.fr.js | 167 + .../plugins/elrteEditor/i18n/elrte.hu.js | 201 + .../plugins/elrteEditor/i18n/elrte.it.js | 167 + .../plugins/elrteEditor/i18n/elrte.jp.js | 187 + .../plugins/elrteEditor/i18n/elrte.lv.js | 179 + .../plugins/elrteEditor/i18n/elrte.nl.js | 199 + .../plugins/elrteEditor/i18n/elrte.pl.js | 168 + .../plugins/elrteEditor/i18n/elrte.ru.js | 211 + .../plugins/elrteEditor/i18n/elrte.ua.js | 201 + .../plugins/elrteEditor/i18n/elrte.zh_TW.js | 167 + .../elrteEditor/images/elrte-toolbar.png | Bin 0 -> 28256 bytes .../elrteEditor/images/google-maps.png | Bin 0 -> 2007 bytes .../plugins/elrteEditor/images/loading.gif | Bin 0 -> 1279 bytes .../elrteEditor/images/media-director.png | Bin 0 -> 2011 bytes .../elrteEditor/images/media-flash.png | Bin 0 -> 2054 bytes .../elrteEditor/images/media-quicktime.png | Bin 0 -> 2639 bytes .../elrteEditor/images/media-realaudio.png | Bin 0 -> 1609 bytes .../elrteEditor/images/media-rutube.png | Bin 0 -> 2442 bytes .../elrteEditor/images/media-vimeo.png | Bin 0 -> 1501 bytes .../elrteEditor/images/media-winmedia.png | Bin 0 -> 2449 bytes .../elrteEditor/images/media-youtube.png | Bin 0 -> 1700 bytes .../plugins/elrteEditor/images/pagebreak.gif | Bin 0 -> 54 bytes .../plugins/elrteEditor/images/pixel.gif} | Bin .../elrteEditor/images/smileys/evilgrin.png | Bin 0 -> 797 bytes .../elrteEditor/images/smileys/grin.png | Bin 0 -> 822 bytes .../elrteEditor/images/smileys/happy.png | Bin 0 -> 824 bytes .../elrteEditor/images/smileys/smile.png | Bin 0 -> 787 bytes .../elrteEditor/images/smileys/surprised.png | Bin 0 -> 780 bytes .../elrteEditor/images/smileys/tongue.png | Bin 0 -> 820 bytes .../elrteEditor/images/smileys/unhappy.png | Bin 0 -> 778 bytes .../elrteEditor/images/smileys/waii.png | Bin 0 -> 785 bytes .../elrteEditor/images/smileys/wink.png | Bin 0 -> 802 bytes .../elrteEditor/images/yandex-maps.png | Bin 0 -> 1667 bytes .../jquery/plugins/fjTimer/jquerytimer-min.js | 11 + .../jquery/plugins/fjTimer/jquerytimer.js | 136 + .../webapp/images/jquery/plugins/flot/API.txt | 1140 + .../webapp/images/jquery/plugins/flot/FAQ.txt | 76 + .../images/jquery/plugins/flot/LICENSE.txt | 22 + .../images/jquery/plugins/flot/Makefile | 15 + .../images/jquery/plugins/flot/NEWS.txt | 439 + .../images/jquery/plugins/flot/PLUGINS.txt | 105 + .../images/jquery/plugins/flot/README.txt | 81 + .../lib => jquery/plugins/flot}/excanvas.js | 293 +- .../jquery/plugins/flot/excanvas.min.js | 1 + .../plugins/flot/jquery.colorhelpers.js | 174 + .../plugins/flot/jquery.flot.crosshair.js | 159 + .../plugins/flot/jquery.flot.fillbetween.js | 183 + .../jquery/plugins/flot/jquery.flot.image.js | 238 + .../images/jquery/plugins/flot/jquery.flot.js | 2513 ++ .../plugins/flot/jquery.flot.navigate.js | 300 + .../jquery/plugins/flot/jquery.flot.pie.js | 753 + .../plugins/flot/jquery.flot.selection.js | 328 + .../jquery/plugins/flot/jquery.flot.stack.js | 184 + .../jquery/plugins/flot/jquery.flot.symbol.js | 70 + .../plugins/flot/jquery.flot.threshold.js | 103 + .../jquery/plugins/hotkeys/jquery.hotkeys.js | 620 + .../plugins/jcarousel/jquery.jcarousel.js | 917 + .../plugins/jcarousel/jquery.jcarousel.min.js | 16 + .../jcarousel/skins/ie7/loading-small.gif | Bin 0 -> 3236 bytes .../plugins/jcarousel/skins/ie7/loading.gif | Bin 0 -> 8266 bytes .../jcarousel/skins/ie7/loading_small.gif | Bin 0 -> 3208 bytes .../jcarousel/skins/ie7/next-horizontal.gif | Bin 0 -> 3530 bytes .../jcarousel/skins/ie7/prev-horizontal.gif | Bin 0 -> 3517 bytes .../plugins/jcarousel/skins/ie7/skin.css | 175 + .../jcarousel/skins/tango/next-horizontal.png | Bin 0 -> 4375 bytes .../jcarousel/skins/tango/next-vertical.png | Bin 0 -> 3817 bytes .../jcarousel/skins/tango/prev-horizontal.png | Bin 0 -> 4322 bytes .../jcarousel/skins/tango/prev-vertical.png | Bin 0 -> 3962 bytes .../plugins/jcarousel/skins/tango/skin.css | 172 + .../plugins/jeditable/jquery.jeditable.js | 546 + .../images/jquery/plugins/jquery.color.js | 124 + .../jquery/plugins/jsTree/jquery.jstree.js | 3510 +++ .../jquery/plugins/jsTree/themes/apple/bg.jpg | Bin 0 -> 331 bytes .../jquery/plugins/jsTree/themes/apple/d.png | Bin 0 -> 7765 bytes .../jsTree/themes/apple/dot_for_ie.gif | Bin 0 -> 43 bytes .../plugins/jsTree/themes/apple/style.css | 60 + .../plugins/jsTree/themes/apple/throbber.gif | Bin 0 -> 1849 bytes .../plugins/jsTree/themes/classic/d.png | Bin 0 -> 7535 bytes .../jsTree/themes/classic/dot_for_ie.gif | Bin 0 -> 43 bytes .../plugins/jsTree/themes/classic/style.css | 59 + .../jsTree/themes/classic/throbber.gif | Bin 0 -> 1849 bytes .../plugins/jsTree/themes/default-rtl/d.gif | Bin 0 -> 2872 bytes .../plugins/jsTree/themes/default-rtl/d.png | Bin 0 -> 7459 bytes .../jsTree/themes/default-rtl/dots.gif | Bin 0 -> 132 bytes .../jsTree/themes/default-rtl/style.css | 83 + .../jsTree/themes/default-rtl/throbber.gif | Bin 0 -> 1849 bytes .../plugins/jsTree/themes/default/d.gif | Bin 0 -> 2944 bytes .../plugins/jsTree/themes/default/d.png | Bin 0 -> 7635 bytes .../jsTree/themes/default/dot_for_ie.gif | Bin 0 -> 43 bytes .../plugins/jsTree/themes/default/style.css | 73 + .../jsTree/themes/default/throbber.gif | Bin 0 -> 1849 bytes .../plugins/validate/additional-methods.js | 259 + .../jquery/plugins/validate/changelog.txt | 239 + .../plugins/validate/jquery.validate.js | 1146 + .../plugins/validate/jquery.validate.min.js | 16 + .../plugins/validate/jquery.validate.pack.js | 15 + .../plugins/validate/lib/jquery-1.4.2.js | 6240 +++++ .../plugins/validate/lib/jquery.form.js | 660 + .../jquery/plugins/validate/lib/jquery.js | 4376 +++ .../plugins/validate/lib/jquery.metadata.js | 122 + .../validate/localization/messages_ar.js | 24 + .../validate/localization/messages_bg.js | 23 + .../validate/localization/messages_cn.js | 23 + .../validate/localization/messages_cs.js | 23 + .../validate/localization/messages_da.js | 20 + .../validate/localization/messages_de.js | 20 + .../validate/localization/messages_el.js | 24 + .../validate/localization/messages_es.js | 23 + .../validate/localization/messages_fa.js | 23 + .../validate/localization/messages_fi.js | 21 + .../validate/localization/messages_fr.js | 23 + .../validate/localization/messages_he.js | 23 + .../validate/localization/messages_hu.js | 20 + .../validate/localization/messages_it.js | 23 + .../validate/localization/messages_kk.js | 23 + .../validate/localization/messages_lt.js | 23 + .../validate/localization/messages_lv.js | 23 + .../validate/localization/messages_nl.js | 23 + .../validate/localization/messages_no.js | 23 + .../validate/localization/messages_pl.js | 23 + .../validate/localization/messages_ptbr.js | 23 + .../validate/localization/messages_ptpt.js | 23 + .../validate/localization/messages_ro.js | 23 + .../validate/localization/messages_ru.js | 23 + .../validate/localization/messages_se.js | 21 + .../validate/localization/messages_sk.js | 20 + .../validate/localization/messages_tr.js | 23 + .../validate/localization/messages_tw.js | 23 + .../validate/localization/messages_ua.js | 23 + .../validate/localization/methods_de.js | 12 + .../validate/localization/methods_nl.js | 9 + .../validate/localization/methods_pt.js | 9 + .../images/jquery/plugins/validate/todo | 172 + .../css/smoothness/jquery-ui-1.8.5.custom.css | 572 + .../ui-bg_diagonals-thick_18_b81900_40x40.png | Bin 0 -> 260 bytes .../ui-bg_diagonals-thick_20_666666_40x40.png | Bin 0 -> 251 bytes .../images/ui-bg_flat_10_000000_40x100.png | Bin 0 -> 178 bytes .../images/ui-bg_glass_100_f6f6f6_1x400.png | Bin 0 -> 104 bytes .../images/ui-bg_glass_100_fdf5ce_1x400.png | Bin 0 -> 125 bytes .../images/ui-bg_glass_65_ffffff_1x400.png | Bin 0 -> 105 bytes .../ui-bg_gloss-wave_35_f6a828_500x100.png | Bin 0 -> 3762 bytes .../ui-bg_highlight-soft_100_eeeeee_1x100.png | Bin 0 -> 90 bytes .../ui-bg_highlight-soft_75_ffe45c_1x100.png | Bin 0 -> 129 bytes .../images/ui-icons_222222_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_228ef1_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_ef8c08_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_ffd27a_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_ffffff_256x240.png | Bin 0 -> 4369 bytes .../ui-lightness/jquery-ui-1.8.6.custom.css | 572 + .../jquery/ui/development-bundle/AUTHORS.txt | 30 + .../ui/development-bundle/GPL-LICENSE.txt | 278 + .../ui/development-bundle/MIT-LICENSE.txt | 25 + .../external/jquery.bgiframe-2.1.2.js | 39 + .../external/jquery.cookie.js | 89 + .../external/jquery.metadata.js | 122 + .../ui/development-bundle/external/qunit.css | 153 + .../ui/development-bundle/external/qunit.js | 1261 + .../images/ui-bg_flat_0_aaaaaa_40x100.png | Bin 0 -> 180 bytes .../images/ui-bg_flat_75_ffffff_40x100.png | Bin 0 -> 178 bytes .../images/ui-bg_glass_55_fbf9ee_1x400.png | Bin 0 -> 120 bytes .../images/ui-bg_glass_65_ffffff_1x400.png | Bin 0 -> 105 bytes .../images/ui-bg_glass_75_dadada_1x400.png | Bin 0 -> 111 bytes .../images/ui-bg_glass_75_e6e6e6_1x400.png | Bin 0 -> 110 bytes .../images/ui-bg_glass_95_fef1ec_1x400.png | Bin 0 -> 119 bytes .../ui-bg_highlight-soft_75_cccccc_1x100.png | Bin 0 -> 101 bytes .../base/images/ui-icons_222222_256x240.png | Bin 0 -> 4369 bytes .../base/images/ui-icons_2e83ff_256x240.png | Bin 0 -> 4369 bytes .../base/images/ui-icons_454545_256x240.png | Bin 0 -> 4369 bytes .../base/images/ui-icons_888888_256x240.png | Bin 0 -> 4369 bytes .../base/images/ui-icons_cd0a0a_256x240.png | Bin 0 -> 4369 bytes .../themes/base/jquery.ui.accordion.css | 19 + .../themes/base/jquery.ui.all.css | 11 + .../themes/base/jquery.ui.autocomplete.css | 53 + .../themes/base/jquery.ui.base.css | 11 + .../themes/base/jquery.ui.button.css | 38 + .../themes/base/jquery.ui.core.css | 41 + .../themes/base/jquery.ui.datepicker.css | 68 + .../themes/base/jquery.ui.dialog.css | 21 + .../themes/base/jquery.ui.progressbar.css | 11 + .../themes/base/jquery.ui.resizable.css | 20 + .../themes/base/jquery.ui.selectable.css | 10 + .../themes/base/jquery.ui.slider.css | 24 + .../themes/base/jquery.ui.tabs.css | 18 + .../themes/base/jquery.ui.theme.css | 252 + .../ui-bg_diagonals-thick_18_b81900_40x40.png | Bin 0 -> 260 bytes .../ui-bg_diagonals-thick_20_666666_40x40.png | Bin 0 -> 251 bytes .../images/ui-bg_flat_10_000000_40x100.png | Bin 0 -> 178 bytes .../images/ui-bg_glass_100_f6f6f6_1x400.png | Bin 0 -> 104 bytes .../images/ui-bg_glass_100_fdf5ce_1x400.png | Bin 0 -> 125 bytes .../images/ui-bg_glass_65_ffffff_1x400.png | Bin 0 -> 105 bytes .../ui-bg_gloss-wave_35_f6a828_500x100.png | Bin 0 -> 3762 bytes .../ui-bg_highlight-soft_100_eeeeee_1x100.png | Bin 0 -> 90 bytes .../ui-bg_highlight-soft_75_ffe45c_1x100.png | Bin 0 -> 129 bytes .../images/ui-icons_222222_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_228ef1_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_ef8c08_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_ffd27a_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_ffffff_256x240.png | Bin 0 -> 4369 bytes .../ui-lightness/jquery-ui-1.8.6.custom.css | 572 + .../ui-lightness/jquery.ui.accordion.css | 19 + .../themes/ui-lightness/jquery.ui.all.css | 11 + .../ui-lightness/jquery.ui.autocomplete.css | 53 + .../themes/ui-lightness/jquery.ui.base.css | 11 + .../themes/ui-lightness/jquery.ui.button.css | 38 + .../themes/ui-lightness/jquery.ui.core.css | 41 + .../ui-lightness/jquery.ui.datepicker.css | 68 + .../themes/ui-lightness/jquery.ui.dialog.css | 21 + .../ui-lightness/jquery.ui.progressbar.css | 11 + .../ui-lightness/jquery.ui.resizable.css | 20 + .../ui-lightness/jquery.ui.selectable.css | 10 + .../themes/ui-lightness/jquery.ui.slider.css | 24 + .../themes/ui-lightness/jquery.ui.tabs.css | 18 + .../themes/ui-lightness/jquery.ui.theme.css | 254 + .../ui/i18n/jquery-ui-i18n.js | 1242 + .../ui/i18n/jquery.ui.datepicker-af.js | 23 + .../ui/i18n/jquery.ui.datepicker-ar.js | 24 + .../ui/i18n/jquery.ui.datepicker-az.js | 23 + .../ui/i18n/jquery.ui.datepicker-bg.js | 24 + .../ui/i18n/jquery.ui.datepicker-bs.js | 23 + .../ui/i18n/jquery.ui.datepicker-ca.js | 23 + .../ui/i18n/jquery.ui.datepicker-cs.js | 23 + .../ui/i18n/jquery.ui.datepicker-da.js | 23 + .../ui/i18n/jquery.ui.datepicker-de.js | 23 + .../ui/i18n/jquery.ui.datepicker-el.js | 23 + .../ui/i18n/jquery.ui.datepicker-en-GB.js | 23 + .../ui/i18n/jquery.ui.datepicker-eo.js | 23 + .../ui/i18n/jquery.ui.datepicker-es.js | 23 + .../ui/i18n/jquery.ui.datepicker-et.js | 23 + .../ui/i18n/jquery.ui.datepicker-eu.js | 23 + .../ui/i18n/jquery.ui.datepicker-fa.js | 23 + .../ui/i18n/jquery.ui.datepicker-fi.js | 23 + .../ui/i18n/jquery.ui.datepicker-fo.js | 23 + .../ui/i18n/jquery.ui.datepicker-fr-CH.js | 23 + .../ui/i18n/jquery.ui.datepicker-fr.js | 23 + .../ui/i18n/jquery.ui.datepicker-gl.js | 23 + .../ui/i18n/jquery.ui.datepicker-he.js | 23 + .../ui/i18n/jquery.ui.datepicker-hr.js | 23 + .../ui/i18n/jquery.ui.datepicker-hu.js | 23 + .../ui/i18n/jquery.ui.datepicker-hy.js | 23 + .../ui/i18n/jquery.ui.datepicker-id.js | 23 + .../ui/i18n/jquery.ui.datepicker-is.js | 23 + .../ui/i18n/jquery.ui.datepicker-it.js | 23 + .../ui/i18n/jquery.ui.datepicker-ja.js | 23 + .../ui/i18n/jquery.ui.datepicker-ko.js | 23 + .../ui/i18n/jquery.ui.datepicker-kz.js | 23 + .../ui/i18n/jquery.ui.datepicker-lt.js | 23 + .../ui/i18n/jquery.ui.datepicker-lv.js | 23 + .../ui/i18n/jquery.ui.datepicker-ms.js | 23 + .../ui/i18n/jquery.ui.datepicker-nl.js | 23 + .../ui/i18n/jquery.ui.datepicker-no.js | 23 + .../ui/i18n/jquery.ui.datepicker-pl.js | 23 + .../ui/i18n/jquery.ui.datepicker-pt-BR.js | 23 + .../ui/i18n/jquery.ui.datepicker-pt.js | 22 + .../ui/i18n/jquery.ui.datepicker-ro.js | 26 + .../ui/i18n/jquery.ui.datepicker-ru.js | 23 + .../ui/i18n/jquery.ui.datepicker-sk.js | 23 + .../ui/i18n/jquery.ui.datepicker-sl.js | 24 + .../ui/i18n/jquery.ui.datepicker-sq.js | 23 + .../ui/i18n/jquery.ui.datepicker-sr-SR.js | 23 + .../ui/i18n/jquery.ui.datepicker-sr.js | 23 + .../ui/i18n/jquery.ui.datepicker-sv.js | 23 + .../ui/i18n/jquery.ui.datepicker-ta.js | 23 + .../ui/i18n/jquery.ui.datepicker-th.js | 23 + .../ui/i18n/jquery.ui.datepicker-tr.js | 23 + .../ui/i18n/jquery.ui.datepicker-uk.js | 23 + .../ui/i18n/jquery.ui.datepicker-vi.js | 23 + .../ui/i18n/jquery.ui.datepicker-zh-CN.js | 23 + .../ui/i18n/jquery.ui.datepicker-zh-HK.js | 23 + .../ui/i18n/jquery.ui.datepicker-zh-TW.js | 23 + .../ui/jquery-ui-1.8.6.custom.js | 11437 ++++++++ .../ui/jquery.effects.blind.js | 49 + .../ui/jquery.effects.bounce.js | 78 + .../ui/jquery.effects.clip.js | 54 + .../ui/jquery.effects.core.js | 741 + .../ui/jquery.effects.drop.js | 50 + .../ui/jquery.effects.explode.js | 79 + .../ui/jquery.effects.fade.js | 32 + .../ui/jquery.effects.fold.js | 56 + .../ui/jquery.effects.highlight.js | 50 + .../ui/jquery.effects.pulsate.js | 51 + .../ui/jquery.effects.scale.js | 178 + .../ui/jquery.effects.shake.js | 57 + .../ui/jquery.effects.slide.js | 50 + .../ui/jquery.effects.transfer.js | 45 + .../ui/jquery.ui.accordion.js | 599 + .../ui/jquery.ui.autocomplete.js | 581 + .../development-bundle/ui/jquery.ui.button.js | 371 + .../development-bundle/ui/jquery.ui.core.js | 308 + .../ui/jquery.ui.datepicker.js | 1732 ++ .../development-bundle/ui/jquery.ui.dialog.js | 849 + .../ui/jquery.ui.draggable.js | 797 + .../ui/jquery.ui.droppable.js | 285 + .../development-bundle/ui/jquery.ui.mouse.js | 147 + .../ui/jquery.ui.position.js | 252 + .../ui/jquery.ui.progressbar.js | 97 + .../ui/jquery.ui.resizable.js | 812 + .../ui/jquery.ui.selectable.js | 266 + .../development-bundle/ui/jquery.ui.slider.js | 680 + .../ui/jquery.ui.sortable.js | 1071 + .../development-bundle/ui/jquery.ui.tabs.js | 758 + .../development-bundle/ui/jquery.ui.widget.js | 262 + .../ui/minified/jquery.effects.blind.min.js | 14 + .../ui/minified/jquery.effects.bounce.min.js | 15 + .../ui/minified/jquery.effects.clip.min.js | 14 + .../ui/minified/jquery.effects.core.min.js | 30 + .../ui/minified/jquery.effects.drop.min.js | 14 + .../ui/minified/jquery.effects.explode.min.js | 15 + .../ui/minified/jquery.effects.fade.min.js | 13 + .../ui/minified/jquery.effects.fold.min.js | 14 + .../minified/jquery.effects.highlight.min.js | 14 + .../ui/minified/jquery.effects.pulsate.min.js | 14 + .../ui/minified/jquery.effects.scale.min.js | 20 + .../ui/minified/jquery.effects.shake.min.js | 14 + .../ui/minified/jquery.effects.slide.min.js | 14 + .../minified/jquery.effects.transfer.min.js | 14 + .../ui/minified/jquery.ui.accordion.min.js | 30 + .../ui/minified/jquery.ui.autocomplete.min.js | 31 + .../ui/minified/jquery.ui.button.min.js | 25 + .../ui/minified/jquery.ui.core.min.js | 17 + .../ui/minified/jquery.ui.datepicker.min.js | 80 + .../ui/minified/jquery.ui.dialog.min.js | 39 + .../ui/minified/jquery.ui.draggable.min.js | 49 + .../ui/minified/jquery.ui.droppable.min.js | 26 + .../ui/minified/jquery.ui.mouse.min.js | 17 + .../ui/minified/jquery.ui.position.min.js | 16 + .../ui/minified/jquery.ui.progressbar.min.js | 16 + .../ui/minified/jquery.ui.resizable.min.js | 47 + .../ui/minified/jquery.ui.selectable.min.js | 22 + .../ui/minified/jquery.ui.slider.min.js | 33 + .../ui/minified/jquery.ui.sortable.min.js | 60 + .../ui/minified/jquery.ui.tabs.min.js | 35 + .../ui/minified/jquery.ui.widget.min.js | 15 + .../jquery/ui/development-bundle/version.txt | 1 + .../images/webapp/images/jquery/ui/index.html | 367 + .../images/jquery/ui/js/jquery-1.4.2.min.js | 154 + .../ui/js/jquery-ui-1.8.6.custom.min.js | 778 + framework/images/webapp/images/myportal.js | 421 +- .../webapp/images/prototypejs/builder.js | 136 - .../prototypejs/control.progress_bar.js | 99 - .../webapp/images/prototypejs/controls.js | 1038 - .../webapp/images/prototypejs/dragdrop.js | 974 - .../webapp/images/prototypejs/effects.js | 1122 - .../webapp/images/prototypejs/popup.css | 35 - .../images/webapp/images/prototypejs/popup.js | 470 - .../images/prototypejs/progress_bar.css | 23 - .../webapp/images/prototypejs/prototype.js | 4221 --- .../webapp/images/prototypejs/resize.js | 216 - .../images/prototypejs/scriptaculous.js | 58 - .../prototypejs/scriptaculouscontrols.css | 35 - .../webapp/images/prototypejs/slider.js | 275 - .../images/webapp/images/prototypejs/sound.js | 55 - .../webapp/images/prototypejs/tooltips.css | 28 - .../webapp/images/prototypejs/tooltips.js | 119 - .../webapp/images/prototypejs/unittest.js | 568 - .../webapp/images/prototypejs/validation.js | 280 - .../images/selectMultipleRelatedValues.js | 18 +- framework/images/webapp/images/selectall.js | 569 +- .../webapp/testtools/SeleniumTest.ftl | 68 +- framework/testtools/widget/CommonScreens.xml | 7 +- .../webslinger/entitydef/entitymodel.xml | 6 - .../webtools/config/WebtoolsUiLabels.xml | 4 + .../webapp/webtools/entity/ViewGeneric.ftl | 12 +- .../webapp/webtools/entity/xmldsdump.ftl | 10 +- .../webtools/widget/GeoManagementForms.xml | 24 +- .../webtools/widget/GeoManagementScreens.xml | 22 +- framework/widget/dtd/widget-form.xsd | 7 +- .../ofbiz/widget/form/MacroFormRenderer.java | 102 +- .../ofbiz/widget/html/HtmlFormRenderer.java | 43 +- .../widget/templates/csvFormMacroLibrary.ftl | 2 +- .../widget/templates/foFormMacroLibrary.ftl | 2 +- .../widget/templates/htmlFormMacroLibrary.ftl | 172 +- .../widget/templates/textFormMacroLibrary.ftl | 2 +- .../widget/templates/xmlFormMacroLibrary.ftl | 2 +- specialpurpose/build.xml | 4 +- .../cmssite/template/cms/HtmlHead.ftl | 3 - specialpurpose/component-load.xml | 5 +- .../webapp/ebay/find/EbayAdvancedSearch.ftl | 34 +- .../webapp/ebay/find/productsExportToEbay.ftl | 2 +- .../org/ofbiz/ebaystore/EbayStoreOrder.java | 2 +- .../webapp/ebaystore/store/StoreSetting.ftl | 94 +- .../ebaystore/store/ebayApiKeywordSearch.ftl | 18 +- .../ebaystore/store/productsearchExport.ftl | 152 +- .../ecommerce/data/EcommerceTypeData.xml | 13 +- .../ecommerce/webapp/ecommerce/blog/main.ftl | 4 - .../ecommerce/catalog/configproductdetail.ftl | 22 +- .../ecommerce/catalog/productdetail.ftl | 4 +- .../ecommerce/catalog/productreview.ftl | 2 +- .../ecommerce/customer/changepassword.ftl | 4 +- .../webapp/ecommerce/customer/newcustomer.ftl | 30 +- .../customer/profile/EditBillToAddress.ftl | 2 + .../customer/profile/EditPostalAddress.ftl | 2 + .../customer/profile/EditProfile.ftl | 2 +- .../customer/profile/EditShipToAddress.ftl | 2 + .../customer/profile/ManageAddress.ftl | 73 +- .../customer/profile/NewCustomer.ftl | 12 +- .../ecommerce/images/checkoutProcess.js | 642 +- .../ecommerce/images/productAdditionalView.js | 8 +- .../webapp/ecommerce/images/profile.js | 395 +- .../ecommerce/images/quickAnonCustSettings.js | 58 +- .../webapp/ecommerce/includes/headerHead.ftl | 5 - .../order/OnePageCheckoutProcess.ftl | 1 + .../ecommerce/order/checkoutpayment.ftl | 20 +- .../order/quickAnonCheckoutReview.ftl | 9 +- .../order/quickAnonOptionSettings.ftl | 20 +- .../order/quickAnonPaymentInformation.ftl | 84 +- .../shoppinglist/editShoppingList.ftl | 6 +- .../ecommerce/widget/CatalogScreens.xml | 1 - .../ecommerce/widget/CommonScreens.xml | 30 +- .../ecommerce/widget/CustomerScreens.xml | 43 +- .../ecommerce/widget/ForumForms.xml | 4 +- .../ecommerce/widget/OrderScreens.xml | 6 - .../find/GoogleBaseAdvancedSearch.ftl | 32 +- .../myportal/widget/CommonScreens.xml | 3 - .../ofbizwebsite/config/OfbizUiLabels.xml | 6 +- .../ofbizwebsite/data/OfbizData.xml | 138 +- .../ofbizwebsite/template/HtmlHead.ftl | 11 +- .../webapp/ofbiz/images/global.css | 23 +- .../webapp/ofbiz/script/effects.js | 1130 - .../webapp/ofbiz/script/search.js | 31 +- .../webapp/ofbiz/script/slides.js | 128 - .../projectmgr/project/edittaskandassoc.ftl | 23 +- .../webapp/projectmgr/survey/ListSurveys.ftl | 5 +- .../projectmgr/widget/ResourceScreens.xml | 3 - .../webapp/webpos/images/js/SearchProducts.js | 134 +- .../webpos/webapp/webpos/includes/Header.ftl | 6 - .../webpos/widget/CommonScreens.xml | 10 +- .../webpos/widget/WebPosScreens.xml | 4 - .../webapp/bizznesstime/css/style.css | 703 +- .../webapp/bizznesstime/images/cal.gif | Bin 0 -> 127 bytes .../images/ui-anim_basic_16x16.gif | Bin 0 -> 1553 bytes .../images/ui-bg_flat_0_aaaaaa_40x100.png | Bin 0 -> 180 bytes .../images/ui-bg_flat_75_ffffff_40x100.png | Bin 0 -> 178 bytes .../images/ui-bg_glass_55_fbf9ee_1x400.png | Bin 0 -> 120 bytes .../images/ui-bg_glass_75_dadada_1x400.png | Bin 0 -> 111 bytes .../images/ui-bg_glass_75_e6e6e6_1x400.png | Bin 0 -> 110 bytes .../images/ui-bg_glass_95_fef1ec_1x400.png | Bin 0 -> 119 bytes .../ui-bg_highlight-soft_75_cccccc_1x100.png | Bin 0 -> 101 bytes .../images/ui-icons_222222_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_2e83ff_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_454545_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_888888_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_cd0a0a_256x240.png | Bin 0 -> 4369 bytes .../webapp/bizznesstime/js/application.js | 192 +- themes/bluelight/webapp/bluelight/dropdown.js | 42 +- .../bluelight/webapp/bluelight/images/cal.gif | Bin 0 -> 127 bytes .../bluelight/images/ui-anim_basic_16x16.gif | Bin 0 -> 1553 bytes .../images/ui-bg_flat_0_aaaaaa_40x100.png | Bin 0 -> 180 bytes .../images/ui-bg_flat_75_ffffff_40x100.png | Bin 0 -> 178 bytes .../images/ui-bg_glass_55_fbf9ee_1x400.png | Bin 0 -> 120 bytes .../images/ui-bg_glass_65_ffffff_1x400.png | Bin 0 -> 105 bytes .../images/ui-bg_glass_75_dadada_1x400.png | Bin 0 -> 111 bytes .../images/ui-bg_glass_75_e6e6e6_1x400.png | Bin 0 -> 110 bytes .../images/ui-bg_glass_95_fef1ec_1x400.png | Bin 0 -> 119 bytes .../ui-bg_highlight-soft_75_cccccc_1x100.png | Bin 0 -> 101 bytes .../images/ui-icons_222222_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_2e83ff_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_454545_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_888888_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_cd0a0a_256x240.png | Bin 0 -> 4369 bytes themes/bluelight/webapp/bluelight/style.css | 864 +- .../webapp/droppingcrumbs/css/style.css | 859 +- .../webapp/droppingcrumbs/images/cal.gif | Bin 0 -> 127 bytes .../images/ui-anim_basic_16x16.gif | Bin 0 -> 1553 bytes .../images/ui-bg_flat_0_aaaaaa_40x100.png | Bin 0 -> 180 bytes .../images/ui-bg_flat_75_ffffff_40x100.png | Bin 0 -> 178 bytes .../images/ui-bg_glass_55_fbf9ee_1x400.png | Bin 0 -> 120 bytes .../images/ui-bg_glass_65_ffffff_1x400.png | Bin 0 -> 105 bytes .../images/ui-bg_glass_75_dadada_1x400.png | Bin 0 -> 111 bytes .../images/ui-bg_glass_75_e6e6e6_1x400.png | Bin 0 -> 110 bytes .../images/ui-bg_glass_95_fef1ec_1x400.png | Bin 0 -> 119 bytes .../ui-bg_highlight-soft_75_cccccc_1x100.png | Bin 0 -> 101 bytes .../images/ui-icons_222222_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_2e83ff_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_454545_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_888888_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_cd0a0a_256x240.png | Bin 0 -> 4369 bytes .../webapp/droppingcrumbs/js/application.js | 201 - .../webapp/droppingcrumbs/js/dropdown.js | 41 +- .../flatgrey/webapp/flatgrey/images/cal.gif | Bin 0 -> 127 bytes .../flatgrey/images/ui-anim_basic_16x16.gif | Bin 0 -> 1553 bytes .../images/ui-bg_flat_0_aaaaaa_40x100.png | Bin 0 -> 180 bytes .../images/ui-bg_flat_55_fbec88_40x100.png | Bin 0 -> 182 bytes .../images/ui-bg_glass_75_d0e5f5_1x400.png | Bin 0 -> 124 bytes .../images/ui-bg_glass_85_dfeffc_1x400.png | Bin 0 -> 123 bytes .../images/ui-bg_glass_95_fef1ec_1x400.png | Bin 0 -> 119 bytes .../ui-bg_gloss-wave_55_5c9ccc_500x100.png | Bin 0 -> 3457 bytes .../ui-bg_inset-hard_100_f5f8f9_1x100.png | Bin 0 -> 104 bytes .../ui-bg_inset-hard_100_fcfdfd_1x100.png | Bin 0 -> 112 bytes .../images/ui-icons_217bc0_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_2e83ff_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_469bdd_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_6da8d5_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_cd0a0a_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_d8e7f3_256x240.png | Bin 0 -> 5355 bytes .../images/ui-icons_f9bd01_256x240.png | Bin 0 -> 4369 bytes themes/flatgrey/webapp/flatgrey/maincss.css | 848 +- themes/multiflex/data/MultiflexThemeData.xml | 63 +- .../multiflex/webapp/multiflex/images/cal.gif | Bin 0 -> 127 bytes .../multiflex/images/ui-anim_basic_16x16.gif | Bin 0 -> 1553 bytes .../images/ui-bg_flat_0_aaaaaa_40x100.png | Bin 0 -> 180 bytes .../images/ui-bg_flat_75_ffffff_40x100.png | Bin 0 -> 178 bytes .../images/ui-bg_glass_55_fbf9ee_1x400.png | Bin 0 -> 120 bytes .../images/ui-bg_glass_65_ffffff_1x400.png | Bin 0 -> 105 bytes .../images/ui-bg_glass_75_dadada_1x400.png | Bin 0 -> 111 bytes .../images/ui-bg_glass_75_e6e6e6_1x400.png | Bin 0 -> 110 bytes .../images/ui-bg_glass_95_fef1ec_1x400.png | Bin 0 -> 119 bytes .../ui-bg_highlight-soft_75_cccccc_1x100.png | Bin 0 -> 101 bytes .../images/ui-icons_222222_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_2e83ff_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_454545_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_888888_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_cd0a0a_256x240.png | Bin 0 -> 4369 bytes themes/multiflex/webapp/multiflex/style.css | 742 +- themes/tomahawk/includes/appbarClose.ftl | 6 +- themes/tomahawk/webapp/tomahawk/css/style.css | 735 +- .../webapp/tomahawk/images/pbar-ani.gif | Bin 0 -> 304064 bytes .../tomahawk/images/ui-anim_basic_16x16.gif | Bin 0 -> 1553 bytes .../ui-bg_diagonals-thick_18_b81900_40x40.png | Bin 0 -> 260 bytes .../ui-bg_diagonals-thick_20_666666_40x40.png | Bin 0 -> 251 bytes .../images/ui-bg_flat_10_000000_40x100.png | Bin 0 -> 178 bytes .../images/ui-bg_glass_100_f6f6f6_1x400.png | Bin 0 -> 104 bytes .../images/ui-bg_glass_100_fdf5ce_1x400.png | Bin 0 -> 125 bytes .../images/ui-bg_glass_65_ffffff_1x400.png | Bin 0 -> 105 bytes .../ui-bg_gloss-wave_35_f6a828_500x100.png | Bin 0 -> 3762 bytes .../ui-bg_highlight-soft_100_eeeeee_1x100.png | Bin 0 -> 90 bytes .../ui-bg_highlight-soft_75_ffe45c_1x100.png | Bin 0 -> 129 bytes .../images/ui-icons_222222_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_228ef1_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_ef8c08_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_ffd27a_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_ffffff_256x240.png | Bin 0 -> 4369 bytes .../tomahawk/webapp/tomahawk/js/dropdown.js | 25 +- 1418 files changed, 103465 insertions(+), 156611 deletions(-) rename framework/common/webcommon/WEB-INF/actions/includes/{PrepareDataForFlotrGraph.groovy => PrepareDataForFlotGraph.groovy} (100%) create mode 100644 framework/common/webcommon/includes/flotCharts/Bars.ftl create mode 100644 framework/common/webcommon/includes/flotCharts/Pie.ftl delete mode 100644 framework/common/webcommon/includes/flotrCharts/Bars.ftl delete mode 100644 framework/common/webcommon/includes/flotrCharts/Pie.ftl rename framework/common/widget/{flotrScreens.xml => flotScreens.xml} (89%) create mode 100644 framework/example/webapp/example/flot/flotPie.ftl delete mode 100644 framework/example/webapp/example/flotr/flotrPie.ftl delete mode 100644 framework/images/webapp/images/calendarDateSelect/calendar_date_select.js delete mode 100644 framework/images/webapp/images/calendarDateSelect/format/format_american.js delete mode 100644 framework/images/webapp/images/calendarDateSelect/format/format_db.js delete mode 100644 framework/images/webapp/images/calendarDateSelect/format/format_euro_24hr.js delete mode 100644 framework/images/webapp/images/calendarDateSelect/format/format_euro_24hr_ymd.js delete mode 100644 framework/images/webapp/images/calendarDateSelect/format/format_finnish.js delete mode 100644 framework/images/webapp/images/calendarDateSelect/format/format_hyphen_ampm.js delete mode 100644 framework/images/webapp/images/calendarDateSelect/format/format_iso_date.js delete mode 100644 framework/images/webapp/images/calendarDateSelect/format/format_italian.js delete mode 100644 framework/images/webapp/images/calendarDateSelect/locale/de.js delete mode 100644 framework/images/webapp/images/calendarDateSelect/locale/en.js delete mode 100644 framework/images/webapp/images/calendarDateSelect/locale/es.js delete mode 100644 framework/images/webapp/images/calendarDateSelect/locale/fi.js delete mode 100644 framework/images/webapp/images/calendarDateSelect/locale/fr.js delete mode 100644 framework/images/webapp/images/calendarDateSelect/locale/nl.js delete mode 100644 framework/images/webapp/images/calendarDateSelect/locale/pl.js delete mode 100644 framework/images/webapp/images/calendarDateSelect/locale/pt.js delete mode 100644 framework/images/webapp/images/calendarDateSelect/locale/ru.js delete mode 100644 framework/images/webapp/images/calendarDateSelect/locale/zh.js delete mode 100644 framework/images/webapp/images/dojo/LICENSE delete mode 100644 framework/images/webapp/images/dojo/README delete mode 100644 framework/images/webapp/images/dojo/Storage_version6.swf delete mode 100644 framework/images/webapp/images/dojo/Storage_version8.swf delete mode 100644 framework/images/webapp/images/dojo/build.txt delete mode 100644 framework/images/webapp/images/dojo/dojo.js delete mode 100644 framework/images/webapp/images/dojo/dojo.js.uncompressed.js delete mode 100644 framework/images/webapp/images/dojo/flash6_gateway.swf delete mode 100644 framework/images/webapp/images/dojo/iframe_history.html delete mode 100644 framework/images/webapp/images/dojo/src/AdapterRegistry.js delete mode 100644 framework/images/webapp/images/dojo/src/Deferred.js delete mode 100644 framework/images/webapp/images/dojo/src/DeferredList.js delete mode 100644 framework/images/webapp/images/dojo/src/a11y.js delete mode 100644 framework/images/webapp/images/dojo/src/animation.js delete mode 100644 framework/images/webapp/images/dojo/src/animation/Animation.js delete mode 100644 framework/images/webapp/images/dojo/src/animation/AnimationEvent.js delete mode 100644 framework/images/webapp/images/dojo/src/animation/AnimationSequence.js delete mode 100644 framework/images/webapp/images/dojo/src/animation/Timer.js delete mode 100644 framework/images/webapp/images/dojo/src/animation/__package__.js delete mode 100644 framework/images/webapp/images/dojo/src/behavior.js delete mode 100644 framework/images/webapp/images/dojo/src/bootstrap1.js delete mode 100644 framework/images/webapp/images/dojo/src/bootstrap2.js delete mode 100644 framework/images/webapp/images/dojo/src/browser_debug.js delete mode 100644 framework/images/webapp/images/dojo/src/cal/iCalendar.js delete mode 100644 framework/images/webapp/images/dojo/src/cal/textDirectory.js delete mode 100644 framework/images/webapp/images/dojo/src/charting/Axis.js delete mode 100644 framework/images/webapp/images/dojo/src/charting/Chart.js delete mode 100644 framework/images/webapp/images/dojo/src/charting/Plot.js delete mode 100644 framework/images/webapp/images/dojo/src/charting/PlotArea.js delete mode 100644 framework/images/webapp/images/dojo/src/charting/Plotters.js delete mode 100644 framework/images/webapp/images/dojo/src/charting/README.txt delete mode 100644 framework/images/webapp/images/dojo/src/charting/Series.js delete mode 100644 framework/images/webapp/images/dojo/src/charting/__package__.js delete mode 100644 framework/images/webapp/images/dojo/src/charting/svg/Axis.js delete mode 100644 framework/images/webapp/images/dojo/src/charting/svg/PlotArea.js delete mode 100644 framework/images/webapp/images/dojo/src/charting/svg/Plotters.js delete mode 100644 framework/images/webapp/images/dojo/src/charting/vml/Axis.js delete mode 100644 framework/images/webapp/images/dojo/src/charting/vml/PlotArea.js delete mode 100644 framework/images/webapp/images/dojo/src/charting/vml/Plotters.js delete mode 100644 framework/images/webapp/images/dojo/src/collections/ArrayList.js delete mode 100644 framework/images/webapp/images/dojo/src/collections/BinaryTree.js delete mode 100644 framework/images/webapp/images/dojo/src/collections/Collections.js delete mode 100644 framework/images/webapp/images/dojo/src/collections/Dictionary.js delete mode 100644 framework/images/webapp/images/dojo/src/collections/Graph.js delete mode 100644 framework/images/webapp/images/dojo/src/collections/Queue.js delete mode 100644 framework/images/webapp/images/dojo/src/collections/Set.js delete mode 100644 framework/images/webapp/images/dojo/src/collections/SkipList.js delete mode 100644 framework/images/webapp/images/dojo/src/collections/SortedList.js delete mode 100644 framework/images/webapp/images/dojo/src/collections/Stack.js delete mode 100644 framework/images/webapp/images/dojo/src/collections/Store.js delete mode 100644 framework/images/webapp/images/dojo/src/collections/__package__.js delete mode 100644 framework/images/webapp/images/dojo/src/crypto.js delete mode 100644 framework/images/webapp/images/dojo/src/crypto/Blowfish.js delete mode 100644 framework/images/webapp/images/dojo/src/crypto/LICENSE delete mode 100644 framework/images/webapp/images/dojo/src/crypto/MD5.js delete mode 100644 framework/images/webapp/images/dojo/src/crypto/Rijndael.js delete mode 100644 framework/images/webapp/images/dojo/src/crypto/SHA1.js delete mode 100644 framework/images/webapp/images/dojo/src/crypto/SHA256.js delete mode 100644 framework/images/webapp/images/dojo/src/crypto/__package__.js delete mode 100644 framework/images/webapp/images/dojo/src/data.js delete mode 100644 framework/images/webapp/images/dojo/src/data/CsvStore.js delete mode 100644 framework/images/webapp/images/dojo/src/data/OpmlStore.js delete mode 100644 framework/images/webapp/images/dojo/src/data/RdfStore.js delete mode 100644 framework/images/webapp/images/dojo/src/data/YahooStore.js delete mode 100644 framework/images/webapp/images/dojo/src/data/core/Read.js delete mode 100644 framework/images/webapp/images/dojo/src/data/core/RemoteStore.js delete mode 100644 framework/images/webapp/images/dojo/src/data/core/Result.js delete mode 100644 framework/images/webapp/images/dojo/src/data/core/Write.js delete mode 100644 framework/images/webapp/images/dojo/src/data/old/Attribute.js delete mode 100644 framework/images/webapp/images/dojo/src/data/old/Item.js delete mode 100644 framework/images/webapp/images/dojo/src/data/old/Kind.js delete mode 100644 framework/images/webapp/images/dojo/src/data/old/Observable.js delete mode 100644 framework/images/webapp/images/dojo/src/data/old/ResultSet.js delete mode 100644 framework/images/webapp/images/dojo/src/data/old/Type.js delete mode 100644 framework/images/webapp/images/dojo/src/data/old/Value.js delete mode 100644 framework/images/webapp/images/dojo/src/data/old/__package__.js delete mode 100644 framework/images/webapp/images/dojo/src/data/old/format/Csv.js delete mode 100644 framework/images/webapp/images/dojo/src/data/old/format/Json.js delete mode 100644 framework/images/webapp/images/dojo/src/data/old/provider/Base.js delete mode 100644 framework/images/webapp/images/dojo/src/data/old/provider/Delicious.js delete mode 100644 framework/images/webapp/images/dojo/src/data/old/provider/FlatFile.js delete mode 100644 framework/images/webapp/images/dojo/src/data/old/provider/JotSpot.js delete mode 100644 framework/images/webapp/images/dojo/src/data/old/provider/MySql.js delete mode 100644 framework/images/webapp/images/dojo/src/data/old/to_do.txt delete mode 100644 framework/images/webapp/images/dojo/src/date.js delete mode 100644 framework/images/webapp/images/dojo/src/date/common.js delete mode 100644 framework/images/webapp/images/dojo/src/date/format.js delete mode 100644 framework/images/webapp/images/dojo/src/date/serialize.js delete mode 100644 framework/images/webapp/images/dojo/src/date/supplemental.js delete mode 100644 framework/images/webapp/images/dojo/src/debug.js delete mode 100644 framework/images/webapp/images/dojo/src/debug/Firebug.js delete mode 100644 framework/images/webapp/images/dojo/src/debug/arrow_hide.gif delete mode 100644 framework/images/webapp/images/dojo/src/debug/arrow_show.gif delete mode 100644 framework/images/webapp/images/dojo/src/debug/console.js delete mode 100644 framework/images/webapp/images/dojo/src/debug/deep.html delete mode 100644 framework/images/webapp/images/dojo/src/debug/spacer.gif delete mode 100644 framework/images/webapp/images/dojo/src/dnd/DragAndDrop.js delete mode 100644 framework/images/webapp/images/dojo/src/dnd/HtmlDragAndDrop.js delete mode 100644 framework/images/webapp/images/dojo/src/dnd/HtmlDragCopy.js delete mode 100644 framework/images/webapp/images/dojo/src/dnd/HtmlDragManager.js delete mode 100644 framework/images/webapp/images/dojo/src/dnd/HtmlDragMove.js delete mode 100644 framework/images/webapp/images/dojo/src/dnd/Sortable.js delete mode 100644 framework/images/webapp/images/dojo/src/dnd/TreeDragAndDrop.js delete mode 100644 framework/images/webapp/images/dojo/src/dnd/TreeDragAndDropV3.js delete mode 100644 framework/images/webapp/images/dojo/src/dnd/__package__.js delete mode 100644 framework/images/webapp/images/dojo/src/docs.js delete mode 100644 framework/images/webapp/images/dojo/src/dom.js delete mode 100644 framework/images/webapp/images/dojo/src/event.js delete mode 100644 framework/images/webapp/images/dojo/src/event/__package__.js delete mode 100644 framework/images/webapp/images/dojo/src/event/browser.js delete mode 100644 framework/images/webapp/images/dojo/src/event/common.js delete mode 100644 framework/images/webapp/images/dojo/src/event/topic.js delete mode 100644 framework/images/webapp/images/dojo/src/experimental.js delete mode 100644 framework/images/webapp/images/dojo/src/flash.js delete mode 100644 framework/images/webapp/images/dojo/src/flash/flash6/DojoExternalInterface.as delete mode 100644 framework/images/webapp/images/dojo/src/flash/flash6/flash6_gateway.fla delete mode 100644 framework/images/webapp/images/dojo/src/flash/flash8/DojoExternalInterface.as delete mode 100644 framework/images/webapp/images/dojo/src/flash/flash8/ExpressInstall.as delete mode 100644 framework/images/webapp/images/dojo/src/gfx/Colorspace.js delete mode 100644 framework/images/webapp/images/dojo/src/gfx/__package__.js delete mode 100644 framework/images/webapp/images/dojo/src/gfx/color.js delete mode 100644 framework/images/webapp/images/dojo/src/gfx/color/hsl.js delete mode 100644 framework/images/webapp/images/dojo/src/gfx/color/hsv.js delete mode 100644 framework/images/webapp/images/dojo/src/gfx/common.js delete mode 100644 framework/images/webapp/images/dojo/src/gfx/matrix.js delete mode 100644 framework/images/webapp/images/dojo/src/gfx/path.js delete mode 100644 framework/images/webapp/images/dojo/src/gfx/shape.js delete mode 100644 framework/images/webapp/images/dojo/src/gfx/svg.js delete mode 100644 framework/images/webapp/images/dojo/src/gfx/vml.js delete mode 100644 framework/images/webapp/images/dojo/src/graphics/Colorspace.js delete mode 100644 framework/images/webapp/images/dojo/src/graphics/__package__.js delete mode 100644 framework/images/webapp/images/dojo/src/graphics/color.js delete mode 100644 framework/images/webapp/images/dojo/src/graphics/color/hsl.js delete mode 100644 framework/images/webapp/images/dojo/src/graphics/color/hsv.js delete mode 100644 framework/images/webapp/images/dojo/src/hostenv_adobesvg.js delete mode 100644 framework/images/webapp/images/dojo/src/hostenv_browser.js delete mode 100644 framework/images/webapp/images/dojo/src/hostenv_dashboard.js delete mode 100644 framework/images/webapp/images/dojo/src/hostenv_jsc.js delete mode 100644 framework/images/webapp/images/dojo/src/hostenv_rhino.js delete mode 100644 framework/images/webapp/images/dojo/src/hostenv_spidermonkey.js delete mode 100644 framework/images/webapp/images/dojo/src/hostenv_svg.js delete mode 100644 framework/images/webapp/images/dojo/src/hostenv_wsh.js delete mode 100644 framework/images/webapp/images/dojo/src/html.js delete mode 100644 framework/images/webapp/images/dojo/src/html/__package__.js delete mode 100644 framework/images/webapp/images/dojo/src/html/color.js delete mode 100644 framework/images/webapp/images/dojo/src/html/common.js delete mode 100644 framework/images/webapp/images/dojo/src/html/display.js delete mode 100644 framework/images/webapp/images/dojo/src/html/iframe.js delete mode 100644 framework/images/webapp/images/dojo/src/html/images/shadowB.png delete mode 100644 framework/images/webapp/images/dojo/src/html/images/shadowBL.png delete mode 100644 framework/images/webapp/images/dojo/src/html/images/shadowBR.png delete mode 100644 framework/images/webapp/images/dojo/src/html/images/shadowL.png delete mode 100644 framework/images/webapp/images/dojo/src/html/images/shadowR.png delete mode 100644 framework/images/webapp/images/dojo/src/html/images/shadowT.png delete mode 100644 framework/images/webapp/images/dojo/src/html/images/shadowTL.png delete mode 100644 framework/images/webapp/images/dojo/src/html/images/shadowTR.png delete mode 100644 framework/images/webapp/images/dojo/src/html/layout.js delete mode 100644 framework/images/webapp/images/dojo/src/html/metrics.js delete mode 100644 framework/images/webapp/images/dojo/src/html/selection.js delete mode 100644 framework/images/webapp/images/dojo/src/html/shadow.js delete mode 100644 framework/images/webapp/images/dojo/src/html/style.js delete mode 100644 framework/images/webapp/images/dojo/src/html/util.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/calendar/nls/README delete mode 100644 framework/images/webapp/images/dojo/src/i18n/calendar/nls/de/gregorian.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/calendar/nls/en/gregorian.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/calendar/nls/es/gregorian.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/calendar/nls/fi/gregorian.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/calendar/nls/fr/gregorian.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/calendar/nls/gregorian.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/calendar/nls/gregorianExtras.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/calendar/nls/hu/gregorian.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/calendar/nls/it/gregorian.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/calendar/nls/ja/gregorian.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/calendar/nls/ja/gregorianExtras.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/calendar/nls/ko/gregorian.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/calendar/nls/nl/gregorian.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/calendar/nls/pt-br/gregorian.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/calendar/nls/pt/gregorian.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/calendar/nls/sv/gregorian.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/calendar/nls/zh-cn/gregorian.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/calendar/nls/zh-hk/gregorian.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/calendar/nls/zh-tw/gregorian.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/calendar/nls/zh/gregorian.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/calendar/nls/zh/gregorianExtras.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/common.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency/common.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency/nls/EUR.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency/nls/GBP.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency/nls/INR.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency/nls/ITL.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency/nls/JPY.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency/nls/README delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency/nls/USD.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency/nls/en-us/USD.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency/nls/en/EUR.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency/nls/en/GBP.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency/nls/en/INR.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency/nls/en/ITL.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency/nls/en/JPY.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency/nls/en/USD.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency/nls/hi/EUR.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency/nls/hi/GBP.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency/nls/hi/INR.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency/nls/hi/ITL.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency/nls/hi/JPY.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency/nls/hi/USD.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency/nls/ja/EUR.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency/nls/ja/GBP.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency/nls/ja/INR.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency/nls/ja/ITL.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency/nls/ja/JPY.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/currency/nls/ja/USD.js delete mode 100644 framework/images/webapp/images/dojo/src/i18n/number.js delete mode 100644 framework/images/webapp/images/dojo/src/iCalendar.js delete mode 100644 framework/images/webapp/images/dojo/src/io.js delete mode 100644 framework/images/webapp/images/dojo/src/io/BrowserIO.js delete mode 100644 framework/images/webapp/images/dojo/src/io/IframeIO.js delete mode 100644 framework/images/webapp/images/dojo/src/io/RepubsubIO.js delete mode 100644 framework/images/webapp/images/dojo/src/io/RhinoIO.js delete mode 100644 framework/images/webapp/images/dojo/src/io/ScriptSrcIO.js delete mode 100644 framework/images/webapp/images/dojo/src/io/XhrIframeProxy.js delete mode 100644 framework/images/webapp/images/dojo/src/io/__package__.js delete mode 100644 framework/images/webapp/images/dojo/src/io/cometd.js delete mode 100644 framework/images/webapp/images/dojo/src/io/common.js delete mode 100644 framework/images/webapp/images/dojo/src/io/cookie.js delete mode 100644 framework/images/webapp/images/dojo/src/io/xip_client.html delete mode 100644 framework/images/webapp/images/dojo/src/io/xip_server.html delete mode 100644 framework/images/webapp/images/dojo/src/json.js delete mode 100644 framework/images/webapp/images/dojo/src/lang.js delete mode 100644 framework/images/webapp/images/dojo/src/lang/__package__.js delete mode 100644 framework/images/webapp/images/dojo/src/lang/array.js delete mode 100644 framework/images/webapp/images/dojo/src/lang/assert.js delete mode 100644 framework/images/webapp/images/dojo/src/lang/common.js delete mode 100644 framework/images/webapp/images/dojo/src/lang/declare.js delete mode 100644 framework/images/webapp/images/dojo/src/lang/extras.js delete mode 100644 framework/images/webapp/images/dojo/src/lang/func.js delete mode 100644 framework/images/webapp/images/dojo/src/lang/repr.js delete mode 100644 framework/images/webapp/images/dojo/src/lang/timing/Streamer.js delete mode 100644 framework/images/webapp/images/dojo/src/lang/timing/Timer.js delete mode 100644 framework/images/webapp/images/dojo/src/lang/timing/__package__.js delete mode 100644 framework/images/webapp/images/dojo/src/lang/type.js delete mode 100644 framework/images/webapp/images/dojo/src/lfx/Animation.js delete mode 100644 framework/images/webapp/images/dojo/src/lfx/__package__.js delete mode 100644 framework/images/webapp/images/dojo/src/lfx/extras.js delete mode 100644 framework/images/webapp/images/dojo/src/lfx/html.js delete mode 100644 framework/images/webapp/images/dojo/src/lfx/rounded.js delete mode 100644 framework/images/webapp/images/dojo/src/lfx/shadow.js delete mode 100644 framework/images/webapp/images/dojo/src/lfx/toggle.js delete mode 100644 framework/images/webapp/images/dojo/src/loader.js delete mode 100644 framework/images/webapp/images/dojo/src/loader_xd.js delete mode 100644 framework/images/webapp/images/dojo/src/logging/ConsoleLogger.js delete mode 100644 framework/images/webapp/images/dojo/src/logging/Logger.js delete mode 100644 framework/images/webapp/images/dojo/src/logging/__package__.js delete mode 100644 framework/images/webapp/images/dojo/src/math.js delete mode 100644 framework/images/webapp/images/dojo/src/math/__package__.js delete mode 100644 framework/images/webapp/images/dojo/src/math/curves.js delete mode 100644 framework/images/webapp/images/dojo/src/math/matrix.js delete mode 100644 framework/images/webapp/images/dojo/src/math/points.js delete mode 100644 framework/images/webapp/images/dojo/src/namespaces/dojo.js delete mode 100644 framework/images/webapp/images/dojo/src/ns.js delete mode 100644 framework/images/webapp/images/dojo/src/profile.js delete mode 100644 framework/images/webapp/images/dojo/src/regexp.js delete mode 100644 framework/images/webapp/images/dojo/src/rpc/Deferred.js delete mode 100644 framework/images/webapp/images/dojo/src/rpc/JotService.js delete mode 100644 framework/images/webapp/images/dojo/src/rpc/JsonService.js delete mode 100644 framework/images/webapp/images/dojo/src/rpc/RpcService.js delete mode 100644 framework/images/webapp/images/dojo/src/rpc/YahooService.js delete mode 100644 framework/images/webapp/images/dojo/src/rpc/__package__.js delete mode 100644 framework/images/webapp/images/dojo/src/rpc/yahoo.smd delete mode 100644 framework/images/webapp/images/dojo/src/selection/Selection.js delete mode 100644 framework/images/webapp/images/dojo/src/storage.js delete mode 100644 framework/images/webapp/images/dojo/src/storage/Storage.as delete mode 100644 framework/images/webapp/images/dojo/src/storage/__package__.js delete mode 100644 framework/images/webapp/images/dojo/src/storage/browser.js delete mode 100644 framework/images/webapp/images/dojo/src/storage/storage_dialog.fla delete mode 100644 framework/images/webapp/images/dojo/src/string.js delete mode 100644 framework/images/webapp/images/dojo/src/string/Builder.js delete mode 100644 framework/images/webapp/images/dojo/src/string/__package__.js delete mode 100644 framework/images/webapp/images/dojo/src/string/common.js delete mode 100644 framework/images/webapp/images/dojo/src/string/extras.js delete mode 100644 framework/images/webapp/images/dojo/src/style.js delete mode 100644 framework/images/webapp/images/dojo/src/svg.js delete mode 100644 framework/images/webapp/images/dojo/src/text/__package__.js delete mode 100644 framework/images/webapp/images/dojo/src/text/textDirectory.js delete mode 100644 framework/images/webapp/images/dojo/src/undo/Manager.js delete mode 100644 framework/images/webapp/images/dojo/src/undo/__package__.js delete mode 100644 framework/images/webapp/images/dojo/src/undo/browser.js delete mode 100644 framework/images/webapp/images/dojo/src/uri/Uri.js delete mode 100644 framework/images/webapp/images/dojo/src/uri/__package__.js delete mode 100644 framework/images/webapp/images/dojo/src/uuid/LightweightGenerator.js delete mode 100644 framework/images/webapp/images/dojo/src/uuid/NameBasedGenerator.js delete mode 100644 framework/images/webapp/images/dojo/src/uuid/NilGenerator.js delete mode 100644 framework/images/webapp/images/dojo/src/uuid/RandomGenerator.js delete mode 100644 framework/images/webapp/images/dojo/src/uuid/TimeBasedGenerator.js delete mode 100644 framework/images/webapp/images/dojo/src/uuid/Uuid.js delete mode 100644 framework/images/webapp/images/dojo/src/uuid/__package__.js delete mode 100644 framework/images/webapp/images/dojo/src/validate.js delete mode 100644 framework/images/webapp/images/dojo/src/validate/__package__.js delete mode 100644 framework/images/webapp/images/dojo/src/validate/check.js delete mode 100644 framework/images/webapp/images/dojo/src/validate/common.js delete mode 100644 framework/images/webapp/images/dojo/src/validate/creditCard.js delete mode 100644 framework/images/webapp/images/dojo/src/validate/datetime.js delete mode 100644 framework/images/webapp/images/dojo/src/validate/de.js delete mode 100644 framework/images/webapp/images/dojo/src/validate/jp.js delete mode 100644 framework/images/webapp/images/dojo/src/validate/us.js delete mode 100644 framework/images/webapp/images/dojo/src/validate/web.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/AccordionContainer.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/AnimatedPng.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Button.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Chart.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Checkbox.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Clock.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/ColorPalette.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/ComboBox.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/ContentPane.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/CurrencyTextbox.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/DatePicker.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/DateTextbox.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/DebugConsole.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Dialog.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/DocPane.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/DomWidget.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/DropdownContainer.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/DropdownDatePicker.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/DropdownTimePicker.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Editor.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Editor2.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Editor2Plugin/AlwaysShowToolbar.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Editor2Plugin/ContextMenu.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Editor2Plugin/CreateLinkDialog.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Editor2Plugin/FindReplace.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Editor2Plugin/FindReplaceDialog.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Editor2Plugin/InsertImageDialog.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Editor2Plugin/InsertTableDialog.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Editor2Plugin/SimpleSignalCommands.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Editor2Plugin/TableOperation.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Editor2Plugin/ToolbarDndSupport.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Editor2Plugin/__package__.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Editor2Toolbar.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/FilteringTable.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/FisheyeList.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/FloatingPane.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Form.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/GoogleMap.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/HtmlWidget.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/InlineEditBox.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/IntegerTextbox.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/InternetTextbox.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/LayoutContainer.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/LinkPane.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Manager.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Menu2.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/MonthlyCalendar.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/PageContainer.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Parse.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/PopupContainer.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/ProgressBar.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/RadioGroup.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/RealNumberTextbox.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/RegexpTextbox.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/RemoteTabController.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Repeater.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/ResizableTextarea.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/ResizeHandle.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/RichText.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Rounded.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Select.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Show.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/ShowAction.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/ShowSlide.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/SlideShow.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Slider.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/SortableTable.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Spinner.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/SplitContainer.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/SvgButton.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/SvgWidget.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/SwtWidget.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TabContainer.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TaskBar.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Textbox.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TimePicker.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TitlePane.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Toaster.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Toggler.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Toolbar.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Tooltip.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Tree.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeBasicController.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeBasicControllerV3.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeCommon.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeContextMenu.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeContextMenuV3.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeControllerExtension.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeDemo.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeDeselectOnDblselect.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeDisableWrapExtension.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeDndControllerV3.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeDocIconExtension.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeEditor.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeEmphasizeOnSelect.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeExpandToNodeOnSelect.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeExtension.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeLinkExtension.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeLoadingController.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeLoadingControllerV3.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeNode.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeNodeV3.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeRPCController.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeRpcControllerV3.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeSelector.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeSelectorV3.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeTimeoutIterator.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeToggleOnSelect.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeV3.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/TreeWithNode.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/UsTextbox.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/ValidationTextbox.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Widget.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/Wizard.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/YahooMap.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/__package__.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/demoEngine/DemoContainer.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/demoEngine/DemoItem.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/demoEngine/DemoNavigator.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/demoEngine/DemoPane.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/demoEngine/SourcePane.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/demoEngine/__package__.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/demoEngine/templates/DemoContainer.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/demoEngine/templates/DemoContainer.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/demoEngine/templates/DemoItem.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/demoEngine/templates/DemoItem.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/demoEngine/templates/DemoNavigator.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/demoEngine/templates/DemoNavigator.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/demoEngine/templates/DemoPane.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/demoEngine/templates/DemoPane.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/demoEngine/templates/SourcePane.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/demoEngine/templates/SourcePane.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/demoEngine/templates/general.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/demoEngine/templates/images/test_thumb.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/demoEngine/templates/images/viewDemo.png delete mode 100644 framework/images/webapp/images/dojo/src/widget/html/layout.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/html/loader.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/html/stabile.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/nls/DropdownDatePicker.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/nls/DropdownTimePicker.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/nls/TimePicker.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/nls/fr/validate.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/nls/ja/validate.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/nls/validate.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/nls/zh-cn/validate.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/svg/Chart.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/AccordionPane.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/AccordionPane.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/ButtonTemplate.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/ButtonTemplate.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Checkbox.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Checkbox.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/CheckboxA11y.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/CiviCrmDatePicker.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/ComboBox.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/ComboBox.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/ComboButtonTemplate.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/DatePicker.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/DatePicker.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/DemoEngine.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Dialog.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/DocPane.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/DocPane.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/DropDownButtonTemplate.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Editor2/Dialog/createlink.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Editor2/Dialog/find.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Editor2/Dialog/insertimage.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Editor2/Dialog/inserttable.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Editor2/Dialog/replace.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Editor2/EditorDialog.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Editor2/EditorToolbar_FontName.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Editor2/EditorToolbar_FontSize.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Editor2/EditorToolbar_FormatBlock.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Editor2/showtableborder_gecko.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Editor2/showtableborder_ie.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/EditorToolbar.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/EditorToolbar.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/EditorToolbarOneline.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/FisheyeList.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/FloatingPane.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/FloatingPane.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/InlineEditBox.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/InlineEditBox.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Menu.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Menu2.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/MonthlyCalendar.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/MonthlyCalendar.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/PopUpButton.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/ProgressBar.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/ProgressBar.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/RemoteTabControl.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/ResizableTextarea.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/ResizableTextarea.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/ResizeHandle.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Show.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Show.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/ShowSlide.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/ShowSlide.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/SlideShow.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/SlideShow.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Slider.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Slider.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/SliderHorizontal.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/SliderVertical.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Spinner.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Spinner.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/SplitContainer.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/TabContainer.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/TabContainer.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/TabContainerA11y.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/TaskBar.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/TaskBarItemTemplate.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Textbox.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/TimePicker.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/TimePicker.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/TitlePane.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Toaster.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Toolbar.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/TooltipTemplate.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Tree.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/TreeDisableWrap.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/TreeDocIcon.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/TreeEditor.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/TreeV3.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Validate.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/ValidationTextbox.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Wizard.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/Wizard.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/aggregate.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/backcolor.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/bg-fade.png delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/bold.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/cancel.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/copy.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/createlink.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/cut.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/delete.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/forecolor.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/hilitecolor.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/indent.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/inserthorizontalrule.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/insertimage.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/insertorderedlist.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/inserttable.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/insertunorderedlist.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/italic.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/justifycenter.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/justifyfull.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/justifyleft.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/justifyright.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/left_to_right.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/list_bullet_indent.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/list_bullet_outdent.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/list_num_indent.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/list_num_outdent.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/outdent.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/paste.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/redo.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/removeformat.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/right_to_left.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/save.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/sep.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/space.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/strikethrough.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/subscript.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/superscript.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/underline.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/undo.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/buttons/wikiword.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/check.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/decrementMonth.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/decrementWeek.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/grabCorner.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/Tree/Tree.css delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/Tree/blank.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/Tree/closed.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/Tree/document.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/Tree/minus.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/Tree/plus.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/Tree/transparent.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/Tree/treenode_blank.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/Tree/treenode_child.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/Tree/treenode_expand_minus.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/Tree/treenode_expand_plus.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/Tree/treenode_grid_c.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/Tree/treenode_grid_l.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/Tree/treenode_grid_p.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/Tree/treenode_grid_t.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/Tree/treenode_grid_v.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/Tree/treenode_grid_x.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/Tree/treenode_grid_y.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/Tree/treenode_grid_z.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/Tree/treenode_loading.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/Tree/treenode_loading.jpg delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/TreeV3/closed.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/TreeV3/document.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/TreeV3/expand_leaf.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/TreeV3/expand_loading.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/TreeV3/expand_minus.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/TreeV3/expand_plus.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/TreeV3/i.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/TreeV3/i_bhalf.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/TreeV3/i_half.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/TreeV3/i_long.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/TreeV3/l.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/TreeV3/minus.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/TreeV3/open.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/TreeV3/plus.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/TreeV3/t.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/TreeV3/x.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/bar.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/bdYearBg.1.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/bdYearBg.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/clock.png delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/combo_box_arrow.png delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/dateIcon.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/decrementMonth.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/decrementMonth.png delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/dpBg.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/dpCurveBL.png delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/dpCurveBR.png delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/dpCurveTL.png delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/dpCurveTR.png delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/dpHorizLine.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/dpHorizLineFoot.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/dpMonthBg.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/dpMonthBg.png delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/dpMonthBg2.png delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/dpVertLine.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/dpYearBg.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/dpYearBg.png delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/dropdownButtonsArrow-disabled.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/dropdownButtonsArrow.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/floatingPaneClose.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/floatingPaneMaximize.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/floatingPaneMinimize.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/floatingPaneRestore.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/h-bar.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/incrementMonth.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/incrementMonth.png delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/no.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/no.svg delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/scBackground.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/slider-bg-progress-vert.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/slider-bg-vert.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/slider-bg.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/slider-button-horz.png delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/slider-button-vert.png delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/slider-button.png delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/slider.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/slider_down_arrow.png delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/slider_left_arrow.png delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/slider_right_arrow.png delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/slider_up_arrow.png delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/soriaAccordionOff.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/soriaAccordionSelected.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/soriaActive-c.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/soriaActive-l.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/soriaActive-r.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/soriaBarBg.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/soriaButton-c.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/soriaButton-l.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/soriaButton-r.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/soriaDisabled-c.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/soriaDisabled-l.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/soriaDisabled-r.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/soriaMenuBg.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/soriaPressed-c.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/soriaPressed-l.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/soriaPressed-r.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/spinnerDecrement.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/spinnerIncrement.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/submenu_disabled.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/submenu_off.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/submenu_on.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/tab_bot_left.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/tab_bot_left_curr.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/tab_bot_right.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/tab_bot_right_curr.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/tab_close.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/tab_close_h.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/tab_left.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/tab_left_r.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/tab_left_r_curr.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/tab_right.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/tab_right_r.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/tab_right_r_curr.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/tab_top_left.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/tab_top_right.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/timeIcon.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/toolbar-bg.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/transparent.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/treenode_blank.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/treenode_child.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/treenode_expand_minus.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/treenode_expand_plus.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/treenode_grid_c.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/treenode_grid_l.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/treenode_grid_p.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/treenode_grid_t.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/treenode_grid_v.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/treenode_grid_x.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/treenode_grid_y.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/treenode_grid_z.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/treenode_node.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/verticalbar.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/images/whiteDownArrow.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/incrementMonth.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/incrementWeek.gif delete mode 100644 framework/images/webapp/images/dojo/src/widget/templates/richtextframe.html delete mode 100644 framework/images/webapp/images/dojo/src/widget/validate.js delete mode 100644 framework/images/webapp/images/dojo/src/widget/vml/Chart.js delete mode 100644 framework/images/webapp/images/dojo/src/xml/Parse.js delete mode 100644 framework/images/webapp/images/dojo/src/xml/XslTransform.js delete mode 100644 framework/images/webapp/images/dojo/src/xml/__package__.js delete mode 100644 framework/images/webapp/images/dojo/storage_dialog.swf delete mode 100644 framework/images/webapp/images/flotr/flotr.debug-0.2.0-alpha.js delete mode 100644 framework/images/webapp/images/flotr/flotr.js delete mode 100644 framework/images/webapp/images/flotr/lib/base64.js delete mode 100644 framework/images/webapp/images/flotr/lib/canvas2image.js delete mode 100644 framework/images/webapp/images/flotr/lib/canvastext.js delete mode 100644 framework/images/webapp/images/flotr/license.txt delete mode 100644 framework/images/webapp/images/flotr/readme.txt create mode 100644 framework/images/webapp/images/jquery/jquery-1.4.2.js create mode 100644 framework/images/webapp/images/jquery/jquery-1.4.2.min.js create mode 100644 framework/images/webapp/images/jquery/jquery-1.4.3.js create mode 100644 framework/images/webapp/images/jquery/jquery-1.4.3.min.js create mode 100644 framework/images/webapp/images/jquery/jquery-1.4.4.js create mode 100644 framework/images/webapp/images/jquery/jquery-1.4.4.min.js create mode 100644 framework/images/webapp/images/jquery/plugins/asmselect/README.txt create mode 100644 framework/images/webapp/images/jquery/plugins/asmselect/jquery.asmselect-1.0.4a-beta.css create mode 100644 framework/images/webapp/images/jquery/plugins/asmselect/jquery.asmselect-1.0.4a-beta.js create mode 100644 framework/images/webapp/images/jquery/plugins/datetimepicker/jquery-ui-timepicker-addon-0.7.2.js create mode 100644 framework/images/webapp/images/jquery/plugins/datetimepicker/jquery-ui-timepicker-addon-0.7.2.min.js create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/css/elrte-inner.css create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/css/elrte.full.css create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/elrte.full.js create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/elrte.min.js create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/i18n/elrte.YOUR_LANG.js create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/i18n/elrte.ar.js create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/i18n/elrte.cs.js create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/i18n/elrte.de.js create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/i18n/elrte.es.js create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/i18n/elrte.fa.js create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/i18n/elrte.fr.js create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/i18n/elrte.hu.js create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/i18n/elrte.it.js create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/i18n/elrte.jp.js create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/i18n/elrte.lv.js create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/i18n/elrte.nl.js create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/i18n/elrte.pl.js create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/i18n/elrte.ru.js create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/i18n/elrte.ua.js create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/i18n/elrte.zh_TW.js create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/images/elrte-toolbar.png create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/images/google-maps.png create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/images/loading.gif create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/images/media-director.png create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/images/media-flash.png create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/images/media-quicktime.png create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/images/media-realaudio.png create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/images/media-rutube.png create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/images/media-vimeo.png create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/images/media-winmedia.png create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/images/media-youtube.png create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/images/pagebreak.gif rename framework/images/webapp/images/{dojo/src/widget/templates/images/blank.gif => jquery/plugins/elrteEditor/images/pixel.gif} (100%) create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/images/smileys/evilgrin.png create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/images/smileys/grin.png create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/images/smileys/happy.png create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/images/smileys/smile.png create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/images/smileys/surprised.png create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/images/smileys/tongue.png create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/images/smileys/unhappy.png create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/images/smileys/waii.png create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/images/smileys/wink.png create mode 100644 framework/images/webapp/images/jquery/plugins/elrteEditor/images/yandex-maps.png create mode 100644 framework/images/webapp/images/jquery/plugins/fjTimer/jquerytimer-min.js create mode 100644 framework/images/webapp/images/jquery/plugins/fjTimer/jquerytimer.js create mode 100644 framework/images/webapp/images/jquery/plugins/flot/API.txt create mode 100644 framework/images/webapp/images/jquery/plugins/flot/FAQ.txt create mode 100644 framework/images/webapp/images/jquery/plugins/flot/LICENSE.txt create mode 100644 framework/images/webapp/images/jquery/plugins/flot/Makefile create mode 100644 framework/images/webapp/images/jquery/plugins/flot/NEWS.txt create mode 100644 framework/images/webapp/images/jquery/plugins/flot/PLUGINS.txt create mode 100644 framework/images/webapp/images/jquery/plugins/flot/README.txt rename framework/images/webapp/images/{flotr/lib => jquery/plugins/flot}/excanvas.js (86%) create mode 100644 framework/images/webapp/images/jquery/plugins/flot/excanvas.min.js create mode 100644 framework/images/webapp/images/jquery/plugins/flot/jquery.colorhelpers.js create mode 100644 framework/images/webapp/images/jquery/plugins/flot/jquery.flot.crosshair.js create mode 100644 framework/images/webapp/images/jquery/plugins/flot/jquery.flot.fillbetween.js create mode 100644 framework/images/webapp/images/jquery/plugins/flot/jquery.flot.image.js create mode 100644 framework/images/webapp/images/jquery/plugins/flot/jquery.flot.js create mode 100644 framework/images/webapp/images/jquery/plugins/flot/jquery.flot.navigate.js create mode 100644 framework/images/webapp/images/jquery/plugins/flot/jquery.flot.pie.js create mode 100644 framework/images/webapp/images/jquery/plugins/flot/jquery.flot.selection.js create mode 100644 framework/images/webapp/images/jquery/plugins/flot/jquery.flot.stack.js create mode 100644 framework/images/webapp/images/jquery/plugins/flot/jquery.flot.symbol.js create mode 100644 framework/images/webapp/images/jquery/plugins/flot/jquery.flot.threshold.js create mode 100644 framework/images/webapp/images/jquery/plugins/hotkeys/jquery.hotkeys.js create mode 100644 framework/images/webapp/images/jquery/plugins/jcarousel/jquery.jcarousel.js create mode 100644 framework/images/webapp/images/jquery/plugins/jcarousel/jquery.jcarousel.min.js create mode 100644 framework/images/webapp/images/jquery/plugins/jcarousel/skins/ie7/loading-small.gif create mode 100644 framework/images/webapp/images/jquery/plugins/jcarousel/skins/ie7/loading.gif create mode 100644 framework/images/webapp/images/jquery/plugins/jcarousel/skins/ie7/loading_small.gif create mode 100644 framework/images/webapp/images/jquery/plugins/jcarousel/skins/ie7/next-horizontal.gif create mode 100644 framework/images/webapp/images/jquery/plugins/jcarousel/skins/ie7/prev-horizontal.gif create mode 100644 framework/images/webapp/images/jquery/plugins/jcarousel/skins/ie7/skin.css create mode 100644 framework/images/webapp/images/jquery/plugins/jcarousel/skins/tango/next-horizontal.png create mode 100644 framework/images/webapp/images/jquery/plugins/jcarousel/skins/tango/next-vertical.png create mode 100644 framework/images/webapp/images/jquery/plugins/jcarousel/skins/tango/prev-horizontal.png create mode 100644 framework/images/webapp/images/jquery/plugins/jcarousel/skins/tango/prev-vertical.png create mode 100644 framework/images/webapp/images/jquery/plugins/jcarousel/skins/tango/skin.css create mode 100644 framework/images/webapp/images/jquery/plugins/jeditable/jquery.jeditable.js create mode 100644 framework/images/webapp/images/jquery/plugins/jquery.color.js create mode 100644 framework/images/webapp/images/jquery/plugins/jsTree/jquery.jstree.js create mode 100644 framework/images/webapp/images/jquery/plugins/jsTree/themes/apple/bg.jpg create mode 100644 framework/images/webapp/images/jquery/plugins/jsTree/themes/apple/d.png create mode 100644 framework/images/webapp/images/jquery/plugins/jsTree/themes/apple/dot_for_ie.gif create mode 100644 framework/images/webapp/images/jquery/plugins/jsTree/themes/apple/style.css create mode 100644 framework/images/webapp/images/jquery/plugins/jsTree/themes/apple/throbber.gif create mode 100644 framework/images/webapp/images/jquery/plugins/jsTree/themes/classic/d.png create mode 100644 framework/images/webapp/images/jquery/plugins/jsTree/themes/classic/dot_for_ie.gif create mode 100644 framework/images/webapp/images/jquery/plugins/jsTree/themes/classic/style.css create mode 100644 framework/images/webapp/images/jquery/plugins/jsTree/themes/classic/throbber.gif create mode 100644 framework/images/webapp/images/jquery/plugins/jsTree/themes/default-rtl/d.gif create mode 100644 framework/images/webapp/images/jquery/plugins/jsTree/themes/default-rtl/d.png create mode 100644 framework/images/webapp/images/jquery/plugins/jsTree/themes/default-rtl/dots.gif create mode 100644 framework/images/webapp/images/jquery/plugins/jsTree/themes/default-rtl/style.css create mode 100644 framework/images/webapp/images/jquery/plugins/jsTree/themes/default-rtl/throbber.gif create mode 100644 framework/images/webapp/images/jquery/plugins/jsTree/themes/default/d.gif create mode 100644 framework/images/webapp/images/jquery/plugins/jsTree/themes/default/d.png create mode 100644 framework/images/webapp/images/jquery/plugins/jsTree/themes/default/dot_for_ie.gif create mode 100644 framework/images/webapp/images/jquery/plugins/jsTree/themes/default/style.css create mode 100644 framework/images/webapp/images/jquery/plugins/jsTree/themes/default/throbber.gif create mode 100644 framework/images/webapp/images/jquery/plugins/validate/additional-methods.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/changelog.txt create mode 100644 framework/images/webapp/images/jquery/plugins/validate/jquery.validate.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/jquery.validate.min.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/jquery.validate.pack.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/lib/jquery-1.4.2.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/lib/jquery.form.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/lib/jquery.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/lib/jquery.metadata.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_ar.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_bg.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_cn.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_cs.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_da.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_de.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_el.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_es.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_fa.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_fi.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_fr.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_he.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_hu.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_it.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_kk.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_lt.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_lv.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_nl.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_no.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_pl.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_ptbr.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_ptpt.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_ro.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_ru.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_se.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_sk.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_tr.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_tw.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/messages_ua.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/methods_de.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/methods_nl.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/localization/methods_pt.js create mode 100644 framework/images/webapp/images/jquery/plugins/validate/todo create mode 100644 framework/images/webapp/images/jquery/ui/css/smoothness/jquery-ui-1.8.5.custom.css create mode 100644 framework/images/webapp/images/jquery/ui/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png create mode 100644 framework/images/webapp/images/jquery/ui/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png create mode 100644 framework/images/webapp/images/jquery/ui/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png create mode 100644 framework/images/webapp/images/jquery/ui/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png create mode 100644 framework/images/webapp/images/jquery/ui/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png create mode 100644 framework/images/webapp/images/jquery/ui/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png create mode 100644 framework/images/webapp/images/jquery/ui/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png create mode 100644 framework/images/webapp/images/jquery/ui/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png create mode 100644 framework/images/webapp/images/jquery/ui/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png create mode 100644 framework/images/webapp/images/jquery/ui/css/ui-lightness/images/ui-icons_222222_256x240.png create mode 100644 framework/images/webapp/images/jquery/ui/css/ui-lightness/images/ui-icons_228ef1_256x240.png create mode 100644 framework/images/webapp/images/jquery/ui/css/ui-lightness/images/ui-icons_ef8c08_256x240.png create mode 100644 framework/images/webapp/images/jquery/ui/css/ui-lightness/images/ui-icons_ffd27a_256x240.png create mode 100644 framework/images/webapp/images/jquery/ui/css/ui-lightness/images/ui-icons_ffffff_256x240.png create mode 100644 framework/images/webapp/images/jquery/ui/css/ui-lightness/jquery-ui-1.8.6.custom.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/AUTHORS.txt create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/GPL-LICENSE.txt create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/MIT-LICENSE.txt create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/external/jquery.bgiframe-2.1.2.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/external/jquery.cookie.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/external/jquery.metadata.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/external/qunit.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/external/qunit.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/base/images/ui-bg_flat_75_ffffff_40x100.png create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/base/images/ui-bg_glass_65_ffffff_1x400.png create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/base/images/ui-bg_glass_75_dadada_1x400.png create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/base/images/ui-icons_222222_256x240.png create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/base/images/ui-icons_2e83ff_256x240.png create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/base/images/ui-icons_454545_256x240.png create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/base/images/ui-icons_888888_256x240.png create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/base/images/ui-icons_cd0a0a_256x240.png create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/base/jquery.ui.accordion.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/base/jquery.ui.all.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/base/jquery.ui.autocomplete.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/base/jquery.ui.base.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/base/jquery.ui.button.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/base/jquery.ui.core.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/base/jquery.ui.datepicker.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/base/jquery.ui.dialog.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/base/jquery.ui.progressbar.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/base/jquery.ui.resizable.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/base/jquery.ui.selectable.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/base/jquery.ui.slider.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/base/jquery.ui.tabs.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/base/jquery.ui.theme.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/images/ui-bg_flat_10_000000_40x100.png create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/images/ui-icons_222222_256x240.png create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/images/ui-icons_228ef1_256x240.png create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/images/ui-icons_ef8c08_256x240.png create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/images/ui-icons_ffd27a_256x240.png create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/images/ui-icons_ffffff_256x240.png create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/jquery-ui-1.8.6.custom.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/jquery.ui.accordion.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/jquery.ui.all.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/jquery.ui.autocomplete.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/jquery.ui.base.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/jquery.ui.button.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/jquery.ui.core.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/jquery.ui.datepicker.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/jquery.ui.dialog.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/jquery.ui.progressbar.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/jquery.ui.resizable.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/jquery.ui.selectable.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/jquery.ui.slider.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/jquery.ui.tabs.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/themes/ui-lightness/jquery.ui.theme.css create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery-ui-i18n.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-af.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-az.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-bg.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-bs.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ca.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-cs.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-da.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-de.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-el.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-en-GB.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-eo.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-es.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-et.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-eu.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-fa.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-fi.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-fo.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-fr-CH.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-fr.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-gl.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-he.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-hr.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-hu.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-hy.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-id.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-is.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-it.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ja.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ko.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-kz.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-lt.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-lv.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ms.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-nl.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-no.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-pl.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-pt-BR.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-pt.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ro.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ru.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-sk.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-sl.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-sq.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-sr-SR.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-sr.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-sv.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-ta.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-th.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-tr.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-uk.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-vi.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-zh-CN.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-zh-HK.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/i18n/jquery.ui.datepicker-zh-TW.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery-ui-1.8.6.custom.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.effects.blind.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.effects.bounce.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.effects.clip.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.effects.core.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.effects.drop.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.effects.explode.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.effects.fade.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.effects.fold.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.effects.highlight.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.effects.pulsate.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.effects.scale.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.effects.shake.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.effects.slide.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.effects.transfer.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.ui.accordion.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.ui.autocomplete.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.ui.button.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.ui.core.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.ui.datepicker.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.ui.dialog.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.ui.draggable.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.ui.droppable.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.ui.mouse.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.ui.position.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.ui.progressbar.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.ui.resizable.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.ui.selectable.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.ui.slider.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.ui.sortable.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.ui.tabs.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/jquery.ui.widget.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.effects.blind.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.effects.bounce.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.effects.clip.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.effects.core.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.effects.drop.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.effects.explode.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.effects.fade.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.effects.fold.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.effects.highlight.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.effects.pulsate.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.effects.scale.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.effects.shake.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.effects.slide.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.effects.transfer.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.ui.accordion.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.ui.autocomplete.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.ui.button.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.ui.core.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.ui.datepicker.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.ui.dialog.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.ui.draggable.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.ui.droppable.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.ui.mouse.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.ui.position.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.ui.progressbar.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.ui.resizable.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.ui.selectable.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.ui.slider.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.ui.sortable.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.ui.tabs.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/ui/minified/jquery.ui.widget.min.js create mode 100644 framework/images/webapp/images/jquery/ui/development-bundle/version.txt create mode 100644 framework/images/webapp/images/jquery/ui/index.html create mode 100644 framework/images/webapp/images/jquery/ui/js/jquery-1.4.2.min.js create mode 100644 framework/images/webapp/images/jquery/ui/js/jquery-ui-1.8.6.custom.min.js delete mode 100644 framework/images/webapp/images/prototypejs/builder.js delete mode 100644 framework/images/webapp/images/prototypejs/control.progress_bar.js delete mode 100644 framework/images/webapp/images/prototypejs/controls.js delete mode 100644 framework/images/webapp/images/prototypejs/dragdrop.js delete mode 100644 framework/images/webapp/images/prototypejs/effects.js delete mode 100644 framework/images/webapp/images/prototypejs/popup.css delete mode 100644 framework/images/webapp/images/prototypejs/popup.js delete mode 100644 framework/images/webapp/images/prototypejs/progress_bar.css delete mode 100644 framework/images/webapp/images/prototypejs/prototype.js delete mode 100644 framework/images/webapp/images/prototypejs/resize.js delete mode 100644 framework/images/webapp/images/prototypejs/scriptaculous.js delete mode 100644 framework/images/webapp/images/prototypejs/scriptaculouscontrols.css delete mode 100644 framework/images/webapp/images/prototypejs/slider.js delete mode 100644 framework/images/webapp/images/prototypejs/sound.js delete mode 100644 framework/images/webapp/images/prototypejs/tooltips.css delete mode 100644 framework/images/webapp/images/prototypejs/tooltips.js delete mode 100644 framework/images/webapp/images/prototypejs/unittest.js delete mode 100644 framework/images/webapp/images/prototypejs/validation.js delete mode 100644 specialpurpose/ofbizwebsite/webapp/ofbiz/script/effects.js delete mode 100644 specialpurpose/ofbizwebsite/webapp/ofbiz/script/slides.js create mode 100644 themes/bizznesstime/webapp/bizznesstime/images/cal.gif create mode 100644 themes/bizznesstime/webapp/bizznesstime/images/ui-anim_basic_16x16.gif create mode 100644 themes/bizznesstime/webapp/bizznesstime/images/ui-bg_flat_0_aaaaaa_40x100.png create mode 100644 themes/bizznesstime/webapp/bizznesstime/images/ui-bg_flat_75_ffffff_40x100.png create mode 100644 themes/bizznesstime/webapp/bizznesstime/images/ui-bg_glass_55_fbf9ee_1x400.png create mode 100644 themes/bizznesstime/webapp/bizznesstime/images/ui-bg_glass_75_dadada_1x400.png create mode 100644 themes/bizznesstime/webapp/bizznesstime/images/ui-bg_glass_75_e6e6e6_1x400.png create mode 100644 themes/bizznesstime/webapp/bizznesstime/images/ui-bg_glass_95_fef1ec_1x400.png create mode 100644 themes/bizznesstime/webapp/bizznesstime/images/ui-bg_highlight-soft_75_cccccc_1x100.png create mode 100644 themes/bizznesstime/webapp/bizznesstime/images/ui-icons_222222_256x240.png create mode 100644 themes/bizznesstime/webapp/bizznesstime/images/ui-icons_2e83ff_256x240.png create mode 100644 themes/bizznesstime/webapp/bizznesstime/images/ui-icons_454545_256x240.png create mode 100644 themes/bizznesstime/webapp/bizznesstime/images/ui-icons_888888_256x240.png create mode 100644 themes/bizznesstime/webapp/bizznesstime/images/ui-icons_cd0a0a_256x240.png create mode 100644 themes/bluelight/webapp/bluelight/images/cal.gif create mode 100644 themes/bluelight/webapp/bluelight/images/ui-anim_basic_16x16.gif create mode 100644 themes/bluelight/webapp/bluelight/images/ui-bg_flat_0_aaaaaa_40x100.png create mode 100644 themes/bluelight/webapp/bluelight/images/ui-bg_flat_75_ffffff_40x100.png create mode 100644 themes/bluelight/webapp/bluelight/images/ui-bg_glass_55_fbf9ee_1x400.png create mode 100644 themes/bluelight/webapp/bluelight/images/ui-bg_glass_65_ffffff_1x400.png create mode 100644 themes/bluelight/webapp/bluelight/images/ui-bg_glass_75_dadada_1x400.png create mode 100644 themes/bluelight/webapp/bluelight/images/ui-bg_glass_75_e6e6e6_1x400.png create mode 100644 themes/bluelight/webapp/bluelight/images/ui-bg_glass_95_fef1ec_1x400.png create mode 100644 themes/bluelight/webapp/bluelight/images/ui-bg_highlight-soft_75_cccccc_1x100.png create mode 100644 themes/bluelight/webapp/bluelight/images/ui-icons_222222_256x240.png create mode 100644 themes/bluelight/webapp/bluelight/images/ui-icons_2e83ff_256x240.png create mode 100644 themes/bluelight/webapp/bluelight/images/ui-icons_454545_256x240.png create mode 100644 themes/bluelight/webapp/bluelight/images/ui-icons_888888_256x240.png create mode 100644 themes/bluelight/webapp/bluelight/images/ui-icons_cd0a0a_256x240.png create mode 100644 themes/droppingcrumbs/webapp/droppingcrumbs/images/cal.gif create mode 100644 themes/droppingcrumbs/webapp/droppingcrumbs/images/ui-anim_basic_16x16.gif create mode 100644 themes/droppingcrumbs/webapp/droppingcrumbs/images/ui-bg_flat_0_aaaaaa_40x100.png create mode 100644 themes/droppingcrumbs/webapp/droppingcrumbs/images/ui-bg_flat_75_ffffff_40x100.png create mode 100644 themes/droppingcrumbs/webapp/droppingcrumbs/images/ui-bg_glass_55_fbf9ee_1x400.png create mode 100644 themes/droppingcrumbs/webapp/droppingcrumbs/images/ui-bg_glass_65_ffffff_1x400.png create mode 100644 themes/droppingcrumbs/webapp/droppingcrumbs/images/ui-bg_glass_75_dadada_1x400.png create mode 100644 themes/droppingcrumbs/webapp/droppingcrumbs/images/ui-bg_glass_75_e6e6e6_1x400.png create mode 100644 themes/droppingcrumbs/webapp/droppingcrumbs/images/ui-bg_glass_95_fef1ec_1x400.png create mode 100644 themes/droppingcrumbs/webapp/droppingcrumbs/images/ui-bg_highlight-soft_75_cccccc_1x100.png create mode 100644 themes/droppingcrumbs/webapp/droppingcrumbs/images/ui-icons_222222_256x240.png create mode 100644 themes/droppingcrumbs/webapp/droppingcrumbs/images/ui-icons_2e83ff_256x240.png create mode 100644 themes/droppingcrumbs/webapp/droppingcrumbs/images/ui-icons_454545_256x240.png create mode 100644 themes/droppingcrumbs/webapp/droppingcrumbs/images/ui-icons_888888_256x240.png create mode 100644 themes/droppingcrumbs/webapp/droppingcrumbs/images/ui-icons_cd0a0a_256x240.png delete mode 100644 themes/droppingcrumbs/webapp/droppingcrumbs/js/application.js create mode 100644 themes/flatgrey/webapp/flatgrey/images/cal.gif create mode 100644 themes/flatgrey/webapp/flatgrey/images/ui-anim_basic_16x16.gif create mode 100644 themes/flatgrey/webapp/flatgrey/images/ui-bg_flat_0_aaaaaa_40x100.png create mode 100644 themes/flatgrey/webapp/flatgrey/images/ui-bg_flat_55_fbec88_40x100.png create mode 100644 themes/flatgrey/webapp/flatgrey/images/ui-bg_glass_75_d0e5f5_1x400.png create mode 100644 themes/flatgrey/webapp/flatgrey/images/ui-bg_glass_85_dfeffc_1x400.png create mode 100644 themes/flatgrey/webapp/flatgrey/images/ui-bg_glass_95_fef1ec_1x400.png create mode 100644 themes/flatgrey/webapp/flatgrey/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png create mode 100644 themes/flatgrey/webapp/flatgrey/images/ui-bg_inset-hard_100_f5f8f9_1x100.png create mode 100644 themes/flatgrey/webapp/flatgrey/images/ui-bg_inset-hard_100_fcfdfd_1x100.png create mode 100644 themes/flatgrey/webapp/flatgrey/images/ui-icons_217bc0_256x240.png create mode 100644 themes/flatgrey/webapp/flatgrey/images/ui-icons_2e83ff_256x240.png create mode 100644 themes/flatgrey/webapp/flatgrey/images/ui-icons_469bdd_256x240.png create mode 100644 themes/flatgrey/webapp/flatgrey/images/ui-icons_6da8d5_256x240.png create mode 100644 themes/flatgrey/webapp/flatgrey/images/ui-icons_cd0a0a_256x240.png create mode 100644 themes/flatgrey/webapp/flatgrey/images/ui-icons_d8e7f3_256x240.png create mode 100644 themes/flatgrey/webapp/flatgrey/images/ui-icons_f9bd01_256x240.png create mode 100644 themes/multiflex/webapp/multiflex/images/cal.gif create mode 100644 themes/multiflex/webapp/multiflex/images/ui-anim_basic_16x16.gif create mode 100644 themes/multiflex/webapp/multiflex/images/ui-bg_flat_0_aaaaaa_40x100.png create mode 100644 themes/multiflex/webapp/multiflex/images/ui-bg_flat_75_ffffff_40x100.png create mode 100644 themes/multiflex/webapp/multiflex/images/ui-bg_glass_55_fbf9ee_1x400.png create mode 100644 themes/multiflex/webapp/multiflex/images/ui-bg_glass_65_ffffff_1x400.png create mode 100644 themes/multiflex/webapp/multiflex/images/ui-bg_glass_75_dadada_1x400.png create mode 100644 themes/multiflex/webapp/multiflex/images/ui-bg_glass_75_e6e6e6_1x400.png create mode 100644 themes/multiflex/webapp/multiflex/images/ui-bg_glass_95_fef1ec_1x400.png create mode 100644 themes/multiflex/webapp/multiflex/images/ui-bg_highlight-soft_75_cccccc_1x100.png create mode 100644 themes/multiflex/webapp/multiflex/images/ui-icons_222222_256x240.png create mode 100644 themes/multiflex/webapp/multiflex/images/ui-icons_2e83ff_256x240.png create mode 100644 themes/multiflex/webapp/multiflex/images/ui-icons_454545_256x240.png create mode 100644 themes/multiflex/webapp/multiflex/images/ui-icons_888888_256x240.png create mode 100644 themes/multiflex/webapp/multiflex/images/ui-icons_cd0a0a_256x240.png create mode 100644 themes/tomahawk/webapp/tomahawk/images/pbar-ani.gif create mode 100644 themes/tomahawk/webapp/tomahawk/images/ui-anim_basic_16x16.gif create mode 100644 themes/tomahawk/webapp/tomahawk/images/ui-bg_diagonals-thick_18_b81900_40x40.png create mode 100644 themes/tomahawk/webapp/tomahawk/images/ui-bg_diagonals-thick_20_666666_40x40.png create mode 100644 themes/tomahawk/webapp/tomahawk/images/ui-bg_flat_10_000000_40x100.png create mode 100644 themes/tomahawk/webapp/tomahawk/images/ui-bg_glass_100_f6f6f6_1x400.png create mode 100644 themes/tomahawk/webapp/tomahawk/images/ui-bg_glass_100_fdf5ce_1x400.png create mode 100644 themes/tomahawk/webapp/tomahawk/images/ui-bg_glass_65_ffffff_1x400.png create mode 100644 themes/tomahawk/webapp/tomahawk/images/ui-bg_gloss-wave_35_f6a828_500x100.png create mode 100644 themes/tomahawk/webapp/tomahawk/images/ui-bg_highlight-soft_100_eeeeee_1x100.png create mode 100644 themes/tomahawk/webapp/tomahawk/images/ui-bg_highlight-soft_75_ffe45c_1x100.png create mode 100644 themes/tomahawk/webapp/tomahawk/images/ui-icons_222222_256x240.png create mode 100644 themes/tomahawk/webapp/tomahawk/images/ui-icons_228ef1_256x240.png create mode 100644 themes/tomahawk/webapp/tomahawk/images/ui-icons_ef8c08_256x240.png create mode 100644 themes/tomahawk/webapp/tomahawk/images/ui-icons_ffd27a_256x240.png create mode 100644 themes/tomahawk/webapp/tomahawk/images/ui-icons_ffffff_256x240.png diff --git a/LICENSE b/LICENSE index 87b354116a..5ad2dcc3bb 100644 --- a/LICENSE +++ b/LICENSE @@ -495,9 +495,6 @@ ofbiz/trunk/framework/base/lib/scripting/asm-analysis-3.2.jar ofbiz/trunk/framework/base/lib/scripting/asm-tree-3.2.jar ofbiz/trunk/framework/base/lib/scripting/asm-util-3.2.jar ofbiz/trunk/framework/base/lib/scripting/janino-2.5.15.jar -ofbiz/trunk/framework/images/webapp/images/jsgantt.css -ofbiz/trunk/framework/images/webapp/images/jsgantt.js -ofbiz/trunk/framework/images/webapp/images/dojo/* ofbiz/trunk/specialpurpose/ldap/lib/cas-server-core-3.3.jar ofbiz/trunk/specialpurpose/pos/lib/looks-2.0.2.jar @@ -1260,8 +1257,7 @@ ofbiz/trunk/framework/entity/lib/ofbiz-minerva.jar ofbiz/trunk/framework/jetty/lib/jcl104-over-slf4j-1.3.1.jar ofbiz/trunk/framework/jetty/lib/slf4j-api-1.3.1.jar ofbiz/trunk/framework/jetty/lib/slf4j-log4j12-1.3.1.jar -ofbiz/trunk/framework/images/webapp/images/htmledit/whizzywig_v55i.js -ofbiz/trunk/framework/images/webapp/images/calendarDateSelect/calendar_date_select.js +ofbiz/trunk/framework/images/webapp/images/jquery/* ========================================================================= The MIT License @@ -2669,66 +2665,6 @@ Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation. -========================================================================= -Apache Ofbiz includes prototype.js from http://www.prototypejs.org licensed under -the terms of the MIT License -ofbiz/trunk/framework/images/webapp/images/prototype/prototype.js -========================================================================= -Apache Ofbiz includes Scriptalous javascript lib from http://script.aculo.us -licensed under the terms of the MIT License -ofbiz/trunk/framework/images/webapp/images/prototype/controls.js -ofbiz/trunk/framework/images/webapp/images/prototype/dragdrop.js -ofbiz/trunk/framework/images/webapp/images/prototype/effects.js -ofbiz/trunk/framework/images/webapp/images/prototype/scriptaculous.js -ofbiz/trunk/framework/images/webapp/images/prototype/slider.js -ofbiz/trunk/framework/images/webapp/images/prototype/sound.js -ofbiz/trunk/framework/images/webapp/images/prototype/unittest.js -ofbiz/trunk/framework/images/webapp/images/prototype/builder.js -========================================================================= -Apache Ofbiz includes flotr javascript lib from http://code.google.com/p/flotr/ -licensed under the terms of the MIT License -ofbiz/trunk/framework/images/webapp/images/flotr/lib/excanvas.js -ofbiz/trunk/framework/images/webapp/images/flotr/lib/base64.js -ofbiz/trunk/framework/images/webapp/images/flotr/lib/canvas2image.js -ofbiz/trunk/framework/images/webapp/images/flotr/lib/canvastext.js -ofbiz/trunk/framework/images/webapp/images/flotr/flotr.debug-0.2.0-alpha.js -ofbiz/trunk/framework/images/webapp/images/flotr/flotr-0.2.0-alpha.js -========================================================================= -Apache Ofbiz includes LivePipe Control Suite from http://livepipe.net/projects/control_suite/ -licensed under the terms of the MIT License -ofbiz/trunk/framework/images/webapp/images/prototype/control.progress_bar.js -ofbiz/trunk/framework/images/webapp/images/prototype/progress_bar.css -========================================================================= -Apache Ofbiz includes validation.js file from -http://www.tetlaw.id.au/view/javascript/really-easy-field-validation. -ofbiz/trunk/framework/images/webapp/images/prototype/validation.js -validation.js is Licensed as follows -========================================================================= - Really easy field validation with Prototype - http://tetlaw.id.au/view/javascript/really-easy-field-validation - Andrew Tetlaw - Version 1.5.4.1 (2007-01-05) - - Copyright (c) 2007 Andrew Tetlaw - Permission is hereby granted, free of charge, to any person - obtaining a copy of this software and associated documentation - files (the "Software"), to deal in the Software without - restriction, including without limitation the rights to use, copy, - modify, merge, publish, distribute, sublicense, and/or sell copies - of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS - BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN - ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. ========================================================================= Apache Ofbiz includes docbook templates in the /applications/content/template/docbook directory with the following licence: diff --git a/applications/accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl b/applications/accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl index 3e3455ceb0..d8ced175d0 100644 --- a/applications/accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl +++ b/applications/accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl @@ -47,33 +47,35 @@ function getFinAccountTransRunningTotalAndBalances() { } } if (isAllSelected) { - $('checkAllTransactions').checked = true; + jQuery('#checkAllTransactions').attr('checked', true); } else { - $('checkAllTransactions').checked = false; + jQuery('#checkAllTransactions').attr('checked', false); } if (!isSingle) { - $('submitButton').disabled = false; - if ($('showFinAccountTransRunningTotal')) { - new Ajax.Request('getFinAccountTransRunningTotalAndBalances', { - asynchronous: false, - onSuccess: function(transport) { - var data = transport.responseText.evalJSON(true); - $('showFinAccountTransRunningTotal').update(data.finAccountTransRunningTotal); - $('finAccountTransRunningTotal').update(data.finAccountTransRunningTotal); - $('numberOfFinAccountTransaction').update(data.numberOfTransactions); - $('endingBalance').update(data.endingBalance); - }, parameters: $('listFinAccTra').serialize(), requestHeaders: {Accept: 'application/json'} + jQuery('#submitButton').attr('disabled', ''); + if (jQuery('#showFinAccountTransRunningTotal').length) { + jQuery.ajax({ + url: 'getFinAccountTransRunningTotalAndBalances', + async: false, + type: 'POST', + data: jQuery('#listFinAccTra').serialize(), + success: function(data) { + jQuery('#showFinAccountTransRunningTotal').html(data.finAccountTransRunningTotal); + jQuery('#finAccountTransRunningTotal').html(data.finAccountTransRunningTotal); + jQuery('#numberOfFinAccountTransaction').html(data.numberOfTransactions); + jQuery('#endingBalance').html(data.endingBalance); + } }); } } else { - if ($('showFinAccountTransRunningTotal')) { - $('showFinAccountTransRunningTotal').update(""); - $('finAccountTransRunningTotal').update(""); - $('numberOfFinAccountTransaction').update(""); - $('endingBalance').update($('endingBalanceInput').value); - + if (jQuery('#showFinAccountTransRunningTotal').length) { + jQuery('#showFinAccountTransRunningTotal').html(""); + jQuery('#finAccountTransRunningTotal').html(""); + jQuery('#numberOfFinAccountTransaction').html(""); + jQuery('#endingBalance').html(jQuery('#endingBalanceInput').val()); + } - $('submitButton').disabled = true; + jQuery('#submitButton').attr('disabled', ''); } } --> @@ -178,10 +180,7 @@ function getFinAccountTransRunningTotalAndBalances() { <#if payments?has_content> ${finAccountTrans.finAccountTransId} - ');/sw|se|ne|nw/.test(f)&&g.css({zIndex:++a.zIndex});"se"==f&&g.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[f]=".ui-resizable-"+f;this.element.append(g)}}this._renderAxis=function(h){h=h||this.element;for(var i in this.handles){if(this.handles[i].constructor== +String)this.handles[i]=e(this.handles[i],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var j=e(this.handles[i],this.element),k=0;k=/sw|ne|nw|se|n|s/.test(i)?j.outerHeight():j.outerWidth();j=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join("");h.css(j,k);this._proportionallyResize()}e(this.handles[i])}};this._renderAxis(this.element);this._handles=e(".ui-resizable-handle",this.element).disableSelection(); +this._handles.mouseover(function(){if(!b.resizing){if(this.className)var h=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);b.axis=h&&h[1]?h[1]:"se"}});if(a.autoHide){this._handles.hide();e(this.element).addClass("ui-resizable-autohide").hover(function(){e(this).removeClass("ui-resizable-autohide");b._handles.show()},function(){if(!b.resizing){e(this).addClass("ui-resizable-autohide");b._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var b=function(c){e(c).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()}; +if(this.elementIsWrapper){b(this.element);var a=this.element;a.after(this.originalElement.css({position:a.css("position"),width:a.outerWidth(),height:a.outerHeight(),top:a.css("top"),left:a.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);b(this.originalElement);return this},_mouseCapture:function(b){var a=false;for(var c in this.handles)if(e(this.handles[c])[0]==b.target)a=true;return!this.options.disabled&&a},_mouseStart:function(b){var a=this.options,c=this.element.position(), +d=this.element;this.resizing=true;this.documentScroll={top:e(document).scrollTop(),left:e(document).scrollLeft()};if(d.is(".ui-draggable")||/absolute/.test(d.css("position")))d.css({position:"absolute",top:c.top,left:c.left});e.browser.opera&&/relative/.test(d.css("position"))&&d.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();c=m(this.helper.css("left"));var f=m(this.helper.css("top"));if(a.containment){c+=e(a.containment).scrollLeft()||0;f+=e(a.containment).scrollTop()||0}this.offset= +this.helper.offset();this.position={left:c,top:f};this.size=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalSize=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalPosition={left:c,top:f};this.sizeDiff={width:d.outerWidth()-d.width(),height:d.outerHeight()-d.height()};this.originalMousePosition={left:b.pageX,top:b.pageY};this.aspectRatio=typeof a.aspectRatio=="number"?a.aspectRatio: +this.originalSize.width/this.originalSize.height||1;a=e(".ui-resizable-"+this.axis).css("cursor");e("body").css("cursor",a=="auto"?this.axis+"-resize":a);d.addClass("ui-resizable-resizing");this._propagate("start",b);return true},_mouseDrag:function(b){var a=this.helper,c=this.originalMousePosition,d=this._change[this.axis];if(!d)return false;c=d.apply(this,[b,b.pageX-c.left||0,b.pageY-c.top||0]);if(this._aspectRatio||b.shiftKey)c=this._updateRatio(c,b);c=this._respectSize(c,b);this._propagate("resize", +b);a.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(c);this._trigger("resize",b,this.ui());return false},_mouseStop:function(b){this.resizing=false;var a=this.options,c=this;if(this._helper){var d=this._proportionallyResizeElements,f=d.length&&/textarea/i.test(d[0].nodeName);d=f&&e.ui.hasScroll(d[0],"left")?0:c.sizeDiff.height; +f={width:c.size.width-(f?0:c.sizeDiff.width),height:c.size.height-d};d=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null;var g=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null;a.animate||this.element.css(e.extend(f,{top:g,left:d}));c.helper.height(c.size.height);c.helper.width(c.size.width);this._helper&&!a.animate&&this._proportionallyResize()}e("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop", +b);this._helper&&this.helper.remove();return false},_updateCache:function(b){this.offset=this.helper.offset();if(l(b.left))this.position.left=b.left;if(l(b.top))this.position.top=b.top;if(l(b.height))this.size.height=b.height;if(l(b.width))this.size.width=b.width},_updateRatio:function(b){var a=this.position,c=this.size,d=this.axis;if(b.height)b.width=c.height*this.aspectRatio;else if(b.width)b.height=c.width/this.aspectRatio;if(d=="sw"){b.left=a.left+(c.width-b.width);b.top=null}if(d=="nw"){b.top= +a.top+(c.height-b.height);b.left=a.left+(c.width-b.width)}return b},_respectSize:function(b){var a=this.options,c=this.axis,d=l(b.width)&&a.maxWidth&&a.maxWidthb.width,h=l(b.height)&&a.minHeight&&a.minHeight>b.height;if(g)b.width=a.minWidth;if(h)b.height=a.minHeight;if(d)b.width=a.maxWidth;if(f)b.height=a.maxHeight;var i=this.originalPosition.left+this.originalSize.width,j=this.position.top+this.size.height, +k=/sw|nw|w/.test(c);c=/nw|ne|n/.test(c);if(g&&k)b.left=i-a.minWidth;if(d&&k)b.left=i-a.maxWidth;if(h&&c)b.top=j-a.minHeight;if(f&&c)b.top=j-a.maxHeight;if((a=!b.width&&!b.height)&&!b.left&&b.top)b.top=null;else if(a&&!b.top&&b.left)b.left=null;return b},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var b=this.helper||this.element,a=0;a');var a=e.browser.msie&&e.browser.version<7,c=a?1:0;a=a?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+a,height:this.element.outerHeight()+a,position:"absolute",left:this.elementOffset.left-c+"px",top:this.elementOffset.top-c+"px",zIndex:++b.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(b,a){return{width:this.originalSize.width+ +a}},w:function(b,a){return{left:this.originalPosition.left+a,width:this.originalSize.width-a}},n:function(b,a,c){return{top:this.originalPosition.top+c,height:this.originalSize.height-c}},s:function(b,a,c){return{height:this.originalSize.height+c}},se:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,a,c]))},sw:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,a,c]))},ne:function(b,a,c){return e.extend(this._change.n.apply(this, +arguments),this._change.e.apply(this,[b,a,c]))},nw:function(b,a,c){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,a,c]))}},_propagate:function(b,a){e.ui.plugin.call(this,b,[a,this.ui()]);b!="resize"&&this._trigger(b,a,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});e.extend(e.ui.resizable, +{version:"1.8.6"});e.ui.plugin.add("resizable","alsoResize",{start:function(){var b=e(this).data("resizable").options,a=function(c){e(c).each(function(){var d=e(this);d.data("resizable-alsoresize",{width:parseInt(d.width(),10),height:parseInt(d.height(),10),left:parseInt(d.css("left"),10),top:parseInt(d.css("top"),10),position:d.css("position")})})};if(typeof b.alsoResize=="object"&&!b.alsoResize.parentNode)if(b.alsoResize.length){b.alsoResize=b.alsoResize[0];a(b.alsoResize)}else e.each(b.alsoResize, +function(c){a(c)});else a(b.alsoResize)},resize:function(b,a){var c=e(this).data("resizable");b=c.options;var d=c.originalSize,f=c.originalPosition,g={height:c.size.height-d.height||0,width:c.size.width-d.width||0,top:c.position.top-f.top||0,left:c.position.left-f.left||0},h=function(i,j){e(i).each(function(){var k=e(this),q=e(this).data("resizable-alsoresize"),p={},r=j&&j.length?j:k.parents(a.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(r,function(n,o){if((n= +(q[o]||0)+(g[o]||0))&&n>=0)p[o]=n||null});if(e.browser.opera&&/relative/.test(k.css("position"))){c._revertToRelativePosition=true;k.css({position:"absolute",top:"auto",left:"auto"})}k.css(p)})};typeof b.alsoResize=="object"&&!b.alsoResize.nodeType?e.each(b.alsoResize,function(i,j){h(i,j)}):h(b.alsoResize)},stop:function(){var b=e(this).data("resizable"),a=b.options,c=function(d){e(d).each(function(){var f=e(this);f.css({position:f.data("resizable-alsoresize").position})})};if(b._revertToRelativePosition){b._revertToRelativePosition= +false;typeof a.alsoResize=="object"&&!a.alsoResize.nodeType?e.each(a.alsoResize,function(d){c(d)}):c(a.alsoResize)}e(this).removeData("resizable-alsoresize")}});e.ui.plugin.add("resizable","animate",{stop:function(b){var a=e(this).data("resizable"),c=a.options,d=a._proportionallyResizeElements,f=d.length&&/textarea/i.test(d[0].nodeName),g=f&&e.ui.hasScroll(d[0],"left")?0:a.sizeDiff.height;f={width:a.size.width-(f?0:a.sizeDiff.width),height:a.size.height-g};g=parseInt(a.element.css("left"),10)+(a.position.left- +a.originalPosition.left)||null;var h=parseInt(a.element.css("top"),10)+(a.position.top-a.originalPosition.top)||null;a.element.animate(e.extend(f,h&&g?{top:h,left:g}:{}),{duration:c.animateDuration,easing:c.animateEasing,step:function(){var i={width:parseInt(a.element.css("width"),10),height:parseInt(a.element.css("height"),10),top:parseInt(a.element.css("top"),10),left:parseInt(a.element.css("left"),10)};d&&d.length&&e(d[0]).css({width:i.width,height:i.height});a._updateCache(i);a._propagate("resize", +b)}})}});e.ui.plugin.add("resizable","containment",{start:function(){var b=e(this).data("resizable"),a=b.element,c=b.options.containment;if(a=c instanceof e?c.get(0):/parent/.test(c)?a.parent().get(0):c){b.containerElement=e(a);if(/document/.test(c)||c==document){b.containerOffset={left:0,top:0};b.containerPosition={left:0,top:0};b.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}}else{var d=e(a),f=[];e(["Top", +"Right","Left","Bottom"]).each(function(i,j){f[i]=m(d.css("padding"+j))});b.containerOffset=d.offset();b.containerPosition=d.position();b.containerSize={height:d.innerHeight()-f[3],width:d.innerWidth()-f[1]};c=b.containerOffset;var g=b.containerSize.height,h=b.containerSize.width;h=e.ui.hasScroll(a,"left")?a.scrollWidth:h;g=e.ui.hasScroll(a)?a.scrollHeight:g;b.parentData={element:a,left:c.left,top:c.top,width:h,height:g}}}},resize:function(b){var a=e(this).data("resizable"),c=a.options,d=a.containerOffset, +f=a.position;b=a._aspectRatio||b.shiftKey;var g={top:0,left:0},h=a.containerElement;if(h[0]!=document&&/static/.test(h.css("position")))g=d;if(f.left<(a._helper?d.left:0)){a.size.width+=a._helper?a.position.left-d.left:a.position.left-g.left;if(b)a.size.height=a.size.width/c.aspectRatio;a.position.left=c.helper?d.left:0}if(f.top<(a._helper?d.top:0)){a.size.height+=a._helper?a.position.top-d.top:a.position.top;if(b)a.size.width=a.size.height*c.aspectRatio;a.position.top=a._helper?d.top:0}a.offset.left= +a.parentData.left+a.position.left;a.offset.top=a.parentData.top+a.position.top;c=Math.abs((a._helper?a.offset.left-g.left:a.offset.left-g.left)+a.sizeDiff.width);d=Math.abs((a._helper?a.offset.top-g.top:a.offset.top-d.top)+a.sizeDiff.height);f=a.containerElement.get(0)==a.element.parent().get(0);g=/relative|absolute/.test(a.containerElement.css("position"));if(f&&g)c-=a.parentData.left;if(c+a.size.width>=a.parentData.width){a.size.width=a.parentData.width-c;if(b)a.size.height=a.size.width/a.aspectRatio}if(d+ +a.size.height>=a.parentData.height){a.size.height=a.parentData.height-d;if(b)a.size.width=a.size.height*a.aspectRatio}},stop:function(){var b=e(this).data("resizable"),a=b.options,c=b.containerOffset,d=b.containerPosition,f=b.containerElement,g=e(b.helper),h=g.offset(),i=g.outerWidth()-b.sizeDiff.width;g=g.outerHeight()-b.sizeDiff.height;b._helper&&!a.animate&&/relative/.test(f.css("position"))&&e(this).css({left:h.left-d.left-c.left,width:i,height:g});b._helper&&!a.animate&&/static/.test(f.css("position"))&& +e(this).css({left:h.left-d.left-c.left,width:i,height:g})}});e.ui.plugin.add("resizable","ghost",{start:function(){var b=e(this).data("resizable"),a=b.options,c=b.size;b.ghost=b.originalElement.clone();b.ghost.css({opacity:0.25,display:"block",position:"relative",height:c.height,width:c.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof a.ghost=="string"?a.ghost:"");b.ghost.appendTo(b.helper)},resize:function(){var b=e(this).data("resizable");b.ghost&&b.ghost.css({position:"relative", +height:b.size.height,width:b.size.width})},stop:function(){var b=e(this).data("resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}});e.ui.plugin.add("resizable","grid",{resize:function(){var b=e(this).data("resizable"),a=b.options,c=b.size,d=b.originalSize,f=b.originalPosition,g=b.axis;a.grid=typeof a.grid=="number"?[a.grid,a.grid]:a.grid;var h=Math.round((c.width-d.width)/(a.grid[0]||1))*(a.grid[0]||1);a=Math.round((c.height-d.height)/(a.grid[1]||1))*(a.grid[1]||1);if(/^(se|s|e)$/.test(g)){b.size.width= +d.width+h;b.size.height=d.height+a}else if(/^(ne)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a;b.position.top=f.top-a}else{if(/^(sw)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a}else{b.size.width=d.width+h;b.size.height=d.height+a;b.position.top=f.top-a}b.position.left=f.left-h}}});var m=function(b){return parseInt(b,10)||0},l=function(b){return!isNaN(parseInt(b,10))}})(jQuery); +;/* + * jQuery UI Selectable 1.8.6 + * + * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Selectables + * + * Depends: + * jquery.ui.core.js + * jquery.ui.mouse.js + * jquery.ui.widget.js + */ +(function(e){e.widget("ui.selectable",e.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var c=this;this.element.addClass("ui-selectable");this.dragged=false;var f;this.refresh=function(){f=e(c.options.filter,c.element[0]);f.each(function(){var d=e(this),b=d.offset();e.data(this,"selectable-item",{element:this,$element:d,left:b.left,top:b.top,right:b.left+d.outerWidth(),bottom:b.top+d.outerHeight(),startselected:false,selected:d.hasClass("ui-selected"), +selecting:d.hasClass("ui-selecting"),unselecting:d.hasClass("ui-unselecting")})})};this.refresh();this.selectees=f.addClass("ui-selectee");this._mouseInit();this.helper=e("
")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},_mouseStart:function(c){var f=this;this.opos=[c.pageX, +c.pageY];if(!this.options.disabled){var d=this.options;this.selectees=e(d.filter,this.element[0]);this._trigger("start",c);e(d.appendTo).append(this.helper);this.helper.css({left:c.clientX,top:c.clientY,width:0,height:0});d.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var b=e.data(this,"selectable-item");b.startselected=true;if(!c.metaKey){b.$element.removeClass("ui-selected");b.selected=false;b.$element.addClass("ui-unselecting");b.unselecting=true;f._trigger("unselecting", +c,{unselecting:b.element})}});e(c.target).parents().andSelf().each(function(){var b=e.data(this,"selectable-item");if(b){var g=!c.metaKey||!b.$element.hasClass("ui-selected");b.$element.removeClass(g?"ui-unselecting":"ui-selected").addClass(g?"ui-selecting":"ui-unselecting");b.unselecting=!g;b.selecting=g;(b.selected=g)?f._trigger("selecting",c,{selecting:b.element}):f._trigger("unselecting",c,{unselecting:b.element});return false}})}},_mouseDrag:function(c){var f=this;this.dragged=true;if(!this.options.disabled){var d= +this.options,b=this.opos[0],g=this.opos[1],h=c.pageX,i=c.pageY;if(b>h){var j=h;h=b;b=j}if(g>i){j=i;i=g;g=j}this.helper.css({left:b,top:g,width:h-b,height:i-g});this.selectees.each(function(){var a=e.data(this,"selectable-item");if(!(!a||a.element==f.element[0])){var k=false;if(d.tolerance=="touch")k=!(a.left>h||a.righti||a.bottomb&&a.rightg&&a.bottom *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){this.containerCache={};this.element.addClass("ui-sortable"); +this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData("sortable-item");return this},_setOption:function(a,b){if(a==="disabled"){this.options[a]=b;this.widget()[b?"addClass":"removeClass"]("ui-sortable-disabled")}else d.Widget.prototype._setOption.apply(this, +arguments)},_mouseCapture:function(a,b){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(a);var c=null,e=this;d(a.target).parents().each(function(){if(d.data(this,"sortable-item")==e){c=d(this);return false}});if(d.data(a.target,"sortable-item")==e)c=d(a.target);if(!c)return false;if(this.options.handle&&!b){var f=false;d(this.options.handle,c).find("*").andSelf().each(function(){if(this==a.target)f=true});if(!f)return false}this.currentItem= +c;this._removeCurrentsFromItems();return true},_mouseStart:function(a,b,c){b=this.options;var e=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(a);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");d.extend(this.offset, +{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();b.containment&&this._setContainment(); +if(b.cursor){if(d("body").css("cursor"))this._storedCursor=d("body").css("cursor");d("body").css("cursor",b.cursor)}if(b.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",b.opacity)}if(b.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",b.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start", +a,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!c)for(c=this.containers.length-1;c>=0;c--)this.containers[c]._trigger("activate",a,e._uiHash(this));if(d.ui.ddmanager)d.ui.ddmanager.current=this;d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(a);return true},_mouseDrag:function(a){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute"); +if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var b=this.options,c=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-a.pageY=0;b--){c=this.items[b];var e=c.item[0],f=this._intersectsWithPointer(c);if(f)if(e!=this.currentItem[0]&&this.placeholder[f==1?"next":"prev"]()[0]!=e&&!d.ui.contains(this.placeholder[0],e)&&(this.options.type=="semi-dynamic"?!d.ui.contains(this.element[0],e):true)){this.direction=f==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(c))this._rearrange(a, +c);else break;this._trigger("change",a,this._uiHash());break}}this._contactContainers(a);d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);this._trigger("sort",a,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(a,b){if(a){d.ui.ddmanager&&!this.options.dropBehaviour&&d.ui.ddmanager.drop(this,a);if(this.options.revert){var c=this;b=c.placeholder.offset();c.reverting=true;d(this.helper).animate({left:b.left-this.offset.parent.left-c.margins.left+(this.offsetParent[0]== +document.body?0:this.offsetParent[0].scrollLeft),top:b.top-this.offset.parent.top-c.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){c._clear(a)})}else this._clear(a,b);return false}},cancel:function(){var a=this;if(this.dragging){this._mouseUp();this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var b=this.containers.length-1;b>=0;b--){this.containers[b]._trigger("deactivate", +null,a._uiHash(this));if(this.containers[b].containerCache.over){this.containers[b]._trigger("out",null,a._uiHash(this));this.containers[b].containerCache.over=0}}}this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();d.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?d(this.domPosition.prev).after(this.currentItem): +d(this.domPosition.parent).prepend(this.currentItem);return this},serialize:function(a){var b=this._getItemsAsjQuery(a&&a.connected),c=[];a=a||{};d(b).each(function(){var e=(d(a.item||this).attr(a.attribute||"id")||"").match(a.expression||/(.+)[-=_](.+)/);if(e)c.push((a.key||e[1]+"[]")+"="+(a.key&&a.expression?e[1]:e[2]))});!c.length&&a.key&&c.push(a.key+"=");return c.join("&")},toArray:function(a){var b=this._getItemsAsjQuery(a&&a.connected),c=[];a=a||{};b.each(function(){c.push(d(a.item||this).attr(a.attribute|| +"id")||"")});return c},_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,e=this.positionAbs.top,f=e+this.helperProportions.height,g=a.left,h=g+a.width,i=a.top,k=i+a.height,j=this.offset.click.top,l=this.offset.click.left;j=e+j>i&&e+jg&&b+la[this.floating?"width":"height"]?j:g0?"down":"up")}, +_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return a!=0&&(a>0?"right":"left")},refresh:function(a){this._refreshItems(a);this.refreshPositions();return this},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(a){var b=[],c=[],e=this._connectWith();if(e&&a)for(a=e.length-1;a>=0;a--)for(var f=d(e[a]),g=f.length-1;g>=0;g--){var h=d.data(f[g],"sortable");if(h&&h!= +this&&!h.options.disabled)c.push([d.isFunction(h.options.items)?h.options.items.call(h.element):d(h.options.items,h.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),h])}c.push([d.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):d(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(a=c.length-1;a>=0;a--)c[a][0].each(function(){b.push(this)});return d(b)},_removeCurrentsFromItems:function(){for(var a= +this.currentItem.find(":data(sortable-item)"),b=0;b=0;f--)for(var g=d(e[f]),h=g.length-1;h>=0;h--){var i=d.data(g[h],"sortable"); +if(i&&i!=this&&!i.options.disabled){c.push([d.isFunction(i.options.items)?i.options.items.call(i.element[0],a,{item:this.currentItem}):d(i.options.items,i.element),i]);this.containers.push(i)}}for(f=c.length-1;f>=0;f--){a=c[f][1];e=c[f][0];h=0;for(g=e.length;h= +0;b--){var c=this.items[b],e=this.options.toleranceElement?d(this.options.toleranceElement,c.item):c.item;if(!a){c.width=e.outerWidth();c.height=e.outerHeight()}e=e.offset();c.left=e.left;c.top=e.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(b=this.containers.length-1;b>=0;b--){e=this.containers[b].element.offset();this.containers[b].containerCache.left=e.left;this.containers[b].containerCache.top=e.top;this.containers[b].containerCache.width= +this.containers[b].element.outerWidth();this.containers[b].containerCache.height=this.containers[b].element.outerHeight()}return this},_createPlaceholder:function(a){var b=a||this,c=b.options;if(!c.placeholder||c.placeholder.constructor==String){var e=c.placeholder;c.placeholder={element:function(){var f=d(document.createElement(b.currentItem[0].nodeName)).addClass(e||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!e)f.style.visibility="hidden";return f}, +update:function(f,g){if(!(e&&!c.forcePlaceholderSize)){g.height()||g.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10));g.width()||g.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")||0,10))}}}}b.placeholder=d(c.placeholder.element.call(b.element,b.currentItem));b.currentItem.after(b.placeholder);c.placeholder.update(b,b.placeholder)},_contactContainers:function(a){for(var b= +null,c=null,e=this.containers.length-1;e>=0;e--)if(!d.ui.contains(this.currentItem[0],this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(!(b&&d.ui.contains(this.containers[e].element[0],b.element[0]))){b=this.containers[e];c=e}}else if(this.containers[e].containerCache.over){this.containers[e]._trigger("out",a,this._uiHash(this));this.containers[e].containerCache.over=0}if(b)if(this.containers.length===1){this.containers[c]._trigger("over",a,this._uiHash(this)); +this.containers[c].containerCache.over=1}else if(this.currentContainer!=this.containers[c]){b=1E4;e=null;for(var f=this.positionAbs[this.containers[c].floating?"left":"top"],g=this.items.length-1;g>=0;g--)if(d.ui.contains(this.containers[c].element[0],this.items[g].item[0])){var h=this.items[g][this.containers[c].floating?"left":"top"];if(Math.abs(h-f)this.containment[2])f=this.containment[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(b.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/b.grid[1])*b.grid[1];g=this.containment?!(g-this.offset.click.topthis.containment[3])? +g:!(g-this.offset.click.topthis.containment[2])?f:!(f-this.offset.click.left=0;e--)if(d.ui.contains(this.containers[e].element[0],this.currentItem[0])&&!b){c.push(function(f){return function(g){f._trigger("receive", +g,this._uiHash(this))}}.call(this,this.containers[e]));c.push(function(f){return function(g){f._trigger("update",g,this._uiHash(this))}}.call(this,this.containers[e]))}}for(e=this.containers.length-1;e>=0;e--){b||c.push(function(f){return function(g){f._trigger("deactivate",g,this._uiHash(this))}}.call(this,this.containers[e]));if(this.containers[e].containerCache.over){c.push(function(f){return function(g){f._trigger("out",g,this._uiHash(this))}}.call(this,this.containers[e]));this.containers[e].containerCache.over= +0}}this._storedCursor&&d("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!b){this._trigger("beforeStop",a,this._uiHash());for(e=0;e li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var a=this,b=a.options;a.running=0;a.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix"); +a.headers=a.element.find(b.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){b.disabled||c(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){b.disabled||c(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){b.disabled||c(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){b.disabled||c(this).removeClass("ui-state-focus")});a.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom"); +if(b.navigation){var d=a.element.find("a").filter(b.navigationFilter).eq(0);if(d.length){var f=d.closest(".ui-accordion-header");a.active=f.length?f:d.closest(".ui-accordion-content").prev()}}a.active=a._findActive(a.active||b.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");a.active.next().addClass("ui-accordion-content-active");a._createIcons();a.resize();a.element.attr("role","tablist");a.headers.attr("role","tab").bind("keydown.accordion", +function(g){return a._keydown(g)}).next().attr("role","tabpanel");a.headers.not(a.active||"").attr({"aria-expanded":"false",tabIndex:-1}).next().hide();a.active.length?a.active.attr({"aria-expanded":"true",tabIndex:0}):a.headers.eq(0).attr("tabIndex",0);c.browser.safari||a.headers.find("a").attr("tabIndex",-1);b.event&&a.headers.bind(b.event.split(" ").join(".accordion ")+".accordion",function(g){a._clickHandler.call(a,g,this);g.preventDefault()})},_createIcons:function(){var a=this.options;if(a.icons){c("").addClass("ui-icon "+ +a.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(a.icons.header).toggleClass(a.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var a=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabIndex"); +this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var b=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(a.autoHeight||a.fillHeight)b.css("height","");return c.Widget.prototype.destroy.call(this)},_setOption:function(a,b){c.Widget.prototype._setOption.apply(this,arguments);a=="active"&&this.activate(b);if(a=="icons"){this._destroyIcons(); +b&&this._createIcons()}if(a=="disabled")this.headers.add(this.headers.next())[b?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(a){if(!(this.options.disabled||a.altKey||a.ctrlKey)){var b=c.ui.keyCode,d=this.headers.length,f=this.headers.index(a.target),g=false;switch(a.keyCode){case b.RIGHT:case b.DOWN:g=this.headers[(f+1)%d];break;case b.LEFT:case b.UP:g=this.headers[(f-1+d)%d];break;case b.SPACE:case b.ENTER:this._clickHandler({target:a.target},a.target); +a.preventDefault()}if(g){c(a.target).attr("tabIndex",-1);c(g).attr("tabIndex",0);g.focus();return false}return true}},resize:function(){var a=this.options,b;if(a.fillSpace){if(c.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}b=this.element.parent().height();c.browser.msie&&this.element.parent().css("overflow",d);this.headers.each(function(){b-=c(this).outerHeight(true)});this.headers.next().each(function(){c(this).height(Math.max(0,b-c(this).innerHeight()+ +c(this).height()))}).css("overflow","auto")}else if(a.autoHeight){b=0;this.headers.next().each(function(){b=Math.max(b,c(this).height("").height())}).height(b)}return this},activate:function(a){this.options.active=a;a=this._findActive(a)[0];this._clickHandler({target:a},a);return this},_findActive:function(a){return a?typeof a==="number"?this.headers.filter(":eq("+a+")"):this.headers.not(this.headers.not(a)):a===false?c([]):this.headers.filter(":eq(0)")},_clickHandler:function(a,b){var d=this.options; +if(!d.disabled)if(a.target){a=c(a.currentTarget||b);b=a[0]===this.active[0];d.active=d.collapsible&&b?false:this.headers.index(a);if(!(this.running||!d.collapsible&&b)){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);if(!b){a.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected); +a.next().addClass("ui-accordion-content-active")}h=a.next();f=this.active.next();g={options:d,newHeader:b&&d.collapsible?c([]):a,oldHeader:this.active,newContent:b&&d.collapsible?c([]):h,oldContent:f};d=this.headers.index(this.active[0])>this.headers.index(a[0]);this.active=b?c([]):a;this._toggle(h,f,g,b,d)}}else if(d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header); +this.active.next().addClass("ui-accordion-content-active");var f=this.active.next(),g={options:d,newHeader:c([]),oldHeader:d.active,newContent:c([]),oldContent:f},h=this.active=c([]);this._toggle(h,f,g)}},_toggle:function(a,b,d,f,g){var h=this,e=h.options;h.toShow=a;h.toHide=b;h.data=d;var j=function(){if(h)return h._completed.apply(h,arguments)};h._trigger("changestart",null,h.data);h.running=b.size()===0?a.size():b.size();if(e.animated){d={};d=e.collapsible&&f?{toShow:c([]),toHide:b,complete:j, +down:g,autoHeight:e.autoHeight||e.fillSpace}:{toShow:a,toHide:b,complete:j,down:g,autoHeight:e.autoHeight||e.fillSpace};if(!e.proxied)e.proxied=e.animated;if(!e.proxiedDuration)e.proxiedDuration=e.duration;e.animated=c.isFunction(e.proxied)?e.proxied(d):e.proxied;e.duration=c.isFunction(e.proxiedDuration)?e.proxiedDuration(d):e.proxiedDuration;f=c.ui.accordion.animations;var i=e.duration,k=e.animated;if(k&&!f[k]&&!c.easing[k])k="slide";f[k]||(f[k]=function(l){this.slide(l,{easing:k,duration:i||700})}); +f[k](d)}else{if(e.collapsible&&f)a.toggle();else{b.hide();a.show()}j(true)}b.prev().attr({"aria-expanded":"false",tabIndex:-1}).blur();a.prev().attr({"aria-expanded":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");this._trigger("change",null,this.data)}}});c.extend(c.ui.accordion,{version:"1.8.6",animations:{slide:function(a, +b){a=c.extend({easing:"swing",duration:300},a,b);if(a.toHide.size())if(a.toShow.size()){var d=a.toShow.css("overflow"),f=0,g={},h={},e;b=a.toShow;e=b[0].style.width;b.width(parseInt(b.parent().width(),10)-parseInt(b.css("paddingLeft"),10)-parseInt(b.css("paddingRight"),10)-(parseInt(b.css("borderLeftWidth"),10)||0)-(parseInt(b.css("borderRightWidth"),10)||0));c.each(["height","paddingTop","paddingBottom"],function(j,i){h[i]="hide";j=(""+c.css(a.toShow[0],i)).match(/^([\d+-.]+)(.*)$/);g[i]={value:j[1], +unit:j[2]||"px"}});a.toShow.css({height:0,overflow:"hidden"}).show();a.toHide.filter(":hidden").each(a.complete).end().filter(":visible").animate(h,{step:function(j,i){if(i.prop=="height")f=i.end-i.start===0?0:(i.now-i.start)/(i.end-i.start);a.toShow[0].style[i.prop]=f*g[i.prop].value+g[i.prop].unit},duration:a.duration,easing:a.easing,complete:function(){a.autoHeight||a.toShow.css("height","");a.toShow.css({width:e,overflow:d});a.complete()}})}else a.toHide.animate({height:"hide",paddingTop:"hide", +paddingBottom:"hide"},a);else a.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},a)},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1E3:200})}}})})(jQuery); +;/* + * jQuery UI Autocomplete 1.8.6 + * + * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Autocomplete + * + * Depends: + * jquery.ui.core.js + * jquery.ui.widget.js + * jquery.ui.position.js + */ +(function(e){e.widget("ui.autocomplete",{options:{appendTo:"body",delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},_create:function(){var a=this,b=this.element[0].ownerDocument,f;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(c){if(!(a.options.disabled||a.element.attr("readonly"))){f=false;var d=e.ui.keyCode;switch(c.keyCode){case d.PAGE_UP:a._move("previousPage", +c);break;case d.PAGE_DOWN:a._move("nextPage",c);break;case d.UP:a._move("previous",c);c.preventDefault();break;case d.DOWN:a._move("next",c);c.preventDefault();break;case d.ENTER:case d.NUMPAD_ENTER:if(a.menu.active){f=true;c.preventDefault()}case d.TAB:if(!a.menu.active)return;a.menu.select(c);break;case d.ESCAPE:a.element.val(a.term);a.close(c);break;default:clearTimeout(a.searching);a.searching=setTimeout(function(){if(a.term!=a.element.val()){a.selectedItem=null;a.search(null,c)}},a.options.delay); +break}}}).bind("keypress.autocomplete",function(c){if(f){f=false;c.preventDefault()}}).bind("focus.autocomplete",function(){if(!a.options.disabled){a.selectedItem=null;a.previous=a.element.val()}}).bind("blur.autocomplete",function(c){if(!a.options.disabled){clearTimeout(a.searching);a.closing=setTimeout(function(){a.close(c);a._change(c)},150)}});this._initSource();this.response=function(){return a._response.apply(a,arguments)};this.menu=e("
    ").addClass("ui-autocomplete").appendTo(e(this.options.appendTo|| +"body",b)[0]).mousedown(function(c){var d=a.menu.element[0];e(c.target).closest(".ui-menu-item").length||setTimeout(function(){e(document).one("mousedown",function(g){g.target!==a.element[0]&&g.target!==d&&!e.ui.contains(d,g.target)&&a.close()})},1);setTimeout(function(){clearTimeout(a.closing)},13)}).menu({focus:function(c,d){d=d.item.data("item.autocomplete");false!==a._trigger("focus",c,{item:d})&&/^key/.test(c.originalEvent.type)&&a.element.val(d.value)},selected:function(c,d){d=d.item.data("item.autocomplete"); +var g=a.previous;if(a.element[0]!==b.activeElement){a.element.focus();a.previous=g;setTimeout(function(){a.previous=g},1)}false!==a._trigger("select",c,{item:d})&&a.element.val(d.value);a.term=a.element.val();a.close(c);a.selectedItem=d},blur:function(){a.menu.element.is(":visible")&&a.element.val()!==a.term&&a.element.val(a.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");e.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup"); +this.menu.element.remove();e.Widget.prototype.destroy.call(this)},_setOption:function(a,b){e.Widget.prototype._setOption.apply(this,arguments);a==="source"&&this._initSource();if(a==="appendTo")this.menu.element.appendTo(e(b||"body",this.element[0].ownerDocument)[0])},_initSource:function(){var a=this,b,f;if(e.isArray(this.options.source)){b=this.options.source;this.source=function(c,d){d(e.ui.autocomplete.filter(b,c.term))}}else if(typeof this.options.source==="string"){f=this.options.source;this.source= +function(c,d){a.xhr&&a.xhr.abort();a.xhr=e.getJSON(f,c,function(g,i,h){h===a.xhr&&d(g);a.xhr=null})}}else this.source=this.options.source},search:function(a,b){a=a!=null?a:this.element.val();this.term=this.element.val();if(a.length").data("item.autocomplete",b).append(e("").text(b.label)).appendTo(a)},_move:function(a,b){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)){this.element.val(this.term);this.menu.deactivate()}else this.menu[a](b);else this.search(null,b)},widget:function(){return this.menu.element}});e.extend(e.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, +"\\$&")},filter:function(a,b){var f=new RegExp(e.ui.autocomplete.escapeRegex(b),"i");return e.grep(a,function(c){return f.test(c.label||c.value||c)})}})})(jQuery); +(function(e){e.widget("ui.menu",{_create:function(){var a=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(b){if(e(b.target).closest(".ui-menu-item a").length){b.preventDefault();a.select(b)}});this.refresh()},refresh:function(){var a=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex", +-1).mouseenter(function(b){a.activate(b,e(this).parent())}).mouseleave(function(){a.deactivate()})},activate:function(a,b){this.deactivate();if(this.hasScroll()){var f=b.offset().top-this.element.offset().top,c=this.element.attr("scrollTop"),d=this.element.height();if(f<0)this.element.attr("scrollTop",c+f);else f>=d&&this.element.attr("scrollTop",c+f-d+b.height())}this.active=b.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",a,{item:b})}, +deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");this._trigger("blur");this.active=null}},next:function(a){this.move("next",".ui-menu-item:first",a)},previous:function(a){this.move("prev",".ui-menu-item:last",a)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(a,b,f){if(this.active){a=this.active[a+"All"](".ui-menu-item").eq(0); +a.length?this.activate(f,a):this.activate(f,this.element.children(b))}else this.activate(f,this.element.children(b))},nextPage:function(a){if(this.hasScroll())if(!this.active||this.last())this.activate(a,this.element.children(".ui-menu-item:first"));else{var b=this.active.offset().top,f=this.element.height(),c=this.element.children(".ui-menu-item").filter(function(){var d=e(this).offset().top-b-f+e(this).height();return d<10&&d>-10});c.length||(c=this.element.children(".ui-menu-item:last"));this.activate(a, +c)}else this.activate(a,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},previousPage:function(a){if(this.hasScroll())if(!this.active||this.first())this.activate(a,this.element.children(".ui-menu-item:last"));else{var b=this.active.offset().top,f=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var c=e(this).offset().top-b+f-e(this).height();return c<10&&c>-10});result.length||(result=this.element.children(".ui-menu-item:first")); +this.activate(a,result)}else this.activate(a,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()").addClass("ui-button-text").html(this.options.label).appendTo(b.empty()).text(),d=this.options.icons,e=d.primary&&d.secondary;if(d.primary||d.secondary){b.addClass("ui-button-text-icon"+(e?"s":d.primary?"-primary":"-secondary"));d.primary&&b.prepend("");d.secondary&&b.append("");if(!this.options.text){b.addClass(e?"ui-button-icons-only":"ui-button-icon-only").removeClass("ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary"); +this.hasTitle||b.attr("title",c)}}else b.addClass("ui-button-text-only")}}});a.widget("ui.buttonset",{_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(b,c){b==="disabled"&&this.buttons.button("option",b,c);a.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){this.buttons=this.element.find(":button, :submit, :reset, :checkbox, :radio, a, :data(button)").filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":visible").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().end().end()}, +destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");a.Widget.prototype.destroy.call(this)}})})(jQuery); +;/* + * jQuery UI Dialog 1.8.6 + * + * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Dialog + * + * Depends: + * jquery.ui.core.js + * jquery.ui.widget.js + * jquery.ui.button.js + * jquery.ui.draggable.js + * jquery.ui.mouse.js + * jquery.ui.position.js + * jquery.ui.resizable.js + */ +(function(c,j){var k={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},l={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true};c.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",of:window,collision:"fit",using:function(a){var b=c(this).css(a).offset().top; +b<0&&c(this).css("top",a.top-b)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string")this.originalTitle="";this.options.title=this.options.title||this.originalTitle;var a=this,b=a.options,d=b.title||" ",e=c.ui.dialog.getTitleId(a.element),g=(a.uiDialog=c("
    ")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+b.dialogClass).css({zIndex:b.zIndex}).attr("tabIndex", +-1).css("outline",0).keydown(function(i){if(b.closeOnEscape&&i.keyCode&&i.keyCode===c.ui.keyCode.ESCAPE){a.close(i);i.preventDefault()}}).attr({role:"dialog","aria-labelledby":e}).mousedown(function(i){a.moveToTop(false,i)});a.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g);var f=(a.uiDialogTitlebar=c("
    ")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g),h=c('').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role", +"button").hover(function(){h.addClass("ui-state-hover")},function(){h.removeClass("ui-state-hover")}).focus(function(){h.addClass("ui-state-focus")}).blur(function(){h.removeClass("ui-state-focus")}).click(function(i){a.close(i);return false}).appendTo(f);(a.uiDialogTitlebarCloseText=c("")).addClass("ui-icon ui-icon-closethick").text(b.closeText).appendTo(h);c("").addClass("ui-dialog-title").attr("id",e).html(d).prependTo(f);if(c.isFunction(b.beforeclose)&&!c.isFunction(b.beforeClose))b.beforeClose= +b.beforeclose;f.find("*").add(f).disableSelection();b.draggable&&c.fn.draggable&&a._makeDraggable();b.resizable&&c.fn.resizable&&a._makeResizable();a._createButtons(b.buttons);a._isOpen=false;c.fn.bgiframe&&g.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var a=this;a.overlay&&a.overlay.destroy();a.uiDialog.hide();a.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");a.uiDialog.remove();a.originalTitle&& +a.element.attr("title",a.originalTitle);return a},widget:function(){return this.uiDialog},close:function(a){var b=this,d;if(false!==b._trigger("beforeClose",a)){b.overlay&&b.overlay.destroy();b.uiDialog.unbind("keypress.ui-dialog");b._isOpen=false;if(b.options.hide)b.uiDialog.hide(b.options.hide,function(){b._trigger("close",a)});else{b.uiDialog.hide();b._trigger("close",a)}c.ui.dialog.overlay.resize();if(b.options.modal){d=0;c(".ui-dialog").each(function(){if(this!==b.uiDialog[0])d=Math.max(d,c(this).css("z-index"))}); +c.ui.dialog.maxZ=d}return b}},isOpen:function(){return this._isOpen},moveToTop:function(a,b){var d=this,e=d.options;if(e.modal&&!a||!e.stack&&!e.modal)return d._trigger("focus",b);if(e.zIndex>c.ui.dialog.maxZ)c.ui.dialog.maxZ=e.zIndex;if(d.overlay){c.ui.dialog.maxZ+=1;d.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=c.ui.dialog.maxZ)}a={scrollTop:d.element.attr("scrollTop"),scrollLeft:d.element.attr("scrollLeft")};c.ui.dialog.maxZ+=1;d.uiDialog.css("z-index",c.ui.dialog.maxZ);d.element.attr(a); +d._trigger("focus",b);return d},open:function(){if(!this._isOpen){var a=this,b=a.options,d=a.uiDialog;a.overlay=b.modal?new c.ui.dialog.overlay(a):null;a._size();a._position(b.position);d.show(b.show);a.moveToTop(true);b.modal&&d.bind("keypress.ui-dialog",function(e){if(e.keyCode===c.ui.keyCode.TAB){var g=c(":tabbable",this),f=g.filter(":first");g=g.filter(":last");if(e.target===g[0]&&!e.shiftKey){f.focus(1);return false}else if(e.target===f[0]&&e.shiftKey){g.focus(1);return false}}});c(a.element.find(":tabbable").get().concat(d.find(".ui-dialog-buttonpane :tabbable").get().concat(d.get()))).eq(0).focus(); +a._isOpen=true;a._trigger("open");return a}},_createButtons:function(a){var b=this,d=false,e=c("
    ").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),g=c("
    ").addClass("ui-dialog-buttonset").appendTo(e);b.uiDialog.find(".ui-dialog-buttonpane").remove();typeof a==="object"&&a!==null&&c.each(a,function(){return!(d=true)});if(d){c.each(a,function(f,h){h=c.isFunction(h)?{click:h,text:f}:h;f=c('').attr(h,true).unbind("click").click(function(){h.click.apply(b.element[0], +arguments)}).appendTo(g);c.fn.button&&f.button()});e.appendTo(b.uiDialog)}},_makeDraggable:function(){function a(f){return{position:f.position,offset:f.offset}}var b=this,d=b.options,e=c(document),g;b.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(f,h){g=d.height==="auto"?"auto":c(this).height();c(this).height(c(this).height()).addClass("ui-dialog-dragging");b._trigger("dragStart",f,a(h))},drag:function(f, +h){b._trigger("drag",f,a(h))},stop:function(f,h){d.position=[h.position.left-e.scrollLeft(),h.position.top-e.scrollTop()];c(this).removeClass("ui-dialog-dragging").height(g);b._trigger("dragStop",f,a(h));c.ui.dialog.overlay.resize()}})},_makeResizable:function(a){function b(f){return{originalPosition:f.originalPosition,originalSize:f.originalSize,position:f.position,size:f.size}}a=a===j?this.options.resizable:a;var d=this,e=d.options,g=d.uiDialog.css("position");a=typeof a==="string"?a:"n,e,s,w,se,sw,ne,nw"; +d.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:d.element,maxWidth:e.maxWidth,maxHeight:e.maxHeight,minWidth:e.minWidth,minHeight:d._minHeight(),handles:a,start:function(f,h){c(this).addClass("ui-dialog-resizing");d._trigger("resizeStart",f,b(h))},resize:function(f,h){d._trigger("resize",f,b(h))},stop:function(f,h){c(this).removeClass("ui-dialog-resizing");e.height=c(this).height();e.width=c(this).width();d._trigger("resizeStop",f,b(h));c.ui.dialog.overlay.resize()}}).css("position", +g).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return a.height==="auto"?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(a){var b=[],d=[0,0],e;if(a){if(typeof a==="string"||typeof a==="object"&&"0"in a){b=a.split?a.split(" "):[a[0],a[1]];if(b.length===1)b[1]=b[0];c.each(["left","top"],function(g,f){if(+b[g]===b[g]){d[g]=b[g];b[g]=f}});a={my:b.join(" "),at:b.join(" "),offset:d.join(" ")}}a=c.extend({},c.ui.dialog.prototype.options.position, +a)}else a=c.ui.dialog.prototype.options.position;(e=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(a);e||this.uiDialog.hide()},_setOptions:function(a){var b=this,d={},e=false;c.each(a,function(g,f){b._setOption(g,f);if(g in k)e=true;if(g in l)d[g]=f});e&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",d)},_setOption:function(a,b){var d=this,e=d.uiDialog;switch(a){case "beforeclose":a="beforeClose";break;case "buttons":d._createButtons(b); +break;case "closeText":d.uiDialogTitlebarCloseText.text(""+b);break;case "dialogClass":e.removeClass(d.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+b);break;case "disabled":b?e.addClass("ui-dialog-disabled"):e.removeClass("ui-dialog-disabled");break;case "draggable":var g=e.is(":data(draggable)");g&&!b&&e.draggable("destroy");!g&&b&&d._makeDraggable();break;case "position":d._position(b);break;case "resizable":(g=e.is(":data(resizable)"))&&!b&&e.resizable("destroy"); +g&&typeof b==="string"&&e.resizable("option","handles",b);!g&&b!==false&&d._makeResizable(b);break;case "title":c(".ui-dialog-title",d.uiDialogTitlebar).html(""+(b||" "));break}c.Widget.prototype._setOption.apply(d,arguments)},_size:function(){var a=this.options,b,d;this.element.show().css({width:"auto",minHeight:0,height:0});if(a.minWidth>a.width)a.width=a.minWidth;b=this.uiDialog.css({height:"auto",width:a.width}).height();d=Math.max(0,a.minHeight-b);if(a.height==="auto")if(c.support.minHeight)this.element.css({minHeight:d, +height:"auto"});else{this.uiDialog.show();a=this.element.css("height","auto").height();this.uiDialog.hide();this.element.height(Math.max(a,d))}else this.element.height(Math.max(a.height-b,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});c.extend(c.ui.dialog,{version:"1.8.6",uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");if(!a){this.uuid+=1;a=this.uuid}return"ui-dialog-title-"+a},overlay:function(a){this.$el=c.ui.dialog.overlay.create(a)}}); +c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "),create:function(a){if(this.instances.length===0){setTimeout(function(){c.ui.dialog.overlay.instances.length&&c(document).bind(c.ui.dialog.overlay.events,function(d){if(c(d.target).zIndex()").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});c.fn.bgiframe&&b.bgiframe();this.instances.push(b);return b},destroy:function(a){this.oldInstances.push(this.instances.splice(c.inArray(a,this.instances),1)[0]);this.instances.length===0&&c([document,window]).unbind(".dialog-overlay"); +a.remove();var b=0;c.each(this.instances,function(){b=Math.max(b,this.css("z-index"))});this.maxZ=b},height:function(){var a,b;if(c.browser.msie&&c.browser.version<7){a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);b=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return a");if(!b.values)b.values=[this._valueMin(),this._valueMin()];if(b.values.length&&b.values.length!==2)b.values=[b.values[0],b.values[0]]}else this.range=d("
    ");this.range.appendTo(this.element).addClass("ui-slider-range");if(b.range==="min"||b.range==="max")this.range.addClass("ui-slider-range-"+b.range);this.range.addClass("ui-widget-header")}d(".ui-slider-handle",this.element).length===0&&d("").appendTo(this.element).addClass("ui-slider-handle"); +if(b.values&&b.values.length)for(;d(".ui-slider-handle",this.element).length").appendTo(this.element).addClass("ui-slider-handle");this.handles=d(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(c){c.preventDefault()}).hover(function(){b.disabled||d(this).addClass("ui-state-hover")},function(){d(this).removeClass("ui-state-hover")}).focus(function(){if(b.disabled)d(this).blur(); +else{d(".ui-slider .ui-state-focus").removeClass("ui-state-focus");d(this).addClass("ui-state-focus")}}).blur(function(){d(this).removeClass("ui-state-focus")});this.handles.each(function(c){d(this).data("index.ui-slider-handle",c)});this.handles.keydown(function(c){var e=true,f=d(this).data("index.ui-slider-handle"),h,g,i;if(!a.options.disabled){switch(c.keyCode){case d.ui.keyCode.HOME:case d.ui.keyCode.END:case d.ui.keyCode.PAGE_UP:case d.ui.keyCode.PAGE_DOWN:case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:e= +false;if(!a._keySliding){a._keySliding=true;d(this).addClass("ui-state-active");h=a._start(c,f);if(h===false)return}break}i=a.options.step;h=a.options.values&&a.options.values.length?(g=a.values(f)):(g=a.value());switch(c.keyCode){case d.ui.keyCode.HOME:g=a._valueMin();break;case d.ui.keyCode.END:g=a._valueMax();break;case d.ui.keyCode.PAGE_UP:g=a._trimAlignValue(h+(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.PAGE_DOWN:g=a._trimAlignValue(h-(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:if(h=== +a._valueMax())return;g=a._trimAlignValue(h+i);break;case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:if(h===a._valueMin())return;g=a._trimAlignValue(h-i);break}a._slide(c,f,g);return e}}).keyup(function(c){var e=d(this).data("index.ui-slider-handle");if(a._keySliding){a._keySliding=false;a._stop(c,e);a._change(c,e);d(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider"); +this._mouseDestroy();return this},_mouseCapture:function(a){var b=this.options,c,e,f,h,g;if(b.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();c=this._normValueFromMouse({x:a.pageX,y:a.pageY});e=this._valueMax()-this._valueMin()+1;h=this;this.handles.each(function(i){var j=Math.abs(c-h.values(i));if(e>j){e=j;f=d(this);g=i}});if(b.range===true&&this.values(1)===b.min){g+=1;f=d(this.handles[g])}if(this._start(a, +g)===false)return false;this._mouseSliding=true;h._handleIndex=g;f.addClass("ui-state-active").focus();b=f.offset();this._clickOffset=!d(a.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:a.pageX-b.left-f.width()/2,top:a.pageY-b.top-f.height()/2-(parseInt(f.css("borderTopWidth"),10)||0)-(parseInt(f.css("borderBottomWidth"),10)||0)+(parseInt(f.css("marginTop"),10)||0)};this._slide(a,g,c);return this._animateOff=true},_mouseStart:function(){return true},_mouseDrag:function(a){var b= +this._normValueFromMouse({x:a.pageX,y:a.pageY});this._slide(a,this._handleIndex,b);return false},_mouseStop:function(a){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(a){var b;if(this.orientation==="horizontal"){b= +this.elementSize.width;a=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{b=this.elementSize.height;a=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}b=a/b;if(b>1)b=1;if(b<0)b=0;if(this.orientation==="vertical")b=1-b;a=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+b*a)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b); +c.values=this.values()}return this._trigger("start",a,c)},_slide:function(a,b,c){var e;if(this.options.values&&this.options.values.length){e=this.values(b?0:1);if(this.options.values.length===2&&this.options.range===true&&(b===0&&c>e||b===1&&c1){this.options.values[a]=this._trimAlignValue(b);this._refreshValue();this._change(null,a)}if(arguments.length)if(d.isArray(arguments[0])){c=this.options.values;e=arguments[0];for(f=0;fthis._valueMax())return this._valueMax();var b=this.options.step>0?this.options.step:1,c=a%b;a=a-c;if(Math.abs(c)*2>=b)a+=c>0?b:-b;return parseFloat(a.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var a= +this.options.range,b=this.options,c=this,e=!this._animateOff?b.animate:false,f,h={},g,i,j,l;if(this.options.values&&this.options.values.length)this.handles.each(function(k){f=(c.values(k)-c._valueMin())/(c._valueMax()-c._valueMin())*100;h[c.orientation==="horizontal"?"left":"bottom"]=f+"%";d(this).stop(1,1)[e?"animate":"css"](h,b.animate);if(c.options.range===true)if(c.orientation==="horizontal"){if(k===0)c.range.stop(1,1)[e?"animate":"css"]({left:f+"%"},b.animate);if(k===1)c.range[e?"animate":"css"]({width:f- +g+"%"},{queue:false,duration:b.animate})}else{if(k===0)c.range.stop(1,1)[e?"animate":"css"]({bottom:f+"%"},b.animate);if(k===1)c.range[e?"animate":"css"]({height:f-g+"%"},{queue:false,duration:b.animate})}g=f});else{i=this.value();j=this._valueMin();l=this._valueMax();f=l!==j?(i-j)/(l-j)*100:0;h[c.orientation==="horizontal"?"left":"bottom"]=f+"%";this.handle.stop(1,1)[e?"animate":"css"](h,b.animate);if(a==="min"&&this.orientation==="horizontal")this.range.stop(1,1)[e?"animate":"css"]({width:f+"%"}, +b.animate);if(a==="max"&&this.orientation==="horizontal")this.range[e?"animate":"css"]({width:100-f+"%"},{queue:false,duration:b.animate});if(a==="min"&&this.orientation==="vertical")this.range.stop(1,1)[e?"animate":"css"]({height:f+"%"},b.animate);if(a==="max"&&this.orientation==="vertical")this.range[e?"animate":"css"]({height:100-f+"%"},{queue:false,duration:b.animate})}}});d.extend(d.ui.slider,{version:"1.8.6"})})(jQuery); +;/* + * jQuery UI Tabs 1.8.6 + * + * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Tabs + * + * Depends: + * jquery.ui.core.js + * jquery.ui.widget.js + */ +(function(d,p){function u(){return++v}function w(){return++x}var v=0,x=0;d.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"
    ",remove:null,select:null,show:null,spinner:"Loading…",tabTemplate:"
  • #{label}
  • "},_create:function(){this._tabify(true)},_setOption:function(b,e){if(b=="selected")this.options.collapsible&& +e==this.options.selected||this.select(e);else{this.options[b]=e;this._tabify()}},_tabId:function(b){return b.title&&b.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+u()},_sanitizeSelector:function(b){return b.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+w());return d.cookie.apply(null,[b].concat(d.makeArray(arguments)))},_ui:function(b,e){return{tab:b,panel:e,index:this.anchors.index(b)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b= +d(this);b.html(b.data("label.tabs")).removeData("label.tabs")})},_tabify:function(b){function e(g,f){g.css("display","");!d.support.opacity&&f.opacity&&g[0].style.removeAttribute("filter")}var a=this,c=this.options,h=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=d(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return d("a",this)[0]});this.panels=d([]);this.anchors.each(function(g,f){var i=d(f).attr("href"),l=i.split("#")[0],q;if(l&&(l===location.toString().split("#")[0]|| +(q=d("base")[0])&&l===q.href)){i=f.hash;f.href=i}if(h.test(i))a.panels=a.panels.add(a._sanitizeSelector(i));else if(i&&i!=="#"){d.data(f,"href.tabs",i);d.data(f,"load.tabs",i.replace(/#.*$/,""));i=a._tabId(f);f.href="#"+i;f=d("#"+i);if(!f.length){f=d(c.panelTemplate).attr("id",i).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(a.panels[g-1]||a.list);f.data("destroy.tabs",true)}a.panels=a.panels.add(f)}else c.disabled.push(g)});if(b){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all"); +this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(c.selected===p){location.hash&&this.anchors.each(function(g,f){if(f.hash==location.hash){c.selected=g;return false}});if(typeof c.selected!=="number"&&c.cookie)c.selected=parseInt(a._cookie(),10);if(typeof c.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length)c.selected= +this.lis.index(this.lis.filter(".ui-tabs-selected"));c.selected=c.selected||(this.lis.length?0:-1)}else if(c.selected===null)c.selected=-1;c.selected=c.selected>=0&&this.anchors[c.selected]||c.selected<0?c.selected:0;c.disabled=d.unique(c.disabled.concat(d.map(this.lis.filter(".ui-state-disabled"),function(g){return a.lis.index(g)}))).sort();d.inArray(c.selected,c.disabled)!=-1&&c.disabled.splice(d.inArray(c.selected,c.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active"); +if(c.selected>=0&&this.anchors.length){d(a._sanitizeSelector(a.anchors[c.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(c.selected).addClass("ui-tabs-selected ui-state-active");a.element.queue("tabs",function(){a._trigger("show",null,a._ui(a.anchors[c.selected],d(a._sanitizeSelector(a.anchors[c.selected].hash))))});this.load(c.selected)}d(window).bind("unload",function(){a.lis.add(a.anchors).unbind(".tabs");a.lis=a.anchors=a.panels=null})}else c.selected=this.lis.index(this.lis.filter(".ui-tabs-selected")); +this.element[c.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");c.cookie&&this._cookie(c.selected,c.cookie);b=0;for(var j;j=this.lis[b];b++)d(j)[d.inArray(b,c.disabled)!=-1&&!d(j).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");c.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(c.event!=="mouseover"){var k=function(g,f){f.is(":not(.ui-state-disabled)")&&f.addClass("ui-state-"+g)},n=function(g,f){f.removeClass("ui-state-"+ +g)};this.lis.bind("mouseover.tabs",function(){k("hover",d(this))});this.lis.bind("mouseout.tabs",function(){n("hover",d(this))});this.anchors.bind("focus.tabs",function(){k("focus",d(this).closest("li"))});this.anchors.bind("blur.tabs",function(){n("focus",d(this).closest("li"))})}var m,o;if(c.fx)if(d.isArray(c.fx)){m=c.fx[0];o=c.fx[1]}else m=o=c.fx;var r=o?function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.hide().removeClass("ui-tabs-hide").animate(o,o.duration||"normal", +function(){e(f,o);a._trigger("show",null,a._ui(g,f[0]))})}:function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.removeClass("ui-tabs-hide");a._trigger("show",null,a._ui(g,f[0]))},s=m?function(g,f){f.animate(m,m.duration||"normal",function(){a.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");e(f,m);a.element.dequeue("tabs")})}:function(g,f){a.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");a.element.dequeue("tabs")}; +this.anchors.bind(c.event+".tabs",function(){var g=this,f=d(g).closest("li"),i=a.panels.filter(":not(.ui-tabs-hide)"),l=d(a._sanitizeSelector(g.hash));if(f.hasClass("ui-tabs-selected")&&!c.collapsible||f.hasClass("ui-state-disabled")||f.hasClass("ui-state-processing")||a.panels.filter(":animated").length||a._trigger("select",null,a._ui(this,l[0]))===false){this.blur();return false}c.selected=a.anchors.index(this);a.abort();if(c.collapsible)if(f.hasClass("ui-tabs-selected")){c.selected=-1;c.cookie&& +a._cookie(c.selected,c.cookie);a.element.queue("tabs",function(){s(g,i)}).dequeue("tabs");this.blur();return false}else if(!i.length){c.cookie&&a._cookie(c.selected,c.cookie);a.element.queue("tabs",function(){r(g,l)});a.load(a.anchors.index(this));this.blur();return false}c.cookie&&a._cookie(c.selected,c.cookie);if(l.length){i.length&&a.element.queue("tabs",function(){s(g,i)});a.element.queue("tabs",function(){r(g,l)});a.load(a.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier."; +d.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},_getIndex:function(b){if(typeof b=="string")b=this.anchors.index(this.anchors.filter("[href$="+b+"]"));return b},destroy:function(){var b=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var e= +d.data(this,"href.tabs");if(e)this.href=e;var a=d(this).unbind(".tabs");d.each(["href","load","cache"],function(c,h){a.removeData(h+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){d.data(this,"destroy.tabs")?d(this).remove():d(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});b.cookie&&this._cookie(null,b.cookie);return this},add:function(b, +e,a){if(a===p)a=this.anchors.length;var c=this,h=this.options;e=d(h.tabTemplate.replace(/#\{href\}/g,b).replace(/#\{label\}/g,e));b=!b.indexOf("#")?b.replace("#",""):this._tabId(d("a",e)[0]);e.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var j=d("#"+b);j.length||(j=d(h.panelTemplate).attr("id",b).data("destroy.tabs",true));j.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(a>=this.lis.length){e.appendTo(this.list);j.appendTo(this.list[0].parentNode)}else{e.insertBefore(this.lis[a]); +j.insertBefore(this.panels[a])}h.disabled=d.map(h.disabled,function(k){return k>=a?++k:k});this._tabify();if(this.anchors.length==1){h.selected=0;e.addClass("ui-tabs-selected ui-state-active");j.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){c._trigger("show",null,c._ui(c.anchors[0],c.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[a],this.panels[a]));return this},remove:function(b){b=this._getIndex(b);var e=this.options,a=this.lis.eq(b).remove(),c=this.panels.eq(b).remove(); +if(a.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(b+(b+1=b?--h:h});this._tabify();this._trigger("remove",null,this._ui(a.find("a")[0],c[0]));return this},enable:function(b){b=this._getIndex(b);var e=this.options;if(d.inArray(b,e.disabled)!=-1){this.lis.eq(b).removeClass("ui-state-disabled");e.disabled=d.grep(e.disabled,function(a){return a!=b});this._trigger("enable",null, +this._ui(this.anchors[b],this.panels[b]));return this}},disable:function(b){b=this._getIndex(b);var e=this.options;if(b!=e.selected){this.lis.eq(b).addClass("ui-state-disabled");e.disabled.push(b);e.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[b],this.panels[b]))}return this},select:function(b){b=this._getIndex(b);if(b==-1)if(this.options.collapsible&&this.options.selected!=-1)b=this.options.selected;else return this;this.anchors.eq(b).trigger(this.options.event+".tabs");return this}, +load:function(b){b=this._getIndex(b);var e=this,a=this.options,c=this.anchors.eq(b)[0],h=d.data(c,"load.tabs");this.abort();if(!h||this.element.queue("tabs").length!==0&&d.data(c,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(b).addClass("ui-state-processing");if(a.spinner){var j=d("span",c);j.data("label.tabs",j.html()).html(a.spinner)}this.xhr=d.ajax(d.extend({},a.ajaxOptions,{url:h,success:function(k,n){d(e._sanitizeSelector(c.hash)).html(k);e._cleanup();a.cache&&d.data(c,"cache.tabs", +true);e._trigger("load",null,e._ui(e.anchors[b],e.panels[b]));try{a.ajaxOptions.success(k,n)}catch(m){}},error:function(k,n){e._cleanup();e._trigger("load",null,e._ui(e.anchors[b],e.panels[b]));try{a.ajaxOptions.error(k,n,b,c)}catch(m){}}}));e.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},url:function(b, +e){this.anchors.eq(b).removeData("cache.tabs").data("load.tabs",e);return this},length:function(){return this.anchors.length}});d.extend(d.ui.tabs,{version:"1.8.6"});d.extend(d.ui.tabs.prototype,{rotation:null,rotate:function(b,e){var a=this,c=this.options,h=a._rotate||(a._rotate=function(j){clearTimeout(a.rotation);a.rotation=setTimeout(function(){var k=c.selected;a.select(++k')}function E(a,b){d.extend(a, +b);for(var c in b)if(b[c]==null||b[c]==G)a[c]=b[c];return a}d.extend(d.ui,{datepicker:{version:"1.8.6"}});var y=(new Date).getTime();d.extend(K.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){E(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]= +f}}}e=a.nodeName.toLowerCase();f=e=="div"||e=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var i=this._newInst(d(a),f);i.settings=d.extend({},b||{},c||{});if(e=="input")this._connectDatepicker(a,i);else f&&this._inlineDatepicker(a,i)},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:d('
    ')}}, +_connectDatepicker:function(a,b){var c=d(a);b.append=d([]);b.trigger=d([]);if(!c.hasClass(this.markerClassName)){this._attachments(c,b);c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});this._autoSize(b);d.data(a,"datepicker",b)}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&& +b.append.remove();if(c){b.append=d(''+c+"");a[e?"before":"after"](b.append)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();c=this._get(b,"showOn");if(c=="focus"||c=="both")a.focus(this._showDatepicker);if(c=="button"||c=="both"){c=this._get(b,"buttonText");var f=this._get(b,"buttonImage");b.trigger=d(this._get(b,"buttonImageOnly")?d("").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('').addClass(this._triggerClass).html(f== +""?c:d("").attr({src:f,alt:c,title:c})));a[e?"before":"after"](b.trigger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker():d.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var e=function(f){for(var h=0,i=0,g=0;gh){h=f[g].length;i=g}return i};b.setMonth(e(this._get(a, +c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,b){var c=d(a);if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});d.data(a,"datepicker",b);this._setDate(b,this._getDefaultDate(b), +true);this._updateDatepicker(b);this._updateAlternate(b)}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;if(!a){this.uuid+=1;this._dialogInput=d('');this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};d.data(this._dialogInput[0],"datepicker",a)}E(a.settings,e||{});b=b&&b.constructor== +Date?this._formatDate(a,b):b;this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=c;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]); +d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();d.removeData(a,"datepicker");if(e=="input"){c.append.remove();c.trigger.remove();b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else if(e=="div"||e=="span")b.removeClass(this.markerClassName).empty()}}, +_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=false;c.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(e=="div"||e=="span")b.children("."+this._inlineClass).children().removeClass("ui-state-disabled");this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f})}},_disableDatepicker:function(a){var b= +d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=true;c.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(e=="div"||e=="span")b.children("."+this._inlineClass).children().addClass("ui-state-disabled");this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a)return false; +for(var b=0;b-1}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal)try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a);d.datepicker._updateAlternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log(b)}return true},_showDatepicker:function(a){a=a.target|| +a;if(a.nodeName.toLowerCase()!="input")a=d("input",a.parentNode)[0];if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a);d.datepicker._curInst&&d.datepicker._curInst!=b&&d.datepicker._curInst.dpDiv.stop(true,true);var c=d.datepicker._get(b,"beforeShow");E(b.settings,c?c.apply(a,[a,b]):{});b.lastVal=null;d.datepicker._lastInput=a;d.datepicker._setDateFromField(b);if(d.datepicker._inDialog)a.value="";if(!d.datepicker._pos){d.datepicker._pos=d.datepicker._findPos(a); +d.datepicker._pos[1]+=a.offsetHeight}var e=false;d(a).parents().each(function(){e|=d(this).css("position")=="fixed";return!e});if(e&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;d.datepicker._pos[1]-=document.documentElement.scrollTop}c={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};d.datepicker._pos=null;b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});d.datepicker._updateDatepicker(b);c=d.datepicker._checkOffset(b,c,e);b.dpDiv.css({position:d.datepicker._inDialog&& +d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});if(!b.inline){c=d.datepicker._get(b,"showAnim");var f=d.datepicker._get(b,"duration"),h=function(){d.datepicker._datepickerShowing=true;var i=d.datepicker._getBorders(b.dpDiv);b.dpDiv.find("iframe.ui-datepicker-cover").css({left:-i[0],top:-i[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})};b.dpDiv.zIndex(d(a).zIndex()+1);d.effects&&d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f, +h):b.dpDiv[c||"show"](c?f:null,h);if(!c||!f)h();b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();d.datepicker._curInst=b}}},_updateDatepicker:function(a){var b=this,c=d.datepicker._getBorders(a.dpDiv);a.dpDiv.empty().append(this._generateHTML(a)).find("iframe.ui-datepicker-cover").css({left:-c[0],top:-c[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()}).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){d(this).removeClass("ui-state-hover"); +this.className.indexOf("ui-datepicker-prev")!=-1&&d(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&d(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",function(){if(!b._isDisabledDatepicker(a.inline?a.dpDiv.parent()[0]:a.input[0])){d(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");d(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&d(this).addClass("ui-datepicker-prev-hover"); +this.className.indexOf("ui-datepicker-next")!=-1&&d(this).addClass("ui-datepicker-next-hover")}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();c=this._getNumberOfMonths(a);var e=c[1];e>1?a.dpDiv.addClass("ui-datepicker-multi-"+e).css("width",17*e+"em"):a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");a.dpDiv[(c[0]!=1||c[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"); +a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input.focus()},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]||c};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),h=a.input?a.input.outerWidth():0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(), +k=document.documentElement.clientHeight+d(document).scrollTop();b.left-=this._get(a,"isRTL")?e-h:0;b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;b.top-=c&&b.top==a.input.offset().top+i?d(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>g&&g>e?Math.abs(b.left+e-g):0);b.top-=Math.min(b.top,b.top+f>k&&k>f?Math.abs(f+i):0);return b},_findPos:function(a){for(var b=this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1);)a=a[b?"previousSibling":"nextSibling"]; +a=d(a).offset();return[a.left,a.top]},_hideDatepicker:function(a){var b=this._curInst;if(!(!b||a&&b!=d.data(a,"datepicker")))if(this._datepickerShowing){a=this._get(b,"showAnim");var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b);this._curInst=null};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);a||e();if(a=this._get(b,"onClose"))a.apply(b.input?b.input[0]:null,[b.input?b.input.val(): +"",b]);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(d.datepicker._curInst){a=d(a.target);a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&& +!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()}},_adjustDate:function(a,b,c){a=d(a);var e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):0),c);this._updateDatepicker(e)}},_gotoToday:function(a){a=d(a);var b=this._getInst(a[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth; +b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();b.drawMonth=b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=d(a);var e=this._getInst(a[0]);e._selectingMonthYear=false;e["selected"+(c=="M"?"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(a)},_clickMonthYear:function(a){var b= +this._getInst(d(a)[0]);b.input&&b._selectingMonthYear&&setTimeout(function(){b.input.focus()},0);b._selectingMonthYear=!b._selectingMonthYear},_selectDay:function(a,b,c,e){var f=d(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);f.selectedDay=f.currentDay=d("a",e).html();f.selectedMonth=f.currentMonth=b;f.selectedYear=f.currentYear=c;this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))}},_clearDate:function(a){a= +d(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){a=this._getInst(d(a)[0]);b=b!=null?b:this._formatDate(a);a.input&&a.input.val(b);this._updateAlternate(a);var c=this._get(a,"onSelect");if(c)c.apply(a.input?a.input[0]:null,[b,a]);else a.input&&a.input.trigger("change");if(a.inline)this._updateDatepicker(a);else{this._hideDatepicker();this._lastInput=a.input[0];typeof a.input[0]!="object"&&a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var b=this._get(a, +"altField");if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));d(b).each(function(){d(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/864E5)/7)+1},parseDate:function(a,b,c){if(a==null||b==null)throw"Invalid arguments";b=typeof b== +"object"?b.toString():b+"";if(b=="")return null;for(var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff,f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,k=c=-1,l=-1,u=-1,j=false,o=function(p){(p=z+1 +-1){k=1;l=u;do{e=this._getDaysInMonth(c,k-1);if(l<=e)break;k++;l-=e}while(1)}v=this._daylightSavingAdjust(new Date(c,k-1,l));if(v.getFullYear()!=c||v.getMonth()+1!=k||v.getDate()!=l)throw"Invalid date";return v},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24* +60*60*1E7,formatDate:function(a,b,c){if(!b)return"";var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;c=(c?c.monthNames:null)||this._defaults.monthNames;var i=function(o){(o=j+112?a.getHours()+2:0);return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||h!=a.selectedYear)&&!c)this._notifyChange(a);this._adjustInstDate(a);if(a.input)a.input.val(e? +"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),k= +this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),j=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");g=a.drawMonth-g;var m=a.drawYear;if(g<0){g+=12;m--}if(o){var n=this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));for(n=j&&nn;){g--;if(g<0){g=11;m--}}}a.drawMonth=g;a.drawYear=m;n=this._get(a, +"prevText");n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-k,1)),this._getFormatConfig(a));n=this._canAdjustMonth(a,-1,m,g)?''+n+"":f?"":''+ +n+"";var r=this._get(a,"nextText");r=!h?r:this.formatDate(r,this._daylightSavingAdjust(new Date(m,g+k,1)),this._getFormatConfig(a));f=this._canAdjustMonth(a,+1,m,g)?''+r+"":f?"":''+r+"";k=this._get(a,"currentText");r=this._get(a,"gotoCurrent")&&a.currentDay?u:b;k=!h?k:this.formatDate(k,r,this._getFormatConfig(a));h=!a.inline?'":"";e=e?'
    '+(c?h:"")+(this._isInRange(a,r)?'":"")+(c?"":h)+"
    ":"";h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;k=this._get(a,"showWeek");r=this._get(a,"dayNames");this._get(a,"dayNamesShort");var s=this._get(a,"dayNamesMin"),z=this._get(a,"monthNames"),v=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),w=this._get(a,"showOtherMonths"),H=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var L=this._getDefaultDate(a),I="",C=0;C1)switch(D){case 0:x+=" ui-datepicker-group-first";t=" ui-corner-"+(c?"right":"left");break;case i[1]-1:x+=" ui-datepicker-group-last";t=" ui-corner-"+(c?"left":"right");break;default:x+=" ui-datepicker-group-middle";t="";break}x+='">'}x+='
    '+(/all|left/.test(t)&&C==0?c? +f:n:"")+(/all|right/.test(t)&&C==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,j,o,C>0||D>0,z,v)+'
    ';var A=k?'":"";for(t=0;t<7;t++){var q=(t+h)%7;A+="=5?' class="ui-datepicker-week-end"':"")+'>'+s[q]+""}x+=A+"";A=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth)a.selectedDay=Math.min(a.selectedDay, +A);t=(this._getFirstDayOfMonth(m,g)-h+7)%7;A=l?6:Math.ceil((t+A)/7);q=this._daylightSavingAdjust(new Date(m,g,1-t));for(var O=0;O";var P=!k?"":'";for(t=0;t<7;t++){var F=p?p.apply(a.input?a.input[0]:null,[q]):[true,""],B=q.getMonth()!=g,J=B&&!H||!F[0]||j&&qo;P+='";q.setDate(q.getDate()+1);q=this._daylightSavingAdjust(q)}x+=P+""}g++;if(g>11){g=0;m++}x+="
    '+this._get(a,"weekHeader")+"
    '+this._get(a,"calculateWeek")(q)+""+(B&&!w?" ":J?''+q.getDate()+ +"":''+q.getDate()+"")+"
    "+(l?""+(i[0]>0&&D==i[1]-1?'
    ':""):"");M+=x}I+=M}I+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'': +"");a._keyEvent=false;return I},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var k=this._get(a,"changeMonth"),l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),j='
    ',o="";if(h||!k)o+=''+i[b]+"";else{i=e&&e.getFullYear()==c;var m=f&&f.getFullYear()==c;o+='"}u||(j+=o+(h||!(k&&l)?" ":""));if(h||!l)j+=''+c+"";else{g=this._get(a,"yearRange").split(":");var r=(new Date).getFullYear();i=function(s){s=s.match(/c[+-].*/)?c+parseInt(s.substring(1),10):s.match(/[+-].*/)?r+parseInt(s,10):parseInt(s,10);return isNaN(s)?r:s};b=i(g[0]);g=Math.max(b, +i(g[1]||""));b=e?Math.max(b,e.getFullYear()):b;g=f?Math.min(g,f.getFullYear()):g;for(j+='"}j+=this._get(a,"yearSuffix");if(u)j+=(h||!(k&&l)?" ":"")+o;j+="
    ";return j},_adjustInstDate:function(a,b,c){var e= +a.drawYear+(c=="Y"?b:0),f=a.drawMonth+(c=="M"?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();if(c=="M"||c=="Y")this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");b=c&&ba?a:b},_notifyChange:function(a){var b=this._get(a, +"onChangeMonthYear");if(b)b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a); +c=this._daylightSavingAdjust(new Date(c,e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a, +"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});d.fn.datepicker= +function(a){if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);d.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget"))return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b));if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string")return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b)); +return this.each(function(){typeof a=="string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)})};d.datepicker=new K;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.6";window["DP_jQuery_"+y]=d})(jQuery); +;/* + * jQuery UI Progressbar 1.8.6 + * + * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Progressbar + * + * Depends: + * jquery.ui.core.js + * jquery.ui.widget.js + */ +(function(b,c){b.widget("ui.progressbar",{options:{value:0},min:0,max:100,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":this._value()});this.valueDiv=b("
    ").appendTo(this.element);this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"); +this.valueDiv.remove();b.Widget.prototype.destroy.apply(this,arguments)},value:function(a){if(a===c)return this._value();this._setOption("value",a);return this},_setOption:function(a,d){if(a==="value"){this.options.value=d;this._refreshValue();this._trigger("change");this._value()===this.max&&this._trigger("complete")}b.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var a=this.options.value;if(typeof a!=="number")a=0;return Math.min(this.max,Math.max(this.min,a))},_refreshValue:function(){var a= +this.value();this.valueDiv.toggleClass("ui-corner-right",a===this.max).width(a+"%");this.element.attr("aria-valuenow",a)}});b.extend(b.ui.progressbar,{version:"1.8.6"})})(jQuery); +;/* + * jQuery UI Effects 1.8.6 + * + * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Effects/ + */ +jQuery.effects||function(f,j){function m(c){var a;if(c&&c.constructor==Array&&c.length==3)return c;if(a=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c))return[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10)];if(a=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c))return[parseFloat(a[1])*2.55,parseFloat(a[2])*2.55,parseFloat(a[3])*2.55];if(a=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c))return[parseInt(a[1], +16),parseInt(a[2],16),parseInt(a[3],16)];if(a=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(c))return n.transparent;return n[f.trim(c).toLowerCase()]}function s(c,a){var b;do{b=f.curCSS(c,a);if(b!=""&&b!="transparent"||f.nodeName(c,"body"))break;a="backgroundColor"}while(c=c.parentNode);return m(b)}function o(){var c=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle, +a={},b,d;if(c&&c.length&&c[0]&&c[c[0]])for(var e=c.length;e--;){b=c[e];if(typeof c[b]=="string"){d=b.replace(/\-(\w)/g,function(g,h){return h.toUpperCase()});a[d]=c[b]}}else for(b in c)if(typeof c[b]==="string")a[b]=c[b];return a}function p(c){var a,b;for(a in c){b=c[a];if(b==null||f.isFunction(b)||a in t||/scrollbar/.test(a)||!/color/i.test(a)&&isNaN(parseFloat(b)))delete c[a]}return c}function u(c,a){var b={_:0},d;for(d in a)if(c[d]!=a[d])b[d]=a[d];return b}function k(c,a,b,d){if(typeof c=="object"){d= +a;b=null;a=c;c=a.effect}if(f.isFunction(a)){d=a;b=null;a={}}if(typeof a=="number"||f.fx.speeds[a]){d=b;b=a;a={}}if(f.isFunction(b)){d=b;b=null}a=a||{};b=b||a.duration;b=f.fx.off?0:typeof b=="number"?b:f.fx.speeds[b]||f.fx.speeds._default;d=d||a.complete;return[c,a,b,d]}function l(c){if(!c||typeof c==="number"||f.fx.speeds[c])return true;if(typeof c==="string"&&!f.effects[c])return true;return false}f.effects={};f.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor", +"borderColor","color","outlineColor"],function(c,a){f.fx.step[a]=function(b){if(!b.colorInit){b.start=s(b.elem,a);b.end=m(b.end);b.colorInit=true}b.elem.style[a]="rgb("+Math.max(Math.min(parseInt(b.pos*(b.end[0]-b.start[0])+b.start[0],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[1]-b.start[1])+b.start[1],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[2]-b.start[2])+b.start[2],10),255),0)+")"}});var n={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0, +0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211], +lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},q=["add","remove","toggle"],t={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};f.effects.animateClass=function(c,a,b,d){if(f.isFunction(b)){d= +b;b=null}return this.each(function(){var e=f(this),g=e.attr("style")||" ",h=p(o.call(this)),r,v=e.attr("className");f.each(q,function(w,i){c[i]&&e[i+"Class"](c[i])});r=p(o.call(this));e.attr("className",v);e.animate(u(h,r),a,b,function(){f.each(q,function(w,i){c[i]&&e[i+"Class"](c[i])});if(typeof e.attr("style")=="object"){e.attr("style").cssText="";e.attr("style").cssText=g}else e.attr("style",g);d&&d.apply(this,arguments)})})};f.fn.extend({_addClass:f.fn.addClass,addClass:function(c,a,b,d){return a? +f.effects.animateClass.apply(this,[{add:c},a,b,d]):this._addClass(c)},_removeClass:f.fn.removeClass,removeClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{remove:c},a,b,d]):this._removeClass(c)},_toggleClass:f.fn.toggleClass,toggleClass:function(c,a,b,d,e){return typeof a=="boolean"||a===j?b?f.effects.animateClass.apply(this,[a?{add:c}:{remove:c},b,d,e]):this._toggleClass(c,a):f.effects.animateClass.apply(this,[{toggle:c},a,b,d])},switchClass:function(c,a,b,d,e){return f.effects.animateClass.apply(this, +[{add:a,remove:c},b,d,e])}});f.extend(f.effects,{version:"1.8.6",save:function(c,a){for(var b=0;b").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});c.wrap(b);b=c.parent();if(c.css("position")=="static"){b.css({position:"relative"});c.css({position:"relative"})}else{f.extend(a, +{position:c.css("position"),zIndex:c.css("z-index")});f.each(["top","left","bottom","right"],function(d,e){a[e]=c.css(e);if(isNaN(parseInt(a[e],10)))a[e]="auto"});c.css({position:"relative",top:0,left:0})}return b.css(a).show()},removeWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent().replaceWith(c);return c},setTransition:function(c,a,b,d){d=d||{};f.each(a,function(e,g){unit=c.cssUnit(g);if(unit[0]>0)d[g]=unit[0]*b+unit[1]});return d}});f.fn.extend({effect:function(c){var a= +k.apply(this,arguments),b={options:a[1],duration:a[2],callback:a[3]};a=b.options.mode;var d=f.effects[c];if(f.fx.off||!d)return a?this[a](b.duration,b.callback):this.each(function(){b.callback&&b.callback.call(this)});return d.call(this,b)},_show:f.fn.show,show:function(c){if(l(c))return this._show.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="show";return this.effect.apply(this,a)}},_hide:f.fn.hide,hide:function(c){if(l(c))return this._hide.apply(this,arguments);else{var a= +k.apply(this,arguments);a[1].mode="hide";return this.effect.apply(this,a)}},__toggle:f.fn.toggle,toggle:function(c){if(l(c)||typeof c==="boolean"||f.isFunction(c))return this.__toggle.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="toggle";return this.effect.apply(this,a)}},cssUnit:function(c){var a=this.css(c),b=[];f.each(["em","px","%","pt"],function(d,e){if(a.indexOf(e)>0)b=[parseFloat(a),e]});return b}});f.easing.jswing=f.easing.swing;f.extend(f.easing,{def:"easeOutQuad",swing:function(c, +a,b,d,e){return f.easing[f.easing.def](c,a,b,d,e)},easeInQuad:function(c,a,b,d,e){return d*(a/=e)*a+b},easeOutQuad:function(c,a,b,d,e){return-d*(a/=e)*(a-2)+b},easeInOutQuad:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a+b;return-d/2*(--a*(a-2)-1)+b},easeInCubic:function(c,a,b,d,e){return d*(a/=e)*a*a+b},easeOutCubic:function(c,a,b,d,e){return d*((a=a/e-1)*a*a+1)+b},easeInOutCubic:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a+b;return d/2*((a-=2)*a*a+2)+b},easeInQuart:function(c,a,b,d,e){return d* +(a/=e)*a*a*a+b},easeOutQuart:function(c,a,b,d,e){return-d*((a=a/e-1)*a*a*a-1)+b},easeInOutQuart:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a+b;return-d/2*((a-=2)*a*a*a-2)+b},easeInQuint:function(c,a,b,d,e){return d*(a/=e)*a*a*a*a+b},easeOutQuint:function(c,a,b,d,e){return d*((a=a/e-1)*a*a*a*a+1)+b},easeInOutQuint:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a*a+b;return d/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(c,a,b,d,e){return-d*Math.cos(a/e*(Math.PI/2))+d+b},easeOutSine:function(c, +a,b,d,e){return d*Math.sin(a/e*(Math.PI/2))+b},easeInOutSine:function(c,a,b,d,e){return-d/2*(Math.cos(Math.PI*a/e)-1)+b},easeInExpo:function(c,a,b,d,e){return a==0?b:d*Math.pow(2,10*(a/e-1))+b},easeOutExpo:function(c,a,b,d,e){return a==e?b+d:d*(-Math.pow(2,-10*a/e)+1)+b},easeInOutExpo:function(c,a,b,d,e){if(a==0)return b;if(a==e)return b+d;if((a/=e/2)<1)return d/2*Math.pow(2,10*(a-1))+b;return d/2*(-Math.pow(2,-10*--a)+2)+b},easeInCirc:function(c,a,b,d,e){return-d*(Math.sqrt(1-(a/=e)*a)-1)+b},easeOutCirc:function(c, +a,b,d,e){return d*Math.sqrt(1-(a=a/e-1)*a)+b},easeInOutCirc:function(c,a,b,d,e){if((a/=e/2)<1)return-d/2*(Math.sqrt(1-a*a)-1)+b;return d/2*(Math.sqrt(1-(a-=2)*a)+1)+b},easeInElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h").css({position:"absolute",visibility:"visible",left:-f*(h/d),top:-e*(i/c)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:h/d,height:i/c,left:g.left+f*(h/d)+(a.options.mode=="show"?(f-Math.floor(d/2))*(h/d):0),top:g.top+e*(i/c)+(a.options.mode=="show"?(e-Math.floor(c/2))*(i/c):0),opacity:a.options.mode=="show"?0:1}).animate({left:g.left+f*(h/d)+(a.options.mode=="show"?0:(f-Math.floor(d/2))*(h/d)),top:g.top+ +e*(i/c)+(a.options.mode=="show"?0:(e-Math.floor(c/2))*(i/c)),opacity:a.options.mode=="show"?1:0},a.duration||500);setTimeout(function(){a.options.mode=="show"?b.css({visibility:"visible"}):b.css({visibility:"visible"}).hide();a.callback&&a.callback.apply(b[0]);b.dequeue();j("div.ui-effects-explode").remove()},a.duration||500)})}})(jQuery); +;/* + * jQuery UI Effects Fade 1.8.6 + * + * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Effects/Fade + * + * Depends: + * jquery.effects.core.js + */ +(function(b){b.effects.fade=function(a){return this.queue(function(){var c=b(this),d=b.effects.setMode(c,a.options.mode||"hide");c.animate({opacity:d},{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){a.callback&&a.callback.apply(this,arguments);c.dequeue()}})})}})(jQuery); +;/* + * jQuery UI Effects Fold 1.8.6 + * + * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Effects/Fold + * + * Depends: + * jquery.effects.core.js + */ +(function(c){c.effects.fold=function(a){return this.queue(function(){var b=c(this),j=["position","top","left"],d=c.effects.setMode(b,a.options.mode||"hide"),g=a.options.size||15,h=!!a.options.horizFirst,k=a.duration?a.duration/2:c.fx.speeds._default/2;c.effects.save(b,j);b.show();var e=c.effects.createWrapper(b).css({overflow:"hidden"}),f=d=="show"!=h,l=f?["width","height"]:["height","width"];f=f?[e.width(),e.height()]:[e.height(),e.width()];var i=/([0-9]+)%/.exec(g);if(i)g=parseInt(i[1],10)/100* +f[d=="hide"?0:1];if(d=="show")e.css(h?{height:0,width:g}:{height:g,width:0});h={};i={};h[l[0]]=d=="show"?f[0]:g;i[l[1]]=d=="show"?f[1]:0;e.animate(h,k,a.options.easing).animate(i,k,a.options.easing,function(){d=="hide"&&b.hide();c.effects.restore(b,j);c.effects.removeWrapper(b);a.callback&&a.callback.apply(b[0],arguments);b.dequeue()})})}})(jQuery); +;/* + * jQuery UI Effects Highlight 1.8.6 + * + * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Effects/Highlight + * + * Depends: + * jquery.effects.core.js + */ +(function(b){b.effects.highlight=function(c){return this.queue(function(){var a=b(this),e=["backgroundImage","backgroundColor","opacity"],d=b.effects.setMode(a,c.options.mode||"show"),f={backgroundColor:a.css("backgroundColor")};if(d=="hide")f.opacity=0;b.effects.save(a,e);a.show().css({backgroundImage:"none",backgroundColor:c.options.color||"#ffff99"}).animate(f,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){d=="hide"&&a.hide();b.effects.restore(a,e);d=="show"&&!b.support.opacity&& +this.style.removeAttribute("filter");c.callback&&c.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery); +;/* + * jQuery UI Effects Pulsate 1.8.6 + * + * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Effects/Pulsate + * + * Depends: + * jquery.effects.core.js + */ +(function(d){d.effects.pulsate=function(a){return this.queue(function(){var b=d(this),c=d.effects.setMode(b,a.options.mode||"show");times=(a.options.times||5)*2-1;duration=a.duration?a.duration/2:d.fx.speeds._default/2;isVisible=b.is(":visible");animateTo=0;if(!isVisible){b.css("opacity",0).show();animateTo=1}if(c=="hide"&&isVisible||c=="show"&&!isVisible)times--;for(c=0;c').appendTo(document.body).addClass(a.options.className).css({top:d.top,left:d.left,height:b.innerHeight(),width:b.innerWidth(),position:"absolute"}).animate(c,a.duration,a.options.easing,function(){f.remove();a.callback&&a.callback.apply(b[0],arguments); +b.dequeue()})})}})(jQuery); +; \ No newline at end of file diff --git a/framework/images/webapp/images/myportal.js b/framework/images/webapp/images/myportal.js index 1b9944cec4..bec475f9d1 100644 --- a/framework/images/webapp/images/myportal.js +++ b/framework/images/webapp/images/myportal.js @@ -20,270 +20,146 @@ //Drag & Drop Functions for myPortal //global Var for controlling hover Boxes -var hoverDivBefore = -1; -var hoverColumnBefore = -1; +var SORTABLE_COLUMN_LIST = null; +var IS_UPDATED = false; +var DESTINATION_COLUMN_ID = null; //init KeyListener -window.onload=function(){ - //Observe - Event.observe(document, "keypress", key_event); - - //set a column droppable when it's empty - checkIfTabelsContainsDivs(); -} - -//if ESC is pressed, remove draged portlet + hoverDiv -function key_event(evt) -{ - if(evt.keyCode == 27) { - //removes the hover div after the portlet is moved to another position - if((hd = document.getElementById('hoverDiv')) != null){ - Droppables.remove(hd); - hd.parentNode.removeChild(hd); - //the global var must disabled - hoverColumnBefore = -1; - hoverDivBefore = -1; - } - } -} - -//makes portlets dragable -function makeDragable(portletId){ - drag = document.getElementById(portletId); - new Draggable(drag, - {revert: true, ghosting: false, reverteffect : - function(drag, top_offset, left_offset){ - new Effect.MoveBy(drag, -top_offset, -left_offset, {duration:0}); - var hd = document.getElementById('hoverDiv'); - if(hd != null){ - Droppables.remove(hd); - hd.parentNode.removeChild(hd); - } +jQuery(document).ready( function() { + // initializ the d_n_d jQuery functions + jQuery("" + SORTABLE_COLUMN_LIST + "").sortable({ + connectWith: ".connectedSortable", + tolerance: "pointer", + dropOnEmpty: true, + cursor: "move", + revert: true, + placeholder: "ui-state-highlight", + forcePlaceholderSize: true, + update: function(event, ui) { + IS_UPDATED = true; + DESTINATION_COLUMN_ID = jQuery(this).attr("id"); + }, + stop: function(event, ui) { + preparePortletBackgroundOrderChange(jQuery("" + SORTABLE_COLUMN_LIST+ "").sortable("toArray", {connected: true}), jQuery(ui.item).attr("id"), DESTINATION_COLUMN_ID); + // reset the flags + IS_UPDATED = false; + DESTINATION_COLUMN_ID = null; } - }); -} - -//makes columns and portlets droppable -function makeDroppable(id){ - //DragDrop mode - var mode = null; - var drop = document.getElementById(id); - if(drop.nodeName == "DIV"){ - Droppables.add(drop, { - accept: ['portlet-config','noClass'], - //Hover effekt - onHover: function(element){ - - //vertical overlapping position - var pos = Position.overlap('vertical', drop); - //gets the position of the droppable element - var hd = document.getElementById('hoverDiv'); - - if(pos >= 0.5){ - mode = "DRAGDROPBEFORE"; - //if the previous DIV is the hoverDiv do nothing - try { - var previous = (drop.previous('DIV')).getAttribute('id'); - } catch (ex) { - previous = 'undi'; - } - - if(previous != 'hoverDiv' && previous != element.id){ - if(hd != null){ - Droppables.remove(hd); - hd.parentNode.removeChild(hd); - } - - //create previewDiv - var divTopOffset = document.getElementById(element.id).offsetHeight; - var hoverDiv = document.createElement('DIV'); - hoverDiv.setAttribute('style', 'height: ' + divTopOffset + 'px; border: 1px dashed #aaa; background:#ffffff; margin-bottom: 5px;') - hoverDiv.setAttribute('id', 'hoverDiv'); - var elem = document.getElementById(id); - - //inseret Before - elem.parentNode.insertBefore(hoverDiv, elem); - hoverDivBefore = id; - - //the new div have to be droppable - Droppables.add(hoverDiv, { - onDrop: function(element) { - getDestinationInformationPortlets(element.id, id, mode); - } - }); - } - }else if(pos < 0.5){ - mode = "DRAGDROPAFTER"; - //if the next DIV is the hoverDiv do nothing - try { - var next = (drop.next('DIV')).getAttribute('id'); - }catch (ex){ - next = 'undi'; - } - - if(next != 'hoverDiv' && next != element.id){ - if(hd != null){ - Droppables.remove(hd); - hd.parentNode.removeChild(hd); - } - - //create previewDiv - var divTopOffset = document.getElementById(element.id).offsetHeight; - var hoverDiv = document.createElement('DIV'); - hoverDiv.setAttribute('style', 'height: ' + divTopOffset + 'px; border: 1px dashed #aaa; background:#ffffff; margin-bottom: 5px;') - hoverDiv.setAttribute('id', 'hoverDiv'); - var elem = document.getElementById(id); - - //insert After - elem.parentNode.insertBefore(hoverDiv, elem.nextSibling); - hoverDivBefore = id; - - //the new div have to be droppable - Droppables.add(hoverDiv, { - onDrop: function(element) { - getDestinationInformationPortlets(element.id, id, mode); - } - }); - } - } - }, - onDrop: function(element) { - getDestinationInformationPortlets(element.id, id, mode); - } - }); - }else{ - mode = "DRAGDROPBOTTOM"; - //Makes ColumnDroppable - Droppables.add(drop, { - accept: ['portlet-config','noClass'], - //Hover effekt - onHover: function(element){ - var hd = document.getElementById('hoverDiv'); - if(hd != null){ - hd.parentNode.removeChild(hd); - } - - //create previewDiv - var divTopOffset = document.getElementById(element.id).offsetHeight; - var hoverDiv = document.createElement('DIV'); - hoverDiv.setAttribute('style', 'height: ' + divTopOffset + 'px; border: 1px dashed #aaa; background:#ffffff; margin-bottom: 5px;') - hoverDiv.setAttribute('id', 'hoverDiv'); - var elem = document.getElementById(id); - - //insert After - elem.appendChild(hoverDiv); - hoverDivBefore = id; - - //the new div have to be droppable - Droppables.add(hoverDiv, { - onDrop: function(element) { - getDestinationInformationColumn(element.id, id); - } - }); - }, - - onDrop: function(element) { - getDestinationInformationColumn(element.id, id); - } - }); - } - -} - -//calls ajax request for dropping container on a portlet -function getDestinationInformationPortlets(originId, destinationId, mode){ - loadingImage(); - - // extract integer part of arguments for freeMove_ - var destId = destinationId.replace(/.*_([0-9]+)/, "\$1"); - var origId = originId.replace(/.*_([0-9]+)/, "\$1"); + }).disableSelection(); - var move = document.forms['freeMove_' + destId]; - var d_portalPageId = move.elements['portalPageId'].value; - var d_portalPortletId = move.elements['portalPortletId'].value; - var d_portletSeqId = move.elements['portletSeqId'].value; +}); - var move = document.forms['freeMove_' + origId]; - var o_portalPageId = move.elements['portalPageId'].value; - var o_portalPortletId = move.elements['portalPortletId'].value; - var o_portletSeqId = move.elements['portletSeqId'].value; - - new Ajax.Request('/myportal/control/updatePortalPagePortletSeqAjax',{ - method: "post", - parameters: {o_portalPageId: o_portalPageId, o_portalPortletId: o_portalPortletId, o_portletSeqId: o_portletSeqId, - d_portalPageId: d_portalPageId, d_portalPortletId: d_portalPortletId, d_portletSeqId: d_portletSeqId, mode: mode }, - - onLoading: function(transport){ - }, - - onSuccess: function(transport){ - var destination = document.getElementById(destinationId); - var origin = document.getElementById(originId); - - if(mode == 'DRAGDROPBEFORE'){ - destination.parentNode.insertBefore(origin, destination); - }else if(mode == 'DRAGDROPAFTER'){ - destination.parentNode.insertBefore(origin, destination.nextSibling); - } - //Fix for layout Bug - origin.style.left = destination.style.left; - origin.style.top = 0; - }, - - onComplete: function(transport){ - onCompleteRequest(); +function preparePortletBackgroundOrderChange(serializedDate, dragedItemId, destinationColumnId) { + if (!IS_UPDATED) { + return; + } + + // split the portal column id + destinationColumnId = destinationColumnId.split("_")[1]; + + // make clean array and remove all fields with empty values + var dataArray = [] + jQuery.each(serializedDate, function(index, value) { + if (value.length) { + dataArray.push(value); } }); + + // find the new position of the moved element in the array + var beforeItem = null; + var afterItem = null; + var currentItem = null; + + jQuery.each(dataArray, function(index, value) { + if (dragedItemId == value) { + // create object for the item before the current dropped object if not undefined + var dataArrayValue = dataArray[index-1]; + if (dataArrayValue != undefined) { + beforeItem = jQuery("#" + dataArrayValue); + } + + // create object for the item after the current dropped object if not undefined + dataArrayValue = dataArray[index+1]; + if (dataArrayValue != undefined) { + afterItem = jQuery("#" + dataArrayValue); + } + + // create object for the current dropped object + currentItem = jQuery("#" + value); + + // break the jQuery.each loop + return false; + } + }); + + // check if the before or after Item is still in the new column to get a reference Object in this column + var nextObjectToDroppedItem = null; + + // check if the item is moved to another column + if (destinationColumnId != null && destinationColumnId != currentItem.attr("columnseqid") ) { + //mode can be "BEFORE" (for adding the item before the nextObjectToDroppedItem), "AFTER" (for adding the item after the nextObjectToDroppedItem) or "NEW" (when the item is the first one in the list and should be added to the top) + var mode = null; + if ((beforeItem == null || destinationColumnId != beforeItem.attr("columnseqid")) && (afterItem == null || destinationColumnId != afterItem.attr("columnseqid"))) { + // the moved object entered an empty list + mode = "NEW"; + } else if (beforeItem != null && destinationColumnId == beforeItem.attr("columnseqid")) { + // the moved object entered in a new list and should be moved after this beforeItem + nextObjectToDroppedItem = beforeItem; + mode = "AFTER"; + } else if (afterItem != null && destinationColumnId == afterItem.attr("columnseqid")) { + // the moved object entered in a new list and should be moved before this beforeItem + nextObjectToDroppedItem = afterItem; + mode = "BEFORE"; + } + + } else { + // if the item is moved in the same column get the before and/or after element + if (beforeItem.attr("id") != null) { + mode = "AFTER"; + nextObjectToDroppedItem = beforeItem; + } else if (afterItem.attr("id") != null){ + mode = "BEFORE"; + nextObjectToDroppedItem = afterItem; + } + } + + // call the update service + updatePortletOrder(currentItem, nextObjectToDroppedItem, mode, destinationColumnId); + + // change the html attributes after the move + currentItem.attr({"columnseqid": destinationColumnId}); + + } -//calls ajax request for dropping container on a column -function getDestinationInformationColumn(id, destination){ - loadingImage(); - - var destiCol = destination; - var move = document.forms['freeMove_' + id]; - var portalPageId = move.elements['portalPageId'].value; - var portalPortletId = move.elements['portalPortletId'].value; - var portletSeqId = move.elements['portletSeqId'].value; - var mode = move.elements['mode'].value; - - new Ajax.Request('/myportal/control/updatePortalPagePortletSeqAjax',{ - method: "post", - parameters: {destinationColumn: destination, o_portalPageId: portalPageId, o_portalPortletId: portalPortletId, o_portletSeqId: portletSeqId, mode: "DRAGDROPBOTTOM"}, - - onLoading: function(transport){ - }, - - onSuccess: function(transport){ - //loadingImage(); - var destination = document.getElementById(destiCol); - var origin = document.getElementById(id); - destination.appendChild(origin); - - origin.style.left = destination.style.left; - origin.style.top = 0; - }, - - onComplete: function(transport){ +function updatePortletOrder(currentItem, nextObjectToDroppedItem, mode, destinationColumn) { + onStartRequest(); + // create a JSON request object with the needed information + var requestData = { + mode: mode, + destinationColumn: destinationColumn, + o_portalPageId: currentItem.attr("portalpageid"), + o_portalPortletId: currentItem.attr("portalportletid"), + o_portletSeqId: currentItem.attr("portletseqid"), + d_portalPageId: (nextObjectToDroppedItem != null) ? nextObjectToDroppedItem.attr("portalpageid") : null, + d_portalPortletId: (nextObjectToDroppedItem != null) ? nextObjectToDroppedItem.attr("portalportletid") : null, + d_portletSeqId: (nextObjectToDroppedItem != null) ? nextObjectToDroppedItem.attr("portletseqid") : null + }; + + jQuery.ajax({ + url: "/myportal/control/updatePortalPagePortletSeqAjax", + data: requestData, + dataType: "JSON", + type: "POST", + success: function(data){ onCompleteRequest(); } }); + } //removes the loading image function onCompleteRequest() { - - //removes the hover div after the portlet is moved to another position - if((hd = document.getElementById('hoverDiv')) != null){ - hd.parentNode.removeChild(hd); - //the global var must disabled - hoverColumnBefore = -1; - hoverDivBefore = -1; - } - - //set a column droppable when it's empty - checkIfTabelsContainsDivs() - var loading = document.getElementById("loading"); if(loading != null){ //IE Fix (IE treats DOM objects and Javascript objects separately, and you can't extend the DOM objects using Object.prototype) @@ -302,7 +178,7 @@ function getDocHeight() { } //displays the loading image -function loadingImage() { +function onStartRequest() { var p = document.createElement("div"); p.setAttribute("id", "loading"); p.setAttribute("style", "height: " + getDocHeight() + "px;" ) @@ -311,55 +187,8 @@ function loadingImage() { img.setAttribute("src", "/images/loader.gif"); img.setAttribute("id", "loaderImg"); - //place loader image somwhere in the middle of the viewport - img.setAttribute("style", "top: " + (document.viewport.getHeight() / 2 + document.viewport.getScrollOffsets().top - 50) + "px;"); - p.appendChild(img); var container = document.getElementById("portalContainerId"); container.appendChild(p); } - -//set the MousePointer -function setMousePointer(elem){ - var elements = document.getElementById(elem).getElementsByTagName('div'); - for(i=0; i"; - } catch(e) {} - var element = parentElement.firstChild || null; - - // see if browser added wrapping tags - if(element && (element.tagName.toUpperCase() != elementName)) - element = element.getElementsByTagName(elementName)[0]; - - // fallback to createElement approach - if(!element) element = document.createElement(elementName); - - // abort if nothing could be created - if(!element) return; - - // attributes (or text) - if(arguments[1]) - if(this._isStringOrNumber(arguments[1]) || - (arguments[1] instanceof Array) || - arguments[1].tagName) { - this._children(element, arguments[1]); - } else { - var attrs = this._attributes(arguments[1]); - if(attrs.length) { - try { // prevent IE "feature": http://dev.rubyonrails.org/ticket/2707 - parentElement.innerHTML = "<" +elementName + " " + - attrs + ">"; - } catch(e) {} - element = parentElement.firstChild || null; - // workaround firefox 1.0.X bug - if(!element) { - element = document.createElement(elementName); - for(attr in arguments[1]) - element[attr == 'class' ? 'className' : attr] = arguments[1][attr]; - } - if(element.tagName.toUpperCase() != elementName) - element = parentElement.getElementsByTagName(elementName)[0]; - } - } - - // text, or array of children - if(arguments[2]) - this._children(element, arguments[2]); - - return element; - }, - _text: function(text) { - return document.createTextNode(text); - }, - - ATTR_MAP: { - 'className': 'class', - 'htmlFor': 'for' - }, - - _attributes: function(attributes) { - var attrs = []; - for(attribute in attributes) - attrs.push((attribute in this.ATTR_MAP ? this.ATTR_MAP[attribute] : attribute) + - '="' + attributes[attribute].toString().escapeHTML().gsub(/"/,'"') + '"'); - return attrs.join(" "); - }, - _children: function(element, children) { - if(children.tagName) { - element.appendChild(children); - return; - } - if(typeof children=='object') { // array can hold nodes and text - children.flatten().each( function(e) { - if(typeof e=='object') - element.appendChild(e) - else - if(Builder._isStringOrNumber(e)) - element.appendChild(Builder._text(e)); - }); - } else - if(Builder._isStringOrNumber(children)) - element.appendChild(Builder._text(children)); - }, - _isStringOrNumber: function(param) { - return(typeof param=='string' || typeof param=='number'); - }, - build: function(html) { - var element = this.node('div'); - $(element).update(html.strip()); - return element.down(); - }, - dump: function(scope) { - if(typeof scope != 'object' && typeof scope != 'function') scope = window; //global scope - - var tags = ("A ABBR ACRONYM ADDRESS APPLET AREA B BASE BASEFONT BDO BIG BLOCKQUOTE BODY " + - "BR BUTTON CAPTION CENTER CITE CODE COL COLGROUP DD DEL DFN DIR DIV DL DT EM FIELDSET " + - "FONT FORM FRAME FRAMESET H1 H2 H3 H4 H5 H6 HEAD HR HTML I IFRAME IMG INPUT INS ISINDEX "+ - "KBD LABEL LEGEND LI LINK MAP MENU META NOFRAMES NOSCRIPT OBJECT OL OPTGROUP OPTION P "+ - "PARAM PRE Q S SAMP SCRIPT SELECT SMALL SPAN STRIKE STRONG STYLE SUB SUP TABLE TBODY TD "+ - "TEXTAREA TFOOT TH THEAD TITLE TR TT U UL VAR").split(/\s+/); - - tags.each( function(tag){ - scope[tag] = function() { - return Builder.node.apply(Builder, [tag].concat($A(arguments))); - } - }); - } -} diff --git a/framework/images/webapp/images/prototypejs/control.progress_bar.js b/framework/images/webapp/images/prototypejs/control.progress_bar.js deleted file mode 100644 index 9967961084..0000000000 --- a/framework/images/webapp/images/prototypejs/control.progress_bar.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * @author Ryan Johnson - * @copyright 2007 LivePipe LLC - * @package Control.ProgressBar - * @license MIT - * @url http://livepipe.net/projects/control_progress_bar/ - * @version 1.0.1 - */ - -if(typeof(Control) == 'undefined') - Control = {}; -Control.ProgressBar = Class.create(); -Object.extend(Control.ProgressBar.prototype,{ - container: false, - containerWidth: 0, - progressContainer: false, - progress: 0, - executer: false, - active: false, - poller: false, - initialize: function(container,options){ - this.container = $(container); - this.containerWidth = this.container.getDimensions().width - (parseInt(this.container.getStyle('border-right-width').replace(/px/,'')) + parseInt(this.container.getStyle('border-left-width').replace(/px/,''))); - this.progressContainer = $(document.createElement('div')); - this.progressContainer.setStyle({ - width: this.containerWidth + 'px', - height: '100%', - position: 'absolute', - top: '0px', - right: '0px' - }); - this.container.appendChild(this.progressContainer); - this.options = { - afterChange: Prototype.emptyFunction, - interval: 0.25, - step: 1, - classNames: { - active: 'progress_bar_active', - inactive: 'progress_bar_inactive' - } - }; - Object.extend(this.options,options || {}); - this.container.addClassName(this.options.classNames.inactive); - this.active = false; - }, - setProgress: function(value){ - this.progress = value; - this.draw(); - if(this.progress >= 100) - this.stop(false); - this.notify('afterChange',this.progress,this.active); - }, - poll: function(url,interval){ - this.active = true; - this.poller = new PeriodicalExecuter(function(){ - new Ajax.Request(url,{ - onSuccess: function(request){ - this.setProgress(parseInt(request.responseText)); - if(!this.active) - this.poller.stop(); - }.bind(this) - }); - }.bind(this),interval || 3); - }, - start: function(){ - this.active = true; - this.container.removeClassName(this.options.classNames.inactive); - this.container.addClassName(this.options.classNames.active); - this.executer = new PeriodicalExecuter(this.step.bind(this,this.options.step),this.options.interval); - }, - stop: function(reset){ - this.active = false; - if(this.executer) - this.executer.stop(); - this.container.removeClassName(this.options.classNames.active); - this.container.addClassName(this.options.classNames.inactive); - if(typeof(reset) == 'undefined' || reset == true) - this.reset(); - }, - step: function(amount){ - this.active = true; - this.setProgress(Math.min(100,this.progress + amount)); - }, - reset: function(){ - this.active = false; - this.setProgress(0); - }, - draw: function(){ - this.progressContainer.setStyle({ - width: (this.containerWidth - Math.floor((this.progress / 100) * this.containerWidth)) + 'px' - }); - }, - notify: function(event_name){ - if(this.options[event_name]) - return [this.options[event_name].apply(this.options[event_name],$A(arguments).slice(1))]; - } -}); -if(typeof(Object.Event) != 'undefined') - Object.Event.extend(Control.ProgressBar); \ No newline at end of file diff --git a/framework/images/webapp/images/prototypejs/controls.js b/framework/images/webapp/images/prototypejs/controls.js deleted file mode 100644 index 8b72145d52..0000000000 --- a/framework/images/webapp/images/prototypejs/controls.js +++ /dev/null @@ -1,1038 +0,0 @@ -// script.aculo.us controls.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008 - -// Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) -// (c) 2005-2007 Ivan Krstic (http://blogs.law.harvard.edu/ivan) -// (c) 2005-2007 Jon Tirsen (http://www.tirsen.com) -// Contributors: -// Richard Livsey -// Rahul Bhargava -// Rob Wills -// -// script.aculo.us is freely distributable under the terms of an MIT-style license. -// For details, see the script.aculo.us web site: http://script.aculo.us/ - -// Autocompleter.Base handles all the autocompletion functionality -// that's independent of the data source for autocompletion. This -// includes drawing the autocompletion menu, observing keyboard -// and mouse events, and similar. -// -// Specific autocompleters need to provide, at the very least, -// a getUpdatedChoices function that will be invoked every time -// the text inside the monitored textbox changes. This method -// should get the text for which to provide autocompletion by -// invoking this.getToken(), NOT by directly accessing -// this.element.value. This is to allow incremental tokenized -// autocompletion. Specific auto-completion logic (AJAX, etc) -// belongs in getUpdatedChoices. -// -// Tokenized incremental autocompletion is enabled automatically -// when an autocompleter is instantiated with the 'tokens' option -// in the options parameter, e.g.: -// new Ajax.Autocompleter('id','upd', '/url/', { tokens: ',' }); -// will incrementally autocomplete with a comma as the token. -// Additionally, ',' in the above example can be replaced with -// a token array, e.g. { tokens: [',', '\n'] } which -// enables autocompletion on multiple tokens. This is most -// useful when one of the tokens is \n (a newline), as it -// allows smart autocompletion after linebreaks. - -if(typeof Effect == 'undefined') - throw("controls.js requires including script.aculo.us' effects.js library"); - -var Autocompleter = { } -Autocompleter.Base = Class.create({ - baseInitialize: function(element, update, options) { - element = $(element) - this.element = element; - this.update = $(update); - this.hasFocus = false; - this.changed = false; - this.active = false; - this.index = 0; - this.entryCount = 0; - this.oldElementValue = this.element.value; - - if(this.setOptions) - this.setOptions(options); - else - this.options = options || { }; - - this.options.paramName = this.options.paramName || this.element.name; - this.options.tokens = this.options.tokens || []; - this.options.frequency = this.options.frequency || 0.4; - this.options.minChars = this.options.minChars || 1; - this.options.onShow = this.options.onShow || - function(element, update){ - if(!update.style.position || update.style.position=='absolute') { - update.style.position = 'absolute'; - Position.clone(element, update, { - setHeight: false, - offsetTop: element.offsetHeight - }); - } - Effect.Appear(update,{duration:0.15}); - }; - this.options.onHide = this.options.onHide || - function(element, update){ new Effect.Fade(update,{duration:0.15}) }; - - if(typeof(this.options.tokens) == 'string') - this.options.tokens = new Array(this.options.tokens); - // Force carriage returns as token delimiters anyway - if (!this.options.tokens.include('\n')) - this.options.tokens.push('\n'); - - this.observer = null; - - this.element.setAttribute('autocomplete','off'); - - Element.hide(this.update); - - Event.observe(this.element, 'blur', this.onBlur.bindAsEventListener(this)); - Event.observe(this.element, 'keydown', this.onKeyPress.bindAsEventListener(this)); - }, - - show: function() { - if(Element.getStyle(this.update, 'display')=='none') this.options.onShow(this.element, this.update); - if(!this.iefix && - (Prototype.Browser.IE) && - (Element.getStyle(this.update, 'position')=='absolute')) { - new Insertion.After(this.update, - ''); - this.iefix = $(this.update.id+'_iefix'); - } - if(this.iefix) setTimeout(this.fixIEOverlapping.bind(this), 50); - }, - - fixIEOverlapping: function() { - Position.clone(this.update, this.iefix, {setTop:(!this.update.style.height)}); - this.iefix.style.zIndex = 1; - this.update.style.zIndex = 2; - Element.show(this.iefix); - }, - - hide: function() { - this.stopIndicator(); - if(Element.getStyle(this.update, 'display')!='none') this.options.onHide(this.element, this.update); - if(this.iefix) Element.hide(this.iefix); - }, - - startIndicator: function() { - if(this.options.indicator) Element.show(this.options.indicator); - }, - - stopIndicator: function() { - if(this.options.indicator) Element.hide(this.options.indicator); - }, - - onKeyPress: function(event) { - if(this.active) - switch(event.keyCode) { - case Event.KEY_TAB: - case Event.KEY_RETURN: - this.selectEntry(); - Event.stop(event); - case Event.KEY_ESC: - this.hide(); - this.active = false; - Event.stop(event); - return; - case Event.KEY_LEFT: - case Event.KEY_RIGHT: - return; - case Event.KEY_UP: - this.markPrevious(); - this.render(); - Event.stop(event); - return; - case Event.KEY_DOWN: - this.markNext(); - this.render(); - Event.stop(event); - return; - } - else - if(event.keyCode==Event.KEY_TAB || event.keyCode==Event.KEY_RETURN || - (Prototype.Browser.WebKit > 0 && event.keyCode == 0)) return; - - this.changed = true; - this.hasFocus = true; - - if(this.observer) clearTimeout(this.observer); - this.observer = - setTimeout(this.onObserverEvent.bind(this), this.options.frequency*1000); - }, - - activate: function() { - this.changed = false; - this.hasFocus = true; - this.getUpdatedChoices(); - }, - - onHover: function(event) { - var element = Event.findElement(event, 'LI'); - if(this.index != element.autocompleteIndex) - { - this.index = element.autocompleteIndex; - this.render(); - } - Event.stop(event); - }, - - onClick: function(event) { - var element = Event.findElement(event, 'LI'); - this.index = element.autocompleteIndex; - this.selectEntry(); - this.hide(); - }, - - onBlur: function(event) { - // needed to make click events working - setTimeout(this.hide.bind(this), 250); - this.hasFocus = false; - this.active = false; - }, - - render: function() { - if(this.entryCount > 0) { - for (var i = 0; i < this.entryCount; i++) - this.index==i ? - Element.addClassName(this.getEntry(i),"selected") : - Element.removeClassName(this.getEntry(i),"selected"); - if(this.hasFocus) { - this.show(); - this.active = true; - } - } else { - this.active = false; - this.hide(); - } - }, - - markPrevious: function() { - if(this.index > 0) this.index-- - else this.index = this.entryCount-1; - this.getEntry(this.index).scrollIntoView(true); - }, - - markNext: function() { - if(this.index < this.entryCount-1) this.index++ - else this.index = 0; - this.getEntry(this.index).scrollIntoView(false); - }, - - getEntry: function(index) { - return this.update.down().childNodes[index]; - }, - - getCurrentEntry: function() { - return this.getEntry(this.index); - }, - - selectEntry: function() { - this.active = false; - this.updateElement(this.getCurrentEntry()); - }, - - updateElement: function(selectedElement) { - if (this.options.updateElement) { - this.options.updateElement(selectedElement); - return; - } - var value = ''; - if (this.options.select) { - var nodes = $(selectedElement).select('.' + this.options.select) || []; - if(nodes.length>0) value = Element.collectTextNodes(nodes[0], this.options.select); - } else - value = Element.collectTextNodesIgnoreClass(selectedElement, 'informal'); - - var bounds = this.getTokenBounds(); - if (bounds[0] != -1) { - var newValue = this.element.value.substr(0, bounds[0]); - var whitespace = this.element.value.substr(bounds[0]).match(/^\s+/); - if (whitespace) - newValue += whitespace[0]; - this.element.value = newValue + value + this.element.value.substr(bounds[1]); - } else { - this.element.value = value; - } - this.oldElementValue = this.element.value; - this.element.focus(); - - if (this.options.afterUpdateElement) - this.options.afterUpdateElement(this.element, selectedElement); - }, - - updateChoices: function(choices) { - var elem = new Element('div').insert(choices); - var elemType = elem.firstDescendant().tagName; - if('UL' != elemType) { - this.stopIndicator(); - this.index = 0; - return; - } - if(!this.changed && this.hasFocus) { - this.update.innerHTML = choices; - Element.cleanWhitespace(this.update); - Element.cleanWhitespace(this.update.down()); - - if(this.update.firstChild && this.update.down().childNodes) { - this.entryCount = - this.update.down().childNodes.length; - for (var i = 0; i < this.entryCount; i++) { - var entry = this.getEntry(i); - entry.autocompleteIndex = i; - this.addObservers(entry); - } - } else { - this.entryCount = 0; - } - - this.stopIndicator(); - this.index = 0; - - if(this.entryCount==1 && this.options.autoSelect) { - this.selectEntry(); - this.hide(); - } else { - this.render(); - } - } - }, - - addObservers: function(element) { - Event.observe(element, "mouseover", this.onHover.bindAsEventListener(this)); - Event.observe(element, "click", this.onClick.bindAsEventListener(this)); - }, - - onObserverEvent: function() { - this.changed = false; - this.tokenBounds = null; - if(this.getToken().length>=this.options.minChars) { - this.getUpdatedChoices(); - } else { - this.active = false; - this.hide(); - } - this.oldElementValue = this.element.value; - }, - - getToken: function() { - var bounds = this.getTokenBounds(); - return this.element.value.substring(bounds[0], bounds[1]).strip(); - }, - - getTokenBounds: function() { - if (null != this.tokenBounds) return this.tokenBounds; - var value = this.element.value; - if (value.strip().empty()) return [-1, 0]; - var diff = arguments.callee.getFirstDifferencePos(value, this.oldElementValue); - var offset = (diff == this.oldElementValue.length ? 1 : 0); - var prevTokenPos = -1, nextTokenPos = value.length; - var tp; - for (var index = 0, l = this.options.tokens.length; index < l; ++index) { - tp = value.lastIndexOf(this.options.tokens[index], diff + offset - 1); - if (tp > prevTokenPos) prevTokenPos = tp; - tp = value.indexOf(this.options.tokens[index], diff + offset); - if (-1 != tp && tp < nextTokenPos) nextTokenPos = tp; - } - return (this.tokenBounds = [prevTokenPos + 1, nextTokenPos]); - } -}); - -Autocompleter.Base.prototype.getTokenBounds.getFirstDifferencePos = function(newS, oldS) { - var boundary = Math.min(newS.length, oldS.length); - for (var index = 0; index < boundary; ++index) - if (newS[index] != oldS[index]) - return index; - return boundary; -}; - -Ajax.Autocompleter = Class.create(Autocompleter.Base, { - initialize: function(element, update, url, options) { - this.baseInitialize(element, update, options); - this.options.asynchronous = true; - this.options.onComplete = this.onComplete.bind(this); - this.options.defaultParams = this.options.parameters || null; - this.url = url; - }, - - getUpdatedChoices: function() { - this.startIndicator(); - - var entry = encodeURIComponent(this.options.paramName) + '=' + - encodeURIComponent(this.getToken()); - - this.options.parameters = this.options.callback ? - this.options.callback(this.element, entry) : entry; - - if(this.options.defaultParams) - this.options.parameters += '&' + this.options.defaultParams; - - new Ajax.Request(this.url, this.options); - }, - - onComplete: function(request) { - this.updateChoices(request.responseText); - } -}); - -// The local array autocompleter. Used when you'd prefer to -// inject an array of autocompletion options into the page, rather -// than sending out Ajax queries, which can be quite slow sometimes. -// -// The constructor takes four parameters. The first two are, as usual, -// the id of the monitored textbox, and id of the autocompletion menu. -// The third is the array you want to autocomplete from, and the fourth -// is the options block. -// -// Extra local autocompletion options: -// - choices - How many autocompletion choices to offer -// -// - partialSearch - If false, the autocompleter will match entered -// text only at the beginning of strings in the -// autocomplete array. Defaults to true, which will -// match text at the beginning of any *word* in the -// strings in the autocomplete array. If you want to -// search anywhere in the string, additionally set -// the option fullSearch to true (default: off). -// -// - fullSsearch - Search anywhere in autocomplete array strings. -// -// - partialChars - How many characters to enter before triggering -// a partial match (unlike minChars, which defines -// how many characters are required to do any match -// at all). Defaults to 2. -// -// - ignoreCase - Whether to ignore case when autocompleting. -// Defaults to true. -// -// It's possible to pass in a custom function as the 'selector' -// option, if you prefer to write your own autocompletion logic. -// In that case, the other options above will not apply unless -// you support them. - -Autocompleter.Local = Class.create(Autocompleter.Base, { - initialize: function(element, update, data, options) { - this.baseInitialize(element, update, options); - this.options.data = data; - }, - - getUpdatedChoices: function() { - this.updateChoices(this.options.selector(this)); - }, - - setOptions: function(options) { - this.options = Object.extend({ - choices: 10, - partialSearch: true, - partialChars: 2, - ignoreCase: true, - fullSearch: false, - selector: function(instance) { - var ret = []; // Beginning matches - var partial = []; // Inside matches - var entry = instance.getToken(); - var count = 0; - - if (Object.isHash(instance.options.data)) { - var keys = []; - keys = instance.options.data.keys(); - for (var i = 0; i < keys.length && - ret.length < instance.options.choices ; i++) { - - var elem = instance.options.data.get(keys[i]); - var foundPos = instance.options.ignoreCase ? - elem.toLowerCase().indexOf(entry.toLowerCase()) : - elem.indexOf(entry); - - while (foundPos != -1) { - if (foundPos == 0 && elem.length != entry.length) { - ret.push("
  • " + elem.substr(0, entry.length) + "" + - elem.substr(entry.length) + "
  • "); - break; - } else if (entry.length >= instance.options.partialChars && - instance.options.partialSearch && foundPos != -1) { - if (instance.options.fullSearch || /\s/.test(elem.substr(foundPos-1,1))) { - partial.push("
  • " + elem.substr(0, foundPos) + "" + - elem.substr(foundPos, entry.length) + "" + elem.substr( - foundPos + entry.length) + "
  • "); - break; - } - } - - foundPos = instance.options.ignoreCase ? - elem.toLowerCase().indexOf(entry.toLowerCase(), foundPos + 1) : - elem.indexOf(entry, foundPos + 1); - - } - } - if (partial.length) - ret = ret.concat(partial.slice(0, instance.options.choices - ret.length)) - return "
      " + ret.join('') + "
    "; - } else { - for (var i = 0; i < instance.options.data.length && - ret.length < instance.options.choices ; i++) { - - var elem = instance.options.data[i]; - var foundPos = instance.options.ignoreCase ? - elem.toLowerCase().indexOf(entry.toLowerCase()) : - elem.indexOf(entry); - - while (foundPos != -1) { - if (foundPos == 0 && elem.length != entry.length) { - ret.push("
  • " + elem.substr(0, entry.length) + "" + - elem.substr(entry.length) + "
  • "); - break; - } else if (entry.length >= instance.options.partialChars && - instance.options.partialSearch && foundPos != -1) { - if (instance.options.fullSearch || /\s/.test(elem.substr(foundPos-1,1))) { - partial.push("
  • " + elem.substr(0, foundPos) + "" + - elem.substr(foundPos, entry.length) + "" + elem.substr( - foundPos + entry.length) + "
  • "); - break; - } - } - - foundPos = instance.options.ignoreCase ? - elem.toLowerCase().indexOf(entry.toLowerCase(), foundPos + 1) : - elem.indexOf(entry, foundPos + 1); - - } - } - if (partial.length) - ret = ret.concat(partial.slice(0, instance.options.choices - ret.length)) - return "
      " + ret.join('') + "
    "; - } - } - }, options || { }); - } -}); - -// AJAX in-place editor and collection editor -// Full rewrite by Christophe Porteneuve (April 2007). - -// Use this if you notice weird scrolling problems on some browsers, -// the DOM might be a bit confused when this gets called so do this -// waits 1 ms (with setTimeout) until it does the activation -Field.scrollFreeActivate = function(field) { - setTimeout(function() { - Field.activate(field); - }, 1); -} - -Ajax.InPlaceEditor = Class.create({ - initialize: function(element, url, options) { - this.url = url; - this.element = element = $(element); - this.prepareOptions(); - this._controls = { }; - this._paramValue = ''; - arguments.callee.dealWithDeprecatedOptions(options); // DEPRECATION LAYER!!! - Object.extend(this.options, options || { }); - if (!this.options.formId && this.element.id) { - this.options.formId = this.element.id + '-inplaceeditor'; - if ($(this.options.formId)) - this.options.formId = ''; - } - if (this.options.externalControl) - this.options.externalControl = $(this.options.externalControl); - if (!this.options.externalControl) - this.options.externalControlOnly = false; - this._originalBackground = this.element.getStyle('background-color') || 'transparent'; - this.element.title = this.options.clickToEditText; - this._boundCancelHandler = this.handleFormCancellation.bind(this); - this._boundComplete = (this.options.onComplete || Prototype.emptyFunction).bind(this); - this._boundFailureHandler = this.handleAJAXFailure.bind(this); - this._boundSubmitHandler = this.handleFormSubmission.bind(this); - this._boundWrapperHandler = this.wrapUp.bind(this); - this._boundSuccessHandler = this.updateElement.bind(this); - this.registerListeners(); - }, - checkForEscapeOrReturn: function(e) { - if (!this._editing || e.ctrlKey || e.altKey || e.shiftKey) return; - if (Event.KEY_ESC == e.keyCode) - this.handleFormCancellation(e); - else if (Event.KEY_RETURN == e.keyCode) - this.handleFormSubmission(e); - }, - createControl: function(mode, handler, extraClasses) { - var control = this.options[mode + 'Control']; - var text = this.options[mode + 'Text']; - if ('button' == control) { - var btn = document.createElement('input'); - btn.type = 'submit'; - btn.value = text; - btn.className = 'editor_' + mode + '_button'; - if ('cancel' == mode) - btn.onclick = this._boundCancelHandler; - this._form.appendChild(btn); - this._controls[mode] = btn; - } else if ('link' == control) { - var link = document.createElement('a'); - link.href = '#'; - link.appendChild(document.createTextNode(text)); - link.onclick = 'cancel' == mode ? this._boundCancelHandler : this._boundSubmitHandler; - link.className = 'editor_' + mode + '_link'; - if (extraClasses) - link.className += ' ' + extraClasses; - this._form.appendChild(link); - this._controls[mode] = link; - } - }, - createEditField: function() { - var text = (this.options.loadTextURL ? this.options.loadingText : this.getText()); - var fld; - if (1 >= this.options.rows && !/\r|\n/.test(this.getText())) { - fld = document.createElement('input'); - fld.type = 'text'; - var size = this.options.size || this.options.cols || 0; - if (0 < size) fld.size = size; - } else { - fld = document.createElement('textarea'); - fld.rows = (1 >= this.options.rows ? this.options.autoRows : this.options.rows); - fld.cols = this.options.cols || 40; - } - fld.name = this.options.paramName; - fld.value = text; // No HTML breaks conversion anymore - fld.className = 'editor_field'; - if (this.options.submitOnBlur) - fld.onblur = this._boundSubmitHandler; - this._controls.editor = fld; - if (this.options.loadTextURL) - this.loadExternalText(); - this._form.appendChild(this._controls.editor); - },createHiddenFieldParam: function() { - var allparam=this.url.substring(this.url.indexOf('?')+1,this.url.length); - var strparam=allparam.split('&'); - if(strparam.length>0){ - var fldhd; - for(var i=0;i0) - drop = Droppables.findDeepestChild(affected); - - if(this.last_active && this.last_active != drop) this.deactivate(this.last_active); - if (drop) { - Position.within(drop.element, point[0], point[1]); - if(drop.onHover) - drop.onHover(element, drop.element, Position.overlap(drop.overlap, drop.element)); - - if (drop != this.last_active) Droppables.activate(drop); - } - }, - - fire: function(event, element) { - if(!this.last_active) return; - Position.prepare(); - - if (this.isAffected([Event.pointerX(event), Event.pointerY(event)], element, this.last_active)) - if (this.last_active.onDrop) { - this.last_active.onDrop(element, this.last_active.element, event); - return true; - } - }, - - reset: function() { - if(this.last_active) - this.deactivate(this.last_active); - } -} - -var Draggables = { - drags: [], - observers: [], - - register: function(draggable) { - if(this.drags.length == 0) { - this.eventMouseUp = this.endDrag.bindAsEventListener(this); - this.eventMouseMove = this.updateDrag.bindAsEventListener(this); - this.eventKeypress = this.keyPress.bindAsEventListener(this); - - Event.observe(document, "mouseup", this.eventMouseUp); - Event.observe(document, "mousemove", this.eventMouseMove); - Event.observe(document, "keypress", this.eventKeypress); - } - this.drags.push(draggable); - }, - - unregister: function(draggable) { - this.drags = this.drags.reject(function(d) { return d==draggable }); - if(this.drags.length == 0) { - Event.stopObserving(document, "mouseup", this.eventMouseUp); - Event.stopObserving(document, "mousemove", this.eventMouseMove); - Event.stopObserving(document, "keypress", this.eventKeypress); - } - }, - - activate: function(draggable) { - if(draggable.options.delay) { - this._timeout = setTimeout(function() { - Draggables._timeout = null; - window.focus(); - Draggables.activeDraggable = draggable; - }.bind(this), draggable.options.delay); - } else { - window.focus(); // allows keypress events if window isn't currently focused, fails for Safari - this.activeDraggable = draggable; - } - }, - - deactivate: function() { - this.activeDraggable = null; - }, - - updateDrag: function(event) { - if(!this.activeDraggable) return; - var pointer = [Event.pointerX(event), Event.pointerY(event)]; - // Mozilla-based browsers fire successive mousemove events with - // the same coordinates, prevent needless redrawing (moz bug?) - if(this._lastPointer && (this._lastPointer.inspect() == pointer.inspect())) return; - this._lastPointer = pointer; - - this.activeDraggable.updateDrag(event, pointer); - }, - - endDrag: function(event) { - if(this._timeout) { - clearTimeout(this._timeout); - this._timeout = null; - } - if(!this.activeDraggable) return; - this._lastPointer = null; - this.activeDraggable.endDrag(event); - this.activeDraggable = null; - }, - - keyPress: function(event) { - if(this.activeDraggable) - this.activeDraggable.keyPress(event); - }, - - addObserver: function(observer) { - this.observers.push(observer); - this._cacheObserverCallbacks(); - }, - - removeObserver: function(element) { // element instead of observer fixes mem leaks - this.observers = this.observers.reject( function(o) { return o.element==element }); - this._cacheObserverCallbacks(); - }, - - notify: function(eventName, draggable, event) { // 'onStart', 'onEnd', 'onDrag' - if(this[eventName+'Count'] > 0) - this.observers.each( function(o) { - if(o[eventName]) o[eventName](eventName, draggable, event); - }); - if(draggable.options[eventName]) draggable.options[eventName](draggable, event); - }, - - _cacheObserverCallbacks: function() { - ['onStart','onEnd','onDrag'].each( function(eventName) { - Draggables[eventName+'Count'] = Draggables.observers.select( - function(o) { return o[eventName]; } - ).length; - }); - } -} - -/*--------------------------------------------------------------------------*/ - -var Draggable = Class.create({ - initialize: function(element) { - var defaults = { - handle: false, - reverteffect: function(element, top_offset, left_offset) { - var dur = Math.sqrt(Math.abs(top_offset^2)+Math.abs(left_offset^2))*0.02; - new Effect.Move(element, { x: -left_offset, y: -top_offset, duration: dur, - queue: {scope:'_draggable', position:'end'} - }); - }, - endeffect: function(element) { - var toOpacity = Object.isNumber(element._opacity) ? element._opacity : 1.0; - new Effect.Opacity(element, {duration:0.2, from:0.7, to:toOpacity, - queue: {scope:'_draggable', position:'end'}, - afterFinish: function(){ - Draggable._dragging[element] = false - } - }); - }, - zindex: 1000, - revert: false, - quiet: false, - scroll: false, - scrollSensitivity: 20, - scrollSpeed: 15, - snap: false, // false, or xy or [x,y] or function(x,y){ return [x,y] } - delay: 0 - }; - - if(!arguments[1] || Object.isUndefined(arguments[1].endeffect)) - Object.extend(defaults, { - starteffect: function(element) { - element._opacity = Element.getOpacity(element); - Draggable._dragging[element] = true; - new Effect.Opacity(element, {duration:0.2, from:element._opacity, to:0.7}); - } - }); - - var options = Object.extend(defaults, arguments[1] || { }); - - this.element = $(element); - - if(options.handle && Object.isString(options.handle)) - this.handle = this.element.down('.'+options.handle, 0); - - if(!this.handle) this.handle = $(options.handle); - if(!this.handle) this.handle = this.element; - - if(options.scroll && !options.scroll.scrollTo && !options.scroll.outerHTML) { - options.scroll = $(options.scroll); - this._isScrollChild = Element.childOf(this.element, options.scroll); - } - - Element.makePositioned(this.element); // fix IE - - this.options = options; - this.dragging = false; - - this.eventMouseDown = this.initDrag.bindAsEventListener(this); - Event.observe(this.handle, "mousedown", this.eventMouseDown); - - Draggables.register(this); - }, - - destroy: function() { - Event.stopObserving(this.handle, "mousedown", this.eventMouseDown); - Draggables.unregister(this); - }, - - currentDelta: function() { - return([ - parseInt(Element.getStyle(this.element,'left') || '0'), - parseInt(Element.getStyle(this.element,'top') || '0')]); - }, - - initDrag: function(event) { - if(!Object.isUndefined(Draggable._dragging[this.element]) && - Draggable._dragging[this.element]) return; - if(Event.isLeftClick(event)) { - // abort on form elements, fixes a Firefox issue - var src = Event.element(event); - if((tag_name = src.tagName.toUpperCase()) && ( - tag_name=='INPUT' || - tag_name=='SELECT' || - tag_name=='OPTION' || - tag_name=='BUTTON' || - tag_name=='TEXTAREA')) return; - - var pointer = [Event.pointerX(event), Event.pointerY(event)]; - var pos = Position.cumulativeOffset(this.element); - this.offset = [0,1].map( function(i) { return (pointer[i] - pos[i]) }); - - Draggables.activate(this); - Event.stop(event); - } - }, - - startDrag: function(event) { - this.dragging = true; - if(!this.delta) - this.delta = this.currentDelta(); - - if(this.options.zindex) { - this.originalZ = parseInt(Element.getStyle(this.element,'z-index') || 0); - this.element.style.zIndex = this.options.zindex; - } - - if(this.options.ghosting) { - this._clone = this.element.cloneNode(true); - this.element._originallyAbsolute = (this.element.getStyle('position') == 'absolute'); - if (!this.element._originallyAbsolute) - Position.absolutize(this.element); - this.element.parentNode.insertBefore(this._clone, this.element); - } - - if(this.options.scroll) { - if (this.options.scroll == window) { - var where = this._getWindowScroll(this.options.scroll); - this.originalScrollLeft = where.left; - this.originalScrollTop = where.top; - } else { - this.originalScrollLeft = this.options.scroll.scrollLeft; - this.originalScrollTop = this.options.scroll.scrollTop; - } - } - - Draggables.notify('onStart', this, event); - - if(this.options.starteffect) this.options.starteffect(this.element); - }, - - updateDrag: function(event, pointer) { - if(!this.dragging) this.startDrag(event); - - if(!this.options.quiet){ - Position.prepare(); - Droppables.show(pointer, this.element); - } - - Draggables.notify('onDrag', this, event); - - this.draw(pointer); - if(this.options.change) this.options.change(this); - - if(this.options.scroll) { - this.stopScrolling(); - - var p; - if (this.options.scroll == window) { - with(this._getWindowScroll(this.options.scroll)) { p = [ left, top, left+width, top+height ]; } - } else { - p = Position.page(this.options.scroll); - p[0] += this.options.scroll.scrollLeft + Position.deltaX; - p[1] += this.options.scroll.scrollTop + Position.deltaY; - p.push(p[0]+this.options.scroll.offsetWidth); - p.push(p[1]+this.options.scroll.offsetHeight); - } - var speed = [0,0]; - if(pointer[0] < (p[0]+this.options.scrollSensitivity)) speed[0] = pointer[0]-(p[0]+this.options.scrollSensitivity); - if(pointer[1] < (p[1]+this.options.scrollSensitivity)) speed[1] = pointer[1]-(p[1]+this.options.scrollSensitivity); - if(pointer[0] > (p[2]-this.options.scrollSensitivity)) speed[0] = pointer[0]-(p[2]-this.options.scrollSensitivity); - if(pointer[1] > (p[3]-this.options.scrollSensitivity)) speed[1] = pointer[1]-(p[3]-this.options.scrollSensitivity); - this.startScrolling(speed); - } - - // fix AppleWebKit rendering - if(Prototype.Browser.WebKit) window.scrollBy(0,0); - - Event.stop(event); - }, - - finishDrag: function(event, success) { - this.dragging = false; - - if(this.options.quiet){ - Position.prepare(); - var pointer = [Event.pointerX(event), Event.pointerY(event)]; - Droppables.show(pointer, this.element); - } - - if(this.options.ghosting) { - if (!this.element._originallyAbsolute) - Position.relativize(this.element); - delete this.element._originallyAbsolute; - Element.remove(this._clone); - this._clone = null; - } - - var dropped = false; - if(success) { - dropped = Droppables.fire(event, this.element); - if (!dropped) dropped = false; - } - if(dropped && this.options.onDropped) this.options.onDropped(this.element); - Draggables.notify('onEnd', this, event); - - var revert = this.options.revert; - if(revert && Object.isFunction(revert)) revert = revert(this.element); - - var d = this.currentDelta(); - if(revert && this.options.reverteffect) { - if (dropped == 0 || revert != 'failure') - this.options.reverteffect(this.element, - d[1]-this.delta[1], d[0]-this.delta[0]); - } else { - this.delta = d; - } - - if(this.options.zindex) - this.element.style.zIndex = this.originalZ; - - if(this.options.endeffect) - this.options.endeffect(this.element); - - Draggables.deactivate(this); - Droppables.reset(); - }, - - keyPress: function(event) { - if(event.keyCode!=Event.KEY_ESC) return; - this.finishDrag(event, false); - Event.stop(event); - }, - - endDrag: function(event) { - if(!this.dragging) return; - this.stopScrolling(); - this.finishDrag(event, true); - Event.stop(event); - }, - - draw: function(point) { - var pos = Position.cumulativeOffset(this.element); - if(this.options.ghosting) { - var r = Position.realOffset(this.element); - pos[0] += r[0] - Position.deltaX; pos[1] += r[1] - Position.deltaY; - } - - var d = this.currentDelta(); - pos[0] -= d[0]; pos[1] -= d[1]; - - if(this.options.scroll && (this.options.scroll != window && this._isScrollChild)) { - pos[0] -= this.options.scroll.scrollLeft-this.originalScrollLeft; - pos[1] -= this.options.scroll.scrollTop-this.originalScrollTop; - } - - var p = [0,1].map(function(i){ - return (point[i]-pos[i]-this.offset[i]) - }.bind(this)); - - if(this.options.snap) { - if(Object.isFunction(this.options.snap)) { - p = this.options.snap(p[0],p[1],this); - } else { - if(Object.isArray(this.options.snap)) { - p = p.map( function(v, i) { - return (v/this.options.snap[i]).round()*this.options.snap[i] }.bind(this)) - } else { - p = p.map( function(v) { - return (v/this.options.snap).round()*this.options.snap }.bind(this)) - } - }} - - var style = this.element.style; - if((!this.options.constraint) || (this.options.constraint=='horizontal')) - style.left = p[0] + "px"; - if((!this.options.constraint) || (this.options.constraint=='vertical')) - style.top = p[1] + "px"; - - if(style.visibility=="hidden") style.visibility = ""; // fix gecko rendering - }, - - stopScrolling: function() { - if(this.scrollInterval) { - clearInterval(this.scrollInterval); - this.scrollInterval = null; - Draggables._lastScrollPointer = null; - } - }, - - startScrolling: function(speed) { - if(!(speed[0] || speed[1])) return; - this.scrollSpeed = [speed[0]*this.options.scrollSpeed,speed[1]*this.options.scrollSpeed]; - this.lastScrolled = new Date(); - this.scrollInterval = setInterval(this.scroll.bind(this), 10); - }, - - scroll: function() { - var current = new Date(); - var delta = current - this.lastScrolled; - this.lastScrolled = current; - if(this.options.scroll == window) { - with (this._getWindowScroll(this.options.scroll)) { - if (this.scrollSpeed[0] || this.scrollSpeed[1]) { - var d = delta / 1000; - this.options.scroll.scrollTo( left + d*this.scrollSpeed[0], top + d*this.scrollSpeed[1] ); - } - } - } else { - this.options.scroll.scrollLeft += this.scrollSpeed[0] * delta / 1000; - this.options.scroll.scrollTop += this.scrollSpeed[1] * delta / 1000; - } - - Position.prepare(); - Droppables.show(Draggables._lastPointer, this.element); - Draggables.notify('onDrag', this); - if (this._isScrollChild) { - Draggables._lastScrollPointer = Draggables._lastScrollPointer || $A(Draggables._lastPointer); - Draggables._lastScrollPointer[0] += this.scrollSpeed[0] * delta / 1000; - Draggables._lastScrollPointer[1] += this.scrollSpeed[1] * delta / 1000; - if (Draggables._lastScrollPointer[0] < 0) - Draggables._lastScrollPointer[0] = 0; - if (Draggables._lastScrollPointer[1] < 0) - Draggables._lastScrollPointer[1] = 0; - this.draw(Draggables._lastScrollPointer); - } - - if(this.options.change) this.options.change(this); - }, - - _getWindowScroll: function(w) { - var T, L, W, H; - with (w.document) { - if (w.document.documentElement && documentElement.scrollTop) { - T = documentElement.scrollTop; - L = documentElement.scrollLeft; - } else if (w.document.body) { - T = body.scrollTop; - L = body.scrollLeft; - } - if (w.innerWidth) { - W = w.innerWidth; - H = w.innerHeight; - } else if (w.document.documentElement && documentElement.clientWidth) { - W = documentElement.clientWidth; - H = documentElement.clientHeight; - } else { - W = body.offsetWidth; - H = body.offsetHeight - } - } - return { top: T, left: L, width: W, height: H }; - } -}); - -Draggable._dragging = { }; - -/*--------------------------------------------------------------------------*/ - -var SortableObserver = Class.create({ - initialize: function(element, observer) { - this.element = $(element); - this.observer = observer; - this.lastValue = Sortable.serialize(this.element); - }, - - onStart: function() { - this.lastValue = Sortable.serialize(this.element); - }, - - onEnd: function() { - Sortable.unmark(); - if(this.lastValue != Sortable.serialize(this.element)) - this.observer(this.element) - } -}); - -var Sortable = { - SERIALIZE_RULE: /^[^_\-](?:[A-Za-z0-9\-\_]*)[_](.*)$/, - - sortables: { }, - - _findRootElement: function(element) { - while (element.tagName.toUpperCase() != "BODY") { - if(element.id && Sortable.sortables[element.id]) return element; - element = element.parentNode; - } - }, - - options: function(element) { - element = Sortable._findRootElement($(element)); - if(!element) return; - return Sortable.sortables[element.id]; - }, - - destroy: function(element){ - var s = Sortable.options(element); - - if(s) { - Draggables.removeObserver(s.element); - s.droppables.each(function(d){ Droppables.remove(d) }); - s.draggables.invoke('destroy'); - - delete Sortable.sortables[s.element.id]; - } - }, - - create: function(element) { - element = $(element); - var options = Object.extend({ - element: element, - tag: 'li', // assumes li children, override with tag: 'tagname' - dropOnEmpty: false, - tree: false, - treeTag: 'ul', - overlap: 'vertical', // one of 'vertical', 'horizontal' - constraint: 'vertical', // one of 'vertical', 'horizontal', false - containment: element, // also takes array of elements (or id's); or false - handle: false, // or a CSS class - only: false, - delay: 0, - hoverclass: null, - ghosting: false, - quiet: false, - scroll: false, - scrollSensitivity: 20, - scrollSpeed: 15, - format: this.SERIALIZE_RULE, - - // these take arrays of elements or ids and can be - // used for better initialization performance - elements: false, - handles: false, - - onChange: Prototype.emptyFunction, - onUpdate: Prototype.emptyFunction - }, arguments[1] || { }); - - // clear any old sortable with same element - this.destroy(element); - - // build options for the draggables - var options_for_draggable = { - revert: true, - quiet: options.quiet, - scroll: options.scroll, - scrollSpeed: options.scrollSpeed, - scrollSensitivity: options.scrollSensitivity, - delay: options.delay, - ghosting: options.ghosting, - constraint: options.constraint, - handle: options.handle }; - - if(options.starteffect) - options_for_draggable.starteffect = options.starteffect; - - if(options.reverteffect) - options_for_draggable.reverteffect = options.reverteffect; - else - if(options.ghosting) options_for_draggable.reverteffect = function(element) { - element.style.top = 0; - element.style.left = 0; - }; - - if(options.endeffect) - options_for_draggable.endeffect = options.endeffect; - - if(options.zindex) - options_for_draggable.zindex = options.zindex; - - // build options for the droppables - var options_for_droppable = { - overlap: options.overlap, - containment: options.containment, - tree: options.tree, - hoverclass: options.hoverclass, - onHover: Sortable.onHover - } - - var options_for_tree = { - onHover: Sortable.onEmptyHover, - overlap: options.overlap, - containment: options.containment, - hoverclass: options.hoverclass - } - - // fix for gecko engine - Element.cleanWhitespace(element); - - options.draggables = []; - options.droppables = []; - - // drop on empty handling - if(options.dropOnEmpty || options.tree) { - Droppables.add(element, options_for_tree); - options.droppables.push(element); - } - - (options.elements || this.findElements(element, options) || []).each( function(e,i) { - var handle = options.handles ? $(options.handles[i]) : - (options.handle ? $(e).select('.' + options.handle)[0] : e); - options.draggables.push( - new Draggable(e, Object.extend(options_for_draggable, { handle: handle }))); - Droppables.add(e, options_for_droppable); - if(options.tree) e.treeNode = element; - options.droppables.push(e); - }); - - if(options.tree) { - (Sortable.findTreeElements(element, options) || []).each( function(e) { - Droppables.add(e, options_for_tree); - e.treeNode = element; - options.droppables.push(e); - }); - } - - // keep reference - this.sortables[element.id] = options; - - // for onupdate - Draggables.addObserver(new SortableObserver(element, options.onUpdate)); - - }, - - // return all suitable-for-sortable elements in a guaranteed order - findElements: function(element, options) { - return Element.findChildren( - element, options.only, options.tree ? true : false, options.tag); - }, - - findTreeElements: function(element, options) { - return Element.findChildren( - element, options.only, options.tree ? true : false, options.treeTag); - }, - - onHover: function(element, dropon, overlap) { - if(Element.isParent(dropon, element)) return; - - if(overlap > .33 && overlap < .66 && Sortable.options(dropon).tree) { - return; - } else if(overlap>0.5) { - Sortable.mark(dropon, 'before'); - if(dropon.previousSibling != element) { - var oldParentNode = element.parentNode; - element.style.visibility = "hidden"; // fix gecko rendering - dropon.parentNode.insertBefore(element, dropon); - if(dropon.parentNode!=oldParentNode) - Sortable.options(oldParentNode).onChange(element); - Sortable.options(dropon.parentNode).onChange(element); - } - } else { - Sortable.mark(dropon, 'after'); - var nextElement = dropon.nextSibling || null; - if(nextElement != element) { - var oldParentNode = element.parentNode; - element.style.visibility = "hidden"; // fix gecko rendering - dropon.parentNode.insertBefore(element, nextElement); - if(dropon.parentNode!=oldParentNode) - Sortable.options(oldParentNode).onChange(element); - Sortable.options(dropon.parentNode).onChange(element); - } - } - }, - - onEmptyHover: function(element, dropon, overlap) { - var oldParentNode = element.parentNode; - var droponOptions = Sortable.options(dropon); - - if(!Element.isParent(dropon, element)) { - var index; - - var children = Sortable.findElements(dropon, {tag: droponOptions.tag, only: droponOptions.only}); - var child = null; - - if(children) { - var offset = Element.offsetSize(dropon, droponOptions.overlap) * (1.0 - overlap); - - for (index = 0; index < children.length; index += 1) { - if (offset - Element.offsetSize (children[index], droponOptions.overlap) >= 0) { - offset -= Element.offsetSize (children[index], droponOptions.overlap); - } else if (offset - (Element.offsetSize (children[index], droponOptions.overlap) / 2) >= 0) { - child = index + 1 < children.length ? children[index + 1] : null; - break; - } else { - child = children[index]; - break; - } - } - } - - dropon.insertBefore(element, child); - - Sortable.options(oldParentNode).onChange(element); - droponOptions.onChange(element); - } - }, - - unmark: function() { - if(Sortable._marker) Sortable._marker.hide(); - }, - - mark: function(dropon, position) { - // mark on ghosting only - var sortable = Sortable.options(dropon.parentNode); - if(sortable && !sortable.ghosting) return; - - if(!Sortable._marker) { - Sortable._marker = - ($('dropmarker') || Element.extend(document.createElement('DIV'))). - hide().addClassName('dropmarker').setStyle({position:'absolute'}); - document.getElementsByTagName("body").item(0).appendChild(Sortable._marker); - } - var offsets = Position.cumulativeOffset(dropon); - Sortable._marker.setStyle({left: offsets[0]+'px', top: offsets[1] + 'px'}); - - if(position=='after') - if(sortable.overlap == 'horizontal') - Sortable._marker.setStyle({left: (offsets[0]+dropon.clientWidth) + 'px'}); - else - Sortable._marker.setStyle({top: (offsets[1]+dropon.clientHeight) + 'px'}); - - Sortable._marker.show(); - }, - - _tree: function(element, options, parent) { - var children = Sortable.findElements(element, options) || []; - - for (var i = 0; i < children.length; ++i) { - var match = children[i].id.match(options.format); - - if (!match) continue; - - var child = { - id: encodeURIComponent(match ? match[1] : null), - element: element, - parent: parent, - children: [], - position: parent.children.length, - container: $(children[i]).down(options.treeTag) - } - - /* Get the element containing the children and recurse over it */ - if (child.container) - this._tree(child.container, options, child) - - parent.children.push (child); - } - - return parent; - }, - - tree: function(element) { - element = $(element); - var sortableOptions = this.options(element); - var options = Object.extend({ - tag: sortableOptions.tag, - treeTag: sortableOptions.treeTag, - only: sortableOptions.only, - name: element.id, - format: sortableOptions.format - }, arguments[1] || { }); - - var root = { - id: null, - parent: null, - children: [], - container: element, - position: 0 - } - - return Sortable._tree(element, options, root); - }, - - /* Construct a [i] index for a particular node */ - _constructIndex: function(node) { - var index = ''; - do { - if (node.id) index = '[' + node.position + ']' + index; - } while ((node = node.parent) != null); - return index; - }, - - sequence: function(element) { - element = $(element); - var options = Object.extend(this.options(element), arguments[1] || { }); - - return $(this.findElements(element, options) || []).map( function(item) { - return item.id.match(options.format) ? item.id.match(options.format)[1] : ''; - }); - }, - - setSequence: function(element, new_sequence) { - element = $(element); - var options = Object.extend(this.options(element), arguments[2] || { }); - - var nodeMap = { }; - this.findElements(element, options).each( function(n) { - if (n.id.match(options.format)) - nodeMap[n.id.match(options.format)[1]] = [n, n.parentNode]; - n.parentNode.removeChild(n); - }); - - new_sequence.each(function(ident) { - var n = nodeMap[ident]; - if (n) { - n[1].appendChild(n[0]); - delete nodeMap[ident]; - } - }); - }, - - serialize: function(element) { - element = $(element); - var options = Object.extend(Sortable.options(element), arguments[1] || { }); - var name = encodeURIComponent( - (arguments[1] && arguments[1].name) ? arguments[1].name : element.id); - - if (options.tree) { - return Sortable.tree(element, arguments[1]).children.map( function (item) { - return [name + Sortable._constructIndex(item) + "[id]=" + - encodeURIComponent(item.id)].concat(item.children.map(arguments.callee)); - }).flatten().join('&'); - } else { - return Sortable.sequence(element, arguments[1]).map( function(item) { - return name + "[]=" + encodeURIComponent(item); - }).join('&'); - } - } -} - -// Returns true if child is contained within element -Element.isParent = function(child, element) { - if (!child.parentNode || child == element) return false; - if (child.parentNode == element) return true; - return Element.isParent(child.parentNode, element); -} - -Element.findChildren = function(element, only, recursive, tagName) { - if(!element.hasChildNodes()) return null; - tagName = tagName.toUpperCase(); - if(only) only = [only].flatten(); - var elements = []; - $A(element.childNodes).each( function(e) { - if(e.tagName && e.tagName.toUpperCase()==tagName && - (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) - elements.push(e); - if(recursive) { - var grandchildren = Element.findChildren(e, only, recursive, tagName); - if(grandchildren) elements.push(grandchildren); - } - }); - - return (elements.length>0 ? elements.flatten() : []); -} - -Element.offsetSize = function (element, type) { - return element['offset' + ((type=='vertical' || type=='height') ? 'Height' : 'Width')]; -} diff --git a/framework/images/webapp/images/prototypejs/effects.js b/framework/images/webapp/images/prototypejs/effects.js deleted file mode 100644 index efa128ff81..0000000000 --- a/framework/images/webapp/images/prototypejs/effects.js +++ /dev/null @@ -1,1122 +0,0 @@ -// script.aculo.us effects.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008 - -// Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) -// Contributors: -// Justin Palmer (http://encytemedia.com/) -// Mark Pilgrim (http://diveintomark.org/) -// Martin Bialasinki -// -// script.aculo.us is freely distributable under the terms of an MIT-style license. -// For details, see the script.aculo.us web site: http://script.aculo.us/ - -// converts rgb() and #xxx to #xxxxxx format, -// returns self (or first argument) if not convertable -String.prototype.parseColor = function() { - var color = '#'; - if (this.slice(0,4) == 'rgb(') { - var cols = this.slice(4,this.length-1).split(','); - var i=0; do { color += parseInt(cols[i]).toColorPart() } while (++i<3); - } else { - if (this.slice(0,1) == '#') { - if (this.length==4) for(var i=1;i<4;i++) color += (this.charAt(i) + this.charAt(i)).toLowerCase(); - if (this.length==7) color = this.toLowerCase(); - } - } - return (color.length==7 ? color : (arguments[0] || this)); -}; - -/*--------------------------------------------------------------------------*/ - -Element.collectTextNodes = function(element) { - return $A($(element).childNodes).collect( function(node) { - return (node.nodeType==3 ? node.nodeValue : - (node.hasChildNodes() ? Element.collectTextNodes(node) : '')); - }).flatten().join(''); -}; - -Element.collectTextNodesIgnoreClass = function(element, className) { - return $A($(element).childNodes).collect( function(node) { - return (node.nodeType==3 ? node.nodeValue : - ((node.hasChildNodes() && !Element.hasClassName(node,className)) ? - Element.collectTextNodesIgnoreClass(node, className) : '')); - }).flatten().join(''); -}; - -Element.setContentZoom = function(element, percent) { - element = $(element); - element.setStyle({fontSize: (percent/100) + 'em'}); - if (Prototype.Browser.WebKit) window.scrollBy(0,0); - return element; -}; - -Element.getInlineOpacity = function(element){ - return $(element).style.opacity || ''; -}; - -Element.forceRerendering = function(element) { - try { - element = $(element); - var n = document.createTextNode(' '); - element.appendChild(n); - element.removeChild(n); - } catch(e) { } -}; - -/*--------------------------------------------------------------------------*/ - -var Effect = { - _elementDoesNotExistError: { - name: 'ElementDoesNotExistError', - message: 'The specified DOM element does not exist, but is required for this effect to operate' - }, - Transitions: { - linear: Prototype.K, - sinoidal: function(pos) { - return (-Math.cos(pos*Math.PI)/2) + 0.5; - }, - reverse: function(pos) { - return 1-pos; - }, - flicker: function(pos) { - var pos = ((-Math.cos(pos*Math.PI)/4) + 0.75) + Math.random()/4; - return pos > 1 ? 1 : pos; - }, - wobble: function(pos) { - return (-Math.cos(pos*Math.PI*(9*pos))/2) + 0.5; - }, - pulse: function(pos, pulses) { - pulses = pulses || 5; - return ( - ((pos % (1/pulses)) * pulses).round() == 0 ? - ((pos * pulses * 2) - (pos * pulses * 2).floor()) : - 1 - ((pos * pulses * 2) - (pos * pulses * 2).floor()) - ); - }, - spring: function(pos) { - return 1 - (Math.cos(pos * 4.5 * Math.PI) * Math.exp(-pos * 6)); - }, - none: function(pos) { - return 0; - }, - full: function(pos) { - return 1; - } - }, - DefaultOptions: { - duration: 1.0, // seconds - fps: 100, // 100= assume 66fps max. - sync: false, // true for combining - from: 0.0, - to: 1.0, - delay: 0.0, - queue: 'parallel' - }, - tagifyText: function(element) { - var tagifyStyle = 'position:relative'; - if (Prototype.Browser.IE) tagifyStyle += ';zoom:1'; - - element = $(element); - $A(element.childNodes).each( function(child) { - if (child.nodeType==3) { - child.nodeValue.toArray().each( function(character) { - element.insertBefore( - new Element('span', {style: tagifyStyle}).update( - character == ' ' ? String.fromCharCode(160) : character), - child); - }); - Element.remove(child); - } - }); - }, - multiple: function(element, effect) { - var elements; - if (((typeof element == 'object') || - Object.isFunction(element)) && - (element.length)) - elements = element; - else - elements = $(element).childNodes; - - var options = Object.extend({ - speed: 0.1, - delay: 0.0 - }, arguments[2] || { }); - var masterDelay = options.delay; - - $A(elements).each( function(element, index) { - new effect(element, Object.extend(options, { delay: index * options.speed + masterDelay })); - }); - }, - PAIRS: { - 'slide': ['SlideDown','SlideUp'], - 'blind': ['BlindDown','BlindUp'], - 'appear': ['Appear','Fade'] - }, - toggle: function(element, effect) { - element = $(element); - effect = (effect || 'appear').toLowerCase(); - var options = Object.extend({ - queue: { position:'end', scope:(element.id || 'global'), limit: 1 } - }, arguments[2] || { }); - Effect[element.visible() ? - Effect.PAIRS[effect][1] : Effect.PAIRS[effect][0]](element, options); - } -}; - -Effect.DefaultOptions.transition = Effect.Transitions.sinoidal; - -/* ------------- core effects ------------- */ - -Effect.ScopedQueue = Class.create(Enumerable, { - initialize: function() { - this.effects = []; - this.interval = null; - }, - _each: function(iterator) { - this.effects._each(iterator); - }, - add: function(effect) { - var timestamp = new Date().getTime(); - - var position = Object.isString(effect.options.queue) ? - effect.options.queue : effect.options.queue.position; - - switch(position) { - case 'front': - // move unstarted effects after this effect - this.effects.findAll(function(e){ return e.state=='idle' }).each( function(e) { - e.startOn += effect.finishOn; - e.finishOn += effect.finishOn; - }); - break; - case 'with-last': - timestamp = this.effects.pluck('startOn').max() || timestamp; - break; - case 'end': - // start effect after last queued effect has finished - timestamp = this.effects.pluck('finishOn').max() || timestamp; - break; - } - - effect.startOn += timestamp; - effect.finishOn += timestamp; - - if (!effect.options.queue.limit || (this.effects.length < effect.options.queue.limit)) - this.effects.push(effect); - - if (!this.interval) - this.interval = setInterval(this.loop.bind(this), 15); - }, - remove: function(effect) { - this.effects = this.effects.reject(function(e) { return e==effect }); - if (this.effects.length == 0) { - clearInterval(this.interval); - this.interval = null; - } - }, - loop: function() { - var timePos = new Date().getTime(); - for(var i=0, len=this.effects.length;i= this.startOn) { - if (timePos >= this.finishOn) { - this.render(1.0); - this.cancel(); - this.event('beforeFinish'); - if (this.finish) this.finish(); - this.event('afterFinish'); - return; - } - var pos = (timePos - this.startOn) / this.totalTime, - frame = (pos * this.totalFrames).round(); - if (frame > this.currentFrame) { - this.render(pos); - this.currentFrame = frame; - } - } - }, - cancel: function() { - if (!this.options.sync) - Effect.Queues.get(Object.isString(this.options.queue) ? - 'global' : this.options.queue.scope).remove(this); - this.state = 'finished'; - }, - event: function(eventName) { - if (this.options[eventName + 'Internal']) this.options[eventName + 'Internal'](this); - if (this.options[eventName]) this.options[eventName](this); - }, - inspect: function() { - var data = $H(); - for(property in this) - if (!Object.isFunction(this[property])) data.set(property, this[property]); - return '#'; - } -}); - -Effect.Parallel = Class.create(Effect.Base, { - initialize: function(effects) { - this.effects = effects || []; - this.start(arguments[1]); - }, - update: function(position) { - this.effects.invoke('render', position); - }, - finish: function(position) { - this.effects.each( function(effect) { - effect.render(1.0); - effect.cancel(); - effect.event('beforeFinish'); - if (effect.finish) effect.finish(position); - effect.event('afterFinish'); - }); - } -}); - -Effect.Tween = Class.create(Effect.Base, { - initialize: function(object, from, to) { - object = Object.isString(object) ? $(object) : object; - var args = $A(arguments), method = args.last(), - options = args.length == 5 ? args[3] : null; - this.method = Object.isFunction(method) ? method.bind(object) : - Object.isFunction(object[method]) ? object[method].bind(object) : - function(value) { object[method] = value }; - this.start(Object.extend({ from: from, to: to }, options || { })); - }, - update: function(position) { - this.method(position); - } -}); - -Effect.Event = Class.create(Effect.Base, { - initialize: function() { - this.start(Object.extend({ duration: 0 }, arguments[0] || { })); - }, - update: Prototype.emptyFunction -}); - -Effect.Opacity = Class.create(Effect.Base, { - initialize: function(element) { - this.element = $(element); - if (!this.element) throw(Effect._elementDoesNotExistError); - // make this work on IE on elements without 'layout' - if (Prototype.Browser.IE && (!this.element.currentStyle.hasLayout)) - this.element.setStyle({zoom: 1}); - var options = Object.extend({ - from: this.element.getOpacity() || 0.0, - to: 1.0 - }, arguments[1] || { }); - this.start(options); - }, - update: function(position) { - this.element.setOpacity(position); - } -}); - -Effect.Move = Class.create(Effect.Base, { - initialize: function(element) { - this.element = $(element); - if (!this.element) throw(Effect._elementDoesNotExistError); - var options = Object.extend({ - x: 0, - y: 0, - mode: 'relative' - }, arguments[1] || { }); - this.start(options); - }, - setup: function() { - this.element.makePositioned(); - this.originalLeft = parseFloat(this.element.getStyle('left') || '0'); - this.originalTop = parseFloat(this.element.getStyle('top') || '0'); - if (this.options.mode == 'absolute') { - this.options.x = this.options.x - this.originalLeft; - this.options.y = this.options.y - this.originalTop; - } - }, - update: function(position) { - this.element.setStyle({ - left: (this.options.x * position + this.originalLeft).round() + 'px', - top: (this.options.y * position + this.originalTop).round() + 'px' - }); - } -}); - -// for backwards compatibility -Effect.MoveBy = function(element, toTop, toLeft) { - return new Effect.Move(element, - Object.extend({ x: toLeft, y: toTop }, arguments[3] || { })); -}; - -Effect.Scale = Class.create(Effect.Base, { - initialize: function(element, percent) { - this.element = $(element); - if (!this.element) throw(Effect._elementDoesNotExistError); - var options = Object.extend({ - scaleX: true, - scaleY: true, - scaleContent: true, - scaleFromCenter: false, - scaleMode: 'box', // 'box' or 'contents' or { } with provided values - scaleFrom: 100.0, - scaleTo: percent - }, arguments[2] || { }); - this.start(options); - }, - setup: function() { - this.restoreAfterFinish = this.options.restoreAfterFinish || false; - this.elementPositioning = this.element.getStyle('position'); - - this.originalStyle = { }; - ['top','left','width','height','fontSize'].each( function(k) { - this.originalStyle[k] = this.element.style[k]; - }.bind(this)); - - this.originalTop = this.element.offsetTop; - this.originalLeft = this.element.offsetLeft; - - var fontSize = this.element.getStyle('font-size') || '100%'; - ['em','px','%','pt'].each( function(fontSizeType) { - if (fontSize.indexOf(fontSizeType)>0) { - this.fontSize = parseFloat(fontSize); - this.fontSizeType = fontSizeType; - } - }.bind(this)); - - this.factor = (this.options.scaleTo - this.options.scaleFrom)/100; - - this.dims = null; - if (this.options.scaleMode=='box') - this.dims = [this.element.offsetHeight, this.element.offsetWidth]; - if (/^content/.test(this.options.scaleMode)) - this.dims = [this.element.scrollHeight, this.element.scrollWidth]; - if (!this.dims) - this.dims = [this.options.scaleMode.originalHeight, - this.options.scaleMode.originalWidth]; - }, - update: function(position) { - var currentScale = (this.options.scaleFrom/100.0) + (this.factor * position); - if (this.options.scaleContent && this.fontSize) - this.element.setStyle({fontSize: this.fontSize * currentScale + this.fontSizeType }); - this.setDimensions(this.dims[0] * currentScale, this.dims[1] * currentScale); - }, - finish: function(position) { - if (this.restoreAfterFinish) this.element.setStyle(this.originalStyle); - }, - setDimensions: function(height, width) { - var d = { }; - if (this.options.scaleX) d.width = width.round() + 'px'; - if (this.options.scaleY) d.height = height.round() + 'px'; - if (this.options.scaleFromCenter) { - var topd = (height - this.dims[0])/2; - var leftd = (width - this.dims[1])/2; - if (this.elementPositioning == 'absolute') { - if (this.options.scaleY) d.top = this.originalTop-topd + 'px'; - if (this.options.scaleX) d.left = this.originalLeft-leftd + 'px'; - } else { - if (this.options.scaleY) d.top = -topd + 'px'; - if (this.options.scaleX) d.left = -leftd + 'px'; - } - } - this.element.setStyle(d); - } -}); - -Effect.Highlight = Class.create(Effect.Base, { - initialize: function(element) { - this.element = $(element); - if (!this.element) throw(Effect._elementDoesNotExistError); - var options = Object.extend({ startcolor: '#ffff99' }, arguments[1] || { }); - this.start(options); - }, - setup: function() { - // Prevent executing on elements not in the layout flow - if (this.element.getStyle('display')=='none') { this.cancel(); return; } - // Disable background image during the effect - this.oldStyle = { }; - if (!this.options.keepBackgroundImage) { - this.oldStyle.backgroundImage = this.element.getStyle('background-image'); - this.element.setStyle({backgroundImage: 'none'}); - } - if (!this.options.endcolor) - this.options.endcolor = this.element.getStyle('background-color').parseColor('#ffffff'); - if (!this.options.restorecolor) - this.options.restorecolor = this.element.getStyle('background-color'); - // init color calculations - this._base = $R(0,2).map(function(i){ return parseInt(this.options.startcolor.slice(i*2+1,i*2+3),16) }.bind(this)); - this._delta = $R(0,2).map(function(i){ return parseInt(this.options.endcolor.slice(i*2+1,i*2+3),16)-this._base[i] }.bind(this)); - }, - update: function(position) { - this.element.setStyle({backgroundColor: $R(0,2).inject('#',function(m,v,i){ - return m+((this._base[i]+(this._delta[i]*position)).round().toColorPart()); }.bind(this)) }); - }, - finish: function() { - this.element.setStyle(Object.extend(this.oldStyle, { - backgroundColor: this.options.restorecolor - })); - } -}); - -Effect.ScrollTo = function(element) { - var options = arguments[1] || { }, - scrollOffsets = document.viewport.getScrollOffsets(), - elementOffsets = $(element).cumulativeOffset(), - max = (window.height || document.body.scrollHeight) - document.viewport.getHeight(); - - if (options.offset) elementOffsets[1] += options.offset; - - return new Effect.Tween(null, - scrollOffsets.top, - elementOffsets[1] > max ? max : elementOffsets[1], - options, - function(p){ scrollTo(scrollOffsets.left, p.round()) } - ); -}; - -/* ------------- combination effects ------------- */ - -Effect.Fade = function(element) { - element = $(element); - var oldOpacity = element.getInlineOpacity(); - var options = Object.extend({ - from: element.getOpacity() || 1.0, - to: 0.0, - afterFinishInternal: function(effect) { - if (effect.options.to!=0) return; - effect.element.hide().setStyle({opacity: oldOpacity}); - } - }, arguments[1] || { }); - return new Effect.Opacity(element,options); -}; - -Effect.Appear = function(element) { - element = $(element); - var options = Object.extend({ - from: (element.getStyle('display') == 'none' ? 0.0 : element.getOpacity() || 0.0), - to: 1.0, - // force Safari to render floated elements properly - afterFinishInternal: function(effect) { - effect.element.forceRerendering(); - }, - beforeSetup: function(effect) { - effect.element.setOpacity(effect.options.from).show(); - }}, arguments[1] || { }); - return new Effect.Opacity(element,options); -}; - -Effect.Puff = function(element) { - element = $(element); - var oldStyle = { - opacity: element.getInlineOpacity(), - position: element.getStyle('position'), - top: element.style.top, - left: element.style.left, - width: element.style.width, - height: element.style.height - }; - return new Effect.Parallel( - [ new Effect.Scale(element, 200, - { sync: true, scaleFromCenter: true, scaleContent: true, restoreAfterFinish: true }), - new Effect.Opacity(element, { sync: true, to: 0.0 } ) ], - Object.extend({ duration: 1.0, - beforeSetupInternal: function(effect) { - Position.absolutize(effect.effects[0].element) - }, - afterFinishInternal: function(effect) { - effect.effects[0].element.hide().setStyle(oldStyle); } - }, arguments[1] || { }) - ); -}; - -Effect.BlindUp = function(element) { - element = $(element); - element.makeClipping(); - return new Effect.Scale(element, 0, - Object.extend({ scaleContent: false, - scaleX: false, - restoreAfterFinish: true, - afterFinishInternal: function(effect) { - effect.element.hide().undoClipping(); - } - }, arguments[1] || { }) - ); -}; - -Effect.BlindDown = function(element) { - element = $(element); - var elementDimensions = element.getDimensions(); - return new Effect.Scale(element, 100, Object.extend({ - scaleContent: false, - scaleX: false, - scaleFrom: 0, - scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width}, - restoreAfterFinish: true, - afterSetup: function(effect) { - effect.element.makeClipping().setStyle({height: '0px'}).show(); - }, - afterFinishInternal: function(effect) { - effect.element.undoClipping(); - } - }, arguments[1] || { })); -}; - -Effect.SwitchOff = function(element) { - element = $(element); - var oldOpacity = element.getInlineOpacity(); - return new Effect.Appear(element, Object.extend({ - duration: 0.4, - from: 0, - transition: Effect.Transitions.flicker, - afterFinishInternal: function(effect) { - new Effect.Scale(effect.element, 1, { - duration: 0.3, scaleFromCenter: true, - scaleX: false, scaleContent: false, restoreAfterFinish: true, - beforeSetup: function(effect) { - effect.element.makePositioned().makeClipping(); - }, - afterFinishInternal: function(effect) { - effect.element.hide().undoClipping().undoPositioned().setStyle({opacity: oldOpacity}); - } - }) - } - }, arguments[1] || { })); -}; - -Effect.DropOut = function(element) { - element = $(element); - var oldStyle = { - top: element.getStyle('top'), - left: element.getStyle('left'), - opacity: element.getInlineOpacity() }; - return new Effect.Parallel( - [ new Effect.Move(element, {x: 0, y: 100, sync: true }), - new Effect.Opacity(element, { sync: true, to: 0.0 }) ], - Object.extend( - { duration: 0.5, - beforeSetup: function(effect) { - effect.effects[0].element.makePositioned(); - }, - afterFinishInternal: function(effect) { - effect.effects[0].element.hide().undoPositioned().setStyle(oldStyle); - } - }, arguments[1] || { })); -}; - -Effect.Shake = function(element) { - element = $(element); - var options = Object.extend({ - distance: 20, - duration: 0.5 - }, arguments[1] || {}); - var distance = parseFloat(options.distance); - var split = parseFloat(options.duration) / 10.0; - var oldStyle = { - top: element.getStyle('top'), - left: element.getStyle('left') }; - return new Effect.Move(element, - { x: distance, y: 0, duration: split, afterFinishInternal: function(effect) { - new Effect.Move(effect.element, - { x: -distance*2, y: 0, duration: split*2, afterFinishInternal: function(effect) { - new Effect.Move(effect.element, - { x: distance*2, y: 0, duration: split*2, afterFinishInternal: function(effect) { - new Effect.Move(effect.element, - { x: -distance*2, y: 0, duration: split*2, afterFinishInternal: function(effect) { - new Effect.Move(effect.element, - { x: distance*2, y: 0, duration: split*2, afterFinishInternal: function(effect) { - new Effect.Move(effect.element, - { x: -distance, y: 0, duration: split, afterFinishInternal: function(effect) { - effect.element.undoPositioned().setStyle(oldStyle); - }}) }}) }}) }}) }}) }}); -}; - -Effect.SlideDown = function(element) { - element = $(element).cleanWhitespace(); - // SlideDown need to have the content of the element wrapped in a container element with fixed height! - var oldInnerBottom = element.down().getStyle('bottom'); - var elementDimensions = element.getDimensions(); - return new Effect.Scale(element, 100, Object.extend({ - scaleContent: false, - scaleX: false, - scaleFrom: window.opera ? 0 : 1, - scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width}, - restoreAfterFinish: true, - afterSetup: function(effect) { - effect.element.makePositioned(); - effect.element.down().makePositioned(); - if (window.opera) effect.element.setStyle({top: ''}); - effect.element.makeClipping().setStyle({height: '0px'}).show(); - }, - afterUpdateInternal: function(effect) { - effect.element.down().setStyle({bottom: - (effect.dims[0] - effect.element.clientHeight) + 'px' }); - }, - afterFinishInternal: function(effect) { - effect.element.undoClipping().undoPositioned(); - effect.element.down().undoPositioned().setStyle({bottom: oldInnerBottom}); } - }, arguments[1] || { }) - ); -}; - -Effect.SlideUp = function(element) { - element = $(element).cleanWhitespace(); - var oldInnerBottom = element.down().getStyle('bottom'); - var elementDimensions = element.getDimensions(); - return new Effect.Scale(element, window.opera ? 0 : 1, - Object.extend({ scaleContent: false, - scaleX: false, - scaleMode: 'box', - scaleFrom: 100, - scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width}, - restoreAfterFinish: true, - afterSetup: function(effect) { - effect.element.makePositioned(); - effect.element.down().makePositioned(); - if (window.opera) effect.element.setStyle({top: ''}); - effect.element.makeClipping().show(); - }, - afterUpdateInternal: function(effect) { - effect.element.down().setStyle({bottom: - (effect.dims[0] - effect.element.clientHeight) + 'px' }); - }, - afterFinishInternal: function(effect) { - effect.element.hide().undoClipping().undoPositioned(); - effect.element.down().undoPositioned().setStyle({bottom: oldInnerBottom}); - } - }, arguments[1] || { }) - ); -}; - -// Bug in opera makes the TD containing this element expand for a instance after finish -Effect.Squish = function(element) { - return new Effect.Scale(element, window.opera ? 1 : 0, { - restoreAfterFinish: true, - beforeSetup: function(effect) { - effect.element.makeClipping(); - }, - afterFinishInternal: function(effect) { - effect.element.hide().undoClipping(); - } - }); -}; - -Effect.Grow = function(element) { - element = $(element); - var options = Object.extend({ - direction: 'center', - moveTransition: Effect.Transitions.sinoidal, - scaleTransition: Effect.Transitions.sinoidal, - opacityTransition: Effect.Transitions.full - }, arguments[1] || { }); - var oldStyle = { - top: element.style.top, - left: element.style.left, - height: element.style.height, - width: element.style.width, - opacity: element.getInlineOpacity() }; - - var dims = element.getDimensions(); - var initialMoveX, initialMoveY; - var moveX, moveY; - - switch (options.direction) { - case 'top-left': - initialMoveX = initialMoveY = moveX = moveY = 0; - break; - case 'top-right': - initialMoveX = dims.width; - initialMoveY = moveY = 0; - moveX = -dims.width; - break; - case 'bottom-left': - initialMoveX = moveX = 0; - initialMoveY = dims.height; - moveY = -dims.height; - break; - case 'bottom-right': - initialMoveX = dims.width; - initialMoveY = dims.height; - moveX = -dims.width; - moveY = -dims.height; - break; - case 'center': - initialMoveX = dims.width / 2; - initialMoveY = dims.height / 2; - moveX = -dims.width / 2; - moveY = -dims.height / 2; - break; - } - - return new Effect.Move(element, { - x: initialMoveX, - y: initialMoveY, - duration: 0.01, - beforeSetup: function(effect) { - effect.element.hide().makeClipping().makePositioned(); - }, - afterFinishInternal: function(effect) { - new Effect.Parallel( - [ new Effect.Opacity(effect.element, { sync: true, to: 1.0, from: 0.0, transition: options.opacityTransition }), - new Effect.Move(effect.element, { x: moveX, y: moveY, sync: true, transition: options.moveTransition }), - new Effect.Scale(effect.element, 100, { - scaleMode: { originalHeight: dims.height, originalWidth: dims.width }, - sync: true, scaleFrom: window.opera ? 1 : 0, transition: options.scaleTransition, restoreAfterFinish: true}) - ], Object.extend({ - beforeSetup: function(effect) { - effect.effects[0].element.setStyle({height: '0px'}).show(); - }, - afterFinishInternal: function(effect) { - effect.effects[0].element.undoClipping().undoPositioned().setStyle(oldStyle); - } - }, options) - ) - } - }); -}; - -Effect.Shrink = function(element) { - element = $(element); - var options = Object.extend({ - direction: 'center', - moveTransition: Effect.Transitions.sinoidal, - scaleTransition: Effect.Transitions.sinoidal, - opacityTransition: Effect.Transitions.none - }, arguments[1] || { }); - var oldStyle = { - top: element.style.top, - left: element.style.left, - height: element.style.height, - width: element.style.width, - opacity: element.getInlineOpacity() }; - - var dims = element.getDimensions(); - var moveX, moveY; - - switch (options.direction) { - case 'top-left': - moveX = moveY = 0; - break; - case 'top-right': - moveX = dims.width; - moveY = 0; - break; - case 'bottom-left': - moveX = 0; - moveY = dims.height; - break; - case 'bottom-right': - moveX = dims.width; - moveY = dims.height; - break; - case 'center': - moveX = dims.width / 2; - moveY = dims.height / 2; - break; - } - - return new Effect.Parallel( - [ new Effect.Opacity(element, { sync: true, to: 0.0, from: 1.0, transition: options.opacityTransition }), - new Effect.Scale(element, window.opera ? 1 : 0, { sync: true, transition: options.scaleTransition, restoreAfterFinish: true}), - new Effect.Move(element, { x: moveX, y: moveY, sync: true, transition: options.moveTransition }) - ], Object.extend({ - beforeStartInternal: function(effect) { - effect.effects[0].element.makePositioned().makeClipping(); - }, - afterFinishInternal: function(effect) { - effect.effects[0].element.hide().undoClipping().undoPositioned().setStyle(oldStyle); } - }, options) - ); -}; - -Effect.Pulsate = function(element) { - element = $(element); - var options = arguments[1] || { }; - var oldOpacity = element.getInlineOpacity(); - var transition = options.transition || Effect.Transitions.sinoidal; - var reverser = function(pos){ return transition(1-Effect.Transitions.pulse(pos, options.pulses)) }; - reverser.bind(transition); - return new Effect.Opacity(element, - Object.extend(Object.extend({ duration: 2.0, from: 0, - afterFinishInternal: function(effect) { effect.element.setStyle({opacity: oldOpacity}); } - }, options), {transition: reverser})); -}; - -Effect.Fold = function(element) { - element = $(element); - var oldStyle = { - top: element.style.top, - left: element.style.left, - width: element.style.width, - height: element.style.height }; - element.makeClipping(); - return new Effect.Scale(element, 5, Object.extend({ - scaleContent: false, - scaleX: false, - afterFinishInternal: function(effect) { - new Effect.Scale(element, 1, { - scaleContent: false, - scaleY: false, - afterFinishInternal: function(effect) { - effect.element.hide().undoClipping().setStyle(oldStyle); - } }); - }}, arguments[1] || { })); -}; - -Effect.Morph = Class.create(Effect.Base, { - initialize: function(element) { - this.element = $(element); - if (!this.element) throw(Effect._elementDoesNotExistError); - var options = Object.extend({ - style: { } - }, arguments[1] || { }); - - if (!Object.isString(options.style)) this.style = $H(options.style); - else { - if (options.style.include(':')) - this.style = options.style.parseStyle(); - else { - this.element.addClassName(options.style); - this.style = $H(this.element.getStyles()); - this.element.removeClassName(options.style); - var css = this.element.getStyles(); - this.style = this.style.reject(function(style) { - return style.value == css[style.key]; - }); - options.afterFinishInternal = function(effect) { - effect.element.addClassName(effect.options.style); - effect.transforms.each(function(transform) { - effect.element.style[transform.style] = ''; - }); - } - } - } - this.start(options); - }, - - setup: function(){ - function parseColor(color){ - if (!color || ['rgba(0, 0, 0, 0)','transparent'].include(color)) color = '#ffffff'; - color = color.parseColor(); - return $R(0,2).map(function(i){ - return parseInt( color.slice(i*2+1,i*2+3), 16 ) - }); - } - this.transforms = this.style.map(function(pair){ - var property = pair[0], value = pair[1], unit = null; - - if (value.parseColor('#zzzzzz') != '#zzzzzz') { - value = value.parseColor(); - unit = 'color'; - } else if (property == 'opacity') { - value = parseFloat(value); - if (Prototype.Browser.IE && (!this.element.currentStyle.hasLayout)) - this.element.setStyle({zoom: 1}); - } else if (Element.CSS_LENGTH.test(value)) { - var components = value.match(/^([\+\-]?[0-9\.]+)(.*)$/); - value = parseFloat(components[1]); - unit = (components.length == 3) ? components[2] : null; - } - - var originalValue = this.element.getStyle(property); - return { - style: property.camelize(), - originalValue: unit=='color' ? parseColor(originalValue) : parseFloat(originalValue || 0), - targetValue: unit=='color' ? parseColor(value) : value, - unit: unit - }; - }.bind(this)).reject(function(transform){ - return ( - (transform.originalValue == transform.targetValue) || - ( - transform.unit != 'color' && - (isNaN(transform.originalValue) || isNaN(transform.targetValue)) - ) - ) - }); - }, - update: function(position) { - var style = { }, transform, i = this.transforms.length; - while(i--) - style[(transform = this.transforms[i]).style] = - transform.unit=='color' ? '#'+ - (Math.round(transform.originalValue[0]+ - (transform.targetValue[0]-transform.originalValue[0])*position)).toColorPart() + - (Math.round(transform.originalValue[1]+ - (transform.targetValue[1]-transform.originalValue[1])*position)).toColorPart() + - (Math.round(transform.originalValue[2]+ - (transform.targetValue[2]-transform.originalValue[2])*position)).toColorPart() : - (transform.originalValue + - (transform.targetValue - transform.originalValue) * position).toFixed(3) + - (transform.unit === null ? '' : transform.unit); - this.element.setStyle(style, true); - } -}); - -Effect.Transform = Class.create({ - initialize: function(tracks){ - this.tracks = []; - this.options = arguments[1] || { }; - this.addTracks(tracks); - }, - addTracks: function(tracks){ - tracks.each(function(track){ - track = $H(track); - var data = track.values().first(); - this.tracks.push($H({ - ids: track.keys().first(), - effect: Effect.Morph, - options: { style: data } - })); - }.bind(this)); - return this; - }, - play: function(){ - return new Effect.Parallel( - this.tracks.map(function(track){ - var ids = track.get('ids'), effect = track.get('effect'), options = track.get('options'); - var elements = [$(ids) || $$(ids)].flatten(); - return elements.map(function(e){ return new effect(e, Object.extend({ sync:true }, options)) }); - }).flatten(), - this.options - ); - } -}); - -Element.CSS_PROPERTIES = $w( - 'backgroundColor backgroundPosition borderBottomColor borderBottomStyle ' + - 'borderBottomWidth borderLeftColor borderLeftStyle borderLeftWidth ' + - 'borderRightColor borderRightStyle borderRightWidth borderSpacing ' + - 'borderTopColor borderTopStyle borderTopWidth bottom clip color ' + - 'fontSize fontWeight height left letterSpacing lineHeight ' + - 'marginBottom marginLeft marginRight marginTop markerOffset maxHeight '+ - 'maxWidth minHeight minWidth opacity outlineColor outlineOffset ' + - 'outlineWidth paddingBottom paddingLeft paddingRight paddingTop ' + - 'right textIndent top width wordSpacing zIndex'); - -Element.CSS_LENGTH = /^(([\+\-]?[0-9\.]+)(em|ex|px|in|cm|mm|pt|pc|\%))|0$/; - -String.__parseStyleElement = document.createElement('div'); -String.prototype.parseStyle = function(){ - var style, styleRules = $H(); - if (Prototype.Browser.WebKit) - style = new Element('div',{style:this}).style; - else { - String.__parseStyleElement.innerHTML = '
    '; - style = String.__parseStyleElement.childNodes[0].style; - } - - Element.CSS_PROPERTIES.each(function(property){ - if (style[property]) styleRules.set(property, style[property]); - }); - - if (Prototype.Browser.IE && this.include('opacity')) - styleRules.set('opacity', this.match(/opacity:\s*((?:0|1)?(?:\.\d*)?)/)[1]); - - return styleRules; -}; - -if (document.defaultView && document.defaultView.getComputedStyle) { - Element.getStyles = function(element) { - var css = document.defaultView.getComputedStyle($(element), null); - return Element.CSS_PROPERTIES.inject({ }, function(styles, property) { - styles[property] = css[property]; - return styles; - }); - }; -} else { - Element.getStyles = function(element) { - element = $(element); - var css = element.currentStyle, styles; - styles = Element.CSS_PROPERTIES.inject({ }, function(results, property) { - results[property] = css[property]; - return results; - }); - if (!styles.opacity) styles.opacity = element.getOpacity(); - return styles; - }; -}; - -Effect.Methods = { - morph: function(element, style) { - element = $(element); - new Effect.Morph(element, Object.extend({ style: style }, arguments[2] || { })); - return element; - }, - visualEffect: function(element, effect, options) { - element = $(element) - var s = effect.dasherize().camelize(), klass = s.charAt(0).toUpperCase() + s.substring(1); - new Effect[klass](element, options); - return element; - }, - highlight: function(element, options) { - element = $(element); - new Effect.Highlight(element, options); - return element; - } -}; - -$w('fade appear grow shrink fold blindUp blindDown slideUp slideDown '+ - 'pulsate shake puff squish switchOff dropOut').each( - function(effect) { - Effect.Methods[effect] = function(element, options){ - element = $(element); - Effect[effect.charAt(0).toUpperCase() + effect.substring(1)](element, options); - return element; - } - } -); - -$w('getInlineOpacity forceRerendering setContentZoom collectTextNodes collectTextNodesIgnoreClass getStyles').each( - function(f) { Effect.Methods[f] = Element[f]; } -); - -Element.addMethods(Effect.Methods); diff --git a/framework/images/webapp/images/prototypejs/popup.css b/framework/images/webapp/images/prototypejs/popup.css deleted file mode 100644 index 27be024eb8..0000000000 --- a/framework/images/webapp/images/prototypejs/popup.css +++ /dev/null @@ -1,35 +0,0 @@ -/* - popup.js -*/ -div.popup { - max-width: 1200px; - width: 250px; - border: 1px solid red; - padding: 5px; - background-color: white; - /* The following properties should not be changed */ - position: absolute; -} - -#popup_overlay { - background-color: whitesmoke; - /* The following properties should not be changed */ - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 500px; -} - -span.popup_link, a.popup_link { - cursor: pointer; - -} - -.popup td{ - background:#fff -} - -.popup_draghandle { - cursor: move; -} diff --git a/framework/images/webapp/images/prototypejs/popup.js b/framework/images/webapp/images/prototypejs/popup.js deleted file mode 100644 index 201b8d9e1b..0000000000 --- a/framework/images/webapp/images/prototypejs/popup.js +++ /dev/null @@ -1,470 +0,0 @@ -/* - popup.js - - A lightweight general purpose JavaScript DOM element popup class. - - Webpage: - http;//www.methods.co.nz/popup/popup.html - - Inspired by: - Lightbox2: http://www.huddletogether.com/projects/lightbox2/ - Lightbox Gone Wild: http://particletree.com/features/lightbox-gone-wild/ - Tooltip: http://blog.innerewut.de/pages/tooltip - Prototype library: http://www.prototypejs.org/ - Scriptaculous library: http://script.aculo.us/ - - Attributions: - - Uses the getPageSize() function from Lightbox v2.02 by Lokesh Dhakar - (http://www.huddletogether.com/projects/lightbox2/). - - Adapted the the modal overlay technique used in Lightbox v2.02 by Lokesh - Dhakar (http://www.huddletogether.com/projects/lightbox2/). - - Version: 1.0.1 - - Author: Stuart Rackham - License: This source code is released under the MIT license. - - Copyright (c) Stuart Rackham 2007 - -*/ - -var Popup = Class.create(); -Popup.zIndex = 1000; // z-index of first popup. - -Popup.prototype = { - - /* - Popup creation - */ - initialize: function(popup, link) { - var options = Object.extend({ - modal: false, - effect: 'fade', - hidden: true, - closebox: 'popup_closebox', // CSS class name of click-to-close elements. - draghandle: 'popup_draghandle' // CSS class name of drag handle elements. - }, arguments[2] || {}); - options.position = options.position || (options.modal ? 'center' : 'auto'); - options.trigger = options.trigger || (options.modal ? 'click' : 'mouseover'); - options.duration = this.first_value(options.duration, Popup.duration, 0.5); - options.show_duration = this.first_value(options.show_duration, options.duration); - options.hide_duration = this.first_value(options.hide_duration, options.duration); - options.opacity = this.first_value(options.opacity, Popup.opacity, 0.5); - options.show_delay = this.first_value(options.show_delay, Popup.show_delay, 500); - options.hide_delay = this.first_value(options.hide_delay, Popup.hide_delay, 200); - options.cursor_margin = this.first_value(options.cursor_margin, Popup.cursor_margin, 5); - this.options = options; - if (link) { - this.link = $(link); - } - this.popup = $(popup); - this.popup.popup = this; // Make the popup object a property of the DOM popup element. - if (options.hidden) { - this.popup.hide(); - } - if (options.closebox) { - this.closeboxes = document.getElementsByClassName(options.closebox, this.popup); - if (this.popup.hasClassName(options.closebox)) { - this.closeboxes[this.closeboxes.length] = this.popup; - } - } - else { - this.closeboxes = []; - } - if (options.draghandle) { - var draghandles = document.getElementsByClassName(options.draghandle, this.popup); - for (i = 0; i < draghandles.length; i++) { - new Draggable(this.popup, { handle: draghandles[i] }); - } - if (this.popup.hasClassName(options.draghandle)) { - new Draggable(this.popup, { handle: this.popup }); - } - } - this.register_events(); - }, - - - /* - Event functions - */ - - register_events: function() { - var trigger_function; - if (this.is_auto_open()) { - trigger_function = this.start_show_timer; - if (this.link) { - Event.observe(this.link, 'mouseout', this.stop_show_timer.bindAsEventListener(this)); - } - } - else { - trigger_function = this.show; - } - if (this.link) { - Event.observe(this.link, this.options.trigger, trigger_function.bindAsEventListener(this)); - } - if (!this.options.modal) { - Event.observe(this.popup, 'click', this.bring_to_front.bindAsEventListener(this)); - } - if (this.closeboxes.length > 0) { - for (var i = 0; i < this.closeboxes.length; i++) { - Event.observe(this.closeboxes[i], 'click', this.hide.bindAsEventListener(this)); - } - } - else { - if (this.link) { - Event.observe(this.link, 'mouseout', this.start_hide_timer.bindAsEventListener(this)); - } - Event.observe(this.popup, 'mouseover', this.stop_hide_timer.bindAsEventListener(this)); - Event.observe(this.popup, 'mouseout', this.start_hide_timer.bindAsEventListener(this)); - } - }, - - bring_to_front: function(event) { - // Bring to front if not already there. - if (Number(this.popup.style.zIndex) < Popup.zIndex - 1) { - this.popup.style.zIndex = Popup.zIndex++; - } - }, - - start_show_timer: function(event) { - // NOTE: event is bound to this.show but it's state changes between being - // bound here and arriving at this.show -- specifically, the mouse - // coordinates are reset to zero). I've no idea why. Anyway, this is the - // reason for passing the event mouse coordinates as properties of this. - this.stop_show_timer(event); - this.mouse_x = Event.pointerX(event); - this.mouse_y = Event.pointerY(event); - this.show_timer = setTimeout(this.show.bind(this, event), this.options.show_delay); - }, - - stop_show_timer: function(event) { - if (this.show_timer) { - clearTimeout(this.show_timer); - this.show_timer = null; - } - }, - - start_hide_timer: function(event) { - this.stop_hide_timer(event); - this.hide_timer = setTimeout(this.hide.bind(this, event), this.options.hide_delay); - }, - - stop_hide_timer: function(event) { - if (this.hide_timer) { - clearTimeout(this.hide_timer); - this.hide_timer = null; - } - }, - - show: function(event) { - this.stop_show_timer(event); - this.stop_hide_timer(event); - if (this.is_open) { - return; - } - if (this.options.modal) { - this.show_overlay(); - } - var pos; - if (!event) { - // We only arrive here if this.show has been called externally. - pos = this.get_popup_position(); - } - else if (this.is_auto_open()) { - // Because auto-open popups calls this.show indirectly via start_show_timer. - pos = this.get_popup_position(this.mouse_x, this.mouse_y); - } - else { - pos = this.get_popup_position(Event.pointerX(event), Event.pointerY(event)); - } - Element.setStyle(this.popup, { top: pos.y, left: pos.x, zIndex: Popup.zIndex++ }); - this.is_open = true; - switch (this.options.effect) { - case 'slide': - Effect.SlideDown(this.popup, {duration: this.options.show_duration}); - break; - case 'grow': - Effect.Grow(this.popup, {duration: this.options.show_duration}); - break; - case 'blind': - Effect.BlindDown(this.popup, {duration: this.options.show_duration}); - break; - case 'fade': - default: - Effect.Appear(this.popup, {duration: this.options.show_duration}); - break; - } - }, - - hide: function(event){ - this.is_open = false; - switch (this.options.effect) { - case 'slide': - Effect.SlideUp(this.popup, {duration: this.options.hide_duration}); - break; - case 'grow': - Effect.Shrink(this.popup, {duration: this.options.hide_duration}); - break; - case 'blind': - Effect.BlindUp(this.popup, {duration: this.options.hide_duration}); - break; - case 'fade': - default: - Effect.Fade(this.popup, {duration: this.options.hide_duration}); - break; - } - if (this.options.modal) { - this.hide_overlay(); - } - }, - - - /* - Helper functions - */ - - // Return the first function argument that is not undefined. - // Because when zero numerical value are possible you can't use || chains. - first_value: function() { - for (var i = 0; i < arguments.length; i++) { - if (arguments[i] !== undefined) { - return arguments[i]; - } - } - return undefined; - }, - - is_auto_open: function() { - return this.options.trigger == 'mouseover'; - }, - - show_overlay: function() { - if (!Popup.overlay) { - var overlay = document.createElement('div'); - overlay.setAttribute('id','popup_overlay'); - overlay.style.display = 'none'; - document.body.appendChild(overlay); - Popup.overlay = overlay; - Popup.overlay_levels = []; - } - Popup.overlay.style.height = this.get_page_dimensions().height + 'px'; - var z = Popup.zIndex++; - Popup.overlay.style.zIndex = z; - Popup.overlay_levels.push(z); - if ( Popup.overlay_levels.length == 1) { // Opening the first modal popup. - // Queue the global overlay effect to ensure correct execution order. - new Effect.Appear(Popup.overlay, - { duration: this.options.show_duration, - to: this.options.opacity, - queue: {position: 'end', scope: 'popup_overlay'} - }); - } - else { // There is another modal popup at a lower level so move the overlay forward. - Popup.overlay.style.zIndex = z; - } - }, - - hide_overlay: function() { - Popup.overlay_levels.pop(); - var z = Popup.overlay_levels.pop(); - if (z) { // There is another modal popup at a lower level so move the overlay back. - Popup.overlay_levels.push(z); - Popup.overlay.style.zIndex = z; - } - else { // The last modal popup is being closed so hide the overlay - // Queue the global overlay effect to ensure correct execution order. - new Effect.Fade(Popup.overlay, - { duration: this.options.hide_duration, - queue: {position: 'end', scope: 'popup_overlay'} - }); - } - }, - - - /* - Positioning functions - */ - - // Return the top and left CSS position strings as an {x,y} object that the - // popup should be shown at. mouse_x and mouse_y are the mouse x,y coordinates - // numbers when the popup was triggered. - get_popup_position: function(mouse_x, mouse_y) { - var pos; - switch (this.options.position) { - case 'auto': - pos = this.get_auto_position(mouse_x, mouse_y); - break; - case 'center': - pos = this.get_center_position(); - break; - case 'below': - pos = this.get_below_position(); - break; - default: - // Check for x,y postion format (x and y can be any valid CSS left or - // top property value). - if (mo = this.options.position.match(/^\s*([^\s,]+)\s*,\s*([^\s,]+)\s*$/)) { - pos = {x: mo[1], y: mo[2]}; - // If possible convert to numbers. - pos.x = Number(pos.x)+100 || pos.x+100; - pos.y = Number(pos.y) || pos.y; - } - else { - pos = {x: 50, y: 20}; - } - break; - } - if (typeof pos.x == 'number') { - pos.x += 'px'; - } - if (typeof pos.y == 'number') { - pos.y += 'px'; - } - return pos; - }, - - get_below_position: function() { - var pos = Position.cumulativeOffset(this.link); - return {x: pos[0], y: pos[1] + Element.getHeight(this.link)}; - }, - - get_center_position: function() { - dim = Element.getDimensions(this.popup); - var popup_width = dim.width; - var popup_height = dim.height; - dim = this.get_viewport_dimensions(); - var viewport_width = dim.width; - var viewport_height = dim.height; - - var x; - if (popup_width >= viewport_width) { - x = 0; - } - else { - x = (viewport_width - popup_width)/2; - } - - var y; - if (popup_height >= viewport_height) { - y = 0; - } - else { - y = (viewport_height - popup_height)/2; - } - - return {x: x, y: y}; - }, - - get_auto_position: function(mouse_x, mouse_y) { - dim = Element.getDimensions(this.popup); - var popup_width = dim.width; - var popup_height = dim.height; - dim = this.get_viewport_dimensions(); - var viewport_width = dim.width; - var viewport_height = dim.height; - - var available_right = viewport_width - (mouse_x + this.options.cursor_margin); - var available_left = mouse_x - this.options.cursor_margin; - var available_top = mouse_y - this.options.cursor_margin; - var available_bottom = viewport_height - (mouse_x + this.options.cursor_margin); - var offset = this.options.cursor_margin; - var x = mouse_x; - var y = mouse_y; - - if (popup_width >= viewport_width) { - x = 0; - } - else if (popup_width <= available_right) { - x += offset; - } - else if (popup_width <= available_left) { - x -= popup_width + offset; - } - else if (available_right >= available_left) { - x = viewport_width - popup_width; - } - else { - x = 0; - } - - if (popup_height >= viewport_height) { - y = 0; - } - else if (popup_height <= available_bottom) { - y += offset; - } - else if (popup_height <= available_top) { - y -= popup_height + offset; - } - else if (available_bottom >= available_top) { - y = viewport_height - popup_height; - } - else { - y = 0; - } - - return {x: x, y: y}; - }, - - get_viewport_dimensions: function() { - var dim = this.getPageSize(); - return {width: dim[2], height: dim[3]}; - }, - - get_page_dimensions: function() { - var dim = this.getPageSize(); - return {width: dim[0], height: dim[1]}; - }, - - // This function from Lightbox v2.02 by Lokesh Dhakar - // (http://www.huddletogether.com/projects/lightbox2/). - // - // Returns array with page width, height and window width, height - // Core code from - quirksmode.org - // Edit for Firefox by pHaez - // - getPageSize: function() { - var xScroll, yScroll; - - if (window.innerHeight && window.scrollMaxY) { - xScroll = document.body.scrollWidth; - yScroll = window.innerHeight + window.scrollMaxY; - } else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac - xScroll = document.body.scrollWidth; - yScroll = document.body.scrollHeight; - } else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari - xScroll = document.body.offsetWidth; - yScroll = document.body.offsetHeight; - } - - var windowWidth, windowHeight; - if (self.innerHeight) { // all except Explorer - windowWidth = self.innerWidth; - windowHeight = self.innerHeight; - } else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode - windowWidth = document.documentElement.clientWidth; - windowHeight = document.documentElement.clientHeight; - } else if (document.body) { // other Explorers - windowWidth = document.body.clientWidth; - windowHeight = document.body.clientHeight; - } - - // for small pages with total height less then height of the viewport - if(yScroll < windowHeight){ - pageHeight = windowHeight; - } else { - pageHeight = yScroll; - } - - // for small pages with total width less then width of the viewport - if(xScroll < windowWidth){ - pageWidth = windowWidth; - } else { - pageWidth = xScroll; - } - - arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight); - return arrayPageSize; - } - -} diff --git a/framework/images/webapp/images/prototypejs/progress_bar.css b/framework/images/webapp/images/prototypejs/progress_bar.css deleted file mode 100644 index 82ab777aaf..0000000000 --- a/framework/images/webapp/images/prototypejs/progress_bar.css +++ /dev/null @@ -1,23 +0,0 @@ -/** - * @author Ryan Johnson - * @copyright 2007 LivePipe LLC - * @package Control.ProgressBar - * @license MIT - * @url http://livepipe.net/projects/control_progress_bar/ - * @version 1.0.1 - */ - -#progress_bar { - width:102px; - height:7px; - border:1px solid #ccc; - padding:0; - margin:0; - position:relative; - background-image:url("/images/gradient_main.gif"); - background-repeat:repeat-x; -} - -#progress_bar div { - background-color:#fff; -} diff --git a/framework/images/webapp/images/prototypejs/prototype.js b/framework/images/webapp/images/prototypejs/prototype.js deleted file mode 100644 index 6385503a1c..0000000000 --- a/framework/images/webapp/images/prototypejs/prototype.js +++ /dev/null @@ -1,4221 +0,0 @@ -/* Prototype JavaScript framework, version 1.6.0.2 - * (c) 2005-2008 Sam Stephenson - * - * Prototype is freely distributable under the terms of an MIT-style license. - * For details, see the Prototype web site: http://www.prototypejs.org/ - * - *--------------------------------------------------------------------------*/ - -var Prototype = { - Version: '1.6.0.2', - - Browser: { - IE: !!(window.attachEvent && !window.opera), - Opera: !!window.opera, - WebKit: navigator.userAgent.indexOf('AppleWebKit/') > -1, - Gecko: navigator.userAgent.indexOf('Gecko') > -1 && navigator.userAgent.indexOf('KHTML') == -1, - MobileSafari: !!navigator.userAgent.match(/Apple.*Mobile.*Safari/) - }, - - BrowserFeatures: { - XPath: !!document.evaluate, - ElementExtensions: !!window.HTMLElement, - SpecificElementExtensions: - document.createElement('div').__proto__ && - document.createElement('div').__proto__ !== - document.createElement('form').__proto__ - }, - - ScriptFragment: ']*>([\\S\\s]*?)<\/script>', - JSONFilter: /^\/\*-secure-([\s\S]*)\*\/\s*$/, - - emptyFunction: function() { }, - K: function(x) { return x } -}; - -if (Prototype.Browser.MobileSafari) - Prototype.BrowserFeatures.SpecificElementExtensions = false; - - -/* Based on Alex Arnell's inheritance implementation. */ -var Class = { - create: function() { - var parent = null, properties = $A(arguments); - if (Object.isFunction(properties[0])) - parent = properties.shift(); - - function klass() { - this.initialize.apply(this, arguments); - } - - Object.extend(klass, Class.Methods); - klass.superclass = parent; - klass.subclasses = []; - - if (parent) { - var subclass = function() { }; - subclass.prototype = parent.prototype; - klass.prototype = new subclass; - parent.subclasses.push(klass); - } - - for (var i = 0; i < properties.length; i++) - klass.addMethods(properties[i]); - - if (!klass.prototype.initialize) - klass.prototype.initialize = Prototype.emptyFunction; - - klass.prototype.constructor = klass; - - return klass; - } -}; - -Class.Methods = { - addMethods: function(source) { - var ancestor = this.superclass && this.superclass.prototype; - var properties = Object.keys(source); - - if (!Object.keys({ toString: true }).length) - properties.push("toString", "valueOf"); - - for (var i = 0, length = properties.length; i < length; i++) { - var property = properties[i], value = source[property]; - if (ancestor && Object.isFunction(value) && - value.argumentNames().first() == "$super") { - var method = value, value = Object.extend((function(m) { - return function() { return ancestor[m].apply(this, arguments) }; - })(property).wrap(method), { - valueOf: function() { return method }, - toString: function() { return method.toString() } - }); - } - this.prototype[property] = value; - } - - return this; - } -}; - -var Abstract = { }; - -Object.extend = function(destination, source) { - for (var property in source) - destination[property] = source[property]; - return destination; -}; - -Object.extend(Object, { - inspect: function(object) { - try { - if (Object.isUndefined(object)) return 'undefined'; - if (object === null) return 'null'; - return object.inspect ? object.inspect() : String(object); - } catch (e) { - if (e instanceof RangeError) return '...'; - throw e; - } - }, - - toJSON: function(object) { - var type = typeof object; - switch (type) { - case 'undefined': - case 'function': - case 'unknown': return; - case 'boolean': return object.toString(); - } - - if (object === null) return 'null'; - if (object.toJSON) return object.toJSON(); - if (Object.isElement(object)) return; - - var results = []; - for (var property in object) { - var value = Object.toJSON(object[property]); - if (!Object.isUndefined(value)) - results.push(property.toJSON() + ': ' + value); - } - - return '{' + results.join(', ') + '}'; - }, - - toQueryString: function(object) { - return $H(object).toQueryString(); - }, - - toHTML: function(object) { - return object && object.toHTML ? object.toHTML() : String.interpret(object); - }, - - keys: function(object) { - var keys = []; - for (var property in object) - keys.push(property); - return keys; - }, - - values: function(object) { - var values = []; - for (var property in object) - values.push(object[property]); - return values; - }, - - clone: function(object) { - return Object.extend({ }, object); - }, - - isElement: function(object) { - return object && object.nodeType == 1; - }, - - isArray: function(object) { - return object != null && typeof object == "object" && - 'splice' in object && 'join' in object; - }, - - isHash: function(object) { - return object instanceof Hash; - }, - - isFunction: function(object) { - return typeof object == "function"; - }, - - isString: function(object) { - return typeof object == "string"; - }, - - isNumber: function(object) { - return typeof object == "number"; - }, - - isUndefined: function(object) { - return typeof object == "undefined"; - } -}); - -Object.extend(Function.prototype, { - argumentNames: function() { - var names = this.toString().match(/^[\s\(]*function[^(]*\((.*?)\)/)[1].split(",").invoke("strip"); - return names.length == 1 && !names[0] ? [] : names; - }, - - bind: function() { - if (arguments.length < 2 && Object.isUndefined(arguments[0])) return this; - var __method = this, args = $A(arguments), object = args.shift(); - return function() { - return __method.apply(object, args.concat($A(arguments))); - } - }, - - bindAsEventListener: function() { - var __method = this, args = $A(arguments), object = args.shift(); - return function(event) { - return __method.apply(object, [event || window.event].concat(args)); - } - }, - - curry: function() { - if (!arguments.length) return this; - var __method = this, args = $A(arguments); - return function() { - return __method.apply(this, args.concat($A(arguments))); - } - }, - - delay: function() { - var __method = this, args = $A(arguments), timeout = args.shift() * 1000; - return window.setTimeout(function() { - return __method.apply(__method, args); - }, timeout); - }, - - wrap: function(wrapper) { - var __method = this; - return function() { - return wrapper.apply(this, [__method.bind(this)].concat($A(arguments))); - } - }, - - methodize: function() { - if (this._methodized) return this._methodized; - var __method = this; - return this._methodized = function() { - return __method.apply(null, [this].concat($A(arguments))); - }; - } -}); - -Function.prototype.defer = Function.prototype.delay.curry(0.01); - -Date.prototype.toJSON = function() { - return '"' + this.getUTCFullYear() + '-' + - (this.getUTCMonth() + 1).toPaddedString(2) + '-' + - this.getUTCDate().toPaddedString(2) + 'T' + - this.getUTCHours().toPaddedString(2) + ':' + - this.getUTCMinutes().toPaddedString(2) + ':' + - this.getUTCSeconds().toPaddedString(2) + 'Z"'; -}; - -var Try = { - these: function() { - var returnValue; - - for (var i = 0, length = arguments.length; i < length; i++) { - var lambda = arguments[i]; - try { - returnValue = lambda(); - break; - } catch (e) { } - } - - return returnValue; - } -}; - -RegExp.prototype.match = RegExp.prototype.test; - -RegExp.escape = function(str) { - return String(str).replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1'); -}; - -/*--------------------------------------------------------------------------*/ - -var PeriodicalExecuter = Class.create({ - initialize: function(callback, frequency) { - this.callback = callback; - this.frequency = frequency; - this.currentlyExecuting = false; - - this.registerCallback(); - }, - - registerCallback: function() { - this.timer = setInterval(this.onTimerEvent.bind(this), this.frequency * 1000); - }, - - execute: function() { - this.callback(this); - }, - - stop: function() { - if (!this.timer) return; - clearInterval(this.timer); - this.timer = null; - }, - - onTimerEvent: function() { - if (!this.currentlyExecuting) { - try { - this.currentlyExecuting = true; - this.execute(); - } finally { - this.currentlyExecuting = false; - } - } - } -}); -Object.extend(String, { - interpret: function(value) { - return value == null ? '' : String(value); - }, - specialChar: { - '\b': '\\b', - '\t': '\\t', - '\n': '\\n', - '\f': '\\f', - '\r': '\\r', - '\\': '\\\\' - } -}); - -Object.extend(String.prototype, { - gsub: function(pattern, replacement) { - var result = '', source = this, match; - replacement = arguments.callee.prepareReplacement(replacement); - - while (source.length > 0) { - if (match = source.match(pattern)) { - result += source.slice(0, match.index); - result += String.interpret(replacement(match)); - source = source.slice(match.index + match[0].length); - } else { - result += source, source = ''; - } - } - return result; - }, - - sub: function(pattern, replacement, count) { - replacement = this.gsub.prepareReplacement(replacement); - count = Object.isUndefined(count) ? 1 : count; - - return this.gsub(pattern, function(match) { - if (--count < 0) return match[0]; - return replacement(match); - }); - }, - - scan: function(pattern, iterator) { - this.gsub(pattern, iterator); - return String(this); - }, - - truncate: function(length, truncation) { - length = length || 30; - truncation = Object.isUndefined(truncation) ? '...' : truncation; - return this.length > length ? - this.slice(0, length - truncation.length) + truncation : String(this); - }, - - strip: function() { - return this.replace(/^\s+/, '').replace(/\s+$/, ''); - }, - - stripTags: function() { - return this.replace(/<\/?[^>]+>/gi, ''); - }, - - stripScripts: function() { - return this.replace(new RegExp(Prototype.ScriptFragment, 'img'), ''); - }, - - extractScripts: function() { - var matchAll = new RegExp(Prototype.ScriptFragment, 'img'); - var matchOne = new RegExp(Prototype.ScriptFragment, 'im'); - return (this.match(matchAll) || []).map(function(scriptTag) { - return (scriptTag.match(matchOne) || ['', ''])[1]; - }); - }, - - evalScripts: function() { - return this.extractScripts().map(function(script) { return eval(script) }); - }, - - escapeHTML: function() { - var self = arguments.callee; - self.text.data = this; - return self.div.innerHTML; - }, - - unescapeHTML: function() { - var div = new Element('div'); - div.innerHTML = this.stripTags(); - return div.childNodes[0] ? (div.childNodes.length > 1 ? - $A(div.childNodes).inject('', function(memo, node) { return memo+node.nodeValue }) : - div.childNodes[0].nodeValue) : ''; - }, - - toQueryParams: function(separator) { - var match = this.strip().match(/([^?#]*)(#.*)?$/); - if (!match) return { }; - - return match[1].split(separator || '&').inject({ }, function(hash, pair) { - if ((pair = pair.split('='))[0]) { - var key = decodeURIComponent(pair.shift()); - var value = pair.length > 1 ? pair.join('=') : pair[0]; - if (value != undefined) value = decodeURIComponent(value); - - if (key in hash) { - if (!Object.isArray(hash[key])) hash[key] = [hash[key]]; - hash[key].push(value); - } - else hash[key] = value; - } - return hash; - }); - }, - - toArray: function() { - return this.split(''); - }, - - succ: function() { - return this.slice(0, this.length - 1) + - String.fromCharCode(this.charCodeAt(this.length - 1) + 1); - }, - - times: function(count) { - return count < 1 ? '' : new Array(count + 1).join(this); - }, - - camelize: function() { - var parts = this.split('-'), len = parts.length; - if (len == 1) return parts[0]; - - var camelized = this.charAt(0) == '-' - ? parts[0].charAt(0).toUpperCase() + parts[0].substring(1) - : parts[0]; - - for (var i = 1; i < len; i++) - camelized += parts[i].charAt(0).toUpperCase() + parts[i].substring(1); - - return camelized; - }, - - capitalize: function() { - return this.charAt(0).toUpperCase() + this.substring(1).toLowerCase(); - }, - - underscore: function() { - return this.gsub(/::/, '/').gsub(/([A-Z]+)([A-Z][a-z])/,'#{1}_#{2}').gsub(/([a-z\d])([A-Z])/,'#{1}_#{2}').gsub(/-/,'_').toLowerCase(); - }, - - dasherize: function() { - return this.gsub(/_/,'-'); - }, - - inspect: function(useDoubleQuotes) { - var escapedString = this.gsub(/[\x00-\x1f\\]/, function(match) { - var character = String.specialChar[match[0]]; - return character ? character : '\\u00' + match[0].charCodeAt().toPaddedString(2, 16); - }); - if (useDoubleQuotes) return '"' + escapedString.replace(/"/g, '\\"') + '"'; - return "'" + escapedString.replace(/'/g, '\\\'') + "'"; - }, - - toJSON: function() { - return this.inspect(true); - }, - - unfilterJSON: function(filter) { - return this.sub(filter || Prototype.JSONFilter, '#{1}'); - }, - - isJSON: function() { - var str = this; - if (str.blank()) return false; - str = this.replace(/\\./g, '@').replace(/"[^"\\\n\r]*"/g, ''); - return (/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(str); - }, - - evalJSON: function(sanitize) { - var json = this.unfilterJSON(); - try { - if (!sanitize || json.isJSON()) return eval('(' + json + ')'); - } catch (e) { } - throw new SyntaxError('Badly formed JSON string: ' + this.inspect()); - }, - - include: function(pattern) { - return this.indexOf(pattern) > -1; - }, - - startsWith: function(pattern) { - return this.indexOf(pattern) === 0; - }, - - endsWith: function(pattern) { - var d = this.length - pattern.length; - return d >= 0 && this.lastIndexOf(pattern) === d; - }, - - empty: function() { - return this == ''; - }, - - blank: function() { - return /^\s*$/.test(this); - }, - - interpolate: function(object, pattern) { - return new Template(this, pattern).evaluate(object); - } -}); - -if (Prototype.Browser.WebKit || Prototype.Browser.IE) Object.extend(String.prototype, { - escapeHTML: function() { - return this.replace(/&/g,'&').replace(//g,'>'); - }, - unescapeHTML: function() { - return this.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>'); - } -}); - -String.prototype.gsub.prepareReplacement = function(replacement) { - if (Object.isFunction(replacement)) return replacement; - var template = new Template(replacement); - return function(match) { return template.evaluate(match) }; -}; - -String.prototype.parseQuery = String.prototype.toQueryParams; - -Object.extend(String.prototype.escapeHTML, { - div: document.createElement('div'), - text: document.createTextNode('') -}); - -with (String.prototype.escapeHTML) div.appendChild(text); - -var Template = Class.create({ - initialize: function(template, pattern) { - this.template = template.toString(); - this.pattern = pattern || Template.Pattern; - }, - - evaluate: function(object) { - if (Object.isFunction(object.toTemplateReplacements)) - object = object.toTemplateReplacements(); - - return this.template.gsub(this.pattern, function(match) { - if (object == null) return ''; - - var before = match[1] || ''; - if (before == '\\') return match[2]; - - var ctx = object, expr = match[3]; - var pattern = /^([^.[]+|\[((?:.*?[^\\])?)\])(\.|\[|$)/; - match = pattern.exec(expr); - if (match == null) return before; - - while (match != null) { - var comp = match[1].startsWith('[') ? match[2].gsub('\\\\]', ']') : match[1]; - ctx = ctx[comp]; - if (null == ctx || '' == match[3]) break; - expr = expr.substring('[' == match[3] ? match[1].length : match[0].length); - match = pattern.exec(expr); - } - - return before + String.interpret(ctx); - }); - } -}); -Template.Pattern = /(^|.|\r|\n)(#\{(.*?)\})/; - -var $break = { }; - -var Enumerable = { - each: function(iterator, context) { - var index = 0; - iterator = iterator.bind(context); - try { - this._each(function(value) { - iterator(value, index++); - }); - } catch (e) { - if (e != $break) throw e; - } - return this; - }, - - eachSlice: function(number, iterator, context) { - iterator = iterator ? iterator.bind(context) : Prototype.K; - var index = -number, slices = [], array = this.toArray(); - while ((index += number) < array.length) - slices.push(array.slice(index, index+number)); - return slices.collect(iterator, context); - }, - - all: function(iterator, context) { - iterator = iterator ? iterator.bind(context) : Prototype.K; - var result = true; - this.each(function(value, index) { - result = result && !!iterator(value, index); - if (!result) throw $break; - }); - return result; - }, - - any: function(iterator, context) { - iterator = iterator ? iterator.bind(context) : Prototype.K; - var result = false; - this.each(function(value, index) { - if (result = !!iterator(value, index)) - throw $break; - }); - return result; - }, - - collect: function(iterator, context) { - iterator = iterator ? iterator.bind(context) : Prototype.K; - var results = []; - this.each(function(value, index) { - results.push(iterator(value, index)); - }); - return results; - }, - - detect: function(iterator, context) { - iterator = iterator.bind(context); - var result; - this.each(function(value, index) { - if (iterator(value, index)) { - result = value; - throw $break; - } - }); - return result; - }, - - findAll: function(iterator, context) { - iterator = iterator.bind(context); - var results = []; - this.each(function(value, index) { - if (iterator(value, index)) - results.push(value); - }); - return results; - }, - - grep: function(filter, iterator, context) { - iterator = iterator ? iterator.bind(context) : Prototype.K; - var results = []; - - if (Object.isString(filter)) - filter = new RegExp(filter); - - this.each(function(value, index) { - if (filter.match(value)) - results.push(iterator(value, index)); - }); - return results; - }, - - include: function(object) { - if (Object.isFunction(this.indexOf)) - if (this.indexOf(object) != -1) return true; - - var found = false; - this.each(function(value) { - if (value == object) { - found = true; - throw $break; - } - }); - return found; - }, - - inGroupsOf: function(number, fillWith) { - fillWith = Object.isUndefined(fillWith) ? null : fillWith; - return this.eachSlice(number, function(slice) { - while(slice.length < number) slice.push(fillWith); - return slice; - }); - }, - - inject: function(memo, iterator, context) { - iterator = iterator.bind(context); - this.each(function(value, index) { - memo = iterator(memo, value, index); - }); - return memo; - }, - - invoke: function(method) { - var args = $A(arguments).slice(1); - return this.map(function(value) { - return value[method].apply(value, args); - }); - }, - - max: function(iterator, context) { - iterator = iterator ? iterator.bind(context) : Prototype.K; - var result; - this.each(function(value, index) { - value = iterator(value, index); - if (result == null || value >= result) - result = value; - }); - return result; - }, - - min: function(iterator, context) { - iterator = iterator ? iterator.bind(context) : Prototype.K; - var result; - this.each(function(value, index) { - value = iterator(value, index); - if (result == null || value < result) - result = value; - }); - return result; - }, - - partition: function(iterator, context) { - iterator = iterator ? iterator.bind(context) : Prototype.K; - var trues = [], falses = []; - this.each(function(value, index) { - (iterator(value, index) ? - trues : falses).push(value); - }); - return [trues, falses]; - }, - - pluck: function(property) { - var results = []; - this.each(function(value) { - results.push(value[property]); - }); - return results; - }, - - reject: function(iterator, context) { - iterator = iterator.bind(context); - var results = []; - this.each(function(value, index) { - if (!iterator(value, index)) - results.push(value); - }); - return results; - }, - - sortBy: function(iterator, context) { - iterator = iterator.bind(context); - return this.map(function(value, index) { - return {value: value, criteria: iterator(value, index)}; - }).sort(function(left, right) { - var a = left.criteria, b = right.criteria; - return a < b ? -1 : a > b ? 1 : 0; - }).pluck('value'); - }, - - toArray: function() { - return this.map(); - }, - - zip: function() { - var iterator = Prototype.K, args = $A(arguments); - if (Object.isFunction(args.last())) - iterator = args.pop(); - - var collections = [this].concat(args).map($A); - return this.map(function(value, index) { - return iterator(collections.pluck(index)); - }); - }, - - size: function() { - return this.toArray().length; - }, - - inspect: function() { - return '#'; - } -}; - -Object.extend(Enumerable, { - map: Enumerable.collect, - find: Enumerable.detect, - select: Enumerable.findAll, - filter: Enumerable.findAll, - member: Enumerable.include, - entries: Enumerable.toArray, - every: Enumerable.all, - some: Enumerable.any -}); -function $A(iterable) { - if (!iterable) return []; - if (iterable.toArray) return iterable.toArray(); - var length = iterable.length || 0, results = new Array(length); - while (length--) results[length] = iterable[length]; - return results; -} - -if (Prototype.Browser.WebKit) { - $A = function(iterable) { - if (!iterable) return []; - if (!(Object.isFunction(iterable) && iterable == '[object NodeList]') && - iterable.toArray) return iterable.toArray(); - var length = iterable.length || 0, results = new Array(length); - while (length--) results[length] = iterable[length]; - return results; - }; -} - -Array.from = $A; - -Object.extend(Array.prototype, Enumerable); - -if (!Array.prototype._reverse) Array.prototype._reverse = Array.prototype.reverse; - -Object.extend(Array.prototype, { - _each: function(iterator) { - for (var i = 0, length = this.length; i < length; i++) - iterator(this[i]); - }, - - clear: function() { - this.length = 0; - return this; - }, - - first: function() { - return this[0]; - }, - - last: function() { - return this[this.length - 1]; - }, - - compact: function() { - return this.select(function(value) { - return value != null; - }); - }, - - flatten: function() { - return this.inject([], function(array, value) { - return array.concat(Object.isArray(value) ? - value.flatten() : [value]); - }); - }, - - without: function() { - var values = $A(arguments); - return this.select(function(value) { - return !values.include(value); - }); - }, - - reverse: function(inline) { - return (inline !== false ? this : this.toArray())._reverse(); - }, - - reduce: function() { - return this.length > 1 ? this : this[0]; - }, - - uniq: function(sorted) { - return this.inject([], function(array, value, index) { - if (0 == index || (sorted ? array.last() != value : !array.include(value))) - array.push(value); - return array; - }); - }, - - intersect: function(array) { - return this.uniq().findAll(function(item) { - return array.detect(function(value) { return item === value }); - }); - }, - - clone: function() { - return [].concat(this); - }, - - size: function() { - return this.length; - }, - - inspect: function() { - return '[' + this.map(Object.inspect).join(', ') + ']'; - }, - - toJSON: function() { - var results = []; - this.each(function(object) { - var value = Object.toJSON(object); - if (!Object.isUndefined(value)) results.push(value); - }); - return '[' + results.join(', ') + ']'; - } -}); - -// use native browser JS 1.6 implementation if available -if (Object.isFunction(Array.prototype.forEach)) - Array.prototype._each = Array.prototype.forEach; - -if (!Array.prototype.indexOf) Array.prototype.indexOf = function(item, i) { - i || (i = 0); - var length = this.length; - if (i < 0) i = length + i; - for (; i < length; i++) - if (this[i] === item) return i; - return -1; -}; - -if (!Array.prototype.lastIndexOf) Array.prototype.lastIndexOf = function(item, i) { - i = isNaN(i) ? this.length : (i < 0 ? this.length + i : i) + 1; - var n = this.slice(0, i).reverse().indexOf(item); - return (n < 0) ? n : i - n - 1; -}; - -Array.prototype.toArray = Array.prototype.clone; - -function $w(string) { - if (!Object.isString(string)) return []; - string = string.strip(); - return string ? string.split(/\s+/) : []; -} - -if (Prototype.Browser.Opera){ - Array.prototype.concat = function() { - var array = []; - for (var i = 0, length = this.length; i < length; i++) array.push(this[i]); - for (var i = 0, length = arguments.length; i < length; i++) { - if (Object.isArray(arguments[i])) { - for (var j = 0, arrayLength = arguments[i].length; j < arrayLength; j++) - array.push(arguments[i][j]); - } else { - array.push(arguments[i]); - } - } - return array; - }; -} -Object.extend(Number.prototype, { - toColorPart: function() { - return this.toPaddedString(2, 16); - }, - - succ: function() { - return this + 1; - }, - - times: function(iterator) { - $R(0, this, true).each(iterator); - return this; - }, - - toPaddedString: function(length, radix) { - var string = this.toString(radix || 10); - return '0'.times(length - string.length) + string; - }, - - toJSON: function() { - return isFinite(this) ? this.toString() : 'null'; - } -}); - -$w('abs round ceil floor').each(function(method){ - Number.prototype[method] = Math[method].methodize(); -}); -function $H(object) { - return new Hash(object); -}; - -var Hash = Class.create(Enumerable, (function() { - - function toQueryPair(key, value) { - if (Object.isUndefined(value)) return key; - return key + '=' + encodeURIComponent(String.interpret(value)); - } - - return { - initialize: function(object) { - this._object = Object.isHash(object) ? object.toObject() : Object.clone(object); - }, - - _each: function(iterator) { - for (var key in this._object) { - var value = this._object[key], pair = [key, value]; - pair.key = key; - pair.value = value; - iterator(pair); - } - }, - - set: function(key, value) { - return this._object[key] = value; - }, - - get: function(key) { - return this._object[key]; - }, - - unset: function(key) { - var value = this._object[key]; - delete this._object[key]; - return value; - }, - - toObject: function() { - return Object.clone(this._object); - }, - - keys: function() { - return this.pluck('key'); - }, - - values: function() { - return this.pluck('value'); - }, - - index: function(value) { - var match = this.detect(function(pair) { - return pair.value === value; - }); - return match && match.key; - }, - - merge: function(object) { - return this.clone().update(object); - }, - - update: function(object) { - return new Hash(object).inject(this, function(result, pair) { - result.set(pair.key, pair.value); - return result; - }); - }, - - toQueryString: function() { - return this.map(function(pair) { - var key = encodeURIComponent(pair.key), values = pair.value; - - if (values && typeof values == 'object') { - if (Object.isArray(values)) - return values.map(toQueryPair.curry(key)).join('&'); - } - return toQueryPair(key, values); - }).join('&'); - }, - - inspect: function() { - return '#'; - }, - - toJSON: function() { - return Object.toJSON(this.toObject()); - }, - - clone: function() { - return new Hash(this); - } - } -})()); - -Hash.prototype.toTemplateReplacements = Hash.prototype.toObject; -Hash.from = $H; -var ObjectRange = Class.create(Enumerable, { - initialize: function(start, end, exclusive) { - this.start = start; - this.end = end; - this.exclusive = exclusive; - }, - - _each: function(iterator) { - var value = this.start; - while (this.include(value)) { - iterator(value); - value = value.succ(); - } - }, - - include: function(value) { - if (value < this.start) - return false; - if (this.exclusive) - return value < this.end; - return value <= this.end; - } -}); - -var $R = function(start, end, exclusive) { - return new ObjectRange(start, end, exclusive); -}; - -var Ajax = { - getTransport: function() { - return Try.these( - function() {return new XMLHttpRequest()}, - function() {return new ActiveXObject('Msxml2.XMLHTTP')}, - function() {return new ActiveXObject('Microsoft.XMLHTTP')} - ) || false; - }, - - activeRequestCount: 0 -}; - -Ajax.Responders = { - responders: [], - - _each: function(iterator) { - this.responders._each(iterator); - }, - - register: function(responder) { - if (!this.include(responder)) - this.responders.push(responder); - }, - - unregister: function(responder) { - this.responders = this.responders.without(responder); - }, - - dispatch: function(callback, request, transport, json) { - this.each(function(responder) { - if (Object.isFunction(responder[callback])) { - try { - responder[callback].apply(responder, [request, transport, json]); - } catch (e) { } - } - }); - } -}; - -Object.extend(Ajax.Responders, Enumerable); - -Ajax.Responders.register({ - onCreate: function() { Ajax.activeRequestCount++ }, - onComplete: function() { Ajax.activeRequestCount-- } -}); - -Ajax.Base = Class.create({ - initialize: function(options) { - this.options = { - method: 'post', - asynchronous: true, - contentType: 'application/x-www-form-urlencoded', - encoding: 'UTF-8', - parameters: '', - evalJSON: true, - evalJS: true - }; - Object.extend(this.options, options || { }); - - this.options.method = this.options.method.toLowerCase(); - - if (Object.isString(this.options.parameters)) - this.options.parameters = this.options.parameters.toQueryParams(); - else if (Object.isHash(this.options.parameters)) - this.options.parameters = this.options.parameters.toObject(); - } -}); - -Ajax.Request = Class.create(Ajax.Base, { - _complete: false, - - initialize: function($super, url, options) { - $super(options); - this.transport = Ajax.getTransport(); - this.request(url); - }, - - request: function(url) { - this.url = url; - this.method = this.options.method; - var params = Object.clone(this.options.parameters); - - if (!['get', 'post'].include(this.method)) { - // simulate other verbs over post - params['_method'] = this.method; - this.method = 'post'; - } - - this.parameters = params; - - if (params = Object.toQueryString(params)) { - // when GET, append parameters to URL - if (this.method == 'get') - this.url += (this.url.include('?') ? '&' : '?') + params; - else if (/Konqueror|Safari|KHTML/.test(navigator.userAgent)) - params += '&_='; - } - - try { - var response = new Ajax.Response(this); - if (this.options.onCreate) this.options.onCreate(response); - Ajax.Responders.dispatch('onCreate', this, response); - - this.transport.open(this.method.toUpperCase(), this.url, - this.options.asynchronous); - - if (this.options.asynchronous) this.respondToReadyState.bind(this).defer(1); - - this.transport.onreadystatechange = this.onStateChange.bind(this); - this.setRequestHeaders(); - - this.body = this.method == 'post' ? (this.options.postBody || params) : null; - this.transport.send(this.body); - - /* Force Firefox to handle ready state 4 for synchronous requests */ - if (!this.options.asynchronous && this.transport.overrideMimeType) - this.onStateChange(); - - } - catch (e) { - this.dispatchException(e); - } - }, - - onStateChange: function() { - var readyState = this.transport.readyState; - if (readyState > 1 && !((readyState == 4) && this._complete)) - this.respondToReadyState(this.transport.readyState); - }, - - setRequestHeaders: function() { - var headers = { - 'X-Requested-With': 'XMLHttpRequest', - 'X-Prototype-Version': Prototype.Version, - 'Accept': 'text/javascript, text/html, application/xml, text/xml, */*' - }; - - if (this.method == 'post') { - headers['Content-type'] = this.options.contentType + - (this.options.encoding ? '; charset=' + this.options.encoding : ''); - - /* Force "Connection: close" for older Mozilla browsers to work - * around a bug where XMLHttpRequest sends an incorrect - * Content-length header. See Mozilla Bugzilla #246651. - */ - if (this.transport.overrideMimeType && - (navigator.userAgent.match(/Gecko\/(\d{4})/) || [0,2005])[1] < 2005) - headers['Connection'] = 'close'; - } - - // user-defined headers - if (typeof this.options.requestHeaders == 'object') { - var extras = this.options.requestHeaders; - - if (Object.isFunction(extras.push)) - for (var i = 0, length = extras.length; i < length; i += 2) - headers[extras[i]] = extras[i+1]; - else - $H(extras).each(function(pair) { headers[pair.key] = pair.value }); - } - - for (var name in headers) - this.transport.setRequestHeader(name, headers[name]); - }, - - success: function() { - var status = this.getStatus(); - return !status || (status >= 200 && status < 300); - }, - - getStatus: function() { - try { - return this.transport.status || 0; - } catch (e) { return 0 } - }, - - respondToReadyState: function(readyState) { - var state = Ajax.Request.Events[readyState], response = new Ajax.Response(this); - - if (state == 'Complete') { - try { - this._complete = true; - (this.options['on' + response.status] - || this.options['on' + (this.success() ? 'Success' : 'Failure')] - || Prototype.emptyFunction)(response, response.headerJSON); - } catch (e) { - this.dispatchException(e); - } - - var contentType = response.getHeader('Content-type'); - if (this.options.evalJS == 'force' - || (this.options.evalJS && this.isSameOrigin() && contentType - && contentType.match(/^\s*(text|application)\/(x-)?(java|ecma)script(;.*)?\s*$/i))) - this.evalResponse(); - } - - try { - (this.options['on' + state] || Prototype.emptyFunction)(response, response.headerJSON); - Ajax.Responders.dispatch('on' + state, this, response, response.headerJSON); - } catch (e) { - this.dispatchException(e); - } - - if (state == 'Complete') { - // avoid memory leak in MSIE: clean up - this.transport.onreadystatechange = Prototype.emptyFunction; - } - }, - - isSameOrigin: function() { - var m = this.url.match(/^\s*https?:\/\/[^\/]*/); - return !m || (m[0] == '#{protocol}//#{domain}#{port}'.interpolate({ - protocol: location.protocol, - domain: document.domain, - port: location.port ? ':' + location.port : '' - })); - }, - - getHeader: function(name) { - try { - return this.transport.getResponseHeader(name) || null; - } catch (e) { return null } - }, - - evalResponse: function() { - try { - return eval((this.transport.responseText || '').unfilterJSON()); - } catch (e) { - this.dispatchException(e); - } - }, - - dispatchException: function(exception) { - (this.options.onException || Prototype.emptyFunction)(this, exception); - Ajax.Responders.dispatch('onException', this, exception); - } -}); - -Ajax.Request.Events = - ['Uninitialized', 'Loading', 'Loaded', 'Interactive', 'Complete']; - -Ajax.Response = Class.create({ - initialize: function(request){ - this.request = request; - var transport = this.transport = request.transport, - readyState = this.readyState = transport.readyState; - - if((readyState > 2 && !Prototype.Browser.IE) || readyState == 4) { - this.status = this.getStatus(); - this.statusText = this.getStatusText(); - this.responseText = String.interpret(transport.responseText); - this.headerJSON = this._getHeaderJSON(); - } - - if(readyState == 4) { - var xml = transport.responseXML; - this.responseXML = Object.isUndefined(xml) ? null : xml; - this.responseJSON = this._getResponseJSON(); - } - }, - - status: 0, - statusText: '', - - getStatus: Ajax.Request.prototype.getStatus, - - getStatusText: function() { - try { - return this.transport.statusText || ''; - } catch (e) { return '' } - }, - - getHeader: Ajax.Request.prototype.getHeader, - - getAllHeaders: function() { - try { - return this.getAllResponseHeaders(); - } catch (e) { return null } - }, - - getResponseHeader: function(name) { - return this.transport.getResponseHeader(name); - }, - - getAllResponseHeaders: function() { - return this.transport.getAllResponseHeaders(); - }, - - _getHeaderJSON: function() { - var json = this.getHeader('X-JSON'); - if (!json) return null; - json = decodeURIComponent(escape(json)); - try { - return json.evalJSON(this.request.options.sanitizeJSON || - !this.request.isSameOrigin()); - } catch (e) { - this.request.dispatchException(e); - } - }, - - _getResponseJSON: function() { - var options = this.request.options; - if (!options.evalJSON || (options.evalJSON != 'force' && - !(this.getHeader('Content-type') || '').include('application/json')) || - this.responseText.blank()) - return null; - try { - return this.responseText.evalJSON(options.sanitizeJSON || - !this.request.isSameOrigin()); - } catch (e) { - this.request.dispatchException(e); - } - } -}); - -Ajax.Updater = Class.create(Ajax.Request, { - initialize: function($super, container, url, options) { - this.container = { - success: (container.success || container), - failure: (container.failure || (container.success ? null : container)) - }; - - options = Object.clone(options); - var onComplete = options.onComplete; - options.onComplete = (function(response, json) { - this.updateContent(response.responseText); - if (Object.isFunction(onComplete)) onComplete(response, json); - }).bind(this); - - $super(url, options); - }, - - updateContent: function(responseText) { - var receiver = this.container[this.success() ? 'success' : 'failure'], - options = this.options; - - if (!options.evalScripts) responseText = responseText.stripScripts(); - - if (receiver = $(receiver)) { - if (options.insertion) { - if (Object.isString(options.insertion)) { - var insertion = { }; insertion[options.insertion] = responseText; - receiver.insert(insertion); - } - else options.insertion(receiver, responseText); - } - else receiver.update(responseText); - } - } -}); - -Ajax.PeriodicalUpdater = Class.create(Ajax.Base, { - initialize: function($super, container, url, options) { - $super(options); - this.onComplete = this.options.onComplete; - - this.frequency = (this.options.frequency || 2); - this.decay = (this.options.decay || 1); - - this.updater = { }; - this.container = container; - this.url = url; - - this.start(); - }, - - start: function() { - this.options.onComplete = this.updateComplete.bind(this); - this.onTimerEvent(); - }, - - stop: function() { - this.updater.options.onComplete = undefined; - clearTimeout(this.timer); - (this.onComplete || Prototype.emptyFunction).apply(this, arguments); - }, - - updateComplete: function(response) { - if (this.options.decay) { - this.decay = (response.responseText == this.lastText ? - this.decay * this.options.decay : 1); - - this.lastText = response.responseText; - } - this.timer = this.onTimerEvent.bind(this).delay(this.decay * this.frequency); - }, - - onTimerEvent: function() { - this.updater = new Ajax.Updater(this.container, this.url, this.options); - } -}); -function $(element) { - if (arguments.length > 1) { - for (var i = 0, elements = [], length = arguments.length; i < length; i++) - elements.push($(arguments[i])); - return elements; - } - if (Object.isString(element)) - element = document.getElementById(element); - return Element.extend(element); -} - -if (Prototype.BrowserFeatures.XPath) { - document._getElementsByXPath = function(expression, parentElement) { - var results = []; - var query = document.evaluate(expression, $(parentElement) || document, - null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); - for (var i = 0, length = query.snapshotLength; i < length; i++) - results.push(Element.extend(query.snapshotItem(i))); - return results; - }; -} - -/*--------------------------------------------------------------------------*/ - -if (!window.Node) var Node = { }; - -if (!Node.ELEMENT_NODE) { - // DOM level 2 ECMAScript Language Binding - Object.extend(Node, { - ELEMENT_NODE: 1, - ATTRIBUTE_NODE: 2, - TEXT_NODE: 3, - CDATA_SECTION_NODE: 4, - ENTITY_REFERENCE_NODE: 5, - ENTITY_NODE: 6, - PROCESSING_INSTRUCTION_NODE: 7, - COMMENT_NODE: 8, - DOCUMENT_NODE: 9, - DOCUMENT_TYPE_NODE: 10, - DOCUMENT_FRAGMENT_NODE: 11, - NOTATION_NODE: 12 - }); -} - -(function() { - var element = this.Element; - this.Element = function(tagName, attributes) { - attributes = attributes || { }; - tagName = tagName.toLowerCase(); - var cache = Element.cache; - if (Prototype.Browser.IE && attributes.name) { - tagName = '<' + tagName + ' name="' + attributes.name + '">'; - delete attributes.name; - return Element.writeAttribute(document.createElement(tagName), attributes); - } - if (!cache[tagName]) cache[tagName] = Element.extend(document.createElement(tagName)); - return Element.writeAttribute(cache[tagName].cloneNode(false), attributes); - }; - Object.extend(this.Element, element || { }); -}).call(window); - -Element.cache = { }; - -Element.Methods = { - visible: function(element) { - return $(element).style.display != 'none'; - }, - - toggle: function(element) { - element = $(element); - Element[Element.visible(element) ? 'hide' : 'show'](element); - return element; - }, - - hide: function(element) { - $(element).style.display = 'none'; - return element; - }, - - show: function(element) { - $(element).style.display = ''; - return element; - }, - - remove: function(element) { - element = $(element); - element.parentNode.removeChild(element); - return element; - }, - - update: function(element, content) { - element = $(element); - if (content && content.toElement) content = content.toElement(); - if (Object.isElement(content)) return element.update().insert(content); - content = Object.toHTML(content); - element.innerHTML = content.stripScripts(); - content.evalScripts.bind(content).defer(); - return element; - }, - - replace: function(element, content) { - element = $(element); - if (content && content.toElement) content = content.toElement(); - else if (!Object.isElement(content)) { - content = Object.toHTML(content); - var range = element.ownerDocument.createRange(); - range.selectNode(element); - content.evalScripts.bind(content).defer(); - content = range.createContextualFragment(content.stripScripts()); - } - element.parentNode.replaceChild(content, element); - return element; - }, - - insert: function(element, insertions) { - element = $(element); - - if (Object.isString(insertions) || Object.isNumber(insertions) || - Object.isElement(insertions) || (insertions && (insertions.toElement || insertions.toHTML))) - insertions = {bottom:insertions}; - - var content, insert, tagName, childNodes; - - for (var position in insertions) { - content = insertions[position]; - position = position.toLowerCase(); - insert = Element._insertionTranslations[position]; - - if (content && content.toElement) content = content.toElement(); - if (Object.isElement(content)) { - insert(element, content); - continue; - } - - content = Object.toHTML(content); - - tagName = ((position == 'before' || position == 'after') - ? element.parentNode : element).tagName.toUpperCase(); - - childNodes = Element._getContentFromAnonymousElement(tagName, content.stripScripts()); - - if (position == 'top' || position == 'after') childNodes.reverse(); - childNodes.each(insert.curry(element)); - - content.evalScripts.bind(content).defer(); - } - - return element; - }, - - wrap: function(element, wrapper, attributes) { - element = $(element); - if (Object.isElement(wrapper)) - $(wrapper).writeAttribute(attributes || { }); - else if (Object.isString(wrapper)) wrapper = new Element(wrapper, attributes); - else wrapper = new Element('div', wrapper); - if (element.parentNode) - element.parentNode.replaceChild(wrapper, element); - wrapper.appendChild(element); - return wrapper; - }, - - inspect: function(element) { - element = $(element); - var result = '<' + element.tagName.toLowerCase(); - $H({'id': 'id', 'className': 'class'}).each(function(pair) { - var property = pair.first(), attribute = pair.last(); - var value = (element[property] || '').toString(); - if (value) result += ' ' + attribute + '=' + value.inspect(true); - }); - return result + '>'; - }, - - recursivelyCollect: function(element, property) { - element = $(element); - var elements = []; - while (element = element[property]) - if (element.nodeType == 1) - elements.push(Element.extend(element)); - return elements; - }, - - ancestors: function(element) { - return $(element).recursivelyCollect('parentNode'); - }, - - descendants: function(element) { - return $(element).select("*"); - }, - - firstDescendant: function(element) { - element = $(element).firstChild; - while (element && element.nodeType != 1) element = element.nextSibling; - return $(element); - }, - - immediateDescendants: function(element) { - if (!(element = $(element).firstChild)) return []; - while (element && element.nodeType != 1) element = element.nextSibling; - if (element) return [element].concat($(element).nextSiblings()); - return []; - }, - - previousSiblings: function(element) { - return $(element).recursivelyCollect('previousSibling'); - }, - - nextSiblings: function(element) { - return $(element).recursivelyCollect('nextSibling'); - }, - - siblings: function(element) { - element = $(element); - return element.previousSiblings().reverse().concat(element.nextSiblings()); - }, - - match: function(element, selector) { - if (Object.isString(selector)) - selector = new Selector(selector); - return selector.match($(element)); - }, - - up: function(element, expression, index) { - element = $(element); - if (arguments.length == 1) return $(element.parentNode); - var ancestors = element.ancestors(); - return Object.isNumber(expression) ? ancestors[expression] : - Selector.findElement(ancestors, expression, index); - }, - - down: function(element, expression, index) { - element = $(element); - if (arguments.length == 1) return element.firstDescendant(); - return Object.isNumber(expression) ? element.descendants()[expression] : - element.select(expression)[index || 0]; - }, - - previous: function(element, expression, index) { - element = $(element); - if (arguments.length == 1) return $(Selector.handlers.previousElementSibling(element)); - var previousSiblings = element.previousSiblings(); - return Object.isNumber(expression) ? previousSiblings[expression] : - Selector.findElement(previousSiblings, expression, index); - }, - - next: function(element, expression, index) { - element = $(element); - if (arguments.length == 1) return $(Selector.handlers.nextElementSibling(element)); - var nextSiblings = element.nextSiblings(); - return Object.isNumber(expression) ? nextSiblings[expression] : - Selector.findElement(nextSiblings, expression, index); - }, - - select: function() { - var args = $A(arguments), element = $(args.shift()); - return Selector.findChildElements(element, args); - }, - - adjacent: function() { - var args = $A(arguments), element = $(args.shift()); - return Selector.findChildElements(element.parentNode, args).without(element); - }, - - identify: function(element) { - element = $(element); - var id = element.readAttribute('id'), self = arguments.callee; - if (id) return id; - do { id = 'anonymous_element_' + self.counter++ } while ($(id)); - element.writeAttribute('id', id); - return id; - }, - - readAttribute: function(element, name) { - element = $(element); - if (Prototype.Browser.IE) { - var t = Element._attributeTranslations.read; - if (t.values[name]) return t.values[name](element, name); - if (t.names[name]) name = t.names[name]; - if (name.include(':')) { - return (!element.attributes || !element.attributes[name]) ? null : - element.attributes[name].value; - } - } - return element.getAttribute(name); - }, - - writeAttribute: function(element, name, value) { - element = $(element); - var attributes = { }, t = Element._attributeTranslations.write; - - if (typeof name == 'object') attributes = name; - else attributes[name] = Object.isUndefined(value) ? true : value; - - for (var attr in attributes) { - name = t.names[attr] || attr; - value = attributes[attr]; - if (t.values[attr]) name = t.values[attr](element, value); - if (value === false || value === null) - element.removeAttribute(name); - else if (value === true) - element.setAttribute(name, name); - else element.setAttribute(name, value); - } - return element; - }, - - getHeight: function(element) { - return $(element).getDimensions().height; - }, - - getWidth: function(element) { - return $(element).getDimensions().width; - }, - - classNames: function(element) { - return new Element.ClassNames(element); - }, - - hasClassName: function(element, className) { - if (!(element = $(element))) return; - var elementClassName = element.className; - return (elementClassName.length > 0 && (elementClassName == className || - new RegExp("(^|\\s)" + className + "(\\s|$)").test(elementClassName))); - }, - - addClassName: function(element, className) { - if (!(element = $(element))) return; - if (!element.hasClassName(className)) - element.className += (element.className ? ' ' : '') + className; - return element; - }, - - removeClassName: function(element, className) { - if (!(element = $(element))) return; - element.className = element.className.replace( - new RegExp("(^|\\s+)" + className + "(\\s+|$)"), ' ').strip(); - return element; - }, - - toggleClassName: function(element, className) { - if (!(element = $(element))) return; - return element[element.hasClassName(className) ? - 'removeClassName' : 'addClassName'](className); - }, - - // removes whitespace-only text node children - cleanWhitespace: function(element) { - element = $(element); - var node = element.firstChild; - while (node) { - var nextNode = node.nextSibling; - if (node.nodeType == 3 && !/\S/.test(node.nodeValue)) - element.removeChild(node); - node = nextNode; - } - return element; - }, - - empty: function(element) { - return $(element).innerHTML.blank(); - }, - - descendantOf: function(element, ancestor) { - element = $(element), ancestor = $(ancestor); - var originalAncestor = ancestor; - - if (element.compareDocumentPosition) - return (element.compareDocumentPosition(ancestor) & 8) === 8; - - if (element.sourceIndex && !Prototype.Browser.Opera) { - var e = element.sourceIndex, a = ancestor.sourceIndex, - nextAncestor = ancestor.nextSibling; - if (!nextAncestor) { - do { ancestor = ancestor.parentNode; } - while (!(nextAncestor = ancestor.nextSibling) && ancestor.parentNode); - } - if (nextAncestor && nextAncestor.sourceIndex) - return (e > a && e < nextAncestor.sourceIndex); - } - - while (element = element.parentNode) - if (element == originalAncestor) return true; - return false; - }, - - scrollTo: function(element) { - element = $(element); - var pos = element.cumulativeOffset(); - window.scrollTo(pos[0], pos[1]); - return element; - }, - - getStyle: function(element, style) { - element = $(element); - style = style == 'float' ? 'cssFloat' : style.camelize(); - var value = element.style[style]; - if (!value) { - var css = document.defaultView.getComputedStyle(element, null); - value = css ? css[style] : null; - } - if (style == 'opacity') return value ? parseFloat(value) : 1.0; - return value == 'auto' ? null : value; - }, - - getOpacity: function(element) { - return $(element).getStyle('opacity'); - }, - - setStyle: function(element, styles) { - element = $(element); - var elementStyle = element.style, match; - if (Object.isString(styles)) { - element.style.cssText += ';' + styles; - return styles.include('opacity') ? - element.setOpacity(styles.match(/opacity:\s*(\d?\.?\d*)/)[1]) : element; - } - for (var property in styles) - if (property == 'opacity') element.setOpacity(styles[property]); - else - elementStyle[(property == 'float' || property == 'cssFloat') ? - (Object.isUndefined(elementStyle.styleFloat) ? 'cssFloat' : 'styleFloat') : - property] = styles[property]; - - return element; - }, - - setOpacity: function(element, value) { - element = $(element); - element.style.opacity = (value == 1 || value === '') ? '' : - (value < 0.00001) ? 0 : value; - return element; - }, - - getDimensions: function(element) { - element = $(element); - var display = $(element).getStyle('display'); - if (display != 'none' && display != null) // Safari bug - return {width: element.offsetWidth, height: element.offsetHeight}; - - // All *Width and *Height properties give 0 on elements with display none, - // so enable the element temporarily - var els = element.style; - var originalVisibility = els.visibility; - var originalPosition = els.position; - var originalDisplay = els.display; - els.visibility = 'hidden'; - els.position = 'absolute'; - els.display = 'block'; - var originalWidth = element.clientWidth; - var originalHeight = element.clientHeight; - els.display = originalDisplay; - els.position = originalPosition; - els.visibility = originalVisibility; - return {width: originalWidth, height: originalHeight}; - }, - - makePositioned: function(element) { - element = $(element); - var pos = Element.getStyle(element, 'position'); - if (pos == 'static' || !pos) { - element._madePositioned = true; - element.style.position = 'relative'; - // Opera returns the offset relative to the positioning context, when an - // element is position relative but top and left have not been defined - if (window.opera) { - element.style.top = 0; - element.style.left = 0; - } - } - return element; - }, - - undoPositioned: function(element) { - element = $(element); - if (element._madePositioned) { - element._madePositioned = undefined; - element.style.position = - element.style.top = - element.style.left = - element.style.bottom = - element.style.right = ''; - } - return element; - }, - - makeClipping: function(element) { - element = $(element); - if (element._overflow) return element; - element._overflow = Element.getStyle(element, 'overflow') || 'auto'; - if (element._overflow !== 'hidden') - element.style.overflow = 'hidden'; - return element; - }, - - undoClipping: function(element) { - element = $(element); - if (!element._overflow) return element; - element.style.overflow = element._overflow == 'auto' ? '' : element._overflow; - element._overflow = null; - return element; - }, - - cumulativeOffset: function(element) { - var valueT = 0, valueL = 0; - do { - valueT += element.offsetTop || 0; - valueL += element.offsetLeft || 0; - element = element.offsetParent; - } while (element); - return Element._returnOffset(valueL, valueT); - }, - - positionedOffset: function(element) { - var valueT = 0, valueL = 0; - do { - valueT += element.offsetTop || 0; - valueL += element.offsetLeft || 0; - element = element.offsetParent; - if (element) { - if (element.tagName == 'BODY') break; - var p = Element.getStyle(element, 'position'); - if (p !== 'static') break; - } - } while (element); - return Element._returnOffset(valueL, valueT); - }, - - absolutize: function(element) { - element = $(element); - if (element.getStyle('position') == 'absolute') return; - // Position.prepare(); // To be done manually by Scripty when it needs it. - - var offsets = element.positionedOffset(); - var top = offsets[1]; - var left = offsets[0]; - var width = element.clientWidth; - var height = element.clientHeight; - - element._originalLeft = left - parseFloat(element.style.left || 0); - element._originalTop = top - parseFloat(element.style.top || 0); - element._originalWidth = element.style.width; - element._originalHeight = element.style.height; - - element.style.position = 'absolute'; - element.style.top = top + 'px'; - element.style.left = left + 'px'; - element.style.width = width + 'px'; - element.style.height = height + 'px'; - return element; - }, - - relativize: function(element) { - element = $(element); - if (element.getStyle('position') == 'relative') return; - // Position.prepare(); // To be done manually by Scripty when it needs it. - - element.style.position = 'relative'; - var top = parseFloat(element.style.top || 0) - (element._originalTop || 0); - var left = parseFloat(element.style.left || 0) - (element._originalLeft || 0); - - element.style.top = top + 'px'; - element.style.left = left + 'px'; - element.style.height = element._originalHeight; - element.style.width = element._originalWidth; - return element; - }, - - cumulativeScrollOffset: function(element) { - var valueT = 0, valueL = 0; - do { - valueT += element.scrollTop || 0; - valueL += element.scrollLeft || 0; - element = element.parentNode; - } while (element); - return Element._returnOffset(valueL, valueT); - }, - - getOffsetParent: function(element) { - if (element.offsetParent) return $(element.offsetParent); - if (element == document.body) return $(element); - - while ((element = element.parentNode) && element != document.body) - if (Element.getStyle(element, 'position') != 'static') - return $(element); - - return $(document.body); - }, - - viewportOffset: function(forElement) { - var valueT = 0, valueL = 0; - - var element = forElement; - do { - valueT += element.offsetTop || 0; - valueL += element.offsetLeft || 0; - - // Safari fix - if (element.offsetParent == document.body && - Element.getStyle(element, 'position') == 'absolute') break; - - } while (element = element.offsetParent); - - element = forElement; - do { - if (!Prototype.Browser.Opera || element.tagName == 'BODY') { - valueT -= element.scrollTop || 0; - valueL -= element.scrollLeft || 0; - } - } while (element = element.parentNode); - - return Element._returnOffset(valueL, valueT); - }, - - clonePosition: function(element, source) { - var options = Object.extend({ - setLeft: true, - setTop: true, - setWidth: true, - setHeight: true, - offsetTop: 0, - offsetLeft: 0 - }, arguments[2] || { }); - - // find page position of source - source = $(source); - var p = source.viewportOffset(); - - // find coordinate system to use - element = $(element); - var delta = [0, 0]; - var parent = null; - // delta [0,0] will do fine with position: fixed elements, - // position:absolute needs offsetParent deltas - if (Element.getStyle(element, 'position') == 'absolute') { - parent = element.getOffsetParent(); - delta = parent.viewportOffset(); - } - - // correct by body offsets (fixes Safari) - if (parent == document.body) { - delta[0] -= document.body.offsetLeft; - delta[1] -= document.body.offsetTop; - } - - // set position - if (options.setLeft) element.style.left = (p[0] - delta[0] + options.offsetLeft) + 'px'; - if (options.setTop) element.style.top = (p[1] - delta[1] + options.offsetTop) + 'px'; - if (options.setWidth) element.style.width = source.offsetWidth + 'px'; - if (options.setHeight) element.style.height = source.offsetHeight + 'px'; - return element; - } -}; - -Element.Methods.identify.counter = 1; - -Object.extend(Element.Methods, { - getElementsBySelector: Element.Methods.select, - childElements: Element.Methods.immediateDescendants -}); - -Element._attributeTranslations = { - write: { - names: { - className: 'class', - htmlFor: 'for' - }, - values: { } - } -}; - -if (Prototype.Browser.Opera) { - Element.Methods.getStyle = Element.Methods.getStyle.wrap( - function(proceed, element, style) { - switch (style) { - case 'left': case 'top': case 'right': case 'bottom': - if (proceed(element, 'position') === 'static') return null; - case 'height': case 'width': - // returns '0px' for hidden elements; we want it to return null - if (!Element.visible(element)) return null; - - // returns the border-box dimensions rather than the content-box - // dimensions, so we subtract padding and borders from the value - var dim = parseInt(proceed(element, style), 10); - - if (dim !== element['offset' + style.capitalize()]) - return dim + 'px'; - - var properties; - if (style === 'height') { - properties = ['border-top-width', 'padding-top', - 'padding-bottom', 'border-bottom-width']; - } - else { - properties = ['border-left-width', 'padding-left', - 'padding-right', 'border-right-width']; - } - return properties.inject(dim, function(memo, property) { - var val = proceed(element, property); - return val === null ? memo : memo - parseInt(val, 10); - }) + 'px'; - default: return proceed(element, style); - } - } - ); - - Element.Methods.readAttribute = Element.Methods.readAttribute.wrap( - function(proceed, element, attribute) { - if (attribute === 'title') return element.title; - return proceed(element, attribute); - } - ); -} - -else if (Prototype.Browser.IE) { - // IE doesn't report offsets correctly for static elements, so we change them - // to "relative" to get the values, then change them back. - Element.Methods.getOffsetParent = Element.Methods.getOffsetParent.wrap( - function(proceed, element) { - element = $(element); - var position = element.getStyle('position'); - if (position !== 'static') return proceed(element); - element.setStyle({ position: 'relative' }); - var value = proceed(element); - element.setStyle({ position: position }); - return value; - } - ); - - $w('positionedOffset viewportOffset').each(function(method) { - Element.Methods[method] = Element.Methods[method].wrap( - function(proceed, element) { - element = $(element); - var position = element.getStyle('position'); - if (position !== 'static') return proceed(element); - // Trigger hasLayout on the offset parent so that IE6 reports - // accurate offsetTop and offsetLeft values for position: fixed. - var offsetParent = element.getOffsetParent(); - if (offsetParent && offsetParent.getStyle('position') === 'fixed') - offsetParent.setStyle({ zoom: 1 }); - element.setStyle({ position: 'relative' }); - var value = proceed(element); - element.setStyle({ position: position }); - return value; - } - ); - }); - - Element.Methods.getStyle = function(element, style) { - element = $(element); - style = (style == 'float' || style == 'cssFloat') ? 'styleFloat' : style.camelize(); - var value = element.style[style]; - if (!value && element.currentStyle) value = element.currentStyle[style]; - - if (style == 'opacity') { - if (value = (element.getStyle('filter') || '').match(/alpha\(opacity=(.*)\)/)) - if (value[1]) return parseFloat(value[1]) / 100; - return 1.0; - } - - if (value == 'auto') { - if ((style == 'width' || style == 'height') && (element.getStyle('display') != 'none')) - return element['offset' + style.capitalize()] + 'px'; - return null; - } - return value; - }; - - Element.Methods.setOpacity = function(element, value) { - function stripAlpha(filter){ - return filter.replace(/alpha\([^\)]*\)/gi,''); - } - element = $(element); - var currentStyle = element.currentStyle; - if ((currentStyle && !currentStyle.hasLayout) || - (!currentStyle && element.style.zoom == 'normal')) - element.style.zoom = 1; - - var filter = element.getStyle('filter'), style = element.style; - if (value == 1 || value === '') { - (filter = stripAlpha(filter)) ? - style.filter = filter : style.removeAttribute('filter'); - return element; - } else if (value < 0.00001) value = 0; - style.filter = stripAlpha(filter) + - 'alpha(opacity=' + (value * 100) + ')'; - return element; - }; - - Element._attributeTranslations = { - read: { - names: { - 'class': 'className', - 'for': 'htmlFor' - }, - values: { - _getAttr: function(element, attribute) { - return element.getAttribute(attribute, 2); - }, - _getAttrNode: function(element, attribute) { - var node = element.getAttributeNode(attribute); - return node ? node.value : ""; - }, - _getEv: function(element, attribute) { - attribute = element.getAttribute(attribute); - return attribute ? attribute.toString().slice(23, -2) : null; - }, - _flag: function(element, attribute) { - return $(element).hasAttribute(attribute) ? attribute : null; - }, - style: function(element) { - return element.style.cssText.toLowerCase(); - }, - title: function(element) { - return element.title; - } - } - } - }; - - Element._attributeTranslations.write = { - names: Object.extend({ - cellpadding: 'cellPadding', - cellspacing: 'cellSpacing' - }, Element._attributeTranslations.read.names), - values: { - checked: function(element, value) { - element.checked = !!value; - }, - - style: function(element, value) { - element.style.cssText = value ? value : ''; - } - } - }; - - Element._attributeTranslations.has = {}; - - $w('colSpan rowSpan vAlign dateTime accessKey tabIndex ' + - 'encType maxLength readOnly longDesc').each(function(attr) { - Element._attributeTranslations.write.names[attr.toLowerCase()] = attr; - Element._attributeTranslations.has[attr.toLowerCase()] = attr; - }); - - (function(v) { - Object.extend(v, { - href: v._getAttr, - src: v._getAttr, - type: v._getAttr, - action: v._getAttrNode, - disabled: v._flag, - checked: v._flag, - readonly: v._flag, - multiple: v._flag, - onload: v._getEv, - onunload: v._getEv, - onclick: v._getEv, - ondblclick: v._getEv, - onmousedown: v._getEv, - onmouseup: v._getEv, - onmouseover: v._getEv, - onmousemove: v._getEv, - onmouseout: v._getEv, - onfocus: v._getEv, - onblur: v._getEv, - onkeypress: v._getEv, - onkeydown: v._getEv, - onkeyup: v._getEv, - onsubmit: v._getEv, - onreset: v._getEv, - onselect: v._getEv, - onchange: v._getEv - }); - })(Element._attributeTranslations.read.values); -} - -else if (Prototype.Browser.Gecko && /rv:1\.8\.0/.test(navigator.userAgent)) { - Element.Methods.setOpacity = function(element, value) { - element = $(element); - element.style.opacity = (value == 1) ? 0.999999 : - (value === '') ? '' : (value < 0.00001) ? 0 : value; - return element; - }; -} - -else if (Prototype.Browser.WebKit) { - Element.Methods.setOpacity = function(element, value) { - element = $(element); - element.style.opacity = (value == 1 || value === '') ? '' : - (value < 0.00001) ? 0 : value; - - if (value == 1) - if(element.tagName == 'IMG' && element.width) { - element.width++; element.width--; - } else try { - var n = document.createTextNode(' '); - element.appendChild(n); - element.removeChild(n); - } catch (e) { } - - return element; - }; - - // Safari returns margins on body which is incorrect if the child is absolutely - // positioned. For performance reasons, redefine Element#cumulativeOffset for - // KHTML/WebKit only. - Element.Methods.cumulativeOffset = function(element) { - var valueT = 0, valueL = 0; - do { - valueT += element.offsetTop || 0; - valueL += element.offsetLeft || 0; - if (element.offsetParent == document.body) - if (Element.getStyle(element, 'position') == 'absolute') break; - - element = element.offsetParent; - } while (element); - - return Element._returnOffset(valueL, valueT); - }; -} - -if (Prototype.Browser.IE || Prototype.Browser.Opera) { - // IE and Opera are missing .innerHTML support for TABLE-related and SELECT elements - Element.Methods.update = function(element, content) { - element = $(element); - - if (content && content.toElement) content = content.toElement(); - if (Object.isElement(content)) return element.update().insert(content); - - content = Object.toHTML(content); - var tagName = element.tagName.toUpperCase(); - - if (tagName in Element._insertionTranslations.tags) { - $A(element.childNodes).each(function(node) { element.removeChild(node) }); - Element._getContentFromAnonymousElement(tagName, content.stripScripts()) - .each(function(node) { element.appendChild(node) }); - } - else element.innerHTML = content.stripScripts(); - - content.evalScripts.bind(content).defer(); - return element; - }; -} - -if ('outerHTML' in document.createElement('div')) { - Element.Methods.replace = function(element, content) { - element = $(element); - - if (content && content.toElement) content = content.toElement(); - if (Object.isElement(content)) { - element.parentNode.replaceChild(content, element); - return element; - } - - content = Object.toHTML(content); - var parent = element.parentNode, tagName = parent.tagName.toUpperCase(); - - if (Element._insertionTranslations.tags[tagName]) { - var nextSibling = element.next(); - var fragments = Element._getContentFromAnonymousElement(tagName, content.stripScripts()); - parent.removeChild(element); - if (nextSibling) - fragments.each(function(node) { parent.insertBefore(node, nextSibling) }); - else - fragments.each(function(node) { parent.appendChild(node) }); - } - else element.outerHTML = content.stripScripts(); - - content.evalScripts.bind(content).defer(); - return element; - }; -} - -Element._returnOffset = function(l, t) { - var result = [l, t]; - result.left = l; - result.top = t; - return result; -}; - -Element._getContentFromAnonymousElement = function(tagName, html) { - var div = new Element('div'), t = Element._insertionTranslations.tags[tagName]; - if (t) { - div.innerHTML = t[0] + html + t[1]; - t[2].times(function() { div = div.firstChild }); - } else div.innerHTML = html; - return $A(div.childNodes); -}; - -Element._insertionTranslations = { - before: function(element, node) { - element.parentNode.insertBefore(node, element); - }, - top: function(element, node) { - element.insertBefore(node, element.firstChild); - }, - bottom: function(element, node) { - element.appendChild(node); - }, - after: function(element, node) { - element.parentNode.insertBefore(node, element.nextSibling); - }, - tags: { - TABLE: ['', '
    ', 1], - TBODY: ['', '
    ', 2], - TR: ['', '
    ', 3], - TD: ['
    ', '
    ', 4], - SELECT: ['', 1] - } -}; - -(function() { - Object.extend(this.tags, { - THEAD: this.tags.TBODY, - TFOOT: this.tags.TBODY, - TH: this.tags.TD - }); -}).call(Element._insertionTranslations); - -Element.Methods.Simulated = { - hasAttribute: function(element, attribute) { - attribute = Element._attributeTranslations.has[attribute] || attribute; - var node = $(element).getAttributeNode(attribute); - return node && node.specified; - } -}; - -Element.Methods.ByTag = { }; - -Object.extend(Element, Element.Methods); - -if (!Prototype.BrowserFeatures.ElementExtensions && - document.createElement('div').__proto__) { - window.HTMLElement = { }; - window.HTMLElement.prototype = document.createElement('div').__proto__; - Prototype.BrowserFeatures.ElementExtensions = true; -} - -Element.extend = (function() { - if (Prototype.BrowserFeatures.SpecificElementExtensions) - return Prototype.K; - - var Methods = { }, ByTag = Element.Methods.ByTag; - - var extend = Object.extend(function(element) { - if (!element || element._extendedByPrototype || - element.nodeType != 1 || element == window) return element; - - var methods = Object.clone(Methods), - tagName = element.tagName, property, value; - - // extend methods for specific tags - if (ByTag[tagName]) Object.extend(methods, ByTag[tagName]); - - for (property in methods) { - value = methods[property]; - if (Object.isFunction(value) && !(property in element)) - element[property] = value.methodize(); - } - - element._extendedByPrototype = Prototype.emptyFunction; - return element; - - }, { - refresh: function() { - // extend methods for all tags (Safari doesn't need this) - if (!Prototype.BrowserFeatures.ElementExtensions) { - Object.extend(Methods, Element.Methods); - Object.extend(Methods, Element.Methods.Simulated); - } - } - }); - - extend.refresh(); - return extend; -})(); - -Element.hasAttribute = function(element, attribute) { - if (element.hasAttribute) return element.hasAttribute(attribute); - return Element.Methods.Simulated.hasAttribute(element, attribute); -}; - -Element.addMethods = function(methods) { - var F = Prototype.BrowserFeatures, T = Element.Methods.ByTag; - - if (!methods) { - Object.extend(Form, Form.Methods); - Object.extend(Form.Element, Form.Element.Methods); - Object.extend(Element.Methods.ByTag, { - "FORM": Object.clone(Form.Methods), - "INPUT": Object.clone(Form.Element.Methods), - "SELECT": Object.clone(Form.Element.Methods), - "TEXTAREA": Object.clone(Form.Element.Methods) - }); - } - - if (arguments.length == 2) { - var tagName = methods; - methods = arguments[1]; - } - - if (!tagName) Object.extend(Element.Methods, methods || { }); - else { - if (Object.isArray(tagName)) tagName.each(extend); - else extend(tagName); - } - - function extend(tagName) { - tagName = tagName.toUpperCase(); - if (!Element.Methods.ByTag[tagName]) - Element.Methods.ByTag[tagName] = { }; - Object.extend(Element.Methods.ByTag[tagName], methods); - } - - function copy(methods, destination, onlyIfAbsent) { - onlyIfAbsent = onlyIfAbsent || false; - for (var property in methods) { - var value = methods[property]; - if (!Object.isFunction(value)) continue; - if (!onlyIfAbsent || !(property in destination)) - destination[property] = value.methodize(); - } - } - - function findDOMClass(tagName) { - var klass; - var trans = { - "OPTGROUP": "OptGroup", "TEXTAREA": "TextArea", "P": "Paragraph", - "FIELDSET": "FieldSet", "UL": "UList", "OL": "OList", "DL": "DList", - "DIR": "Directory", "H1": "Heading", "H2": "Heading", "H3": "Heading", - "H4": "Heading", "H5": "Heading", "H6": "Heading", "Q": "Quote", - "INS": "Mod", "DEL": "Mod", "A": "Anchor", "IMG": "Image", "CAPTION": - "TableCaption", "COL": "TableCol", "COLGROUP": "TableCol", "THEAD": - "TableSection", "TFOOT": "TableSection", "TBODY": "TableSection", "TR": - "TableRow", "TH": "TableCell", "TD": "TableCell", "FRAMESET": - "FrameSet", "IFRAME": "IFrame" - }; - if (trans[tagName]) klass = 'HTML' + trans[tagName] + 'Element'; - if (window[klass]) return window[klass]; - klass = 'HTML' + tagName + 'Element'; - if (window[klass]) return window[klass]; - klass = 'HTML' + tagName.capitalize() + 'Element'; - if (window[klass]) return window[klass]; - - window[klass] = { }; - window[klass].prototype = document.createElement(tagName).__proto__; - return window[klass]; - } - - if (F.ElementExtensions) { - copy(Element.Methods, HTMLElement.prototype); - copy(Element.Methods.Simulated, HTMLElement.prototype, true); - } - - if (F.SpecificElementExtensions) { - for (var tag in Element.Methods.ByTag) { - var klass = findDOMClass(tag); - if (Object.isUndefined(klass)) continue; - copy(T[tag], klass.prototype); - } - } - - Object.extend(Element, Element.Methods); - delete Element.ByTag; - - if (Element.extend.refresh) Element.extend.refresh(); - Element.cache = { }; -}; - -document.viewport = { - getDimensions: function() { - var dimensions = { }; - var B = Prototype.Browser; - $w('width height').each(function(d) { - var D = d.capitalize(); - dimensions[d] = (B.WebKit && !document.evaluate) ? self['inner' + D] : - (B.Opera) ? document.body['client' + D] : document.documentElement['client' + D]; - }); - return dimensions; - }, - - getWidth: function() { - return this.getDimensions().width; - }, - - getHeight: function() { - return this.getDimensions().height; - }, - - getScrollOffsets: function() { - return Element._returnOffset( - window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft, - window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop); - } -}; -/* Portions of the Selector class are derived from Jack Slocum’s DomQuery, - * part of YUI-Ext version 0.40, distributed under the terms of an MIT-style - * license. Please see http://www.yui-ext.com/ for more information. */ - -var Selector = Class.create({ - initialize: function(expression) { - this.expression = expression.strip(); - this.compileMatcher(); - }, - - shouldUseXPath: function() { - if (!Prototype.BrowserFeatures.XPath) return false; - - var e = this.expression; - - // Safari 3 chokes on :*-of-type and :empty - if (Prototype.Browser.WebKit && - (e.include("-of-type") || e.include(":empty"))) - return false; - - // XPath can't do namespaced attributes, nor can it read - // the "checked" property from DOM nodes - if ((/(\[[\w-]*?:|:checked)/).test(this.expression)) - return false; - - return true; - }, - - compileMatcher: function() { - if (this.shouldUseXPath()) - return this.compileXPathMatcher(); - - var e = this.expression, ps = Selector.patterns, h = Selector.handlers, - c = Selector.criteria, le, p, m; - - if (Selector._cache[e]) { - this.matcher = Selector._cache[e]; - return; - } - - this.matcher = ["this.matcher = function(root) {", - "var r = root, h = Selector.handlers, c = false, n;"]; - - while (e && le != e && (/\S/).test(e)) { - le = e; - for (var i in ps) { - p = ps[i]; - if (m = e.match(p)) { - this.matcher.push(Object.isFunction(c[i]) ? c[i](m) : - new Template(c[i]).evaluate(m)); - e = e.replace(m[0], ''); - break; - } - } - } - - this.matcher.push("return h.unique(n);\n}"); - eval(this.matcher.join('\n')); - Selector._cache[this.expression] = this.matcher; - }, - - compileXPathMatcher: function() { - var e = this.expression, ps = Selector.patterns, - x = Selector.xpath, le, m; - - if (Selector._cache[e]) { - this.xpath = Selector._cache[e]; return; - } - - this.matcher = ['.//*']; - while (e && le != e && (/\S/).test(e)) { - le = e; - for (var i in ps) { - if (m = e.match(ps[i])) { - this.matcher.push(Object.isFunction(x[i]) ? x[i](m) : - new Template(x[i]).evaluate(m)); - e = e.replace(m[0], ''); - break; - } - } - } - - this.xpath = this.matcher.join(''); - Selector._cache[this.expression] = this.xpath; - }, - - findElements: function(root) { - root = root || document; - if (this.xpath) return document._getElementsByXPath(this.xpath, root); - return this.matcher(root); - }, - - match: function(element) { - this.tokens = []; - - var e = this.expression, ps = Selector.patterns, as = Selector.assertions; - var le, p, m; - - while (e && le !== e && (/\S/).test(e)) { - le = e; - for (var i in ps) { - p = ps[i]; - if (m = e.match(p)) { - // use the Selector.assertions methods unless the selector - // is too complex. - if (as[i]) { - this.tokens.push([i, Object.clone(m)]); - e = e.replace(m[0], ''); - } else { - // reluctantly do a document-wide search - // and look for a match in the array - return this.findElements(document).include(element); - } - } - } - } - - var match = true, name, matches; - for (var i = 0, token; token = this.tokens[i]; i++) { - name = token[0], matches = token[1]; - if (!Selector.assertions[name](element, matches)) { - match = false; break; - } - } - - return match; - }, - - toString: function() { - return this.expression; - }, - - inspect: function() { - return "#"; - } -}); - -Object.extend(Selector, { - _cache: { }, - - xpath: { - descendant: "//*", - child: "/*", - adjacent: "/following-sibling::*[1]", - laterSibling: '/following-sibling::*', - tagName: function(m) { - if (m[1] == '*') return ''; - return "[local-name()='" + m[1].toLowerCase() + - "' or local-name()='" + m[1].toUpperCase() + "']"; - }, - className: "[contains(concat(' ', @class, ' '), ' #{1} ')]", - id: "[@id='#{1}']", - attrPresence: function(m) { - m[1] = m[1].toLowerCase(); - return new Template("[@#{1}]").evaluate(m); - }, - attr: function(m) { - m[1] = m[1].toLowerCase(); - m[3] = m[5] || m[6]; - return new Template(Selector.xpath.operators[m[2]]).evaluate(m); - }, - pseudo: function(m) { - var h = Selector.xpath.pseudos[m[1]]; - if (!h) return ''; - if (Object.isFunction(h)) return h(m); - return new Template(Selector.xpath.pseudos[m[1]]).evaluate(m); - }, - operators: { - '=': "[@#{1}='#{3}']", - '!=': "[@#{1}!='#{3}']", - '^=': "[starts-with(@#{1}, '#{3}')]", - '$=': "[substring(@#{1}, (string-length(@#{1}) - string-length('#{3}') + 1))='#{3}']", - '*=': "[contains(@#{1}, '#{3}')]", - '~=': "[contains(concat(' ', @#{1}, ' '), ' #{3} ')]", - '|=': "[contains(concat('-', @#{1}, '-'), '-#{3}-')]" - }, - pseudos: { - 'first-child': '[not(preceding-sibling::*)]', - 'last-child': '[not(following-sibling::*)]', - 'only-child': '[not(preceding-sibling::* or following-sibling::*)]', - 'empty': "[count(*) = 0 and (count(text()) = 0 or translate(text(), ' \t\r\n', '') = '')]", - 'checked': "[@checked]", - 'disabled': "[@disabled]", - 'enabled': "[not(@disabled)]", - 'not': function(m) { - var e = m[6], p = Selector.patterns, - x = Selector.xpath, le, v; - - var exclusion = []; - while (e && le != e && (/\S/).test(e)) { - le = e; - for (var i in p) { - if (m = e.match(p[i])) { - v = Object.isFunction(x[i]) ? x[i](m) : new Template(x[i]).evaluate(m); - exclusion.push("(" + v.substring(1, v.length - 1) + ")"); - e = e.replace(m[0], ''); - break; - } - } - } - return "[not(" + exclusion.join(" and ") + ")]"; - }, - 'nth-child': function(m) { - return Selector.xpath.pseudos.nth("(count(./preceding-sibling::*) + 1) ", m); - }, - 'nth-last-child': function(m) { - return Selector.xpath.pseudos.nth("(count(./following-sibling::*) + 1) ", m); - }, - 'nth-of-type': function(m) { - return Selector.xpath.pseudos.nth("position() ", m); - }, - 'nth-last-of-type': function(m) { - return Selector.xpath.pseudos.nth("(last() + 1 - position()) ", m); - }, - 'first-of-type': function(m) { - m[6] = "1"; return Selector.xpath.pseudos['nth-of-type'](m); - }, - 'last-of-type': function(m) { - m[6] = "1"; return Selector.xpath.pseudos['nth-last-of-type'](m); - }, - 'only-of-type': function(m) { - var p = Selector.xpath.pseudos; return p['first-of-type'](m) + p['last-of-type'](m); - }, - nth: function(fragment, m) { - var mm, formula = m[6], predicate; - if (formula == 'even') formula = '2n+0'; - if (formula == 'odd') formula = '2n+1'; - if (mm = formula.match(/^(\d+)$/)) // digit only - return '[' + fragment + "= " + mm[1] + ']'; - if (mm = formula.match(/^(-?\d*)?n(([+-])(\d+))?/)) { // an+b - if (mm[1] == "-") mm[1] = -1; - var a = mm[1] ? Number(mm[1]) : 1; - var b = mm[2] ? Number(mm[2]) : 0; - predicate = "[((#{fragment} - #{b}) mod #{a} = 0) and " + - "((#{fragment} - #{b}) div #{a} >= 0)]"; - return new Template(predicate).evaluate({ - fragment: fragment, a: a, b: b }); - } - } - } - }, - - criteria: { - tagName: 'n = h.tagName(n, r, "#{1}", c); c = false;', - className: 'n = h.className(n, r, "#{1}", c); c = false;', - id: 'n = h.id(n, r, "#{1}", c); c = false;', - attrPresence: 'n = h.attrPresence(n, r, "#{1}", c); c = false;', - attr: function(m) { - m[3] = (m[5] || m[6]); - return new Template('n = h.attr(n, r, "#{1}", "#{3}", "#{2}", c); c = false;').evaluate(m); - }, - pseudo: function(m) { - if (m[6]) m[6] = m[6].replace(/"/g, '\\"'); - return new Template('n = h.pseudo(n, "#{1}", "#{6}", r, c); c = false;').evaluate(m); - }, - descendant: 'c = "descendant";', - child: 'c = "child";', - adjacent: 'c = "adjacent";', - laterSibling: 'c = "laterSibling";' - }, - - patterns: { - // combinators must be listed first - // (and descendant needs to be last combinator) - laterSibling: /^\s*~\s*/, - child: /^\s*>\s*/, - adjacent: /^\s*\+\s*/, - descendant: /^\s/, - - // selectors follow - tagName: /^\s*(\*|[\w\-]+)(\b|$)?/, - id: /^#([\w\-\*]+)(\b|$)/, - className: /^\.([\w\-\*]+)(\b|$)/, - pseudo: -/^:((first|last|nth|nth-last|only)(-child|-of-type)|empty|checked|(en|dis)abled|not)(\((.*?)\))?(\b|$|(?=\s|[:+~>]))/, - attrPresence: /^\[([\w]+)\]/, - attr: /\[((?:[\w-]*:)?[\w-]+)\s*(?:([!^$*~|]?=)\s*((['"])([^\4]*?)\4|([^'"][^\]]*?)))?\]/ - }, - - // for Selector.match and Element#match - assertions: { - tagName: function(element, matches) { - return matches[1].toUpperCase() == element.tagName.toUpperCase(); - }, - - className: function(element, matches) { - return Element.hasClassName(element, matches[1]); - }, - - id: function(element, matches) { - return element.id === matches[1]; - }, - - attrPresence: function(element, matches) { - return Element.hasAttribute(element, matches[1]); - }, - - attr: function(element, matches) { - var nodeValue = Element.readAttribute(element, matches[1]); - return nodeValue && Selector.operators[matches[2]](nodeValue, matches[5] || matches[6]); - } - }, - - handlers: { - // UTILITY FUNCTIONS - // joins two collections - concat: function(a, b) { - for (var i = 0, node; node = b[i]; i++) - a.push(node); - return a; - }, - - // marks an array of nodes for counting - mark: function(nodes) { - var _true = Prototype.emptyFunction; - for (var i = 0, node; node = nodes[i]; i++) - node._countedByPrototype = _true; - return nodes; - }, - - unmark: function(nodes) { - for (var i = 0, node; node = nodes[i]; i++) - node._countedByPrototype = undefined; - return nodes; - }, - - // mark each child node with its position (for nth calls) - // "ofType" flag indicates whether we're indexing for nth-of-type - // rather than nth-child - index: function(parentNode, reverse, ofType) { - parentNode._countedByPrototype = Prototype.emptyFunction; - if (reverse) { - for (var nodes = parentNode.childNodes, i = nodes.length - 1, j = 1; i >= 0; i--) { - var node = nodes[i]; - if (node.nodeType == 1 && (!ofType || node._countedByPrototype)) node.nodeIndex = j++; - } - } else { - for (var i = 0, j = 1, nodes = parentNode.childNodes; node = nodes[i]; i++) - if (node.nodeType == 1 && (!ofType || node._countedByPrototype)) node.nodeIndex = j++; - } - }, - - // filters out duplicates and extends all nodes - unique: function(nodes) { - if (nodes.length == 0) return nodes; - var results = [], n; - for (var i = 0, l = nodes.length; i < l; i++) - if (!(n = nodes[i])._countedByPrototype) { - n._countedByPrototype = Prototype.emptyFunction; - results.push(Element.extend(n)); - } - return Selector.handlers.unmark(results); - }, - - // COMBINATOR FUNCTIONS - descendant: function(nodes) { - var h = Selector.handlers; - for (var i = 0, results = [], node; node = nodes[i]; i++) - h.concat(results, node.getElementsByTagName('*')); - return results; - }, - - child: function(nodes) { - var h = Selector.handlers; - for (var i = 0, results = [], node; node = nodes[i]; i++) { - for (var j = 0, child; child = node.childNodes[j]; j++) - if (child.nodeType == 1 && child.tagName != '!') results.push(child); - } - return results; - }, - - adjacent: function(nodes) { - for (var i = 0, results = [], node; node = nodes[i]; i++) { - var next = this.nextElementSibling(node); - if (next) results.push(next); - } - return results; - }, - - laterSibling: function(nodes) { - var h = Selector.handlers; - for (var i = 0, results = [], node; node = nodes[i]; i++) - h.concat(results, Element.nextSiblings(node)); - return results; - }, - - nextElementSibling: function(node) { - while (node = node.nextSibling) - if (node.nodeType == 1) return node; - return null; - }, - - previousElementSibling: function(node) { - while (node = node.previousSibling) - if (node.nodeType == 1) return node; - return null; - }, - - // TOKEN FUNCTIONS - tagName: function(nodes, root, tagName, combinator) { - var uTagName = tagName.toUpperCase(); - var results = [], h = Selector.handlers; - if (nodes) { - if (combinator) { - // fastlane for ordinary descendant combinators - if (combinator == "descendant") { - for (var i = 0, node; node = nodes[i]; i++) - h.concat(results, node.getElementsByTagName(tagName)); - return results; - } else nodes = this[combinator](nodes); - if (tagName == "*") return nodes; - } - for (var i = 0, node; node = nodes[i]; i++) - if (node.tagName.toUpperCase() === uTagName) results.push(node); - return results; - } else return root.getElementsByTagName(tagName); - }, - - id: function(nodes, root, id, combinator) { - var targetNode = $(id), h = Selector.handlers; - if (!targetNode) return []; - if (!nodes && root == document) return [targetNode]; - if (nodes) { - if (combinator) { - if (combinator == 'child') { - for (var i = 0, node; node = nodes[i]; i++) - if (targetNode.parentNode == node) return [targetNode]; - } else if (combinator == 'descendant') { - for (var i = 0, node; node = nodes[i]; i++) - if (Element.descendantOf(targetNode, node)) return [targetNode]; - } else if (combinator == 'adjacent') { - for (var i = 0, node; node = nodes[i]; i++) - if (Selector.handlers.previousElementSibling(targetNode) == node) - return [targetNode]; - } else nodes = h[combinator](nodes); - } - for (var i = 0, node; node = nodes[i]; i++) - if (node == targetNode) return [targetNode]; - return []; - } - return (targetNode && Element.descendantOf(targetNode, root)) ? [targetNode] : []; - }, - - className: function(nodes, root, className, combinator) { - if (nodes && combinator) nodes = this[combinator](nodes); - return Selector.handlers.byClassName(nodes, root, className); - }, - - byClassName: function(nodes, root, className) { - if (!nodes) nodes = Selector.handlers.descendant([root]); - var needle = ' ' + className + ' '; - for (var i = 0, results = [], node, nodeClassName; node = nodes[i]; i++) { - nodeClassName = node.className; - if (nodeClassName.length == 0) continue; - if (nodeClassName == className || (' ' + nodeClassName + ' ').include(needle)) - results.push(node); - } - return results; - }, - - attrPresence: function(nodes, root, attr, combinator) { - if (!nodes) nodes = root.getElementsByTagName("*"); - if (nodes && combinator) nodes = this[combinator](nodes); - var results = []; - for (var i = 0, node; node = nodes[i]; i++) - if (Element.hasAttribute(node, attr)) results.push(node); - return results; - }, - - attr: function(nodes, root, attr, value, operator, combinator) { - if (!nodes) nodes = root.getElementsByTagName("*"); - if (nodes && combinator) nodes = this[combinator](nodes); - var handler = Selector.operators[operator], results = []; - for (var i = 0, node; node = nodes[i]; i++) { - var nodeValue = Element.readAttribute(node, attr); - if (nodeValue === null) continue; - if (handler(nodeValue, value)) results.push(node); - } - return results; - }, - - pseudo: function(nodes, name, value, root, combinator) { - if (nodes && combinator) nodes = this[combinator](nodes); - if (!nodes) nodes = root.getElementsByTagName("*"); - return Selector.pseudos[name](nodes, value, root); - } - }, - - pseudos: { - 'first-child': function(nodes, value, root) { - for (var i = 0, results = [], node; node = nodes[i]; i++) { - if (Selector.handlers.previousElementSibling(node)) continue; - results.push(node); - } - return results; - }, - 'last-child': function(nodes, value, root) { - for (var i = 0, results = [], node; node = nodes[i]; i++) { - if (Selector.handlers.nextElementSibling(node)) continue; - results.push(node); - } - return results; - }, - 'only-child': function(nodes, value, root) { - var h = Selector.handlers; - for (var i = 0, results = [], node; node = nodes[i]; i++) - if (!h.previousElementSibling(node) && !h.nextElementSibling(node)) - results.push(node); - return results; - }, - 'nth-child': function(nodes, formula, root) { - return Selector.pseudos.nth(nodes, formula, root); - }, - 'nth-last-child': function(nodes, formula, root) { - return Selector.pseudos.nth(nodes, formula, root, true); - }, - 'nth-of-type': function(nodes, formula, root) { - return Selector.pseudos.nth(nodes, formula, root, false, true); - }, - 'nth-last-of-type': function(nodes, formula, root) { - return Selector.pseudos.nth(nodes, formula, root, true, true); - }, - 'first-of-type': function(nodes, formula, root) { - return Selector.pseudos.nth(nodes, "1", root, false, true); - }, - 'last-of-type': function(nodes, formula, root) { - return Selector.pseudos.nth(nodes, "1", root, true, true); - }, - 'only-of-type': function(nodes, formula, root) { - var p = Selector.pseudos; - return p['last-of-type'](p['first-of-type'](nodes, formula, root), formula, root); - }, - - // handles the an+b logic - getIndices: function(a, b, total) { - if (a == 0) return b > 0 ? [b] : []; - return $R(1, total).inject([], function(memo, i) { - if (0 == (i - b) % a && (i - b) / a >= 0) memo.push(i); - return memo; - }); - }, - - // handles nth(-last)-child, nth(-last)-of-type, and (first|last)-of-type - nth: function(nodes, formula, root, reverse, ofType) { - if (nodes.length == 0) return []; - if (formula == 'even') formula = '2n+0'; - if (formula == 'odd') formula = '2n+1'; - var h = Selector.handlers, results = [], indexed = [], m; - h.mark(nodes); - for (var i = 0, node; node = nodes[i]; i++) { - if (!node.parentNode._countedByPrototype) { - h.index(node.parentNode, reverse, ofType); - indexed.push(node.parentNode); - } - } - if (formula.match(/^\d+$/)) { // just a number - formula = Number(formula); - for (var i = 0, node; node = nodes[i]; i++) - if (node.nodeIndex == formula) results.push(node); - } else if (m = formula.match(/^(-?\d*)?n(([+-])(\d+))?/)) { // an+b - if (m[1] == "-") m[1] = -1; - var a = m[1] ? Number(m[1]) : 1; - var b = m[2] ? Number(m[2]) : 0; - var indices = Selector.pseudos.getIndices(a, b, nodes.length); - for (var i = 0, node, l = indices.length; node = nodes[i]; i++) { - for (var j = 0; j < l; j++) - if (node.nodeIndex == indices[j]) results.push(node); - } - } - h.unmark(nodes); - h.unmark(indexed); - return results; - }, - - 'empty': function(nodes, value, root) { - for (var i = 0, results = [], node; node = nodes[i]; i++) { - // IE treats comments as element nodes - if (node.tagName == '!' || (node.firstChild && !node.innerHTML.match(/^\s*$/))) continue; - results.push(node); - } - return results; - }, - - 'not': function(nodes, selector, root) { - var h = Selector.handlers, selectorType, m; - var exclusions = new Selector(selector).findElements(root); - h.mark(exclusions); - for (var i = 0, results = [], node; node = nodes[i]; i++) - if (!node._countedByPrototype) results.push(node); - h.unmark(exclusions); - return results; - }, - - 'enabled': function(nodes, value, root) { - for (var i = 0, results = [], node; node = nodes[i]; i++) - if (!node.disabled) results.push(node); - return results; - }, - - 'disabled': function(nodes, value, root) { - for (var i = 0, results = [], node; node = nodes[i]; i++) - if (node.disabled) results.push(node); - return results; - }, - - 'checked': function(nodes, value, root) { - for (var i = 0, results = [], node; node = nodes[i]; i++) - if (node.checked) results.push(node); - return results; - } - }, - - operators: { - '=': function(nv, v) { return nv == v; }, - '!=': function(nv, v) { return nv != v; }, - '^=': function(nv, v) { return nv.startsWith(v); }, - '$=': function(nv, v) { return nv.endsWith(v); }, - '*=': function(nv, v) { return nv.include(v); }, - '~=': function(nv, v) { return (' ' + nv + ' ').include(' ' + v + ' '); }, - '|=': function(nv, v) { return ('-' + nv.toUpperCase() + '-').include('-' + v.toUpperCase() + '-'); } - }, - - split: function(expression) { - var expressions = []; - expression.scan(/(([\w#:.~>+()\s-]+|\*|\[.*?\])+)\s*(,|$)/, function(m) { - expressions.push(m[1].strip()); - }); - return expressions; - }, - - matchElements: function(elements, expression) { - var matches = $$(expression), h = Selector.handlers; - h.mark(matches); - for (var i = 0, results = [], element; element = elements[i]; i++) - if (element._countedByPrototype) results.push(element); - h.unmark(matches); - return results; - }, - - findElement: function(elements, expression, index) { - if (Object.isNumber(expression)) { - index = expression; expression = false; - } - return Selector.matchElements(elements, expression || '*')[index || 0]; - }, - - findChildElements: function(element, expressions) { - expressions = Selector.split(expressions.join(',')); - var results = [], h = Selector.handlers; - for (var i = 0, l = expressions.length, selector; i < l; i++) { - selector = new Selector(expressions[i].strip()); - h.concat(results, selector.findElements(element)); - } - return (l > 1) ? h.unique(results) : results; - } -}); - -if (Prototype.Browser.IE) { - Object.extend(Selector.handlers, { - // IE returns comment nodes on getElementsByTagName("*"). - // Filter them out. - concat: function(a, b) { - for (var i = 0, node; node = b[i]; i++) - if (node.tagName !== "!") a.push(node); - return a; - }, - - // IE improperly serializes _countedByPrototype in (inner|outer)HTML. - unmark: function(nodes) { - for (var i = 0, node; node = nodes[i]; i++) - node.removeAttribute('_countedByPrototype'); - return nodes; - } - }); -} - -function $$() { - return Selector.findChildElements(document, $A(arguments)); -} -var Form = { - reset: function(form) { - $(form).reset(); - return form; - }, - - serializeElements: function(elements, options) { - if (typeof options != 'object') options = { hash: !!options }; - else if (Object.isUndefined(options.hash)) options.hash = true; - var key, value, submitted = false, submit = options.submit; - - var data = elements.inject({ }, function(result, element) { - if (!element.disabled && element.name) { - key = element.name; value = $(element).getValue(); - if (value != null && (element.type != 'submit' || (!submitted && - submit !== false && (!submit || key == submit) && (submitted = true)))) { - if (key in result) { - // a key is already present; construct an array of values - if (!Object.isArray(result[key])) result[key] = [result[key]]; - result[key].push(value); - } - else result[key] = value; - } - } - return result; - }); - - return options.hash ? data : Object.toQueryString(data); - } -}; - -Form.Methods = { - serialize: function(form, options) { - return Form.serializeElements(Form.getElements(form), options); - }, - - getElements: function(form) { - return $A($(form).getElementsByTagName('*')).inject([], - function(elements, child) { - if (Form.Element.Serializers[child.tagName.toLowerCase()]) - elements.push(Element.extend(child)); - return elements; - } - ); - }, - - getInputs: function(form, typeName, name) { - form = $(form); - var inputs = form.getElementsByTagName('input'); - - if (!typeName && !name) return $A(inputs).map(Element.extend); - - for (var i = 0, matchingInputs = [], length = inputs.length; i < length; i++) { - var input = inputs[i]; - if ((typeName && input.type != typeName) || (name && input.name != name)) - continue; - matchingInputs.push(Element.extend(input)); - } - - return matchingInputs; - }, - - disable: function(form) { - form = $(form); - Form.getElements(form).invoke('disable'); - return form; - }, - - enable: function(form) { - form = $(form); - Form.getElements(form).invoke('enable'); - return form; - }, - - findFirstElement: function(form) { - var elements = $(form).getElements().findAll(function(element) { - return 'hidden' != element.type && !element.disabled; - }); - var firstByIndex = elements.findAll(function(element) { - return element.hasAttribute('tabIndex') && element.tabIndex >= 0; - }).sortBy(function(element) { return element.tabIndex }).first(); - - return firstByIndex ? firstByIndex : elements.find(function(element) { - return ['input', 'select', 'textarea'].include(element.tagName.toLowerCase()); - }); - }, - - focusFirstElement: function(form) { - form = $(form); - form.findFirstElement().activate(); - return form; - }, - - request: function(form, options) { - form = $(form), options = Object.clone(options || { }); - - var params = options.parameters, action = form.readAttribute('action') || ''; - if (action.blank()) action = window.location.href; - options.parameters = form.serialize(true); - - if (params) { - if (Object.isString(params)) params = params.toQueryParams(); - Object.extend(options.parameters, params); - } - - if (form.hasAttribute('method') && !options.method) - options.method = form.method; - - return new Ajax.Request(action, options); - } -}; - -/*--------------------------------------------------------------------------*/ - -Form.Element = { - focus: function(element) { - $(element).focus(); - return element; - }, - - select: function(element) { - $(element).select(); - return element; - } -}; - -Form.Element.Methods = { - serialize: function(element) { - element = $(element); - if (!element.disabled && element.name) { - var value = element.getValue(); - if (value != undefined) { - var pair = { }; - pair[element.name] = value; - return Object.toQueryString(pair); - } - } - return ''; - }, - - getValue: function(element) { - element = $(element); - var method = element.tagName.toLowerCase(); - return Form.Element.Serializers[method](element); - }, - - setValue: function(element, value) { - element = $(element); - var method = element.tagName.toLowerCase(); - Form.Element.Serializers[method](element, value); - return element; - }, - - clear: function(element) { - $(element).value = ''; - return element; - }, - - present: function(element) { - return $(element).value != ''; - }, - - activate: function(element) { - element = $(element); - try { - element.focus(); - if (element.select && (element.tagName.toLowerCase() != 'input' || - !['button', 'reset', 'submit'].include(element.type))) - element.select(); - } catch (e) { } - return element; - }, - - disable: function(element) { - element = $(element); - element.blur(); - element.disabled = true; - return element; - }, - - enable: function(element) { - element = $(element); - element.disabled = false; - return element; - } -}; - -/*--------------------------------------------------------------------------*/ - -var Field = Form.Element; -var $F = Form.Element.Methods.getValue; - -/*--------------------------------------------------------------------------*/ - -Form.Element.Serializers = { - input: function(element, value) { - switch (element.type.toLowerCase()) { - case 'checkbox': - case 'radio': - return Form.Element.Serializers.inputSelector(element, value); - default: - return Form.Element.Serializers.textarea(element, value); - } - }, - - inputSelector: function(element, value) { - if (Object.isUndefined(value)) return element.checked ? element.value : null; - else element.checked = !!value; - }, - - textarea: function(element, value) { - if (Object.isUndefined(value)) return element.value; - else element.value = value; - }, - - select: function(element, index) { - if (Object.isUndefined(index)) - return this[element.type == 'select-one' ? - 'selectOne' : 'selectMany'](element); - else { - var opt, value, single = !Object.isArray(index); - for (var i = 0, length = element.length; i < length; i++) { - opt = element.options[i]; - value = this.optionValue(opt); - if (single) { - if (value == index) { - opt.selected = true; - return; - } - } - else opt.selected = index.include(value); - } - } - }, - - selectOne: function(element) { - var index = element.selectedIndex; - return index >= 0 ? this.optionValue(element.options[index]) : null; - }, - - selectMany: function(element) { - var values, length = element.length; - if (!length) return null; - - for (var i = 0, values = []; i < length; i++) { - var opt = element.options[i]; - if (opt.selected) values.push(this.optionValue(opt)); - } - return values; - }, - - optionValue: function(opt) { - // extend element because hasAttribute may not be native - return Element.extend(opt).hasAttribute('value') ? opt.value : opt.text; - } -}; - -/*--------------------------------------------------------------------------*/ - -Abstract.TimedObserver = Class.create(PeriodicalExecuter, { - initialize: function($super, element, frequency, callback) { - $super(callback, frequency); - this.element = $(element); - this.lastValue = this.getValue(); - }, - - execute: function() { - var value = this.getValue(); - if (Object.isString(this.lastValue) && Object.isString(value) ? - this.lastValue != value : String(this.lastValue) != String(value)) { - this.callback(this.element, value); - this.lastValue = value; - } - } -}); - -Form.Element.Observer = Class.create(Abstract.TimedObserver, { - getValue: function() { - return Form.Element.getValue(this.element); - } -}); - -Form.Observer = Class.create(Abstract.TimedObserver, { - getValue: function() { - return Form.serialize(this.element); - } -}); - -/*--------------------------------------------------------------------------*/ - -Abstract.EventObserver = Class.create({ - initialize: function(element, callback) { - this.element = $(element); - this.callback = callback; - - this.lastValue = this.getValue(); - if (this.element.tagName.toLowerCase() == 'form') - this.registerFormCallbacks(); - else - this.registerCallback(this.element); - }, - - onElementEvent: function() { - var value = this.getValue(); - if (this.lastValue != value) { - this.callback(this.element, value); - this.lastValue = value; - } - }, - - registerFormCallbacks: function() { - Form.getElements(this.element).each(this.registerCallback, this); - }, - - registerCallback: function(element) { - if (element.type) { - switch (element.type.toLowerCase()) { - case 'checkbox': - case 'radio': - Event.observe(element, 'click', this.onElementEvent.bind(this)); - break; - default: - Event.observe(element, 'change', this.onElementEvent.bind(this)); - break; - } - } - } -}); - -Form.Element.EventObserver = Class.create(Abstract.EventObserver, { - getValue: function() { - return Form.Element.getValue(this.element); - } -}); - -Form.EventObserver = Class.create(Abstract.EventObserver, { - getValue: function() { - return Form.serialize(this.element); - } -}); -if (!window.Event) var Event = { }; - -Object.extend(Event, { - KEY_BACKSPACE: 8, - KEY_TAB: 9, - KEY_RETURN: 13, - KEY_ESC: 27, - KEY_LEFT: 37, - KEY_UP: 38, - KEY_RIGHT: 39, - KEY_DOWN: 40, - KEY_DELETE: 46, - KEY_HOME: 36, - KEY_END: 35, - KEY_PAGEUP: 33, - KEY_PAGEDOWN: 34, - KEY_INSERT: 45, - - cache: { }, - - relatedTarget: function(event) { - var element; - switch(event.type) { - case 'mouseover': element = event.fromElement; break; - case 'mouseout': element = event.toElement; break; - default: return null; - } - return Element.extend(element); - } -}); - -Event.Methods = (function() { - var isButton; - - if (Prototype.Browser.IE) { - var buttonMap = { 0: 1, 1: 4, 2: 2 }; - isButton = function(event, code) { - return event.button == buttonMap[code]; - }; - - } else if (Prototype.Browser.WebKit) { - isButton = function(event, code) { - switch (code) { - case 0: return event.which == 1 && !event.metaKey; - case 1: return event.which == 1 && event.metaKey; - default: return false; - } - }; - - } else { - isButton = function(event, code) { - return event.which ? (event.which === code + 1) : (event.button === code); - }; - } - - return { - isLeftClick: function(event) { return isButton(event, 0) }, - isMiddleClick: function(event) { return isButton(event, 1) }, - isRightClick: function(event) { return isButton(event, 2) }, - - element: function(event) { - var node = Event.extend(event).target; - return Element.extend(node.nodeType == Node.TEXT_NODE ? node.parentNode : node); - }, - - findElement: function(event, expression) { - var element = Event.element(event); - if (!expression) return element; - var elements = [element].concat(element.ancestors()); - return Selector.findElement(elements, expression, 0); - }, - - pointer: function(event) { - return { - x: event.pageX || (event.clientX + - (document.documentElement.scrollLeft || document.body.scrollLeft)), - y: event.pageY || (event.clientY + - (document.documentElement.scrollTop || document.body.scrollTop)) - }; - }, - - pointerX: function(event) { return Event.pointer(event).x }, - pointerY: function(event) { return Event.pointer(event).y }, - - stop: function(event) { - Event.extend(event); - event.preventDefault(); - event.stopPropagation(); - event.stopped = true; - } - }; -})(); - -Event.extend = (function() { - var methods = Object.keys(Event.Methods).inject({ }, function(m, name) { - m[name] = Event.Methods[name].methodize(); - return m; - }); - - if (Prototype.Browser.IE) { - Object.extend(methods, { - stopPropagation: function() { this.cancelBubble = true }, - preventDefault: function() { this.returnValue = false }, - inspect: function() { return "[object Event]" } - }); - - return function(event) { - if (!event) return false; - if (event._extendedByPrototype) return event; - - event._extendedByPrototype = Prototype.emptyFunction; - var pointer = Event.pointer(event); - Object.extend(event, { - target: event.srcElement, - relatedTarget: Event.relatedTarget(event), - pageX: pointer.x, - pageY: pointer.y - }); - return Object.extend(event, methods); - }; - - } else { - Event.prototype = Event.prototype || document.createEvent("HTMLEvents").__proto__; - Object.extend(Event.prototype, methods); - return Prototype.K; - } -})(); - -Object.extend(Event, (function() { - var cache = Event.cache; - - function getEventID(element) { - if (element._prototypeEventID) return element._prototypeEventID[0]; - arguments.callee.id = arguments.callee.id || 1; - return element._prototypeEventID = [++arguments.callee.id]; - } - - function getDOMEventName(eventName) { - if (eventName && eventName.include(':')) return "dataavailable"; - return eventName; - } - - function getCacheForID(id) { - return cache[id] = cache[id] || { }; - } - - function getWrappersForEventName(id, eventName) { - var c = getCacheForID(id); - return c[eventName] = c[eventName] || []; - } - - function createWrapper(element, eventName, handler) { - var id = getEventID(element); - var c = getWrappersForEventName(id, eventName); - if (c.pluck("handler").include(handler)) return false; - - var wrapper = function(event) { - if (!Event || !Event.extend || - (event.eventName && event.eventName != eventName)) - return false; - - Event.extend(event); - handler.call(element, event); - }; - - wrapper.handler = handler; - c.push(wrapper); - return wrapper; - } - - function findWrapper(id, eventName, handler) { - var c = getWrappersForEventName(id, eventName); - return c.find(function(wrapper) { return wrapper.handler == handler }); - } - - function destroyWrapper(id, eventName, handler) { - var c = getCacheForID(id); - if (!c[eventName]) return false; - c[eventName] = c[eventName].without(findWrapper(id, eventName, handler)); - } - - function destroyCache() { - for (var id in cache) - for (var eventName in cache[id]) - cache[id][eventName] = null; - } - - if (window.attachEvent) { - window.attachEvent("onunload", destroyCache); - } - - return { - observe: function(element, eventName, handler) { - element = $(element); - var name = getDOMEventName(eventName); - - var wrapper = createWrapper(element, eventName, handler); - if (!wrapper) return element; - - if (element.addEventListener) { - element.addEventListener(name, wrapper, false); - } else { - element.attachEvent("on" + name, wrapper); - } - - return element; - }, - - stopObserving: function(element, eventName, handler) { - element = $(element); - var id = getEventID(element), name = getDOMEventName(eventName); - - if (!handler && eventName) { - getWrappersForEventName(id, eventName).each(function(wrapper) { - element.stopObserving(eventName, wrapper.handler); - }); - return element; - - } else if (!eventName) { - Object.keys(getCacheForID(id)).each(function(eventName) { - element.stopObserving(eventName); - }); - return element; - } - - var wrapper = findWrapper(id, eventName, handler); - if (!wrapper) return element; - - if (element.removeEventListener) { - element.removeEventListener(name, wrapper, false); - } else { - element.detachEvent("on" + name, wrapper); - } - - destroyWrapper(id, eventName, handler); - - return element; - }, - - fire: function(element, eventName, memo) { - element = $(element); - if (element == document && document.createEvent && !element.dispatchEvent) - element = document.documentElement; - - var event; - if (document.createEvent) { - event = document.createEvent("HTMLEvents"); - event.initEvent("dataavailable", true, true); - } else { - event = document.createEventObject(); - event.eventType = "ondataavailable"; - } - - event.eventName = eventName; - event.memo = memo || { }; - - if (document.createEvent) { - element.dispatchEvent(event); - } else { - element.fireEvent(event.eventType, event); - } - - return Event.extend(event); - } - }; -})()); - -Object.extend(Event, Event.Methods); - -Element.addMethods({ - fire: Event.fire, - observe: Event.observe, - stopObserving: Event.stopObserving -}); - -Object.extend(document, { - fire: Element.Methods.fire.methodize(), - observe: Element.Methods.observe.methodize(), - stopObserving: Element.Methods.stopObserving.methodize(), - loaded: false -}); - -(function() { - /* Support for the DOMContentLoaded event is based on work by Dan Webb, - Matthias Miller, Dean Edwards and John Resig. */ - - var timer; - - function fireContentLoadedEvent() { - if (document.loaded) return; - if (timer) window.clearInterval(timer); - document.fire("dom:loaded"); - document.loaded = true; - } - - if (document.addEventListener) { - if (Prototype.Browser.WebKit) { - timer = window.setInterval(function() { - if (/loaded|complete/.test(document.readyState)) - fireContentLoadedEvent(); - }, 0); - - Event.observe(window, "load", fireContentLoadedEvent); - - } else { - document.addEventListener("DOMContentLoaded", - fireContentLoadedEvent, false); - } - - } else { - document.write(" \ No newline at end of file diff --git a/framework/testtools/widget/CommonScreens.xml b/framework/testtools/widget/CommonScreens.xml index 8a83ad7aab..44e71214a3 100644 --- a/framework/testtools/widget/CommonScreens.xml +++ b/framework/testtools/widget/CommonScreens.xml @@ -62,14 +62,11 @@ - +
    - - - - + diff --git a/framework/webslinger/entitydef/entitymodel.xml b/framework/webslinger/entitydef/entitymodel.xml index 9bac14e21f..9b5da79119 100644 --- a/framework/webslinger/entitydef/entitymodel.xml +++ b/framework/webslinger/entitydef/entitymodel.xml @@ -19,12 +19,6 @@ under the License. --> - - - - Adam Heath - 0.0 - diff --git a/framework/webtools/config/WebtoolsUiLabels.xml b/framework/webtools/config/WebtoolsUiLabels.xml index 6fc8deb67c..44e9ca6483 100644 --- a/framework/webtools/config/WebtoolsUiLabels.xml +++ b/framework/webtools/config/WebtoolsUiLabels.xml @@ -1707,6 +1707,10 @@ Link Geos (associate Geos to a Geo) Lier des zones géographiques (association d'une avec plusieurs) + + Select Geos to associate + Sélectionner les zones géographiques à associer + Besuche Hits diff --git a/framework/webtools/webapp/webtools/entity/ViewGeneric.ftl b/framework/webtools/webapp/webtools/entity/ViewGeneric.ftl index 100613a36d..1e0531fa4a 100644 --- a/framework/webtools/webapp/webtools/entity/ViewGeneric.ftl +++ b/framework/webtools/webapp/webtools/entity/ViewGeneric.ftl @@ -137,11 +137,9 @@ function ShowTab(lname) { ${field.name} <#if field.fieldType == 'DateTime'> - DateTime(YYYY-MM-DD HH:mm:SS.sss): - Click here For Calendar + DateTime(YYYY-MM-DD HH:mm:SS.sss):<@htmlTemplate.renderDateTimeField name="${field.name}" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${field.value}" size="25" maxlength="30" id="${field.name}" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> <#elseif field.fieldType == 'Date'> - Date(YYYY-MM-DD): - Click here For Calendar + Date(YYYY-MM-DD):<@htmlTemplate.renderDateTimeField name="${field.name}" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${field.value}" size="25" maxlength="30" id="${field.name}" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> <#elseif field.fieldType == 'Time'> Time(HH:mm:SS.sss): <#elseif field.fieldType == 'Integer'> @@ -179,11 +177,9 @@ function ShowTab(lname) { ${field.name} <#if field.fieldType == 'DateTime'> - DateTime(YYYY-MM-DD HH:mm:SS.sss): - Click here For Calendar + DateTime(YYYY-MM-DD HH:mm:SS.sss):<@htmlTemplate.renderDateTimeField name="${field.name}" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${field.value}" size="25" maxlength="30" id="${field.name}" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> <#elseif field.fieldType == 'Date'> - Date(YYYY-MM-DD): - Click here For Calendar + Date(YYYY-MM-DD):<@htmlTemplate.renderDateTimeField name="${field.name}" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${field.value}" size="25" maxlength="30" id="${field.name}" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> <#elseif field.fieldType == 'Time'> Time(HH:mm:SS.sss): <#elseif field.fieldType == 'Integer'> diff --git a/framework/webtools/webapp/webtools/entity/xmldsdump.ftl b/framework/webtools/webapp/webtools/entity/xmldsdump.ftl index 556fcaaede..01f3e8fcb4 100644 --- a/framework/webtools/webapp/webtools/entity/xmldsdump.ftl +++ b/framework/webtools/webapp/webtools/entity/xmldsdump.ftl @@ -72,13 +72,15 @@ under the License. ${uiLabelMap.WebtoolsRecordsUpdatedSince} - - View Calendar + + <@htmlTemplate.renderDateTimeField name="entityFrom" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="" size="25" maxlength="30" id="entityFrom1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> + ${uiLabelMap.WebtoolsRecordsUpdatedBefore} - - View Calendar + + <@htmlTemplate.renderDateTimeField name="entityThru" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="" size="25" maxlength="30" id="entityThru1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> + ${uiLabelMap.WebtoolsOutToBrowser} diff --git a/framework/webtools/widget/GeoManagementForms.xml b/framework/webtools/widget/GeoManagementForms.xml index e0e46bd3be..07cd19d107 100644 --- a/framework/webtools/widget/GeoManagementForms.xml +++ b/framework/webtools/widget/GeoManagementForms.xml @@ -71,32 +71,30 @@ header-row-style="header-row" default-table-style="basic-table"> - - - + + + - - + + action="typeValue = jQuery('#${asm_typeField}').val(); selectMultipleRelatedValues('${asm_requestName}', '${asm_paramKey}', '${asm_relatedField}', '${asm_multipleSelect}', '${asm_type}', typeValue, '${asm_responseName}');"> - - - - + + + + - + diff --git a/framework/webtools/widget/GeoManagementScreens.xml b/framework/webtools/widget/GeoManagementScreens.xml index bf6bd9f19b..4dea04ac4a 100644 --- a/framework/webtools/widget/GeoManagementScreens.xml +++ b/framework/webtools/widget/GeoManagementScreens.xml @@ -101,15 +101,21 @@ + + + + + + + + - - - - - - - - + + + + + + diff --git a/framework/widget/dtd/widget-form.xsd b/framework/widget/dtd/widget-form.xsd index 9ca1679773..cfdcf09664 100644 --- a/framework/widget/dtd/widget-form.xsd +++ b/framework/widget/dtd/widget-form.xsd @@ -483,10 +483,10 @@ under the License. - Used to specify javascript events that should be attached to fields. + Used to specify a javascript event that may be attached to field. - Used to specify javascript actions that should be run based on events. + Used to specify a javascript action that should be run based on an existing specified event. @@ -972,10 +972,9 @@ under the License. Only layer width. I.e. 250px, 12% - Only for layer position. Default to topleft, normal sets the layer just under the target field, like for the calendar. + Only for layer positionining. Default to topleft corner. - diff --git a/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java b/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java index 0ee7bab6fe..60b86f86f6 100644 --- a/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java +++ b/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java @@ -230,81 +230,58 @@ public class MacroFormRenderer implements FormStringRenderer { if (ajaxEnabled) { String url = inPlaceEditor.getUrl(context); + String extraParameter = "{"; Map fieldMap = inPlaceEditor.getFieldMap(context); if (fieldMap != null) { - url += '?'; Set> fieldSet = fieldMap.entrySet(); Iterator> fieldIterator = fieldSet.iterator(); int count = 0; while (fieldIterator.hasNext()) { count++; Entry field = fieldIterator.next(); - url += (String) field.getKey() + '=' + (String) field.getValue(); + extraParameter += (String) field.getKey() + ":'" + (String) field.getValue() + "'"; if (count < fieldSet.size()) { - url += '&'; + extraParameter += ','; } } + } + extraParameter += "}"; sr.append("\" inPlaceEditorUrl=\""); sr.append(url); sr.append("\" inPlaceEditorParams=\""); StringWriter inPlaceEditorParams = new StringWriter(); - inPlaceEditorParams.append("{paramName: '"); + inPlaceEditorParams.append("{name: '"); if (UtilValidate.isNotEmpty(inPlaceEditor.getParamName())) { inPlaceEditorParams.append(inPlaceEditor.getParamName()); } else { inPlaceEditorParams.append(modelFormField.getFieldName()); } inPlaceEditorParams.append("'"); - if (UtilValidate.isNotEmpty(inPlaceEditor.getCancelControl())) { - inPlaceEditorParams.append(", cancelControl: "); - if (!"false".equals(inPlaceEditor.getCancelControl())) { - inPlaceEditorParams.append("'"); - } - inPlaceEditorParams.append(inPlaceEditor.getCancelControl()); - if (!"false".equals(inPlaceEditor.getCancelControl())) { - inPlaceEditorParams.append("'"); - } - } + inPlaceEditorParams.append(", method: 'POST'"); + inPlaceEditorParams.append(", submitdata: " + extraParameter); + inPlaceEditorParams.append(", type: 'textarea'"); + inPlaceEditorParams.append(", select: 'true'"); + inPlaceEditorParams.append(", onreset: function(){jQuery('#cc_" + idName + "').css('background-color', 'transparent');}"); + if (UtilValidate.isNotEmpty(inPlaceEditor.getCancelText())) { - inPlaceEditorParams.append(", cancelText: '" +inPlaceEditor.getCancelText()+ "'"); + inPlaceEditorParams.append(", cancel: '" +inPlaceEditor.getCancelText()+ "'"); + } else { + inPlaceEditorParams.append(", cancel: 'Cancel'"); } if (UtilValidate.isNotEmpty(inPlaceEditor.getClickToEditText())) { - inPlaceEditorParams.append(", clickToEditText: '" +inPlaceEditor.getClickToEditText()+ "'"); - } - if (UtilValidate.isNotEmpty(inPlaceEditor.getFieldPostCreation())) { - inPlaceEditorParams.append(", fieldPostCreation: "); - if (!"false".equals(inPlaceEditor.getFieldPostCreation())) { - inPlaceEditorParams.append("'"); - } - inPlaceEditorParams.append(inPlaceEditor.getFieldPostCreation()); - if (!"false".equals(inPlaceEditor.getFieldPostCreation())) { - inPlaceEditorParams.append("'"); - } + inPlaceEditorParams.append(", tooltip: '" +inPlaceEditor.getClickToEditText()+ "'"); } if (UtilValidate.isNotEmpty(inPlaceEditor.getFormClassName())) { - inPlaceEditorParams.append(", formClassName: '" +inPlaceEditor.getFormClassName()+ "'"); - } - if (UtilValidate.isNotEmpty(inPlaceEditor.getHighlightColor())) { - inPlaceEditorParams.append(", highlightColor: '" +inPlaceEditor.getHighlightColor()+ "'"); - } - if (UtilValidate.isNotEmpty(inPlaceEditor.getHighlightEndColor())) { - inPlaceEditorParams.append(", highlightEndColor: '" +inPlaceEditor.getHighlightEndColor()+ "'"); - } - if (UtilValidate.isNotEmpty(inPlaceEditor.getHoverClassName())) { - inPlaceEditorParams.append(", hoverClassName: '" +inPlaceEditor.getHoverClassName()+ "'"); - } - if (UtilValidate.isNotEmpty(inPlaceEditor.getHtmlResponse())) { - inPlaceEditorParams.append(", htmlResponse: " +inPlaceEditor.getHtmlResponse()); - } - if (UtilValidate.isNotEmpty(inPlaceEditor.getLoadingClassName())) { - inPlaceEditorParams.append(", loadingClassName: '" +inPlaceEditor.getLoadingClassName()+ "'"); + inPlaceEditorParams.append(", cssclass: '" + inPlaceEditor.getFormClassName()+ "'"); + } else { + inPlaceEditorParams.append(", cssclass: 'inplaceeditor-form'"); } if (UtilValidate.isNotEmpty(inPlaceEditor.getLoadingText())) { - inPlaceEditorParams.append(", loadingText: '" +inPlaceEditor.getLoadingText()+ "'"); + inPlaceEditorParams.append(", indicator: '" +inPlaceEditor.getLoadingText()+ "'"); } if (UtilValidate.isNotEmpty(inPlaceEditor.getOkControl())) { - inPlaceEditorParams.append(", okControl: "); + inPlaceEditorParams.append(", submit: "); if (!"false".equals(inPlaceEditor.getOkControl())) { inPlaceEditorParams.append("'"); } @@ -312,30 +289,8 @@ public class MacroFormRenderer implements FormStringRenderer { if (!"false".equals(inPlaceEditor.getOkControl())) { inPlaceEditorParams.append("'"); } - } - if (UtilValidate.isNotEmpty(inPlaceEditor.getOkText())) { - inPlaceEditorParams.append(", okText: '" +inPlaceEditor.getOkText()+ "'"); - } - if (UtilValidate.isNotEmpty(inPlaceEditor.getSavingClassName())) { - inPlaceEditorParams.append(", savingClassName: '" +inPlaceEditor.getSavingClassName()+ "', "); - } - if (UtilValidate.isNotEmpty(inPlaceEditor.getSavingText())) { - inPlaceEditorParams.append(", savingText: '" +inPlaceEditor.getSavingText()+ "'"); - } - if (UtilValidate.isNotEmpty(inPlaceEditor.getSubmitOnBlur())) { - inPlaceEditorParams.append(", submitOnBlur: " +inPlaceEditor.getSubmitOnBlur()); - } - if (UtilValidate.isNotEmpty(inPlaceEditor.getTextBeforeControls())) { - inPlaceEditorParams.append(", textBeforeControls: '" +inPlaceEditor.getTextBeforeControls()+ "'"); - } - if (UtilValidate.isNotEmpty(inPlaceEditor.getTextAfterControls())) { - inPlaceEditorParams.append(", textAfterControls: '" +inPlaceEditor.getTextAfterControls()+ "'"); - } - if (UtilValidate.isNotEmpty(inPlaceEditor.getTextBetweenControls())) { - inPlaceEditorParams.append(", textBetweenControls: '" +inPlaceEditor.getTextBetweenControls()+ "'"); - } - if (UtilValidate.isNotEmpty(inPlaceEditor.getUpdateAfterRequestCall())) { - inPlaceEditorParams.append(", updateAfterRequestCall: " +inPlaceEditor.getUpdateAfterRequestCall()); + } else { + inPlaceEditorParams.append(", submit: 'OK'"); } if (UtilValidate.isNotEmpty(inPlaceEditor.getRows())) { inPlaceEditorParams.append(", rows: '" +inPlaceEditor.getRows()+ "'"); @@ -469,13 +424,18 @@ public class MacroFormRenderer implements FormStringRenderer { visualEdtiorEnalble = "true"; buttons = textareaField.getVisualEditorButtons(context); if (UtilValidate.isEmpty(buttons)) { - buttons = "all"; + buttons = "maxi"; } } String readonly = ""; if (textareaField.isReadOnly()) { readonly = "readonly"; } + Map userLogin = UtilGenerics.checkMap(context.get("userLogin")); + String language = "en"; + if (userLogin != null) { + language = UtilValidate.isEmpty((String) userLogin.get("lastLocale")) ? "en" : (String) userLogin.get("lastLocale"); + } String value = modelFormField.getEntry(context, textareaField.getDefaultValue(context)); StringWriter sr = new StringWriter(); sr.append("<@renderTextareaField "); @@ -497,6 +457,8 @@ public class MacroFormRenderer implements FormStringRenderer { sr.append(readonly); sr.append("\" visualEdtiorEnalble=\""); sr.append(visualEdtiorEnalble); + sr.append("\" language=\""); + sr.append(language); sr.append("\" buttons=\""); sr.append(buttons); sr.append("\" />"); @@ -2013,7 +1975,7 @@ public class MacroFormRenderer implements FormStringRenderer { } else { autoCompleterTarget = lookupFieldFormName + "&amp;"; } - autoCompleterTarget = autoCompleterTarget + "ajaxLookup=Y&amp;searchValueField=" + lookupField.getModelFormField().getParameterName(context); + autoCompleterTarget = autoCompleterTarget + "ajaxLookup=Y"; updateAreas = FastList.newInstance(); updateAreas.add(new ModelForm.UpdateArea("change", id, autoCompleterTarget)); } diff --git a/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java b/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java index 8ae28c85f4..65e4c29fac 100644 --- a/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java +++ b/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java @@ -172,7 +172,7 @@ public class HtmlFormRenderer extends HtmlWidgetRenderer implements FormStringRe str.append(modelFormField.getWidgetStyle()); // add a style of red if this is a date/time field and redWhen is true if (modelFormField.shouldBeRed(context)) { - str.append(" alert"); + str.append(" alert"); } str.append('"'); if (UtilValidate.isNotEmpty(idName)) { @@ -221,9 +221,9 @@ public class HtmlFormRenderer extends HtmlWidgetRenderer implements FormStringRe writer.append("ajaxInPlaceEditDisplayField('"); writer.append(idName).append("', '").append(url).append("', {"); if (UtilValidate.isNotEmpty(inPlaceEditor.getParamName())) { - writer.append("paramName: '").append(inPlaceEditor.getParamName()).append("'"); + writer.append("name: '").append(inPlaceEditor.getParamName()).append("'"); } else { - writer.append("paramName: '").append(modelFormField.getFieldName()).append("'"); + writer.append("name: '").append(modelFormField.getFieldName()).append("'"); } if (UtilValidate.isNotEmpty(inPlaceEditor.getCancelControl())) { writer.append(", cancelControl: "); @@ -236,10 +236,10 @@ public class HtmlFormRenderer extends HtmlWidgetRenderer implements FormStringRe } } if (UtilValidate.isNotEmpty(inPlaceEditor.getCancelText())) { - writer.append(", cancelText: '").append(inPlaceEditor.getCancelText()).append("'"); + writer.append(", cancel: '").append(inPlaceEditor.getCancelText()).append("'"); } if (UtilValidate.isNotEmpty(inPlaceEditor.getClickToEditText())) { - writer.append(", clickToEditText: '").append(inPlaceEditor.getClickToEditText()).append("'"); + writer.append(", tooltip: '").append(inPlaceEditor.getClickToEditText()).append("'"); } if (UtilValidate.isNotEmpty(inPlaceEditor.getFieldPostCreation())) { writer.append(", fieldPostCreation: "); @@ -252,7 +252,7 @@ public class HtmlFormRenderer extends HtmlWidgetRenderer implements FormStringRe } } if (UtilValidate.isNotEmpty(inPlaceEditor.getFormClassName())) { - writer.append(", formClassName: '").append(inPlaceEditor.getFormClassName()).append("'"); + writer.append(", cssclass: '").append(inPlaceEditor.getFormClassName()).append("'"); } if (UtilValidate.isNotEmpty(inPlaceEditor.getHighlightColor())) { writer.append(", highlightColor: '").append(inPlaceEditor.getHighlightColor()).append("'"); @@ -270,10 +270,10 @@ public class HtmlFormRenderer extends HtmlWidgetRenderer implements FormStringRe writer.append(", loadingClassName: '").append(inPlaceEditor.getLoadingClassName()).append("'"); } if (UtilValidate.isNotEmpty(inPlaceEditor.getLoadingText())) { - writer.append(", loadingText: '").append(inPlaceEditor.getLoadingText()).append("'"); + writer.append(", indicator: '").append(inPlaceEditor.getLoadingText()).append("'"); } if (UtilValidate.isNotEmpty(inPlaceEditor.getOkControl())) { - writer.append(", okControl: "); + writer.append(", submit: "); if (!"false".equals(inPlaceEditor.getOkControl())) { writer.append("'"); } @@ -487,21 +487,28 @@ public class HtmlFormRenderer extends HtmlWidgetRenderer implements FormStringRe writer.append(""); if (textareaField.getVisualEditorEnable()) { - writer.append(""); - writer.append(""); + writer.append(""); + writer.append(""); + writer.append("').elrte(opts);"); + writer.append(""); } this.addAsterisks(writer, context, modelFormField); diff --git a/framework/widget/templates/csvFormMacroLibrary.ftl b/framework/widget/templates/csvFormMacroLibrary.ftl index 523262c016..05943afcc5 100644 --- a/framework/widget/templates/csvFormMacroLibrary.ftl +++ b/framework/widget/templates/csvFormMacroLibrary.ftl @@ -26,7 +26,7 @@ under the License. <#macro renderTextField name className alert value textSize maxlength id event action disabled clientAutocomplete ajaxUrl ajaxEnabled><@renderField value /> -<#macro renderTextareaField name className alert cols rows id readonly value visualEdtiorEnalble buttons><@renderField value /> +<#macro renderTextareaField name className alert cols rows id readonly value visualEdtiorEnalble language buttons><@renderField value /> <#macro renderDateTimeField name className alert title value size maxlength id dateType shortDateInput timeDropdownParamName defaultDateTimeString localizedIconTitle timeDropdown timeHourName classString hour1 hour2 timeMinutesName minutes isTwelveHour ampmName amSelected pmSelected compositeType formName><@renderField value /> diff --git a/framework/widget/templates/foFormMacroLibrary.ftl b/framework/widget/templates/foFormMacroLibrary.ftl index 430f4ef4fc..51bfa49abb 100644 --- a/framework/widget/templates/foFormMacroLibrary.ftl +++ b/framework/widget/templates/foFormMacroLibrary.ftl @@ -50,7 +50,7 @@ under the License. <#macro renderTextField name className alert value textSize maxlength id event action disabled clientAutocomplete ajaxUrl ajaxEnabled><@makeBlock className value /> -<#macro renderTextareaField name className alert cols rows id readonly value visualEdtiorEnalble buttons><@makeBlock className value /> +<#macro renderTextareaField name className alert cols rows id readonly value visualEdtiorEnalble language buttons><@makeBlock className value /> <#macro renderDateTimeField name className alert title value size maxlength id event action dateType shortDateInput timeDropdownParamName defaultDateTimeString localizedIconTitle timeDropdown timeHourName classString hour1 hour2 timeMinutesName minutes isTwelveHour ampmName amSelected pmSelected compositeType formName><@makeBlock className value /> diff --git a/framework/widget/templates/htmlFormMacroLibrary.ftl b/framework/widget/templates/htmlFormMacroLibrary.ftl index 6c98d7e144..12a7f1aa9b 100644 --- a/framework/widget/templates/htmlFormMacroLibrary.ftl +++ b/framework/widget/templates/htmlFormMacroLibrary.ftl @@ -30,7 +30,7 @@ under the License. <#if inPlaceEditorUrl?has_content || class?has_content || alert=="true" || title?has_content> id="cc_${idName}" <#if title?has_content>title="${title}" <@renderClass class alert />><#t/> - + <#if description?has_content> ${description?replace("\n", "
    ")}<#t/> <#else> @@ -54,7 +54,7 @@ under the License. <#if value?has_content> value="${value}"<#rt/> <#if textSize?has_content> size="${textSize}"<#rt/> <#if maxlength?has_content> maxlength="${maxlength}"<#rt/> - <#if disabled?has_content && disabled> disabled="disabled"<#rt/> + <#if disabled?has_content && disabled> disabled="disabled"<#rt/> <#if id?has_content> id="${id}"<#rt/> <#if event?has_content && action?has_content> ${event}="${action}"<#rt/> <#if clientAutocomplete?has_content && clientAutocomplete=="false"> autocomplete="off"<#rt/> @@ -64,7 +64,7 @@ under the License. -<#macro renderTextareaField name className alert cols rows id readonly value visualEdtiorEnalble buttons> +<#macro renderTextareaField name className alert cols rows id readonly value visualEdtiorEnalble language buttons> <#lt/> <#if visualEdtiorEnalble?has_content> - <#rt/> - + <#rt/> + <#if language?has_content && language != "en"> + <#rt/> + + + -<#macro renderDateTimeField name className alert title value size maxlength id event action dateType shortDateInput timeDropdownParamName defaultDateTimeString localizedIconTitle timeDropdown timeHourName classString hour1 hour2 timeMinutesName minutes isTwelveHour ampmName amSelected pmSelected compositeType formName> +<#macro renderDateTimeField name className alert title value size maxlength id dateType shortDateInput timeDropdownParamName defaultDateTimeString localizedIconTitle timeDropdown timeHourName classString hour1 hour2 timeMinutesName minutes isTwelveHour ampmName amSelected pmSelected compositeType formName event="" action=""> ${event}="${action}" <@renderClass className alert /><#rt/> <#if title?has_content> title="${title}" @@ -90,16 +103,24 @@ under the License. <#if maxlength?has_content> maxlength="${maxlength}" <#if id?has_content> id="${id}"/><#rt/> <#if dateType!="time" > - <#if shortDateInput?exists && shortDateInput> - - - ${formName}.<#t/> - <#if timeDropdownParamName?has_content>${timeDropdownParamName}<#t/> - <#if defaultDateTimeString?has_content>,'${defaultDateTimeString}');"<#lt/> - title="<#if localizedIconTitle?has_content>${localizedIconTitle}"><#rt/> - <#rt/> + <#if timeDropdown?has_content && timeDropdown=="time-dropdown"> name="${name?default("")}<#rt/> -<#if ajaxEnabled> -_description"<#if id?has_content> id="${id}_description"<#if currentValue?has_content> value="${explicitDescription}"/><#rt/> - id="${id}"<#if currentValue?has_content> value="${currentValue}"/><#rt/> - -<#else> -" <@renderClass className alert /><#if id?has_content> id="${id}"<#if multiple?has_content> multiple="multiple"<#if otherFieldSize gt 0> onchange="process_choice(this,document.${formName}.${otherFieldName})"<#if event?has_content> ${event}="${action}"<#if size?has_content> size="${size}"> + + + <#if otherFieldName?has_content> + +<#if ajaxEnabled> + + <#macro renderCheckField items className alert id allChecked currentValue name event action> @@ -348,15 +374,27 @@ ${item.description} <#macro renderDateFindField className alert name localizedInputTitle value size maxlength dateType formName defaultDateTimeString imgSrc localizedIconTitle titleStyle defaultOptionFrom defaultOptionThru opEquals opSameDay opGreaterThanFromDayStart opGreaterThan opGreaterThan opLessThan opUpToDay opUpThruDay opIsEmpty> -<#if name?has_content> name="${name?html}_fld0_value"<#if localizedInputTitle?has_content> title="${localizedInputTitle}"<#if value?has_content> value="${value}"<#if size?has_content> size="${size}"<#if maxlength?has_content> maxlength="${maxlength}"/><#rt/> +<#if name?has_content> name="${name?html}_fld0_value"<#if localizedInputTitle?has_content> title="${localizedInputTitle}"<#if value?has_content> value="${value}"<#if size?has_content> size="${size}"<#if maxlength?has_content> maxlength="${maxlength}"/><#rt/> <#if dateType != "time"> -<#if dateType == "date"> - - -<#if formName?has_content>${formName}.<#if name?has_content>${name}_fld0_value,'<#if defaultDateTimeString?has_content>${defaultDateTimeString}');" title="${localizedIconTitle}"><#rt/> -<#rt/> + +<#rt/> <#if titleStyle?has_content> <#rt/> @@ -371,15 +409,27 @@ ${item.description} <#rt/> <#rt/> -<#if name?has_content> name="${name}_fld1_value"<#if localizedInputTitle?exists> title="${localizedInputTitle?html}"<#if value2?has_content> value="${value2}"<#if size?has_content> size="${size}"<#if maxlength?has_content> maxlength="${maxlength}"/><#rt/> +<#if name?has_content> name="${name}_fld1_value"<#if localizedInputTitle?exists> title="${localizedInputTitle?html}"<#if value2?has_content> value="${value2}"<#if size?has_content> size="${size}"<#if maxlength?has_content> maxlength="${maxlength}"/><#rt/> <#if dateType != "time"> -<#if dateType == "date"> - - -<#if formName?has_content>${formName}.<#if name?has_content>${name}_fld1_value,'<#if defaultDateTimeString?has_content>${defaultDateTimeString}');" title="${localizedIconTitle}"><#rt/> -<#rt/> + +<#rt/> <#if titleStyle?has_content> <#rt/> @@ -427,20 +477,42 @@ ${item.description} <#if size?has_content && size=="0"> name="${name}"/><#else><#if name?has_content> name="${name}"<#if value?has_content> value="${value}"<#if size?has_content> size="${size}"<#if maxlength?has_content> maxlength="${maxlength}"<#if id?has_content> id="${id}"<#rt/><#if disabled?has_content && disabled> disabled="disabled"<#rt/><#if event?has_content && action?has_content> ${event}="${action}"<#rt/><#if autocomplete?has_content> autocomplete="off"/><#rt/> <#if presentation?has_content && descriptionFieldName?has_content && presentation == "window"> - + <#if targetParameterIter?has_content> + <#list targetParameterIter as item> + ,document.${formName}.${item}.value<#rt> + + + );"><#rt> <#elseif presentation?has_content && presentation == "window"> - + <#rt> <#else> - + + <#if !ajaxUrl?contains("searchValueFieldName=")> + <#if descriptionFieldName?has_content && showDescription == "true"> + <#local ajaxUrl = ajaxUrl + "&searchValueFieldName=" + descriptionFieldName /> + <#else> + <#local ajaxUrl = ajaxUrl + "&searchValueFieldName=" + name /> + + + + -<#if targetParameterIter?has_content> - <#list targetParameterIter as item> -,document.${formName}.${item}.value<#rt> - - -);"><#rt> <#if disabled?has_content && disabled>${clearText} <#if ajaxEnabled?has_content && ajaxEnabled> diff --git a/framework/widget/templates/textFormMacroLibrary.ftl b/framework/widget/templates/textFormMacroLibrary.ftl index e1df80571d..de456157f2 100644 --- a/framework/widget/templates/textFormMacroLibrary.ftl +++ b/framework/widget/templates/textFormMacroLibrary.ftl @@ -26,7 +26,7 @@ under the License. <#macro renderTextField name className alert value textSize maxlength id event action disabled clientAutocomplete ajaxUrl ajaxEnabled><@renderField value /> -<#macro renderTextareaField name className alert cols rows id readonly value visualEdtiorEnalble buttons><@renderField value /> +<#macro renderTextareaField name className alert cols rows id readonly value visualEdtiorEnalble language buttons><@renderField value /> <#macro renderDateTimeField name className alert title value size maxlength id event action dateType shortDateInput timeDropdownParamName defaultDateTimeString localizedIconTitle timeDropdown timeHourName classString hour1 hour2 timeMinutesName minutes isTwelveHour ampmName amSelected pmSelected compositeType formName><@renderField value /> diff --git a/framework/widget/templates/xmlFormMacroLibrary.ftl b/framework/widget/templates/xmlFormMacroLibrary.ftl index 79e9302aec..3a312be8bf 100644 --- a/framework/widget/templates/xmlFormMacroLibrary.ftl +++ b/framework/widget/templates/xmlFormMacroLibrary.ftl @@ -42,7 +42,7 @@ under the License. <#macro renderTextField name className alert value textSize maxlength id event action disabled clientAutocomplete ajaxUrl ajaxEnabled><@renderField value/> -<#macro renderTextareaField name className alert cols rows id readonly value visualEdtiorEnalble buttons><@renderField value/> +<#macro renderTextareaField name className alert cols rows id readonly value visualEdtiorEnalble language buttons><@renderField value/> <#macro renderDateTimeField name className alert title value size maxlength id event action dateType shortDateInput timeDropdownParamName defaultDateTimeString localizedIconTitle timeDropdown timeHourName classString hour1 hour2 timeMinutesName minutes isTwelveHour ampmName amSelected pmSelected compositeType formName><@renderField value/> diff --git a/specialpurpose/build.xml b/specialpurpose/build.xml index 2ad097ca68..46f9618488 100644 --- a/specialpurpose/build.xml +++ b/specialpurpose/build.xml @@ -33,8 +33,8 @@ projectmgr/build.xml, ldap/build.xml, crowd/build.xml, - googlecheckout/build.xml, - webpos/build.xml"/> + googlecheckout/build.xml"/> + diff --git a/specialpurpose/cmssite/template/cms/HtmlHead.ftl b/specialpurpose/cmssite/template/cms/HtmlHead.ftl index 681969f641..57f25d42f1 100644 --- a/specialpurpose/cmssite/template/cms/HtmlHead.ftl +++ b/specialpurpose/cmssite/template/cms/HtmlHead.ftl @@ -23,11 +23,8 @@ under the License. ${(decoratedContent.subcontent.title.render)!"CMS Site Generic Title (Set subcontent 'title' on your content!)"} - - - diff --git a/specialpurpose/component-load.xml b/specialpurpose/component-load.xml index 07b74d61a4..a36df0c163 100644 --- a/specialpurpose/component-load.xml +++ b/specialpurpose/component-load.xml @@ -33,9 +33,12 @@ under the License. - + + diff --git a/specialpurpose/ebay/webapp/ebay/find/EbayAdvancedSearch.ftl b/specialpurpose/ebay/webapp/ebay/find/EbayAdvancedSearch.ftl index 0b28cb87b5..b61d69f03d 100644 --- a/specialpurpose/ebay/webapp/ebay/find/EbayAdvancedSearch.ftl +++ b/specialpurpose/ebay/webapp/ebay/find/EbayAdvancedSearch.ftl @@ -21,18 +21,18 @@ under the License. //main"; @@ -40,14 +40,14 @@ under the License. } function submit (id) { var formId = id; - if(!$('searchCatalogId').empty() && !$('searchProductStoreId').empty()){ - $(formId).submit(); + if(!jQuery('#searchCatalogId').is(":empty") && !jQuery('#searchProductStoreId').is(":empty")){ + document.getElementById(formId).submit(); } else { - if($('searchProductStoreId').empty()) { - $('productStoreErrorMessage').show(); + if(jQuery('#searchProductStoreId').is(":empty")) { + jQuery('#productStoreErrorMessage').fadeIn('fast'); } - if($('searchCatalogId').empty()) { - $('catalogErrorMessage').show(); + if(jQuery('#searchCatalogId').is(":empty")) { + jQuery('#catalogErrorMessage').fadeIn('fast'); } } } @@ -58,7 +58,7 @@ under the License.

    ${uiLabelMap.ProductAdvancedSearchInCategory}

    -
    +
    @@ -84,7 +84,7 @@ under the License. ${uiLabelMap.ProductProductStore}: - <#if ebayConfigList?has_content> <#list ebayConfigList as ebayConfig> <#assign productStore = delegator.findOne("ProductStore", {"productStoreId" : ebayConfig.productStoreId}, true) /> @@ -105,7 +105,7 @@ under the License.
    - <#list prodCatalogList as prodCatalog> <#assign displayDesc = prodCatalog.catalogName?default("${uiLabelMap.ProductNoDescription}") /> <#if (18 < displayDesc?length)> @@ -377,7 +377,7 @@ under the License.
    - ${uiLabelMap.CommonFind} + ${uiLabelMap.CommonFind} diff --git a/specialpurpose/ebay/webapp/ebay/find/productsExportToEbay.ftl b/specialpurpose/ebay/webapp/ebay/find/productsExportToEbay.ftl index e16cab8cc8..3ade47c9b6 100644 --- a/specialpurpose/ebay/webapp/ebay/find/productsExportToEbay.ftl +++ b/specialpurpose/ebay/webapp/ebay/find/productsExportToEbay.ftl @@ -107,7 +107,7 @@ under the License. ${uiLabelMap.CommonWebsite}   - <#list webSiteList as webSite> <#assign displayDesc = webSite.siteName?default("${uiLabelMap.ProductNoDescription}")> <#if (18 < displayDesc?length)> diff --git a/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStoreOrder.java b/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStoreOrder.java index c155d0ac73..6c6a71767d 100644 --- a/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStoreOrder.java +++ b/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStoreOrder.java @@ -586,4 +586,4 @@ public class EbayStoreOrder { // assign the item to its ship group cart.setItemShipGroupQty(cartItem, qty, groupIdx); } -} +} \ No newline at end of file diff --git a/specialpurpose/ebaystore/webapp/ebaystore/store/StoreSetting.ftl b/specialpurpose/ebaystore/webapp/ebaystore/store/StoreSetting.ftl index 11189d897a..c926b8df5f 100644 --- a/specialpurpose/ebaystore/webapp/ebaystore/store/StoreSetting.ftl +++ b/specialpurpose/ebaystore/webapp/ebaystore/store/StoreSetting.ftl @@ -17,104 +17,106 @@ specific language governing permissions and limitations under the License. --> - + + + - + @@ -535,7 +545,7 @@ under the License. diff --git a/specialpurpose/projectmgr/webapp/projectmgr/survey/ListSurveys.ftl b/specialpurpose/projectmgr/webapp/projectmgr/survey/ListSurveys.ftl index ceb7dd5fb7..41a4143d94 100644 --- a/specialpurpose/projectmgr/webapp/projectmgr/survey/ListSurveys.ftl +++ b/specialpurpose/projectmgr/webapp/projectmgr/survey/ListSurveys.ftl @@ -44,8 +44,7 @@ under the License. <#if !isReadable?exists> @@ -59,7 +58,7 @@ under the License. - ${uiLabelMap.CommonDelete} + ${uiLabelMap.CommonDelete} diff --git a/specialpurpose/projectmgr/widget/ResourceScreens.xml b/specialpurpose/projectmgr/widget/ResourceScreens.xml index ba43c34f18..8504e066bb 100644 --- a/specialpurpose/projectmgr/widget/ResourceScreens.xml +++ b/specialpurpose/projectmgr/widget/ResourceScreens.xml @@ -78,9 +78,6 @@ under the License. - - - - diff --git a/specialpurpose/webpos/widget/CommonScreens.xml b/specialpurpose/webpos/widget/CommonScreens.xml index 3948cac4b8..972285dd82 100644 --- a/specialpurpose/webpos/widget/CommonScreens.xml +++ b/specialpurpose/webpos/widget/CommonScreens.xml @@ -42,8 +42,14 @@ under the License. - - + + + + + + + + diff --git a/themes/tomahawk/webapp/tomahawk/css/style.css b/themes/tomahawk/webapp/tomahawk/css/style.css index cf4e589e39..aa296728c5 100644 --- a/themes/tomahawk/webapp/tomahawk/css/style.css +++ b/themes/tomahawk/webapp/tomahawk/css/style.css @@ -1201,6 +1201,19 @@ margin-bottom:1em; background: transparent url(../images/screenlet_shadow1.png) repeat-x 0% 100%; } +/* Special Screenlet Handling for locals and timezone window */ +DIV.lists.screenlet { +margin-left: 25%; +margin-right: 25%; +margin-top: 1em; +} +DIV.lists.screenlet .basic-table tr td { +text-align: center; +} +DIV.lists.screenlet .basic-table tr td a { +display: block; +} + .screenlet-title-bar { background:url(../images/bkgd_header.gif) repeat-x; min-height: 21px; @@ -2060,16 +2073,6 @@ height:23px; padding: 0 30px 0 30px; } -.view-calendar a { -background: url(../images/cal.png) no-repeat !important; -display: inline-block; -/* margin: 3px 10px 0px 4px; */ -vertical-align:top; -margin-top:3px; -width:22px; -height:22px; -} - .field-lookup a{ background: url(../images/fieldlookup.png) no-repeat 0 0; display: inline-block; @@ -2102,166 +2105,6 @@ margin-right: 20px; color:#FFFFFF; } -/* ================================= */ -/* ===== Calendar Date Select ====== */ -/* ================================= */ -.calendar_date_select { -color: #fff; -border-left: #888 1px solid; -border-top: #999 1px solid; -border-right: #666 1px solid; -border-bottom: #333 1px solid; -display: block; -width: 200px; -z-index: 1000; -} - -/* this is a fun ie6 hack to get drop downs to stay behind the popup window. This should always be just underneath .calendar_date_select */ -iframe.ie6_blocker { -position: absolute; -z-index: 999; -} - -.calendar_date_select thead th { - font-weight: bold; - background-image: url(../images/bkgd_header.gif); - background-color: #CCC; - _border-top: 1px solid #fdeb71; - _border-bottom: 1px solid #d68a12; - color: white !important; -} - -.calendar_date_select .cds_buttons { - text-align: center; - padding: 5px 0px; - background-image: url(../images/header_top_bg.gif); - background-color: #CCC; -} - -.calendar_date_select .cds_footer { -background: url(../images/cds_footer.png) repeat-x; -padding: 3px; -font-size: 11px; -color:#23190f; -text-align: center; -} - -.calendar_date_select table { -margin: 0px; -padding: 0px; -} - -.calendar_date_select .cds_header { -background-color: #87CEEB; -padding:5px 0; -background-image: url(../images/header_top_bg_btm.gif); -_border-bottom: 1px solid #d68a12; -text-align: center; -} - -.calendar_date_select .cds_header span { -font-size: 15px; -color: #000; -font-weight: bold; -} - -.calendar_date_select select { -font-size: 11px; -} - -.calendar_date_select .cds_header a:hover { -color: #fff; -} - -.calendar_date_select .cds_header a { -width: 22px; -height: 20px; -text-decoration: none; -font-size: 14px; -color: #fff !important; -background: none !important; -} - -.calendar_date_select .cds_header a.prev { -float: left; -} - -.calendar_date_select .cds_header a.next { -float: right; -} - -.calendar_date_select .cds_header a.close { -float: right; -display: none; -} - -.calendar_date_select .cds_header select.month { -width: 90px; -} - -.calendar_date_select .cds_header select.year { -width: 61px; -} - -.calendar_date_select .cds_buttons a { -color: white !important; -font-size: 9px; -background: none !important; -display: inline !important; -} - -.calendar_date_select td { - font-size: 12px; - width: 24px; - height: 21px; - text-align: center; - vertical-align: middle; - background-color: #FFF; - color:#333; -} - -.calendar_date_select td.weekend { -background-color: #f8f3d0; -} - -.calendar_date_select td div { -color: #000; -font-size:9px; -margin:-2px 8px 8px 1px; -text-align:left; -} - -.calendar_date_select td div.other { -color: #444; -} - -.calendar_date_select td.selected div { -color: #000; -} - -.calendar_date_select tbody td { -border-bottom: 1px solid #e8dcb2; -} - -.calendar_date_select td.selected { -background-color: #ea9f27; -} - -.calendar_date_select td:hover { - background-color: #FD8500; -} - -.calendar_date_select td.today { -border: 1px dashed #FFFF00; -} - -.calendar_date_select td.disabled div { -color: #454545; -} - -.fieldWithErrors .calendar_date_select { -border: 2px solid #e37102; -} /* ============================= */ /* ===== FieldGroup Styles ===== */ @@ -2464,12 +2307,27 @@ background: url(../images/fieldlookup.png) no-repeat; display: inline-block; } -#fieldLookupContent td a { +.ui-dialog-content td button { cursor: pointer; -color: #000000; +color: #262626; +border-color: #F7E893 #999999 #999999 #F7E893; background: #FCF9E6 url(../images/button_whitegray.jpg); -padding: 0.4em 0.6em; -display: inline; +font-weight: bold; +border-style: solid; +border-width: 0.1em; +margin: 0.3em; +padding: 0.4em 0.5em; +} + +.ui-dialog-content td button:hover { +color: #000000; +cursor: pointer; +border-bottom: #999999 solid 0.1em; +border-top: #333333 solid 0.1em; +border-left: #333333 solid 0.1em; +border-right: #999999 solid 0.1em; +text-decoration: underline; +background-image: url(../images/button_medgray_in.jpg); } @@ -2478,15 +2336,6 @@ display: inline; margin-top: 0; } -.fadedBackground { -background: url(../images/faded_background.png); -position: absolute; -overflow: visible; -z-index: 109999; -visibility: visible; -left: 0px; -top: 0px; -} .row-level-one.alternate-row { background-color:#81817F; @@ -2538,6 +2387,526 @@ height:21px; width:56px; background-image:url(/tomahawk/images/spinner.gif); } +.wait-spinner div { + padding-top: 4px; +} + +/* ========================================================= */ +/* ===== JavaScript jQuery widgets ===== */ +/* ========================================================== */ + +/* +* jQuery UI CSS Framework +* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about) +* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses. +*/ + +/* Layout helpers +----------------------------------*/ +.ui-helper-hidden { display: none; } +.ui-helper-hidden-accessible { position: absolute; left: -99999999px; } +.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; } +.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } +.ui-helper-clearfix { display: inline-block; } +/* required comment for clearfix to work in Opera \*/ +* html .ui-helper-clearfix { height:1%; } +.ui-helper-clearfix { display:block; } +/* end clearfix */ +.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); } + + +/* Interaction Cues +----------------------------------*/ +.ui-state-disabled { cursor: default !important; } + + +/* Icons +----------------------------------*/ + +/* states and images */ +.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; } + + +/* Misc visuals +----------------------------------*/ + +/* Overlays */ +.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } + + +/* +* jQuery UI CSS Framework +* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about) +* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses. +* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Trebuchet%20MS,%20Tahoma,%20Verdana,%20Arial,%20sans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=f6a828&bgTextureHeader=12_gloss_wave.png&bgImgOpacityHeader=35&borderColorHeader=e78f08&fcHeader=ffffff&iconColorHeader=ffffff&bgColorContent=eeeeee&bgTextureContent=03_highlight_soft.png&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=333333&iconColorContent=222222&bgColorDefault=f6f6f6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=100&borderColorDefault=cccccc&fcDefault=1c94c4&iconColorDefault=ef8c08&bgColorHover=fdf5ce&bgTextureHover=02_glass.png&bgImgOpacityHover=100&borderColorHover=fbcb09&fcHover=c77405&iconColorHover=ef8c08&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=fbd850&fcActive=eb8f00&iconColorActive=ef8c08&bgColorHighlight=ffe45c&bgTextureHighlight=03_highlight_soft.png&bgImgOpacityHighlight=75&borderColorHighlight=fed22f&fcHighlight=363636&iconColorHighlight=228ef1&bgColorError=b81900&bgTextureError=08_diagonals_thick.png&bgImgOpacityError=18&borderColorError=cd0a0a&fcError=ffffff&iconColorError=ffd27a&bgColorOverlay=666666&bgTextureOverlay=08_diagonals_thick.png&bgImgOpacityOverlay=20&opacityOverlay=50&bgColorShadow=000000&bgTextureShadow=01_flat.png&bgImgOpacityShadow=10&opacityShadow=20&thicknessShadow=5px&offsetTopShadow=-5px&offsetLeftShadow=-5px&cornerRadiusShadow=5px +*/ + + +/* Component containers +----------------------------------*/ +.ui-widget { font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; font-size: 1.1em; } +.ui-widget .ui-widget { font-size: 1em; } +.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; font-size: 1em; } +.ui-widget-content { border: 1px solid #dddddd; background: #eeeeee url(../images/ui-bg_highlight-soft_100_eeeeee_1x100.png) 50% top repeat-x; color: #333333; } +.ui-widget-content a { color: #333333; } +.ui-widget-header { border: 1px solid #e78f08; background: #f6a828 url(../images/ui-bg_gloss-wave_35_f6a828_500x100.png) 50% 50% repeat-x; color: #ffffff; font-weight: bold; } +.ui-widget-header a { color: #ffffff; } + +/* Interaction states +----------------------------------*/ +.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #cccccc; background: #f6f6f6 url(../images/ui-bg_glass_100_f6f6f6_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #1c94c4; } +.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #1c94c4; text-decoration: none; } +.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #fbcb09; background: #fdf5ce url(../images/ui-bg_glass_100_fdf5ce_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #c77405; } +.ui-state-hover a, .ui-state-hover a:hover { color: #c77405; text-decoration: none; } +.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #fbd850; background: #ffffff url(../images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #eb8f00; } +.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #eb8f00; text-decoration: none; } +.ui-widget :active { outline: none; } + +/* Interaction Cues +----------------------------------*/ +.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #fed22f; background: #ffe45c url(../images/ui-bg_highlight-soft_75_ffe45c_1x100.png) 50% top repeat-x; color: #363636; } +.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636; } +.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a; background: #b81900 url(../images/ui-bg_diagonals-thick_18_b81900_40x40.png) 50% 50% repeat; color: #ffffff; } +.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #ffffff; } +.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #ffffff; } +.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; } +.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; } +.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; } + +/* Icons +----------------------------------*/ + +/* states and images */ +.ui-icon { width: 16px; height: 16px; background-image: url(../images/ui-icons_222222_256x240.png); } +.ui-widget-content .ui-icon {background-image: url(../images/ui-icons_222222_256x240.png); } +.ui-widget-header .ui-icon {background-image: url(../images/ui-icons_ffffff_256x240.png); } +.ui-state-default .ui-icon { background-image: url(../images/ui-icons_ef8c08_256x240.png); } +.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(../images/ui-icons_ef8c08_256x240.png); } +.ui-state-active .ui-icon {background-image: url(../images/ui-icons_ef8c08_256x240.png); } +.ui-state-highlight .ui-icon {background-image: url(../images/ui-icons_228ef1_256x240.png); } +.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(../images/ui-icons_ffd27a_256x240.png); } + +/* positioning */ +.ui-icon-carat-1-n { background-position: 0 0; } +.ui-icon-carat-1-ne { background-position: -16px 0; } +.ui-icon-carat-1-e { background-position: -32px 0; } +.ui-icon-carat-1-se { background-position: -48px 0; } +.ui-icon-carat-1-s { background-position: -64px 0; } +.ui-icon-carat-1-sw { background-position: -80px 0; } +.ui-icon-carat-1-w { background-position: -96px 0; } +.ui-icon-carat-1-nw { background-position: -112px 0; } +.ui-icon-carat-2-n-s { background-position: -128px 0; } +.ui-icon-carat-2-e-w { background-position: -144px 0; } +.ui-icon-triangle-1-n { background-position: 0 -16px; } +.ui-icon-triangle-1-ne { background-position: -16px -16px; } +.ui-icon-triangle-1-e { background-position: -32px -16px; } +.ui-icon-triangle-1-se { background-position: -48px -16px; } +.ui-icon-triangle-1-s { background-position: -64px -16px; } +.ui-icon-triangle-1-sw { background-position: -80px -16px; } +.ui-icon-triangle-1-w { background-position: -96px -16px; } +.ui-icon-triangle-1-nw { background-position: -112px -16px; } +.ui-icon-triangle-2-n-s { background-position: -128px -16px; } +.ui-icon-triangle-2-e-w { background-position: -144px -16px; } +.ui-icon-arrow-1-n { background-position: 0 -32px; } +.ui-icon-arrow-1-ne { background-position: -16px -32px; } +.ui-icon-arrow-1-e { background-position: -32px -32px; } +.ui-icon-arrow-1-se { background-position: -48px -32px; } +.ui-icon-arrow-1-s { background-position: -64px -32px; } +.ui-icon-arrow-1-sw { background-position: -80px -32px; } +.ui-icon-arrow-1-w { background-position: -96px -32px; } +.ui-icon-arrow-1-nw { background-position: -112px -32px; } +.ui-icon-arrow-2-n-s { background-position: -128px -32px; } +.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; } +.ui-icon-arrow-2-e-w { background-position: -160px -32px; } +.ui-icon-arrow-2-se-nw { background-position: -176px -32px; } +.ui-icon-arrowstop-1-n { background-position: -192px -32px; } +.ui-icon-arrowstop-1-e { background-position: -208px -32px; } +.ui-icon-arrowstop-1-s { background-position: -224px -32px; } +.ui-icon-arrowstop-1-w { background-position: -240px -32px; } +.ui-icon-arrowthick-1-n { background-position: 0 -48px; } +.ui-icon-arrowthick-1-ne { background-position: -16px -48px; } +.ui-icon-arrowthick-1-e { background-position: -32px -48px; } +.ui-icon-arrowthick-1-se { background-position: -48px -48px; } +.ui-icon-arrowthick-1-s { background-position: -64px -48px; } +.ui-icon-arrowthick-1-sw { background-position: -80px -48px; } +.ui-icon-arrowthick-1-w { background-position: -96px -48px; } +.ui-icon-arrowthick-1-nw { background-position: -112px -48px; } +.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; } +.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; } +.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; } +.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; } +.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; } +.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; } +.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; } +.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; } +.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; } +.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; } +.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; } +.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; } +.ui-icon-arrowreturn-1-w { background-position: -64px -64px; } +.ui-icon-arrowreturn-1-n { background-position: -80px -64px; } +.ui-icon-arrowreturn-1-e { background-position: -96px -64px; } +.ui-icon-arrowreturn-1-s { background-position: -112px -64px; } +.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; } +.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; } +.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; } +.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; } +.ui-icon-arrow-4 { background-position: 0 -80px; } +.ui-icon-arrow-4-diag { background-position: -16px -80px; } +.ui-icon-extlink { background-position: -32px -80px; } +.ui-icon-newwin { background-position: -48px -80px; } +.ui-icon-refresh { background-position: -64px -80px; } +.ui-icon-shuffle { background-position: -80px -80px; } +.ui-icon-transfer-e-w { background-position: -96px -80px; } +.ui-icon-transferthick-e-w { background-position: -112px -80px; } +.ui-icon-folder-collapsed { background-position: 0 -96px; } +.ui-icon-folder-open { background-position: -16px -96px; } +.ui-icon-document { background-position: -32px -96px; } +.ui-icon-document-b { background-position: -48px -96px; } +.ui-icon-note { background-position: -64px -96px; } +.ui-icon-mail-closed { background-position: -80px -96px; } +.ui-icon-mail-open { background-position: -96px -96px; } +.ui-icon-suitcase { background-position: -112px -96px; } +.ui-icon-comment { background-position: -128px -96px; } +.ui-icon-person { background-position: -144px -96px; } +.ui-icon-print { background-position: -160px -96px; } +.ui-icon-trash { background-position: -176px -96px; } +.ui-icon-locked { background-position: -192px -96px; } +.ui-icon-unlocked { background-position: -208px -96px; } +.ui-icon-bookmark { background-position: -224px -96px; } +.ui-icon-tag { background-position: -240px -96px; } +.ui-icon-home { background-position: 0 -112px; } +.ui-icon-flag { background-position: -16px -112px; } +.ui-icon-calendar { background-position: -32px -112px; } +.ui-icon-cart { background-position: -48px -112px; } +.ui-icon-pencil { background-position: -64px -112px; } +.ui-icon-clock { background-position: -80px -112px; } +.ui-icon-disk { background-position: -96px -112px; } +.ui-icon-calculator { background-position: -112px -112px; } +.ui-icon-zoomin { background-position: -128px -112px; } +.ui-icon-zoomout { background-position: -144px -112px; } +.ui-icon-search { background-position: -160px -112px; } +.ui-icon-wrench { background-position: -176px -112px; } +.ui-icon-gear { background-position: -192px -112px; } +.ui-icon-heart { background-position: -208px -112px; } +.ui-icon-star { background-position: -224px -112px; } +.ui-icon-link { background-position: -240px -112px; } +.ui-icon-cancel { background-position: 0 -128px; } +.ui-icon-plus { background-position: -16px -128px; } +.ui-icon-plusthick { background-position: -32px -128px; } +.ui-icon-minus { background-position: -48px -128px; } +.ui-icon-minusthick { background-position: -64px -128px; } +.ui-icon-close { background-position: -80px -128px; } +.ui-icon-closethick { background-position: -96px -128px; } +.ui-icon-key { background-position: -112px -128px; } +.ui-icon-lightbulb { background-position: -128px -128px; } +.ui-icon-scissors { background-position: -144px -128px; } +.ui-icon-clipboard { background-position: -160px -128px; } +.ui-icon-copy { background-position: -176px -128px; } +.ui-icon-contact { background-position: -192px -128px; } +.ui-icon-image { background-position: -208px -128px; } +.ui-icon-video { background-position: -224px -128px; } +.ui-icon-script { background-position: -240px -128px; } +.ui-icon-alert { background-position: 0 -144px; } +.ui-icon-info { background-position: -16px -144px; } +.ui-icon-notice { background-position: -32px -144px; } +.ui-icon-help { background-position: -48px -144px; } +.ui-icon-check { background-position: -64px -144px; } +.ui-icon-bullet { background-position: -80px -144px; } +.ui-icon-radio-off { background-position: -96px -144px; } +.ui-icon-radio-on { background-position: -112px -144px; } +.ui-icon-pin-w { background-position: -128px -144px; } +.ui-icon-pin-s { background-position: -144px -144px; } +.ui-icon-play { background-position: 0 -160px; } +.ui-icon-pause { background-position: -16px -160px; } +.ui-icon-seek-next { background-position: -32px -160px; } +.ui-icon-seek-prev { background-position: -48px -160px; } +.ui-icon-seek-end { background-position: -64px -160px; } +.ui-icon-seek-start { background-position: -80px -160px; } +/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */ +.ui-icon-seek-first { background-position: -80px -160px; } +.ui-icon-stop { background-position: -96px -160px; } +.ui-icon-eject { background-position: -112px -160px; } +.ui-icon-volume-off { background-position: -128px -160px; } +.ui-icon-volume-on { background-position: -144px -160px; } +.ui-icon-power { background-position: 0 -176px; } +.ui-icon-signal-diag { background-position: -16px -176px; } +.ui-icon-signal { background-position: -32px -176px; } +.ui-icon-battery-0 { background-position: -48px -176px; } +.ui-icon-battery-1 { background-position: -64px -176px; } +.ui-icon-battery-2 { background-position: -80px -176px; } +.ui-icon-battery-3 { background-position: -96px -176px; } +.ui-icon-circle-plus { background-position: 0 -192px; } +.ui-icon-circle-minus { background-position: -16px -192px; } +.ui-icon-circle-close { background-position: -32px -192px; } +.ui-icon-circle-triangle-e { background-position: -48px -192px; } +.ui-icon-circle-triangle-s { background-position: -64px -192px; } +.ui-icon-circle-triangle-w { background-position: -80px -192px; } +.ui-icon-circle-triangle-n { background-position: -96px -192px; } +.ui-icon-circle-arrow-e { background-position: -112px -192px; } +.ui-icon-circle-arrow-s { background-position: -128px -192px; } +.ui-icon-circle-arrow-w { background-position: -144px -192px; } +.ui-icon-circle-arrow-n { background-position: -160px -192px; } +.ui-icon-circle-zoomin { background-position: -176px -192px; } +.ui-icon-circle-zoomout { background-position: -192px -192px; } +.ui-icon-circle-check { background-position: -208px -192px; } +.ui-icon-circlesmall-plus { background-position: 0 -208px; } +.ui-icon-circlesmall-minus { background-position: -16px -208px; } +.ui-icon-circlesmall-close { background-position: -32px -208px; } +.ui-icon-squaresmall-plus { background-position: -48px -208px; } +.ui-icon-squaresmall-minus { background-position: -64px -208px; } +.ui-icon-squaresmall-close { background-position: -80px -208px; } +.ui-icon-grip-dotted-vertical { background-position: 0 -224px; } +.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; } +.ui-icon-grip-solid-vertical { background-position: -32px -224px; } +.ui-icon-grip-solid-horizontal { background-position: -48px -224px; } +.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; } +.ui-icon-grip-diagonal-se { background-position: -80px -224px; } + + +/* Misc visuals +----------------------------------*/ + +/* Corner radius */ +.ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; } +.ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; } +.ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; } +.ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; } +.ui-corner-top { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; } +.ui-corner-bottom { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; } +.ui-corner-right { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; } +.ui-corner-left { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; } +.ui-corner-all { -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; } + +/* Overlays */ +.ui-widget-overlay { background: #666666 url(../images/ui-bg_diagonals-thick_20_666666_40x40.png) 50% 50% repeat; opacity: .50;filter:Alpha(Opacity=50); } +.ui-widget-shadow { margin: -5px 0 0 -5px; padding: 5px; background: #000000 url(../images/ui-bg_flat_10_000000_40x100.png) 50% 50% repeat-x; opacity: .20;filter:Alpha(Opacity=20); -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; }/* Resizable +----------------------------------*/ +.ui-resizable { position: relative;} +.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block;} +.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; } +.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; } +.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; } +.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; } +.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; } +.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; } +.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; } +.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; } +.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/* Selectable +----------------------------------*/ +.ui-selectable-helper { border:1px dotted black } +/* Accordion +----------------------------------*/ +.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; } +.ui-accordion .ui-accordion-li-fix { display: inline; } +.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; } +.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; } +/* IE7-/Win - Fix extra vertical space in lists */ +.ui-accordion a { zoom: 1; } +.ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; } +.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; } +.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; } +.ui-accordion .ui-accordion-content-active { display: block; }/* Autocomplete +----------------------------------*/ +.ui-autocomplete { position: absolute; cursor: default; } +.ui-autocomplete-loading { background: white url('../images/ui-anim_basic_16x16.gif') right center no-repeat; } + +/* workarounds */ +* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */ + +/* Menu +----------------------------------*/ +.ui-menu { + list-style:none; + padding: 2px; + margin: 0; + display:block; +} +.ui-menu .ui-menu { + margin-top: -3px; +} +.ui-menu .ui-menu-item { + margin:0; + padding: 0; + zoom: 1; + float: left; + clear: left; + width: 100%; +} +.ui-menu .ui-menu-item a { + text-decoration:none; + display:block; + padding:.2em .4em; + line-height:1.5; + zoom:1; +} +.ui-menu .ui-menu-item a.ui-state-hover, +.ui-menu .ui-menu-item a.ui-state-active { + font-weight: normal; + margin: -1px; +} +/* Button +----------------------------------*/ + +.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */ +.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */ +button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */ +.ui-button-icons-only { width: 3.4em; } +button.ui-button-icons-only { width: 3.7em; } + +/*button text element */ +.ui-button .ui-button-text { display: block; line-height: 1.4; } +.ui-button-text-only .ui-button-text { padding: .4em 1em; } +.ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; } +.ui-button-text-icon .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; } +.ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; } +/* no icon support for input elements, provide padding by default */ +input.ui-button { padding: .4em 1em; } + +/*button icon element(s) */ +.ui-button-icon-only .ui-icon, .ui-button-text-icon .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; } +.ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; } +.ui-button-text-icon .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; } +.ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; } + +/*button sets*/ +.ui-buttonset { margin-right: 7px; } +.ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; } + +/* workarounds */ +button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */ + +/* Dialog +----------------------------------*/ +.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; } +.ui-dialog .ui-dialog-titlebar { padding: .5em 1em .3em; position: relative; } +.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .2em 0; } +.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; } +.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; } +.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; } +.ui-dialog .ui-dialog-content { border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; } +.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; } +.ui-dialog .ui-dialog-buttonpane button { float: right; margin: .5em .4em .5em 0; cursor: pointer; padding: .2em .6em .3em .6em; line-height: 1.4em; width:auto; overflow:visible; } +.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; } +.ui-draggable .ui-dialog-titlebar { cursor: move; } +/* Slider +----------------------------------*/ +.ui-slider { position: relative; text-align: left; } +.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; } +.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; } + +.ui-slider-horizontal { height: .8em; } +.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; } +.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; } +.ui-slider-horizontal .ui-slider-range-min { left: 0; } +.ui-slider-horizontal .ui-slider-range-max { right: 0; } + +.ui-slider-vertical { width: .8em; height: 100px; } +.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; } +.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; } +.ui-slider-vertical .ui-slider-range-min { bottom: 0; } +.ui-slider-vertical .ui-slider-range-max { top: 0; }/* Tabs +----------------------------------*/ +.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */ +.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; } +.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; } +.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; } +.ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; } +.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; } +.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */ +.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; } +.ui-tabs .ui-tabs-hide { display: none !important; } +/* Datepicker +----------------------------------*/ +.ui-datepicker { width: 17em; padding: .2em .2em 0; } +.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; } +.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; } +.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; } +.ui-datepicker .ui-datepicker-prev { left:2px; } +.ui-datepicker .ui-datepicker-next { right:2px; } +.ui-datepicker .ui-datepicker-prev-hover { left:1px; } +.ui-datepicker .ui-datepicker-next-hover { right:1px; } +.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; } +.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; } +.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; } +.ui-datepicker select.ui-datepicker-month-year {width: 100%;} +.ui-datepicker select.ui-datepicker-month, +.ui-datepicker select.ui-datepicker-year { width: 49%;} +.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; } +.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; } +.ui-datepicker td { border: 0; padding: 1px; } +.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; } +.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; } +.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; } +.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; } + +/* with multiple calendars */ +.ui-datepicker.ui-datepicker-multi { width:auto; } +.ui-datepicker-multi .ui-datepicker-group { float:left; } +.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; } +.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; } +.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; } +.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; } +.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; } +.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; } +.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; } +.ui-datepicker-row-break { clear:both; width:100%; } + + +.ui-button { margin-left: -1px; } +.ui-button-icon-only .ui-button-text { padding: 0.35em; } +.ui-autocomplete-input { margin: 0; padding: 0.48em 0 0.47em 0.45em; } + + +/* Calendar Button and Image */ +.view-calendar button { +background: url(../images/cal.png) no-repeat !important; +display: inline-block; +border: none!important; +vertical-align:top; +margin-top:3px; +width:22px; +height:22px; +} + +/* RTL support */ +.ui-datepicker-rtl { direction: rtl; } +.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; } +.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; } +.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; } +.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; } +.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; } +.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; } +.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; } +.ui-datepicker-rtl .ui-datepicker-group { float:right; } +.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; } +.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; } + +/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */ +.ui-datepicker-cover { + display: none; /*sorry for IE5*/ + display/**/: block; /*sorry for IE5*/ + position: absolute; /*must have*/ + z-index: -1; /*must have*/ + filter: mask(); /*must have*/ + top: -4px; /*must have*/ + left: -4px; /*must have*/ + width: 200px; /*must have*/ + height: 200px; /*must have*/ +}/* Progressbar +----------------------------------*/ +.ui-progressbar { height:2em; text-align: left; } +.ui-progressbar .ui-progressbar-value {background-image: url(../images/pbar-ani.gif); margin: -1px; height:100%; } + +/* css for timepicker */ +.ui-timepicker-div .ui-widget-header{ margin-bottom: 8px; } +.ui-timepicker-div dl{ text-align: left; } +.ui-timepicker-div dl dt{ height: 25px; } +.ui-timepicker-div dl dd{ margin: -25px 0 10px 65px; } +.ui-timepicker-div .ui_tpicker_hour div { padding-right: 2px; } +.ui-timepicker-div .ui_tpicker_minute div { padding-right: 6px; } +.ui-timepicker-div .ui_tpicker_second div { padding-right: 6px; } +.ui-timepicker-div td { font-size: 90%; } /*=================== For the quickadd page =================================*/ .quickaddall{ diff --git a/themes/tomahawk/webapp/tomahawk/images/pbar-ani.gif b/themes/tomahawk/webapp/tomahawk/images/pbar-ani.gif new file mode 100644 index 0000000000000000000000000000000000000000..0dfd45b885a2dd69a4c16febc5e886300cdb08e0 GIT binary patch literal 304064 zcmeI*dtB9p{l{@^R!$Fj=;tbH^+U9+Oa;+O4J+@Zs7Yyr<-CA-L0||;UemlQ2r2@C z_gjJ5y0~g(>!LGT*;;9BS$0{gW}BIt4&bK&vrcZDWsbNjkoz_n|Fg z4{aH7d_(WgH+21cL+?Wsp})KSU%fLT!v3q-@kaf6+;VfbE;sdvZxi>edZ8DFzLebe zrs(d&a)yQeH{rUxtYIU@rsYHrPrGw;M(3DAPy93{dUR^%m|L&x8`n3hTiU46H%!b< zyLn>2TSiPAJECK1%yri`Ovvk$H!f>jTF$WOym9Fn<2&Vbjv1DkIXtaX=%1^<92*n; zWs)60%cAc1r5r^W+}da?bxwnY+QWxj|mm6$KRciGc2!l#`xwZe#qZ{PWQC&BeF+l<&4hEh_3#*!-i+( z=5&sUseYqVf1Ui3jmtXqMj7MVeEFwrGa_?bY~HY}*tTurVo&|#&!?e!<3e|mY}%+%2%@BSArk8j^8zT?T4e=R!s@`TuGh_AtXsb2kO`lqkg z1(rJElvh@6cKVn9SyD&DrlqHiOUuX^A2MtEk7lVOI*rWC9ycuK+R@{N-I*49=jf3M zv0r_$)_=bf|JI>dgfYE^3x#U6uD0W?PApsP- zF1e5Zid~mnNC3sIOD-gUV%H@X5 zoda*bwg1gu|LTp`_w9Y{)nC5yi_W`cFpQlD_2yMFE1-CSysGs$>O5IMFsf_7tEhG zch2ltGw+=-{hn!4r%awS@$S3{cje}c&;DUnX2!Vmv13M$x^rY&>WJaPhW=p49k&lo zxh?tDK?85OIcdO6{rmMz?9=|EF6i_IzLzw+_ntl!5!oU;D)M(2F~*!yFD^<=kARdZ%c?)Si( zAN=9!KkoVP!$19C%8Z<8{Tk1iJ8#Z84e|>X6&B^6GrxG*yoHOGFJ4-*vb227q7|!F zofEk4{>rM&_pRShvT4i1TOQaDeC+YyLyv6V`je-hdG^Vt9*KPR`R8^%wQKjD$9DXD z^Gh%9j{N1%_U?K8jV-VJ`srpK^!(%9N?rFUq3fGd2Pz))gmD4oK@WNm*AdtHoUY@w zVSn2<37e`qluIrofMVAr7ZO0R>yirzpxAZEg#=LSy5vFvD0W?PApsP-F1e5Zid~mn zNC3sIOD-gUV%H@X59Xw;s73K5KeYsticg9aS()z8& zqf%PU-my6D?)aFpJ|lNuer1oU*IItu@})74CuVNDDev5!Ne?xhJF;?H(XQv}Es752 zY)N=v`;iTka;IiZ&kamVoRu{vD;S&|wJ@b%b|4U$zo@u$$?^pyWfdvQ)+QBfNLrub zX%7787*BH`n5Q{4AC0H~6@S$tJGtaS0w{J}av=c}yDqtq0E%6gTu1=Lu1hW?fMVAr z7ZO0R>yirzpxAZEg#=LSy5vFvD0W?PApsP-F1e5Zid~mnNC3sIOD-gUV%H@X5%_AA_cltrA%Mx3kx8uDVH{NpblD?u}Ih^%;^9D0l^f@s8$kahoCft*K?}WhgzH_qYWe0>oEtjM zSyWWAytpF2tbFC|rRxV3ZW^?4kjFXj*2Lo+2yoRcfX6vuALq0<}N@av=c}yDqtq0E%6gTu1=Lu1hW?fMVAr7ZO0R>yirzpxAZEg#=LS zy5vFvD0W?PApsP-F1e5Zid~mnNC3sIOD-gUV%H@X5VFOPGE)P9_E zmB%^o*2Lo+2yoRcfX6xEALkTAMKnmQtgLyQ zbHj;G&Iujo+<5XhCuYo_=I_1s@i%7tvBB2)4-UGtQ_^LdfBy2(3%yirzpxAZEg#=LSy5vFvD0W?PApsP-F1e5Zid~mn zNC3sIOD-gUV%H@X5#u*gE1`pTKpzHtcWvCSg-m zhjPh<1W@d{@R42?+oynn7o%IbOy57I_{kZz+3Fq!;c3}SS1Fg0nsoLN8-+qqH-mYCH z*1v9N>e{k-KT9djsQ>J{1qqkrY))7ddfE8gskzfL?#&I%$eSCOmKY2!%+DxX9J#b; zVM%iF^3w9;Kwx$M!u9>vZi@0W2VRyirzpxAZEg#=LS zy5vFvD0W?PApsP-F1e5Zid~mnNC3sIOD-gUV%H@X5%&0(a;mklFGGkfE^5lwnW#z$@ z$)y|m7v9%@Qwy(i;IWCfmt05y#jZ;(B!FVq zB^MGvvFnlx382_@$%O<^?7HMa0w{J}av=c}yDqtq0E%6gTu1=Lu1hW?fMVAr7ZO0R z>yirzpxAZEg#=LSy5vFvD0W?PApsP-F1e5Zid~mnNC3sIOD-gUV%H^CO#!cS!o1Fz z7`o0$ZCdZ1p<6%sMm{*_UtH$|B6ABDFU?rCxVWgKELfTxSh8x(z;&e_=D<4>4|5=x zhdDJLjHmwk>CadYc1JO}x#4VBY4SXKEdBt&iL~UK{qeeUq@MszbTtLINmuU2-7-6uU0DkN}EZ zmt05y#jZ;(B!FVqB^MGvvFnlx382_@$%O<^?7HMa0w{J}av=c}yDqtq0E%6gTu1=L zu1hW?fMVAr7ZO0R>yirzpxAZEg#=LSy5vFvD0W?PApsP-F1cz7c$*XEZO)|X+nn3} zE4MlGmJ}D2mnIjk9#~NpT-QI~Wez+v@iGU3d6`r5$$0u-@i#59lS?infMVAr7ZO0R z>yirzpxAZEg#=LSy5vFvD0W?PApsP-F1e5Zid~mnNC3sIOD-gUV%H@X5s9~R=@)mtBxiHNqU}dkP0Ed$IwLTx|IFOk zGv*~P$PET(1tMn@Eh#QsJb&r3@`4r1%LWG4Bp0pg?_~}=H1RSAf_a&Po~U)iwLWm` zcx~9<_D#a3st)Cn3kjgub;*SUQ0%(oLINmuU2-7-6uU0DkN}EZmt05y#jZ;(B!FVq zB^MGvvFnlx382_@$%O<^?7HMa0w{J}av=c}yDqtq0E%6gTu1=Lu1hW?fMVAr7ZO0R z>yirzpxAZEg#=LSy5y=U;AKvjmpOUw#MK`#dgZ8w5nX@x)C-6Ae80={?JxfDk^CcV zW}WfHXHj=7*m)>9KED6%OJ6=cvfaGI5QBrs3?C)@#3X}3zrv{4-Ax61XuU+EC*hh zc$NdfJj<#1SUml&_-hu~$t4#OK(XtR3kjgub;*SUQ0%(oLINmuU2-7-6uU0DkN}EZ zmt05y#jZ;(B!FVqB^MGvvFnlx382_@$%O<^?7HMa0w{J}av=c}yDqtq0E%6gTu1=L zu1hW?fMVAr7ZO0R>yirzpxAZEg#=Js>$*J43G*yx;?O3M-J(~Hs_YpNy*aD$vR>&6 z>JK>Z>61sQ_BSp~3C#O`v!t}!H!j`t>hP$(zpGsPan!fBjCt^_j~-3AEWPOcQO6P! zuX+8Axs&Ey-{HMQySAqsxb?`?epB)${xC4T-#xSE_L-kN=ZC@I>_BAEl10TOOP3`t zt|(bCAh3L8aP9RT=D<4>4|5=xhdJnhT1Q;#^R|xHhW%~dBy6hcP%gQU0E%6gTu1=L zu1hW?fMVAr7ZO0R>yirzpxAZEg#=LSy5vFvD0W?PApsP-F1e5Zid~mnNC3sIOD-gU zV%H@X5)jJj{V$9_G}1FrNNb{6&lGspxAZEg#=LSy5vFvD0W?PApsP-F1e5Zid~mn zNC3sIOD-gUV%H@X5O%9_F<5FbCe5c$fphJj_84)H>o?pSN|qHtcWv zCSg-mhjPh<1W@d{@Fb5pwycbtLwX(A2C+6JnwNK0m9p+qm;xH#ab=$2UKbmq`!jfGX z>nDG2;}hxI2IODg;kCbiVouVOyoqDJ`ox?uH9j%t#9_`A9_GM16AyDBn1?wvAB?B} z6@SqpJGtaS0w{J}av=c}yDqtq0E%6gTu1=Lu1hW?fMVAr7ZO0R>yirzpxAZEg#=LS zy5vFvD0W?PApsP-F1e5Zid~mnNC3sIOD-gUV%H@X5@{S}+z?tigYdav$74jkP4Ny5N_ zh(N)4&#xWO{+0`i8f|*;@fKY+bQv=+=dFTA-rRcrri&JApVj{8U2kt}G1K7vj^rio)i@bEa;QJsAx&g;z=cwf-B35B3G;$Q50A^ zVr6jkrgc>t)@;3R@WzJ+SN^!Umpbt9#7i9r=A{mL!qySj`T(xuwPAnTHwl}nI+RN; zB!FVqB^MGvvFnlx382_@$%O<^?7HMa0w{J}av=c}yDqtq0E%6gTu1=Lu1hW?fMVAr z7ZO0R>yirzpxAZEg#=LSy5vFvD0W?PApsP-F1e5Zid~mnNC3sIOD-gUV%H@X5P)G=)aelDa{t!m5e?E4TE5WiK>c9{T5Ug4wZHMnkI=a-KBlbC$&b*f z{HWziV;)b;+;&smxjT~{YC3mh<+h?-&(&KL9n9I1@WA#X8z$vW%^jZ`6_|F<>^bui zvuDrE4F+=qfyl*6vzC=+Eh#Q3TfHJ>$@-*dSRji>(=f7c>A zx#U6uD0W?PApsP-F1e5Zid~mnNC3sIOD-gUV%H@X5%9@iKoE^0=t6+8@GJi=*ptxk| zvc;tXm#<6-2G=F6Em`Mj4!kt+GzWrtnu8vxb;PwkaqD<(*x&X|!ltSY<&p~tpxAZE zg#=LSy5vFvD0W?PApsP-F1e5Zid~mnNC3sIOD-gUV%H@X5x3>DmJ~rpnX--zK`Zgyebej{1%w1GmnjiYmoaHIYDwYJ-C#_pu>S+$V zH1RYCf_a)#^U-+vU-4HhvXe_LB!FVqB^MGvvFnlx382_@$%O<^?7HMa0w{J}av=c} zyDqtq0E%6gTu1=Lu1hW?fMVAr7ZO0R>yirzpxAZEg#=LSy5vFvD0W?PApsP-F1e5Z zid~mnNC3sIOD-gUV%H@X5nb99Af5rT)t{mCEg5urg=A(g z{C|6SPb~9Xage|wB`SrZk2FOMYM!buln2sX?5Y+T78iB(Zu9cS7|LZyZ++}u$^oi1 z_j@S}bW9OzU2R+RMy&~OT>X-oZ98$jq#ogNfJ!BM-42wHGZk*6s2KD}U*IA%epmxb zm}|6BK9YoIF;*xSL!+z@<64lB7->LTW2Vi4ostCA(z&2XniwNIv}fFo-`MbG;)u4G z^p@F!)|9HhZprHd_vXjDoxs6WkK-6P0@lfxnGT>*p(QHoUV=u1FAqb@b%*W=a3{`LsH5k^AvQNL>6fPpy#oU(&MuH(*aEX4b35*} zn4n7)`I2U%=+Z=?BVZQ?vjQFW4gD@~XSOO6b{qu81`4&LFuU2(ilxW+1|ZkNMnWe79C$gs zWT?Ele|HR{JGPe)5BTW>0Ey?-Ls6S#GoV0tbt6ku7B&*0 z;i9QM$W1Rj*rRIdceL)rAOSl+sDe3LkB87<%){;ZdHp6|SNlopDXRx< zxBDF9-lTo&v`8$humFygUij@qgT=Qzhj8{ym2-{Xciwqq_Xwk%=O3B-MNAL_6e`3U zyxwmXex4`g0^1RYw~Dth3av3Dl^AAlpO3mG!nLr#&ZZ7c_wUboI+deC+&%TFjK2Lm z!Y&f1h|T_On%RCV&=4bx`!>(YezqGVhl&QpED?N6GV)HmzJ9&rh$x*i?*@o9#6QI< z5ZI_MRX;0+pY8$`j)eF#TlUyG(eE%E7S!rj;mj^M5vhUicPm zVWQ2z+imFyg}SRABmOBY_@osR!>7Ov!ioK`NB6_Rv}7Ud?35ed5Sb@?yND?kv~RCa wqs^a3Sh>&&L4)!LKI?D2&k@))k(LESaga|C278ChSzn3NWVkcuNoY&{0f?~U_5c6? literal 0 HcmV?d00001 diff --git a/themes/tomahawk/webapp/tomahawk/images/ui-bg_diagonals-thick_18_b81900_40x40.png b/themes/tomahawk/webapp/tomahawk/images/ui-bg_diagonals-thick_18_b81900_40x40.png new file mode 100644 index 0000000000000000000000000000000000000000..954e22dbd99e8c6dd7091335599abf2d10bf8003 GIT binary patch literal 260 zcmeAS@N?(olHy`uVBq!ia0vp^8X(NU1|)m_?Z^dEr#)R9Ln2z=UU%d=WFXS=@V?HT z#xG*`>Yvsgk=}99w^d^D^d*@m74oMo<%#FcopJf?u00-~YVKV2wzrI*_R6;UORMea zBFVSEnN~eiVA6V&z`E)YLz5Aok^D)In}Yn=OzDpgR5Wv0XfT8pOkmV{sKAJ-PO9#T zZK}IXj&Q-V!U)!LcB_3K0&C*{ literal 0 HcmV?d00001 diff --git a/themes/tomahawk/webapp/tomahawk/images/ui-bg_diagonals-thick_20_666666_40x40.png b/themes/tomahawk/webapp/tomahawk/images/ui-bg_diagonals-thick_20_666666_40x40.png new file mode 100644 index 0000000000000000000000000000000000000000..64ece5707d91a6edf9fad4bfcce0c4dbcafcf58d GIT binary patch literal 251 zcmVbvPcjKS|RKP(6sDcCAB(_QB%0978a<$Ah$!b|E zwn;|HO0i8cQj@~)s!ajF0S002ovPDHLkV1oEp BYH0uf literal 0 HcmV?d00001 diff --git a/themes/tomahawk/webapp/tomahawk/images/ui-bg_flat_10_000000_40x100.png b/themes/tomahawk/webapp/tomahawk/images/ui-bg_flat_10_000000_40x100.png new file mode 100644 index 0000000000000000000000000000000000000000..abdc01082bf3534eafecc5819d28c9574d44ea89 GIT binary patch literal 178 zcmeAS@N?(olHy`uVBq!ia0vp^8bF-F!3HG1q!d*FsY*{5$B>N1x91EQ4=4yQY-ImG zFPf9b{J;c_6SHRK%WcbN_hZpM=(Ry;4Rxv2@@2Y=$K57eF$X$=!PC{xWt~$(69B)$ BI)4BF literal 0 HcmV?d00001 diff --git a/themes/tomahawk/webapp/tomahawk/images/ui-bg_glass_100_f6f6f6_1x400.png b/themes/tomahawk/webapp/tomahawk/images/ui-bg_glass_100_f6f6f6_1x400.png new file mode 100644 index 0000000000000000000000000000000000000000..9b383f4d2eab09c0f2a739d6b232c32934bc620b GIT binary patch literal 104 zcmeAS@N?(olHy`uVBq!ia0vp^j6gJjgAK^akKnour1U*q978O6-yYw{%b*}|_(02F z@qbE9)0CJMo;*v*PWv`Vh2h6EmG8IS-Cm{3U~` zFlmZ}YMcJY=eo?o%*@I?2`NblNeMudl#t?{+tN>ySr~=F{k$>;_x^_y?afmf9pRKH0)6?eSP?3s5hEr>mdKI;Vst E0O;M1& literal 0 HcmV?d00001 diff --git a/themes/tomahawk/webapp/tomahawk/images/ui-bg_gloss-wave_35_f6a828_500x100.png b/themes/tomahawk/webapp/tomahawk/images/ui-bg_gloss-wave_35_f6a828_500x100.png new file mode 100644 index 0000000000000000000000000000000000000000..39d5824d6af5456f1e89fc7847ea3599ea5fd815 GIT binary patch literal 3762 zcmb_eYgiKKwx-=Q?Pdi0+w!yaC|_1uvA>yaxz|iX3eBv#HR0ASmSVIKMS&kf`CSAV4g0DJLgPkRO79xj%J<(hH6`bTGj zrr^$JeiHJI?;s&<5pRw-^kj}=E;X0OX+pgz+f5GVt0NQv_gbu0>-8J+F$O>HpW?Lx z+YFO`CV&6VV9fsEwG#js0_-|v*!ujZ*M=jfo457?0Do-z<^}+8bI+qk+W~+$zz%Z& z;L7&@&ns`l8Ofh*WdU0pO%RP^?Xa_h7I}7K#}4Xt`s%-(m-enaPWX$O&- zX~a1aOzn?!r?5wJVBNPJ_o8-(9Fz<_c1LYGxUl(E+Wdx?wkNHH2T%eWq9Kz00h#RB zYKI~=a<9_QqC^n<>hyWlS66waWgyAP#t&TfTWP=Sxa)ukRY%j7WH}(@r=B^W_;b&M zRzPYsb*j^Kou%%`K6VP+dKtR@x~qEHq4rXMxoX-gcSf&->lMY%TMXF!Gw_A)(tp6} z2A%kN3twbr%KyUrrmw24V3d%wzK<-q(M;MTr41}un`P!!xejADEv_CJ{CTif907B& zEP`pDJIZHVgnmxh$EZnBOUxz~Ap+ZzKbFmg39_n-)$wY!Q@i~5aGmHbN7&*gkq9zWgV|2(Zhxl zoDqJp&MxW(qX#C@oF8L)*r$RdSjVFSc$%z?*9%YoZ6sOZ!vtxXtBM<*r82vyC}_Eiz1PJ2L$bttko`=+fH{Ne@G#lMDxkKt_y)O(J5&Ak)w-I znm!vzYX3$kLDG$hOp-KJg~7}M;73BFWA{!a61fe?NJkjR_}Xw+*`O0=AGg7&dUA`A?9`whW zM{fkFf`G`P^9j*|-q9KLvS<191z9a^mK3Lss}W8O=sZ}N$V4Fh*SWF5NbZQ>p{0>$ z0pe}d$*s!y*R&NSXbjmld6{4Y;O89MuDTK0Hn0C?QdL9z1qGegXs! z7$MIGkPkwdHF2os-Z-e85B?5An>yc|m<}>!Iirg%H-%F11XY{{>@kgL>a#6fM9JzBE&an&F>eWh|b0^kJ zNBM5*nCa~(xwn~rG~>GSG9mz3h z9F~64y}giIrz^lfl|_5HpUsG}?Wpr*&f?bS=|9biqivN)-a~u>uK<{Lfcng{663QL zLXzO@*N5)q4C=j6E8nC+P%lEwI#~0wkt;M4Y8!+DYzN2rBuYao1*HRIa^NC9nFeep z+ns5$X9Bh48S-`ss!k&!J#Ddd=j1O-9}?`v(B|>R7wD97BV;nK~quUHx^mj^G6K2GZ1*uSN?iLm!7vHB7_1^TGbKhmnK+K`GYA zocp2=on8LxJH^`7^1ch0ft(MTU$vJB!R@gQ^R`qoX>(=iY#u++3K>oqSpG={?#YVw zp3m99FXk^~<6#X9X1oKYXEH%8t2btG65(u0zF-J)^>8dj0Evc+9_Bd^Y)k9AfW~FV z%iDV(ClS6)TC7eVzh{ml;p4cx8)$TV&qhRWp+dqiw>i32?1;5d>HLrNj=^OdJ<}L) zWxqw8aFI<~_TkMDQHS?`z+KQ?+{ASoy%}RBu6i9?BXbh%OEx1OuZ}?n(VjrT(!B1; zQ!#WA0NBx=^6rJrFVsDCuT4)OTGzZ3$Z4Yqz z&c9+7%g!%zxtv#p2fhHbo98KBwfE&Y(&2#=}qEEU`ECEjlCp=X^_tIoMx>%kBT5k)^c=zyV5w3 zc>DLKY6%=y0igWi9B@4hB}bR6K|+jYBt+}i6Ld|b`*s62c6Ge?zGYvdW)=p90~$Ad zxGB>c<3Dy~hPJ#vNXierOl41xBn_0L<5NhK6JO-LvtS&Z{xjGKfIC6*9%*?tv*?+! zv;Q{?mHN2b|3DEJO}R9w11ZT5QVC(H0u|0n9cVK_@2r%C<)OnZ(3aS0Ux^6G$ja*< z9R~o~9XjhPL)w@vYi6r;H$tR>wW`0-Z&Qed`X0LZY9-~mfso!@dt?5Q;@|K6$mAB& z$J41&y)<{N;QATPeU}BC{lM_@-LlQ2hjX;}6~qdglT zGm%qJm*F^in=w*?j;@C_PCMnXK5Fd^wXV**pZOdS1KbSJsC~s#R;tmXIMb` zHB>sxQg&E5Yf@}d#~Z9D4R{}ZpLm7S=bY0x#k<=H?=R+=W$=Bm2aU*n z)qgD*0#4>GGlHhQ`bx#k=Njc;+9D@{F5`xI^tMkBf{XIzwB=b9KbuuLF7jMTR~Mwt zN#!)9J4&^V@JRe9Y!b2!;$rCLPWZfG`C;Qz`u~TJdCzv->e`=R8uHX_2{Fp&pWJ*h z#A60&bY(j(^P@t_`_pktBV7{tFVoeNWlNA|zgNr&DMjJ_!k2%2s2~F@la$M6k%hWi z7}}hoDuoaN7?lchVk@4DunpEIS$72&uuF&F;&4uhC$L)6IzHHUryR9emzpxwsRXmj zfc}pI#oRCB7Y1;t=*58Gsv7x3PGuW^spn6V&dWf#?*TQ0(|*rr=EeE1o~y1wyQi%)e*oX6iX@$m0F1RtKUT0vgg!8^fWhYLqS zF@EOpFld7>f^kprb~YwMq=^<e|gw?QFyf8ck|ZC^>)3c`b$^C>jCB4Fne_1e$Cqt=4Ud#K~~8Nfa91W zwk17&D?X?4FRzR+5qCiIqPf0};K4$tW$}l~A?u_E=JSe;*f_DO>r{z=U4_<)dY)M! z7O#mizC+GN&#;)k)vkBUS@fZesb{v?YuFlCPRjsT5bxB4@+sqdq}xvvBhTngZ(N1LUCS-ei=5sgE-Tbc z7HK+A_O23MP@sUoc?I?*ZB|F)&%us|2O$#G7V$6z zq>G%6!cu7OEf+_#^A=23Hd6Db9-yK*NQ#S+kjJI7 zhLiLz{>zKKtHH>H;B-cALzj`>@+-~?X2aP7ypf9WMf8q0m)wS!Nkf+&R&&zEjFOUx zlq^>v#VAq}=)?dKRMe+010g9O;qAiaTA4dV+==mw%i3Re)DwZ$Wd5CK1m4Ivy&&Ef zO8W!SpcgA>zfTGAE!{IPJMhdZ`T4{K#7ndDT8K2&*jf=J8O>H*iDJ}ZK}z|$C3U62 z$nZhk4v$QIYzMaV+0`B8S!=9RSYzi*QG#tp>ZY|lY_`}A-zI7)(tV$B9G-tC#zt8m zre~pD7oIFkmIAM=s zw+Iili%nSC?yks)t~q4lTlZW(#5^yUV@+^KvIuQzZDO^*TBz!j#nX%*uiW|{x9q0w literal 0 HcmV?d00001 diff --git a/themes/tomahawk/webapp/tomahawk/images/ui-bg_highlight-soft_100_eeeeee_1x100.png b/themes/tomahawk/webapp/tomahawk/images/ui-bg_highlight-soft_100_eeeeee_1x100.png new file mode 100644 index 0000000000000000000000000000000000000000..f1273672d253263b7564e9e21d69d7d9d0b337d9 GIT binary patch literal 90 zcmeAS@N?(olHy`uVBq!ia0vp^j6j^i!3HGVb)pi0l%l7LV~E7mxPQ=F85a&M@g_{ d|GeK{$Y5lo%PMu^>wln`44$rjF6*2UngE4^EGqy2 literal 0 HcmV?d00001 diff --git a/themes/tomahawk/webapp/tomahawk/images/ui-icons_222222_256x240.png b/themes/tomahawk/webapp/tomahawk/images/ui-icons_222222_256x240.png new file mode 100644 index 0000000000000000000000000000000000000000..b273ff111d219c9b9a8b96d57683d0075fb7871a GIT binary patch literal 4369 zcmd^?`8O2)_s3^phOrG}UnfiUEn8(9QW1?MNkxXVDEpFin2{xWrLx5kBC;k~GmPmYTG^FX}c% zlGE{DS1Q;~I7-6ze&TN@+F-xsI6sd%SwK#*O5K|pDRZqEy< zJg0Nd8F@!OxqElm`~U#piM22@u@8B<moyKE%ct`B(jysxK+1m?G)UyIFs1t0}L zemGR&?jGaM1YQblj?v&@0iXS#fi-VbR9zLEnHLP?xQ|=%Ihrc7^yPWR!tW$yH!zrw z#I2}_!JnT^(qk)VgJr`NGdPtT^dmQIZc%=6nTAyJDXk+^3}wUOilJuwq>s=T_!9V) zr1)DT6VQ2~rgd@!Jlrte3}}m~j}juCS`J4(d-5+e-3@EzzTJNCE2z)w(kJ90z*QE) zBtnV@4mM>jTrZZ*$01SnGov0&=A-JrX5Ge%Pce1Vj}=5YQqBD^W@n4KmFxxpFK`uH zP;(xKV+6VJ2|g+?_Lct7`uElL<&jzGS8Gfva2+=8A@#V+xsAj9|Dkg)vL5yhX@~B= zN2KZSAUD%QH`x>H+@Ou(D1~Pyv#0nc&$!1kI?IO01yw3jD0@80qvc?T*Nr8?-%rC8 z@5$|WY?Hqp`ixmEkzeJTz_`_wsSRi1%Zivd`#+T{Aib6-rf$}M8sz6v zb6ERbr-SniO2wbOv!M4)nb}6UVzoVZEh5kQWh_5x4rYy3c!871NeaM(_p=4(kbS6U#x<*k8Wg^KHs2ttCz<+pBxQ$Z zQMv;kVm5_fF_vH`Mzrq$Y&6u?j6~ftIV0Yg)Nw7JysIN_ z-_n*K_v1c&D}-1{NbBwS2h#m1y0a5RiEcYil+58$8IDh49bPnzE7R8In6P%V{2IZU z7#clr=V4yyrRe@oXNqbqo^^LvlLE?%8XaI&N(Np90-psU}7kqmbWk zZ;YBwJNnNs$~d!mx9oMGyT( znaBoj0d}gpQ^aRr?6nW)$4god*`@Uh2e+YpS@0(Mw{|z|6ko3NbTvDiCu3YO+)egL z>uW(^ahKFj>iJ-JF!^KhKQyPTznJa;xyHYwxJgr16&Wid_9)-%*mEwo{B_|M9t@S1 zf@T@q?b2Qgl!~_(Roe;fdK)y|XG0;ls;ZbT)w-aOVttk#daQcY7$cpY496H*`m@+L zeP#$&yRbBjFWv}B)|5-1v=(66M_;V1SWv6MHnO}}1=vby&9l+gaP?|pXwp0AFDe#L z&MRJ^*qX6wgxhA_`*o=LGZ>G_NTX%AKHPz4bO^R72ZYK}ale3lffDgM8H!Wrw{B7A z{?c_|dh2J*y8b04c37OmqUw;#;G<* z@nz@dV`;7&^$)e!B}cd5tl0{g(Q>5_7H^@bEJi7;fQ4B$NGZerH#Ae1#8WDTH`iB&) zC6Et3BYY#mcJxh&)b2C^{aLq~psFN)Q1SucCaBaBUr%5PYX{~-q{KGEh)*;n;?75k z=hq%i^I}rd;z-#YyI`8-OfMpWz5kgJE3I!3ean6=UZi!BxG7i(YBk? z02HM7wS0)Wni{dWbQMRtd-A)_Az!t>F;IwWf~!*)-Az4}yryNkz&9)w>ElA80Oc`6 zHo#9H!Y3*Qx9n@Jn)!w6G^hb;e_n8zpIyXCN`JFkPc)^Q?2MsLNFhMgrcZI-<#1ne zjH;KFf?4eAT9mQZ}ZfHLGA#d%s;SZK4p0FwZT2S^{ zQ2BG1xJsbK6?yrHTjJi|5C0u=!|r!?*4FL%y%3q#(d+e>b_2I9!*iI!30}42Ia0bq zUf`Z?LGSEvtz8s``Tg5o_CP(FbR0X$FlE0yCnB7suDPmI2=yOg^*2#cY9o`X z;NY-3VBHZjnVcGS){GZ98{e+lq~O$u6pEcgd0CrnIsWffN1MbCZDH<7c^hv+Z0Ucf0{w zSzi^qKuUHD9Dgp0EAGg@@$zr32dQx>N=ws`MESEsmzgT2&L;?MSTo&ky&!-JR3g~1 zPGTt515X)wr+Bx(G9lWd;@Y3^Vl}50Wb&6-Tiy;HPS0drF`rC}qYq22K4)G#AoD0X zYw$E+Bz@Zr^50MAwu@$?%f9$r4WHH?*2|67&FXFhXBrVFGmg)6?h3^-1?t;UzH0*I zNVf9wQLNLnG2@q>6CGm>&y|lC`iCFfYd}9i%+xkl^5oBJ?<;aneCfcHqJh7Yl5uLS z9Fx-(kMdcNyZejXh22N{mCw_rX1O!cOE&3>e(ZH81PR95wQC37En4O{w;{3q9n1t&;p)D%&Z%Nw$gSPa!nz8Slh7=ko2am)XARwOWw zpsz0~K!s{(dM$NB=(A=kkp>T(*yU6<_dwIx>cH4+LWl282hXa6-EUq>R3t?G2623< z*RwTN%-fgBmD{fu*ejNn)1@KG?Sg*8z3hYtkQJQjB6 zQ|x>wA=o$=O)+nLmgTXW3_6diA;b4EY{*i*R%6dO2EMg z@6g?M3rpbnfB@hOdUeb96=~I?OIA3@BWAGmTwiQ{x5Cqq<8c10L!P zd@Qk^BseTX%$Q7^s}5n%HB|)gKx}H$d8Sb$bBnq9-AglT2dGR2(+I;_fL|R4p$odJ zllfb0NqI)7=^z~qAm1V{(PkpxXsQ#4*NH9yYZ`Vf@)?#ueGgtCmGGY|9U#v|hRdg- zQ%0#cGIfXCd{Y)JB~qykO;KPvHu|5Ck&(Hn%DF~cct@}j+87xhs2ew;fLm5#2+mb| z8{9e*YI(u|gt|{x1G+U=DA3y)9s2w7@cvQ($ZJIA)x$e~5_3LKFV~ASci8W}jF&VeJoPDUy(BB>ExJpck;%;!`0AAo zAcHgcnT8%OX&UW_n|%{2B|<6Wp2MMGvd5`T2KKv;ltt_~H+w00x6+SlAD`{K4!9zx z*1?EpQ%Lwiik){3n{-+YNrT;fH_niD_Ng9|58@m8RsKFVF!6pk@qxa{BH-&8tsim0 zdAQ(GyC^9ane7_KW*#^vMIoeQdpJqmPp%%px3GIftbwESu#+vPyI*YTuJ6+4`z{s? zpkv~0x4c_PFH`-tqafw5)>4AuQ78SkZ!$8}INLK;Egr;2tS18hEO5=t;QDmZ-qu?I zG+=DN`nR72Xto{{bJp||`k}-2G;5#xg8E~xgz22)^_Z;=K|4@(E&5J)SY2of=olcw z5)@L)_Ntcm!*5nEy0M9v0`S33;pO4TN;>4(Z+19p_0>u#e-vE zXCU(6gAvu~I7Cw(xd%0e59MNLw^U37ZDbsBrj%eDCexw8a3G`nTcXVNL6{B7Hj@i& zbVB{;ApEtHk76q08DJ48dSxd$C(;$K6=FpU<~l9pVoT9arW^Vu{%Bcn4`eIpkOVC| z$)AKYG_`ypM{0@BUb3^9lqi_c?ONH|4UJMJWDowMVjacycX7}9g={O7swOB+{;+?; zjBo!9?+nd)ie#x5IbFW-zBOo0c4q@9wGVt5;pNt`=-~Zgcw#*`m($6ibxtZ`H=e=} zF#GZ~5$%AUn};8U#tRem0J(JTR}d4vR(dgK2ML~lZsPhayJ2h1%sD4FVst| zKF)+@`iNzLRjg4=K8@**0=5cE>%?FDc({I^+g9USk<8$&^qD~@%W0i4b|yMG*p4`N zh}I!ltTRI8Ex$+@V{02Br%xq#O?UlhO{r8WsaZnZCZq0MK9%AXU%MDLT;3=0A9(BV z9VxxxJd7jo$hw3q;3o?yBLmA=azBUrd9>-<_ANs0n3?-Ic*6&ytb@H~?0E(*d>T5n z-HiH2jsDf6uWhID%#n>SzOqrFCPDfUcu5QPd?<(=w6pv1BE#nsxS{n!UnC9qAha1< z;3cpZ9A-e$+Y)%b;w@!!YRA9p%Kf9IHGGg^{+p`mh;q8i7}&e@V3EQaMsItEMS&=X plT@$;k0WcB_jb;cn%_Idz4HO$QU*abf4}+wi?e96N>fbq{{i|W0@(ln literal 0 HcmV?d00001 diff --git a/themes/tomahawk/webapp/tomahawk/images/ui-icons_228ef1_256x240.png b/themes/tomahawk/webapp/tomahawk/images/ui-icons_228ef1_256x240.png new file mode 100644 index 0000000000000000000000000000000000000000..a641a371afa0fbb08ba599dc7ddf14b9bfc3c84f GIT binary patch literal 4369 zcmd^?`8O2)_s3^phOrG}UnfiUEn8(9QW1?MNkxXVDEpFin2{xWrLx5kBC;k~Gmw z<@?HsG!Qg3zaV+-xQ3ldtad!U<6iGz_enGH*2akP_r)o1D&8p^5M)_c8IIj6Wy*7HJo&CBLuo~nj>(63pZzO(Vv^ZuB3 zMYigjkwA;FEy|G}1jpiMj6|NTm7Uyiw=@FDE*nX<>jR!W@9XIyf%$Fd*J5*D0Z0Lm z9}ZQxyT|x5ftNy?V>EbJz-K>bV9gs9RaXUP<^=;e?&Fqxj;6{ieR-a-@HycA1KMKhql8GOmcxwZ?_-(3hMK^^a*(gaFvBH ziIC!fgH4$W*NbKIaY&T?%&13``KbD@S-0`xQ%v3TV+B!;RC7O!+1a9QCA$H@3tR;k z)SSoR7(s4)f{zM}eWgFN{(ZH5d1O}l)f$ruT!)Q&NImXyZsTzOf9TwctcSfr+M)aJ z5otO+$jvm-P4)ykH)x|cO5xeb>?!`qGw$(>&axqLL6yoB${vsMXgL_-bz@2J_tS92 zdvZG-+vKl@K4Vr(EL{WQt@Z+Ea-hxX0}nTSZxnpi^#Kn8Ox8FgIS|hc}KJQ4tm*HO16ui{(O9} z1YN)GjiQt6fGq`Cj+^`zUf?8hk^(T{{cOQGWFP98am}is28A!5%{R#ENv8fCN!j69 zlMEK(2z?|BY=Je$XD9mB-Kkem*(d-j^9j$2#6r$Dz?s)-TCDCGCs z8>6Pvj{Y+YIeFA@qY22V$)awy@q!9A4rgk5b9TcC;s9Ig^G|6nDP+5=Fzg&?(L=vc zCbGd>fSu~@6!94td+o#d@sid!EIX$rx7*cawe6 z`dScJ+$HssdOjE)O#Ybs56vm-FQ$7yuJJD^Zqk%hMaIgAJ<2yb_MFQte_i;62ScT$ zpjifYyR_E=rQ+>H)pmlr-Udzg*-!|ssw(D7wJvC+Sf8bb9;;q8#z?0p!!bsd{wy|5 zpBaMHE-Ve>i#LLjHRaMLtp%9&(HCng7Sw96jVv!#0k%?F^K7&=T)mnYn)D9(i;4x5 z^NJTJwq~pv;kH@#ejTd*48~(J(r6j34|m`h9fEDj0im)~+%I5XphWymhT;_Zty|Q& zzjPg#-ufAHZ1M*Gccw?Kf|8Pnhtb0`!{N`Bqsa37J+>wC$!e z00k+2Egzz;rbcWoUB%Jvp8W1}$XD%e3>4y;;OZ1ccT-O#uW6Ys@C}Pa`nZrNKzR(2 z4e%3)@QI4SE&E!lW`5y14QhbepBG%_XBV-O(%5tj)@9#|;sC-MNev!zGDHk}JdpGC`iJF#8=8-P$Xoku_=Dw%Cv3{U7L>gf zRQ?<$t`cZ*MP5GQmbmx#!+*!zu>0MewRO9GFGS{b^m_fJ-N0?j@EqoFf>$khj+E|@ z7r3We&^tR^YZrxKe*d22agXqCO0l44&kqCv{u)T|(lv`~PK@DvE z{QI_TlCH5z*gR!>LO)k67{^R+vWx24U2^2ODXpwT;6y+6+$5m)_*w4WY&#do9dCeE z)>p+Ykdhq($DhmMiaYXey!@N%L26uz($aJ!QT{B^Wu}U$^9e#5)=c+XF9@Ill?ZmM zlNgHiz*9!vDc&uxOo;ZVxb`Q!Sk0*gnfxWzmbZh4(=%CD%qP?0=);n$&zaW_$UKV9 z8axdcN#AyZ{P)wj?V{P}vM)YY!>6@}^>U+iv$`9>nMTCPjN>z%yF&3yf%>+T@0vh4 zlC8Xa6zeo?%=o3}M8{aebLHcO{^1Ar8qiM=Gquf?Jo)q5`-+?sUpg?QXyEUpWSm+n z$K-UyqkIwHLquru~o(OF)hhz$Y*|X>ZIbswnxRvr~ z2=rdOGVuD|xRlpAZE<0!X1F(%Anpl^@V^D3vbM}qxe|NI;TTiZy7(IM;R69RkA>a& z6gwYE2sREzQ_LHmWqB+ogMk(fMaSFeoDq-!HkFB_nXt5+2ncFuk9BQL1I&oB1zZi) zYW{6_&-Ip1l*OVRA##1ILQS;5R{-K^0wGTiJbVSi@LA^$D$;@J>^G{6@&+%4{b3(s zC~LEHiTv(0b#zxt?YJ0r_~pUZM~mQ(??(n#>&tD%+@nq=Abj5*8R!~Ul1`G~=qFJ4 zfl|m8ZDCYgtr`4LcOpgiJYX9qRY5;DcWti~PmS$VB$E-Zt^f4)vLDOe_3XTq5^ylW zJ9PKm!V-8sAOJXnUfuFNIf0R9tK-pNs2hO04zr620}5B(Ok>yB)Of-3sP59qfQNbm zA4{w!2@cB;GbR(~szVrbO%(w=5S!X`o@o@x++wbN_tMPT0Vc)*I;Fgsbf^*g0 z2Di?HTApwKq3+YwfNsqd3iP%{hyK1iyuVZc@*0tO_3+N0#GFsz>8MjeJ2UJ%L!%hi zGYYAthH`E+ywA*u{(eJ=ia3h*%k?779rk-K<0VZAPkl;TFUbmei|$fqWO8!_zIvqt z$ly$VrlH46nnpX~X5Yk0iBJl;=WuA4>~X4-f&K0yWf42h&0b30t@NYX$7egQ1Fp!a zbui-D6cWCWV&|R1CY@G8(qOmWjWeX3eX7UggZPGimA}soOuQdXe4uZ#2>5zN>qlI0 z9xk}lE=tNpX1m6*nFr2EQ3xs79!^sCldDJYE$m(qYv3q7>}1R7?iZW7>$~*%zKaC| z=$N?ME$>#+%T&MZC`dW1wUl6Z)JgyCn~V%K&i0H|iwE%$>xsZW3tTfZxIUePci@p;cRu|d=ItIwF z1clVHy{hH?@SD|(Zfqi^0DQ1hczHN7xq85h)rzQqLHMX2^IkuK7FB!kI40s$|CY7~ zNX^{_UjN8}L%Med;|+=4RNTMozn8KT;2tb77bUPCmioh+rZBfIiM6f_P34cQ__o1G zWqQp3VL~~pE5?qODf%iiQQ3f42YF@09tQ*$4v_EKUx;t1KCPCBtgqg z@+Tn;O)a0uky_%jm+WjNB?=~VyH>V#L!*=l*@OS6SVyt_UEH&NA=?V2stHPyKkVNy z&jg<#cjros){#ji)dK z%)We0L_478=HZ8-@xnwsKrWs8)x`MB;(Y`Cmu2c-&SH(vN-F(*e`l?c%+l$|y_AJJ zhcDGnwLvN+bu;_sX|1AiePhx@u&%P$hf*xE+O=~D?_(_KGWQ!158YL-y9$*6mmPo;Rp*Dl5lm-mVM2i`h- zM@nxv590_tvMwPD_{l=b$iOm|+|S{D9&P%zeT$GgX6Akl-tfUF>tL@Ld!B&{pN39t zH>3Vhqkr}2Yul+jb7UiouWVGPNsxX7Ueba+9|~dz?d*QM$ng0DZfO0`7fAy?2yMm| zcnRzUhZ&IcwgjH9cuU!w+VStYa{p*)4IgBf|E8)sqMYtB2KH_}SfsFq(c9i(Q6S3U oBo%DI*Kv;w;*%(i9W@e{{5C=l}o! literal 0 HcmV?d00001 diff --git a/themes/tomahawk/webapp/tomahawk/images/ui-icons_ef8c08_256x240.png b/themes/tomahawk/webapp/tomahawk/images/ui-icons_ef8c08_256x240.png new file mode 100644 index 0000000000000000000000000000000000000000..85e63e9f604ce042d59eb06a8428eeb7cb7896c9 GIT binary patch literal 4369 zcmd^?`8O2)_s3^phOrG}UnfiUEn8(9QW1?MNkxXVDEpFin2{xWrLx5kBC;k~GmC-Ajq!3AfU8Dx90^_ zp3}MKjJzYC+`T(&egFXQ#9Ek{*oVAaa!zrZtmlRFnwQPRJXH<%pkK2*eP`pT=lwD7 zifq+4BY_rUTa+U|2#&?i7>PVvD?7R4ZfOLPT{e9G~G!Ls3s8JtQE`jMM9wl2V9&Q+K2DHW0M+uQmEr%nYJ^7cK?uIpU-)=wn71ZZ-=@ar0;3^AY z5+TI{2b(e%t{2PZ^HKF*vu@+Xr&BAc@2BC4 z_vCgww#i=)ea5Vo$glEEVBBg_VPBj!)OO>)f@}#dg6ULOeC>LBHz<;*5Y;YfE0lNx zg{N+4@lO~ozxpF69qV@VOGnc248Iuag4C1T)P^(hWkpP!{h!JekX}m^Q#b2B4f1oT zIjsGz)4}-$rQ*-tSuc%qG>%<4xM#E& zN)7lRK~^2VdiloY4>;#}A!yHOAXEmEi^+eA#05pawGXs>!z)gSoDuI#>bRCq-qjJe zZ)r=A`*EMX6+)~er1kdv1L^)0-PsAEM7JF$O6G8>496$24lkOSR^RTfUuIz%iSfn5b-t!##cs7sQI);gdAvqmn_v|%I9k;fCPl0Z)R1+hNQONJN zH%3jT9sOq*a`LF*MiY=zlSSQZ;{_FL9M07A=In+O!~wR}=bzGEQpk2!Vc0p)qKAH? zOk{(%06W#)DdICQ_S%Q@<0Y+!?9%#$gWJ%)EO->^YZP{<`oB4~9xh zL9-0*c4@B#O2ylYs_g`Ky$zb~v!M`NRaMNFYF*Gsu|7)=JyyMHjFC=HhGUE@{aI|B zJ~ITXU052%7jFb5Ys#fhS_?4kqc7H0EU49B8(Chg0&JzU=Gka#xOz1)H0d4m7ZnRA z=M^tdY|U6T!fmte{W?_r8H~qdq|q{5AMU_2It1I4143n~xL?4&K#BOB48l9_Rdm!(c^C?JU;tF0 zEh@o1y6Qa_>}#AwX{VY+`C^kNkxhgb1P5cB0%xupAXyg9NO=SnXrJUE?rQg{Lcsn+ zAZKctGLfbK_B#^&Nev|0^fB&?DN=ak8|0!np524LD25=s84BP8Vl(3=jflNp{X>e@ z637Ri5xx;&JNl+XYImA|{;XR~P*svYDEWYJ6I5!6uO~2twFC1ZQevB7#3z~(apxn& z^J@>Mc`>PJair{yT`iuan-V+i%|Ho-pA<1?V-k^R2Q<5;Co%XxmL` z018t4T0TTwO^w)Gx{9OSJ^9_|kgwX`7%0Rw!PO~@?xvnfUehvN;2Rc;^l>3kfbtk3 z8{j7p;S&{uTlTe9&HTc38q@%_KQFk<&n{vmrN7y&Cz{etcE->rq!6HL)2F!aa=0%! zM%Bwo!7TQ5t;@a_#Q}sjk{UebWQZ8{cp&HN^$*JfH#8spkhk{R@CVBiPuP@yEhu{} zsQfuhTqV%rioATpEphMfhyRYbVfVW`YwLFXUWm-===J(byMf!5;W^CV1g~2194Xx) zFK|z{pm%n-)-DRe{Qhk(d!QaoI*y%Wn6h7<6A{i*Sob&B^y|Spg!&J$`kN>zwUJ3x zaB$ciu*0FJKg}T ztgnh)ASF8njz5>h6?f#{c=*Yr4W_34$GmVIo8OLWjcZK4a0`+Yv-!*}9 zBwKm;DAsA(nDI-`iH@;`=gP+m{lgFLHK3m$W@?)&dGhDA_Z2xOzI0$p(ZJtH$vCxE zj>+kYNBJzs-TlSx!tSH}%I9fQv)mc!C7X0bKlZv4f&}C3+O-4k7AmVO|KYZ9ydP%(N1^uisV8y;~p`x4qFXD?!_OyN9=w(Od6W; zGrT?G;l2v@Ob5k^8w<9w%Jbjb^|H}PYKo}I~bobd!XrTbzp2Zp~H8lgJ)I3?l&(bDiWf8gE&6b z>)9GB=Iu-6%I((+>=jGP>CzD8c0oWITFZGgM!Q7|JrUYq4#^Y(vuDu-a>OWDa4Y4} z5a_*lW#IL_aVf8L+Ty}c&2VojLEIA-;eQK6Wo?xAuK>i;1VWx3c=!s2;j_*iRHOsb*>6-CgcYP+Ho=L@XLd*j~2ln-;WHg)|cCixksH$K={5rGSD@yB%LI|(NCc8 z1Er8H+QO)~S~K{g?nH|2dB8SKs)BxQ?%G}}o*LV!NG2m*TmR|pWj~g`>)ClJCE#F$ zcj)fBg(dKOKmc$Cy}IRlasngIR>z~kP&WW~9cC951{AKmnZ~ZMsqup6QQf7J0T1;C zK9*Qd5*(HxW=tl|RfjO>nkoW#AU3t>JkuzWxy4-l?xmTv15_r1X@p@dz^{&j&;{Mq z$^0$0q&y?kbdZh)kZ+NfXfqLTG}Q^j>qHlUH4VEK`3y^-z6Y<6O88Hf4v^;}!{t-a zDWg;znYu%6zA1~A5~w?fxO~i8-Ib(^02{c4pXjhDI^2 zXB1LP4dvWuc%PXQ{r!d#6>${rm+M8EJM8yf#!H$Kp8AxwUXm5`7Tu-J$mHeCG>vw|&Ay415}_1w&*9K8+2d3v1N+@a$|820o4u60Tj@u&kI!~q2V9X; z>tMvQDI|O$#m+m2O**ZHq`_{#8)ry6`&5s~2k{O4Du16Fn0P;&_(0!e5%Bel){nU0 zJX~<8U6hoI%yx}qGY_1Tq7YKDJ)ETOCs&W)TiCrK*1%DE*vXdD-7hwE*LUgjeHRM` z&@pkhTi>m#Kc+QIK+2Ybn9-sFVKNHyIgfob4H_77yYh))Rq$7Pw|+aD6&yZ|ki9 z8Zb6s{oBt1G+PgfIcxd}{m@~1nzhe;LH)5;!gS8@ddyabpdBc?7JVl?tS+<#bPSMT z2@0uYdsWN(;Ww)n-PlA-0r+62@bYkEa`k{0s})fJgYZ#5=DmIdEvok7aZJRi{w-|} zkea&6X}ZA3b7&vbDb7)v8CuI(+zzSf3z&P2eOrPNP?D~ zf zn0@)0h;~5F&BG5vOFU!=woW&ZSl~nrs{?1w>nWfW_dnpTd z4qvLDYJ*ft>Sp%M(^_xCZpNBnc66JX}A|ZL9IENM`U>`ph7d<+RQiI}@E8Y)70s zMC*_&))}GlmR}@{v9*nm)29-=rn`Q$rc^4G)GVQHlTr6BpGxtHuU(8AF7Ffh54?5w zj+EYT9>x)PWL-iQ@RNmT?R+|c@=FOmj)5Za6_ z@DkVy4l^L>Z3#SI@s_eVwd3D)<^Ivq8a~J{|4mhOL^<7M4D8){ut;GIqqn`oqCk|x pNh;Wa$C0(mdpqYz&F>xK-uVD=DT5%Jzh8ZT#aXmjr70%*{{RacS`YvL literal 0 HcmV?d00001 diff --git a/themes/tomahawk/webapp/tomahawk/images/ui-icons_ffd27a_256x240.png b/themes/tomahawk/webapp/tomahawk/images/ui-icons_ffd27a_256x240.png new file mode 100644 index 0000000000000000000000000000000000000000..e117effa3dca24e7978cfc5f8b967f661e81044f GIT binary patch literal 4369 zcmd^?`8O2)_s3@pGmLE*`#M>&Z`mr_kcwz5Nh&g=McJ3E!;CE1E0ryV5Ro;>nvtvt zk&I==Xd;cVGZ@>q_xtnx{1u%7-D)N|5YqOB>i;(bZ#o62{J2Y9&^D3~R^$o+X? zwbxAEIb)xwCwK3TSR4QVym6N1rVgPmmt0caryBUceHP_&u}{?^Jn7f0PT$#h>UDqI zr!q(F&1jJ2_!jxdAB<)7H$foI*2zuncvu;;$SoU7br=AiJ@4=BC4vNO>DS`&UIB=K z;2)0F*t^FBvVfPuT4FVMSwUw%Xksjyl+;#*DDy%=ocFOyzDLvLR(`zCSOuJ=?FWYn z5ZD!UaoF>-$@=Vt?a&;UQYM$Oqe0ZB?Je?8ZnMxDe&uzzs*zlHd)V58nfJPc8S^({_4bj5HQ_B&EXHWj6wx@B;!mr04b_Mx)UFL)W7`V!c zpMp#C!a!!sh3h491y}^qfimXVY%!+sYu0_DWoJMqpN(FR9LM#jdZ{vJzEck`P^9(1N=4J za9%u4$2J8TAkUaJk_FX%iHuv#svL_mMmp{SR}ifc#ZcXv%CFsT?*>N^6r(%D?1YnU zAaT?UZGlOna6UXXs0m)3YDp}d%hb@)@Y!lK_A&D6{OPlNnj zYY*$b>vnRzL8=CDbQSi!DL3D!P^xhNtwrYByo?h-&OvQZYJ6ka{Re# zSc0ry_d(K$_Q2M{Y^O~DOK(szDOnMi_*h_Rx%eSRxA%n|FuC&=F=)B z_Qsgmj8g!GA+LZOX)gOW}vbo9|l8QW3iYw9qCD{o~xt^HIU>;dV5MJgc0#uHTA z80%Ee_r;G`GUjssm z*AhtwpW%Ly;X4Lq1Zq#ZpuwzrZE$sR087dN{w7PA6|Mo#6wwJP085K+h7+D>NyeX# zk|?MJ^Es)JtP-2eNr0EQe*ZM`&}OU zCD*uSSviE&p}uX|@1g_%|3*ra*MbBV#~cshdcFQ(dGLnTqaO-3{u==x1;Pp2im!#` zuZ2`ThfAmiSzb|4h`c4?^ZoGOF*oXYcV}(ge!v@^bse?daA`Ma+bSZLIg;pIN17vM zIOYfK=@s_Pj?~#lqnY2o?d1$MpoqsYQw%eX%X6Y4*^27{hMWGqILEMnVYUEMW#x7f zu^I*nzXQ@6HJ8n;26 zo^1+Ewi$fN$Unum1(FTb8I#cYgcGklwIExt#Mb(D=x~OTeZ^ubJ)S-ywfdZS?SRCq zDm=eU+CCWO@8S_m!W{alT)zj zZJbjxm5&No5xe_~Jw-i7`&G}=r)POGGfFq+c@kQbB#)ay`coj&C3- z(#&xV@Q3@VJd{qdH4g@4ZJi&mx9e@Io7@~(o5vTrkW>QEO1T-gmlTRHH+3)gcUC0P zk07rvDnf*7Y5J}8!>F_7D^Z3IoH^uGH}_a(ax{Q(IrvV$olf3WN&DY?uYZfvXI(;Vv&EAoQtfH;+4VI_a>yh*J+Cj!?h!QX?O`QXk@@G7AjloJe51Cw*rPXQ>#y?B^^ExRQFui zolmv*C5K|-p){rZiCNai^0H`1(Qr(Hz3v%7NnmriXu2tD>xsbN#*R3*wsZhRj6Lvb zn0Cu=qkC?*e4{NF_3=^bTb1f!g?@ryFH6Zw2tz%A zzz&o{w`dDv66!6Wk9w1-dglS#Sm{doxw&h5Z8&ONmlBBte{J)puaDzc!LC==rPRQK zQNH23?-rIo^MQdt3Tk!B@8l#}fxVtrlc8Y<>ORaVE($DKc{77qV^`+`%_DotrUD=8 z4}L7QnZi3RgUy*tteY-=$SqA2@IZWe(}mI`nzhAT{qC)my#rJsfoS*)xCXj!Tk6=3)cr@Jw#OcNqgS3pg7x|4!A$|w15X!huR*vB3q9Ya4 zF{xuzEQz{9YPl(gk`}Gffut%jotgqp$jZvzRO4EsExf~93vY~04AxH=lR>R3v3Qs2 zy$v4SN%ee@Kz#kDtARaQD`d!R%}#@T1=v8DAow*r>+0d1KS{ZtA~KMtgm)+$JHumW zw=;@qWk&MuG@LKx#K3@&WMw?r=jD2_)(*$LmkCm4_@};QZI|SPe8hIC6xqBy!LQyK z01_xmfNA9UlBU@Kzu7;zQYxHE>OCADA$gwaVqm`eN?XQF@NkrocB}lU4hcCf>wqir z>Ya=PcE!Xm#JG8v@G0lj&~)hScM}X57vGw3g<$^SUls53f|Bk>5FQwqE&{%u(f$!1 zl8+53vyYZ`mEEp&YT<=(krhKrw?~pS{N)?q{0qBR#2Y!w4!hWMdj`a(@A@r$zVB+u z06Hb@_9(cQ_AxbXI|-2w>#QUhp7k<+`z9+(jkh~v-Renr#C9U+&jL4vg6-E$f7@UU z(1fxB8{U2vq}h3rE!Z+n7=(>D&}@9~3mJ^R5}|WVG@!RSh3r{!>QHwg!t29YS&jiR ztyn_q*k9H0efZ7hO*b(WR|G!TDY`rol~Ob4&1OwdM8kbGj`^$~L5gdWYceWwL=PB{~NX=cu3p-{S;hqaE?bSHv$g+SA6bxy+VU3YVTPDj6CN zKLb_(9gM2Y#KW8ONxjH9To^Y)r?ql2cq8+WE438uIF$hjfdLs6-;!jv55jGcc3Ipg z;}aT32NAEGeU;J}&j5=+u`4?%xlwL7?NDn%2={4WS39yn3f;&r=|}5=M-Y2yrxeSw zv%*PmV{_{#Qk1sD>?M2KDapb~z3!E*-LPmCe9q86D%MGSe;4~~K-jKQxq6b^902_{ z%>4G>@Xqk8muR*|vGe5{@7sds2i|i;g}oMkd!o^0=HG+vcPrcN54A zLGv$PlTePRxp~-OSb_*aACO1qc{MpfS-fv(@UmRv%UO)cSt;ee@9(S)f>|~bwU@eZ z=kTS*sdjLclwMZG#?%U3)bq-uj?@@vj~6tq)ZS||Jxz`+di-M5SXM=h3EL`?pB>W9A;`V2vM)vk&%KFy|TAh#AQA zb_?J==3f@%LL{`vU$3Z@A2a9C3aC-YY43dR> pI7J0n@;b3~`)ubvsr|iU(l;L{A#E6J`}eC4usn-0uQEf&{2ws1m(ltoqJ#RmwV2==ic*rz7lOw=eaq=H~;_ux21)-Jpcgw zdj+hrf&W^f<%Qk9Zpqf#;q3n5{{POY;f!wmTR1An9(4&I0z1LNX50QSTV2M%4|y9c z#{ZQIVJKu~aY5?ZaZP*GIGqGs=e@q6o|EPhZB3CC?@LnORK8O@z{{<0KtSn5?#~OW zy=L;x8T&*%xqElS;s5~Pjk7d2bqIaA)xZbovnZd7eX17WNxx=w`p(8vulwUZ zl{so}MuRNJx5!8S5G;$o2?BApPHt+)!^#*Ww`?rcVE}mcyuY`X2o|uVUyI9o1t11O zemGWR?;aD#0$vJhiPhv~0iXS#iLq!>Qd$` zU{}<|Vb9Md>$4TMbL7C3GP#r;4Wc$}Z;^j;n}yc!E3d;`wry$!JkmJP0%(tIh!!TET8=+{rhUi^60G0t2HJSxXv-*DgC(HrJd8`|Dp3NvL5yg>xAvU zho|fEA~w^-HrW&H-JwkqNX2I-bEXBR&Uhp+y2^)1h1IIlNCzC!v-Mz@&z&VPz+cl1 z=f&f6Y*U~C`ixm4Sy1hl$hg(4%Dy;bq~k7d1<@K&%%NLT`L+A)-QXyKVswX?op90( zB#yeFEih@c{OXU8Oq~1CFI_38GXmns3(`;W(i+bslovCx4u7gvK>DrGOug*?G|1nz z_OR}|ZYS3pq-p?rS7G0qa`TM}r5XqDT4cV>%Qyk#9ES}`jc+Ww|DcbZrF6UG>CeXp zOVIV}K1e#z9@tu#?X)Ri=?zXMB`X3G-_I7FL-Zq`nbfWtX_EO1*!+U6pJW-_k&+vk zMd}THh}{(Ch_wPk(PI4vVB_KT76kGxVytLxpWg}&bHw`a3G#QzxV@ICNax&@hk3<_ zBh`Tq66G{-tCw$V{(y0v7l!tp20~@gdFXjzFbF#bJE7i>T4ux zQdrF3org^wFcnw$#bQMv@SfN3$Fuo7HnB_`2ZGB{ZqGr>%xP;2_!Q{=N-ZhU1c~^5 zdt=OO#wmcpkXJyCG?{{&n=R{Sn=Ytg;<09CH)l7TA&wkt{Q;>RrA2Ia6-QixEPLrU z%0)N$3Nh0?U825&v($Sz}0G_(!v&xSSAzje4{rup+^W@^}ByqOb95$E0sbwK*%#GP}!6`%*Z@L;&C z3^dE&>5%bWAXmP*X1 z_m}Pivs*u7@9i>qA!58fDCwj^M<1P(u^m;urVdlM@>aIf+E3-d9ZW>fc4cS7w5O3sCmKKn z+94A?VyfSBb9{}rEbCIYtXORJBCv__fnZ>?a}edaA%bP$jI?J^q0UKO!mduA8U!3b z0CJ_Js}NWQZoebapVUHP%pPOUm?1<)zd%`hzUM-Y6g1z|@@3G_kio?S0bcbjQuxJd>vU$Uyz(4*peEDSVc-G;O;% z9Y97%Tq}TRsH+oN%2u(oyC=W<9`e@&m;i;jC%L;sP(9RBDQnth3;ZMEQNFH3GEf0c zU<3RF!hNG-vCDooYFS^nPlFnv4(ElI1=vNcr42TF^uq67f{MoN>{f&>xA91r4pz5Zc&@P^i-9||`98v$Si!U@}ouZ88W zg;YL=OQ;4}UQtkpyd~lD{qWy0H|lwJXKmenz#E=*9kt$YX*X!wDk7ITlIUGWnj>a7 z<_GQR752@J)Y(U)ncu(dIit7P}oBq8x$FP85)&Nsw<#rOW z8U_x(1J)Zgm(8tZXU%+(yYcO+Z7#ZszPwa2`ygiMPayX9KondtFMRK!7x`9uWN;(f zfWW?8yOdj;GA3We0YAW92gWipn(d>zcbA+vZ_21BxF?-pfcW` zbqY??6ie(6M)p@6@WQ?Tl7 zoKrKEj|x~2yZehhMLkFRRnOC>XL&L+N;m0B{_OQ9gzzTYb!!Jct=bk?_hIpY9rOwY zMnr69R(?8EN52qR+k!~qnCYc-KmV&*d$&NY?t5cjR)V+ncMor=puTRoo?{5dH;@!* z<~RrV!+ljAN+;Qx2LraY&JWnz^|sYbZjP+Y;|pC#DuHUH+>F~x3PqTkx)=OAE0X9( z(AO6gp~AH^{nq+n)LHYDD8mQN?DDFcd!U&d4PaajzSD1~lXq3p{x=^vItrq3gD^4O z=hYS`?&C-0&KuAV>Jv}T?ba0IafL$~+bZ}p$9lwyyx=-uPN`Hpvv<)Ia>OWHa4+N4 z6zscrW$^XA32EJw^7hYtkRJr{Q8 zQ|*1pp_q6Mno|D6EX!kgSv0h0I3~ef_l%$DTFjL`0y16n%^dGNQn;2V82mqoIi9i{15vu zLq&(BTl9CInUjZlTIa>^!!HlMK3W8Sd_Ow0+E8IT?h$=55$^Z)$WYIuig=O;Lp_1Q z4wOT;XbWQ!>Mh`pdXuSo=KBba;wT!wK`Hf1Ueh04*%D7Kfj*#b~BNfvz zsbf?uiMm5-xhaQ|7Om2OrYbU>ngUM9%F5nU<65IFyu(`yZ;Vb1)=wCd!L2K?c$ezE z4IbS|^?Z>)eEp}ZfjwF)Waw?pPJ?{~*g%;efxO~Nx7dQGLWZ)cPQ*T!((W- zGm2?tM)K}7oG<0Xz<`ltWjxvE<$AH!4*R{A2~uYGr@m!vm*j+e#CE9^*}Oc#uihB| z5;#kMY2^8mrr80%*+02bDx6B{Jsch(d7kQGV7~iGTgFZBu$Pf`tNf`B2{|t7fGhIq zos0xF#l$bfxOtcGDd*MDbdKBaCKxgCEbr8JTNd_1bjWC{Ubgk z9~)9;A1&=FyIt$l!VBXfD~6VCk0fjO%QwLJ7k00RH*%I8cCqF542VzP^;`OU-_?=< zbV}OoQE)HqV`|)X5+WbgSxGWH>t+7-O;(l~Z+FJJ)sygu^+eF01#Suj+pnAcw!s>p z$-xF}c>7t9X6H$^V9hvT5H{jKv+=zzWHA0pgw8e5fZpm9vIphVq3%S4*N3%&jsY^Q zK%sSPuj=?d{ATs0o0y6#0w3%YT^@-_sTuTUwI(Q{;l3KjeAbVk#Wmi%PDxm`zoqQ~ z((<-}*FSP%5gt7uI3t1&75ne{@1^bpdW1;MMGNkSr~UAuDbB4+VQi|x(gdO^zin_) zncfs2hj8xdiiy)@vVkfkItLKvsGtJhrTb0T~tFl4Q3J!flauS==b& z6Bm!g%dDvlCf(St$kVofvH90|9yl-gmvRvcKS&Ye9DdoTK@2m}iSvC{3m%4E0 z@TJD7c1V?!URM7+t?f3)%{X(6JXg~A9TvGQyX6n(^Yt0NX;>vDPcr~mICPooLWA_` z<1A>FuXr|C)dtDr*PQt%Xs5WePWUB&gBj$zZ#BIY%?jDdpbSA-PV0`dGf^oa_Jp}Z zlrGV7oe`#B^+nPIQ`ZDJeJas=ru#=*YL#+n?Go}f33>1GsZ{TTy2bdBihj}mz*mp! zOzn%{WgLM=*CpiuKUs*GnHa{B$2siJqfNi|Z;|rH%stM*8b26kAMCYY&NHwPGtlYn z7UVx_^sgR$Z8x27foS63FCPt|gtcG_ zy#@C|!VQV~TY}G5e57qp?F4jRxqq~@h6^?-cvD>ySwVLl2m7=gERtEn>Fw_@ND%pO oiVC*mbz<%I+0K1Z`+LWvZ$3~$+A!Gm?^hpSc@||}WrmLVKLvuzv;Y7A literal 0 HcmV?d00001 diff --git a/themes/tomahawk/webapp/tomahawk/js/dropdown.js b/themes/tomahawk/webapp/tomahawk/js/dropdown.js index e711ee89b2..24c46572e8 100644 --- a/themes/tomahawk/webapp/tomahawk/js/dropdown.js +++ b/themes/tomahawk/webapp/tomahawk/js/dropdown.js @@ -17,26 +17,25 @@ specific language governing permissions and limitations under the License. */ -var DropDownMenu = Class.create(); -DropDownMenu.prototype = { - initialize: function(menuElement) { - var menuTitle = $A(menuElement.getElementsByTagName("h2")).first(); - - menuElement.childElements().each(function(node){ +var DropDownMenu = ( + function(menuElement) { + var menuTitle = menuElement.find("h2:first"); + menuElement.children().each(function(node){ // if there is a submenu - var submenu = $A(node.getElementsByTagName("ul")).first(); + var submenu = jQuery(this).find("ul:first"); + if(submenu != null){ // make sub-menu invisible - Element.hide(submenu); + submenu.hide(); // toggle the visibility of the submenu if (menuTitle != null) { - menuTitle.onmouseover = function(){Element.extend(submenu).setStyle({display: 'block'});}; - menuTitle.onmouseout = function(){Element.hide(submenu);}; + menuTitle.mouseover (function(){ submenu.css({'display': 'block'});}); + menuTitle.mouseout (function(){submenu.hide();}); } - node.onmouseover = function(){Element.extend(submenu).setStyle({display: 'block'});}; - node.onmouseout = function(){Element.hide(submenu);}; + jQuery(this).mouseover (function(){submenu.css({'display': 'block'});}); + jQuery(this).mouseout (function(){submenu.hide();}); } }); } -}; \ No newline at end of file +); \ No newline at end of file
    diff --git a/specialpurpose/ecommerce/data/EcommerceTypeData.xml b/specialpurpose/ecommerce/data/EcommerceTypeData.xml index e86b7365cc..74c884d761 100644 --- a/specialpurpose/ecommerce/data/EcommerceTypeData.xml +++ b/specialpurpose/ecommerce/data/EcommerceTypeData.xml @@ -23,11 +23,10 @@ under the License. - - - - - - - + + + + + + diff --git a/specialpurpose/ecommerce/webapp/ecommerce/blog/main.ftl b/specialpurpose/ecommerce/webapp/ecommerce/blog/main.ftl index 03dc8bf7b7..106abd23d9 100644 --- a/specialpurpose/ecommerce/webapp/ecommerce/blog/main.ftl +++ b/specialpurpose/ecommerce/webapp/ecommerce/blog/main.ftl @@ -22,11 +22,7 @@ under the License. Main - - - - diff --git a/specialpurpose/ecommerce/webapp/ecommerce/catalog/configproductdetail.ftl b/specialpurpose/ecommerce/webapp/ecommerce/catalog/configproductdetail.ftl index 008f8e9eee..38e9c8f0c4 100644 --- a/specialpurpose/ecommerce/webapp/ecommerce/catalog/configproductdetail.ftl +++ b/specialpurpose/ecommerce/webapp/ecommerce/catalog/configproductdetail.ftl @@ -138,16 +138,16 @@ ${virtualJavaScript?if_exists} @@ -130,12 +138,24 @@ under the License.
  • ${uiLabelMap.PartyPostalInformationNotFound}
  • -
    @@ -162,9 +162,9 @@ under the License. - - - - - + + - + - -
    diff --git a/specialpurpose/ecommerce/webapp/ecommerce/images/checkoutProcess.js b/specialpurpose/ecommerce/webapp/ecommerce/images/checkoutProcess.js index 665abdaef6..44f43a01b4 100644 --- a/specialpurpose/ecommerce/webapp/ecommerce/images/checkoutProcess.js +++ b/specialpurpose/ecommerce/webapp/ecommerce/images/checkoutProcess.js @@ -21,108 +21,117 @@ var isShipStepValidate = false; var isShipOptionStepValidate = false; var isBillStepValidate = false; -document.observe('dom:loaded', function() { +jQuery(document).ready(function(){ // Cart - var validateCart = new Validation('cartForm', {immediate: true, onSubmit: false}); - var validateShip = new Validation('shippingForm', {immediate: true, onSubmit: false}); - var validateShipOption = new Validation('shippingOptionForm', {immediate: true, onSubmit: false}); - var validateBill = new Validation('billingForm', {immediate: true, onSubmit: false}); - + var validateCart = jQuery("#cartForm"); + validateCart.validate(); + + var validateShip = jQuery("#shippingForm"); + validateShip.validate(); + + var validateShipOption = jQuery("#shippingOptionForm"); + validateShipOption.validate(); + + var validateBill = jQuery("#billingForm"); + validateBill.validate(); + // Goto Edit Cart Panel - Event.observe($('openCartPanel'), 'click', function() { + jQuery('#openCartPanel').click(function() { showEditCartPanel(); updateShippingSummary(); }); // Update Shipping Address - Event.observe($('savePartyAndShippingContact'), 'click', function() { - if (validateShip.validate()) { - Effect.Fade('savePartyAndShippingContact', {duration: 0.0}); - Effect.Appear('processingShippingOptions', {duration: 0.0}); + jQuery('#savePartyAndShippingContact').click(function() { + if (validateShip.valid()) { + jQuery('#savePartyAndShippingContact').fadeOut('fast'); + jQuery('#processingShippingOptions').fadeIn('fast'); if (createUpdateCustomerAndShippingAddress()){ showEditShippingOptionPanel(); } - Effect.Fade('processingShippingOptions', {duration: 0.0}); - Effect.Appear('savePartyAndShippingContact', {duration: 0.0}); + jQuery('#processingShippingOptions').fadeOut('fast'); + jQuery('#savePartyAndShippingContact').fadeIn('fast'); } }); // Goto Edit Shipping panel - Event.observe($('updateShoppingCart'), 'click', function() { - if (validateCart.validate()) { + jQuery('#updateShoppingCart').click(function() { + if (validateCart.valid()) { showEditShippingPanel(); } }); // Goto Edit Shipping Panel - Event.observe($('openShippingPanel'), 'click', function() { + jQuery('#openShippingPanel').click(function() { showEditShippingPanel(); setShippingOption(); }); // Set Shipping Method to card and goto Billing step - Event.observe($('saveShippingMethod'), 'click', function() { - Effect.Fade('saveShippingMethod', {duration: 0.0}); - Effect.Appear('processingBilling', {duration: 0.0}); + jQuery('#saveShippingMethod').click(function() { + jQuery('#saveShippingMethod').fadeOut('fast'); + jQuery('#processingBilling').fadeIn('fast'); if (setShippingOption()){ showEditBillingPanel(); } - Effect.Fade('processingBilling', {duration: 0.0}); - Effect.Appear('saveShippingMethod', {duration: 0.0}); + jQuery('#processingBilling').fadeOut('fast'); + jQuery('#saveShippingMethod').fadeIn('fast'); }); - Event.observe($('openShippingOptionPanel'), 'click', function() { + jQuery('#openShippingOptionPanel').click(function() { showEditShippingOptionPanel(); updateBillingSummary(); }); // Billing - Event.observe($('openBillingPanel'), 'click', function() { + jQuery('#openBillingPanel').click(function() { showEditBillingPanel(); }); - Event.observe($('savePaymentAndBillingContact'), 'click', function() { - if (validateBill.validate()) { - Effect.Fade('savePaymentAndBillingContact', {duration: 0.0}); - Effect.Appear('processingOrderSubmitPanel', {duration: 0.0}); + jQuery('#savePaymentAndBillingContact').click(function() { + if (validateBill.valid()) { + jQuery('#savePaymentAndBillingContact').fadeOut('fast'); + jQuery('#processingOrderSubmitPanel').fadeIn('fast'); if (processBillingAndPayment()) { showOrderSubmitPanel(); } - Effect.Fade('processingOrderSubmitPanel', {duration: 0.0}); - Effect.Appear('savePaymentAndBillingContact', {duration: 0.0}); + jQuery('#processingOrderSubmitPanel').fadeOut('fast'); + jQuery('#savePaymentAndBillingContact').fadeIn('fast'); } }); // For Billing Address Same As Shipping - Event.observe('useShippingAddressForBilling', 'click', function() { + jQuery('#useShippingAddressForBilling').click(function() { useShippingAddressForBillingToggle(); - validateBill.validate(); + validateBill.valid(); }); // Initiate Observing Edit Cart Events initCartProcessObservers(); - Event.observe('processOrderButton', 'click', processOrder); + jQuery('#processOrderButton').click(function(){ + processOrder(); + }); - if ($('shippingForm')) { + if (jQuery('#shippingForm').length) { // Get associate states for Shipping Information - Event.observe($('shipToCountryGeoId'), 'change', function(){ + jQuery('#shipToCountryGeoId').change(function(){ getAssociatedStateList('shipToCountryGeoId', 'shipToStateProvinceGeoId', 'advice-required-shipToStateProvinceGeoId', 'shipToStates'); }); - if ($('userLoginId')) { - var stateValue = $('shipToStateProvinceGeoId').value; + if (jQuery('#userLoginId').length) { + var stateValue = jQuery('#shipToStateProvinceGeoId').val(); getAssociatedStateList('shipToCountryGeoId', 'shipToStateProvinceGeoId', 'advice-required-shipToStateProvinceGeoId', 'shipToStates'); - $('shipToStateProvinceGeoId').value = stateValue; - stateValue = $('billToStateProvinceGeoId').value; + jQuery('#shipToStateProvinceGeoId').val(stateValue); + stateValue = jQuery('#billToStateProvinceGeoId').val(); getAssociatedStateList('billToCountryGeoId', 'billToStateProvinceGeoId', 'advice-required-billToStateProvinceGeoId', 'billToStates'); - $('billToStateProvinceGeoId').value = stateValue; + jQuery('#billToStateProvinceGeoId').val(stateValue); } else { getAssociatedStateList('shipToCountryGeoId', 'shipToStateProvinceGeoId', 'advice-required-shipToStateProvinceGeoId', 'shipToStates'); getAssociatedStateList('billToCountryGeoId', 'billToStateProvinceGeoId', 'advice-required-billToStateProvinceGeoId', 'billToStates'); } } - if ($('billingForm')) { + if (jQuery('#billingForm').length) { // Get associate states for Billing Information - Event.observe($('billToCountryGeoId'), 'change', function() { + jQuery('#billToCountryGeoId').change(function() { getAssociatedStateList('billToCountryGeoId', 'billToStateProvinceGeoId', 'advice-required-billToStateProvinceGeoId', 'billToStates'); }); } @@ -147,158 +156,163 @@ function getServerError(data) { // Begin Show/Hide Step panels function hideEditCartPanel() { - if ($('editCartPanel').visible() ) { - Effect.BlindUp('editCartPanel',{duration: 0.0}); - Effect.BlindDown('cartSummaryPanel',{duration: 0.0}); + if (jQuery('#editCartPanel').is(':visible')) { + jQuery('#editCartPanel').slideUp(); + jQuery('#cartSummaryPanel').slideDown(); } } function hideEditShippingPanel() { - if ($('editShippingPanel').visible()) { - Effect.BlindUp('editShippingPanel', {duration: 0.0}); - Effect.BlindDown('shippingSummaryPanel', {duration: 0.0}); + if (jQuery('#editShippingPanel').is(':visible')) { + jQuery('#editShippingPanel').slideUp(); + jQuery('#shippingSummaryPanel').slideDown(); } } function hideEditShippingOptionPanel() { - if ($('editShippingOptionPanel').visible()) { - Effect.BlindUp('editShippingOptionPanel', {duration: 0.0}); - Effect.BlindDown('shippingOptionSummaryPanel', {duration: 0.0}); + if (jQuery('#editShippingOptionPanel').is(':visible')) { + jQuery('#editShippingOptionPanel').slideUp(); + jQuery('#shippingOptionSummaryPanel').slideDown(); } } function hideEditBillingPanel() { - if ($('editBillingPanel').visible()) { - Effect.BlindUp('editBillingPanel', {duration: 0.0}); - Effect.BlindDown('billingSummaryPanel', {duration: 0.0}); + if (jQuery('#editBillingPanel').is(':visible')) { + jQuery('#editBillingPanel').slideUp(); + jQuery('#billingSummaryPanel').slideDown(); } } function hideOrderSubmitPanel() { - if ($('orderSubmitPanel').visible()) { - Effect.BlindUp('orderSubmitPanel', {duration: 0.0}); - Effect.Fade('processingOrderButton', {duration: 0.0}); + if (jQuery('#orderSubmitPanel').is(':visible')) { + jQuery('#orderSubmitPanel').slideUp(); + jQuery('#processingOrderButton').slideDown(); } } function showEditCartPanel() { - if (!$('editCartPanel').visible() ) { - Effect.BlindUp('cartSummaryPanel',{duration: 0.0}); + if (!jQuery('#editCartPanel').is(':visible') ) { + jQuery('#cartSummaryPanel').slideUp(); hideEditShippingPanel(); hideEditShippingOptionPanel(); hideEditBillingPanel(); hideOrderSubmitPanel(); - Effect.BlindDown('editCartPanel',{duration: 0.0}); + jQuery('#editCartPanel').slideDown(); } } function showEditShippingPanel() { - if (!$('editShippingPanel').visible()) { - Effect.BlindUp('shippingSummaryPanel', {duration: 0.0}); + if (!jQuery('#editShippingPanel').is(':visible') ) { + jQuery('#shippingSummaryPanel').slideUp(); hideEditCartPanel(); hideEditShippingOptionPanel(); hideEditBillingPanel(); hideOrderSubmitPanel(); - Effect.BlindDown('editShippingPanel'); + jQuery('#editShippingPanel').slideDown(); } } function showEditShippingOptionPanel() { - if (!$('editShippingOptionPanel').visible()) { - Effect.BlindUp('shippingOptionSummaryPanel', {duration: 0.0}); + if (!jQuery('#editShippingOptionPanel').is(':visible') ) { + jQuery('#shippingOptionSummaryPanel').slideUp(); hideEditCartPanel(); hideEditShippingPanel(); hideEditBillingPanel(); hideOrderSubmitPanel(); - Effect.BlindDown('editShippingOptionPanel', {duration: 0.0}); + jQuery('#editShippingOptionPanel').slideDown(); } } function showEditBillingPanel() { - - if (!$('editBillingPanel').visible()) { - Effect.BlindUp('billingSummaryPanel', {duration: 0.0}); + if (!jQuery('#editBillingPanel').is(':visible') ) { + jQuery('#billingSummaryPanel').slideUp(); hideEditCartPanel(); hideEditShippingPanel(); hideEditShippingOptionPanel(); hideOrderSubmitPanel(); - Effect.BlindDown('editBillingPanel', {duration: 0.0}); + jQuery('#editBillingPanel').slideDown(); } - if ($F('shipToContactMechId') != $F('billToContactMechId')) { - $('useShippingAddressForBilling').checked = false; - Effect.BlindDown($('billingAddress'), {duration: 0.3}); - $('useShippingAddressForBilling').value = "N"; + if (jQuery('#shipToContactMechId').val() != jQuery('#billToContactMechId').val()) { + jQuery('#useShippingAddressForBilling').val('false'); + jQuery('#billingAddress').slideDown(); + jQuery('#useShippingAddressForBilling').val('N'); } } function showOrderSubmitPanel() { - if (!$('orderSubmitPanel').visible()) { + if (!jQuery('#orderSubmitPanel').is(':visible')) { hideEditCartPanel(); hideEditShippingPanel(); hideEditShippingOptionPanel(); hideEditBillingPanel(); - Effect.BlindDown('orderSubmitPanel', {duration: 0.0}); + jQuery('#orderSubmitPanel').slideDown(); } } // End Show/Hide Step panels - function createUpdateCustomerAndShippingAddress() { var result = false; - - new Ajax.Request('createUpdateShippingAddress', { - asynchronous: false, - onSuccess: function(transport) { - var data = transport.responseText.evalJSON(true); - var serverError = getServerError(data); - if (serverError != "") { - $('shippingFormServerError').update(serverError); - } else { - Effect.Fade('shippingFormServerError'); - // Process Shipping data response. - $('shipToPartyId').value = data.partyId; - $('billToPartyId').value = data.partyId; - $('shipToContactMechId').value = data.contactMechId; - $('shipToPhoneContactMechId').value = data.phoneContactMechId; - $('emailContactMechId').value = data.emailContactMechId; - //$('completedShippingMethod').update(data.shippingDescription); - updateShippingSummary(); - getShipOptions(); - result = true; + jQuery.ajax({ + url: 'createUpdateShippingAddress', + type: 'POST', + dataType: 'json', + async: false, + data: jQuery('#shippingForm').serialize(), + success: function(json) { + jQuery('#shippingFormServerError').fadeOut('fast'); + // Process Shipping data response. + jQuery('#shipToPartyId').val(json.partyId); + jQuery('#billToPartyId').val(json.partyId); + jQuery('#shipToContactMechId').val(json.contactMechId); + jQuery('#shipToPhoneContactMechId').val(json.phoneContactMechId); + jQuery('#emailContactMechId').val(json.emailContactMechId); + //jQuery('#completedShippingMethod').html(json.shippingDescription); + updateShippingSummary(); + getShipOptions(); + result = true; + }, + error: function(error) { + if (error != "") { + jQuery('#shippingFormServerError').html(serverError); } - }, parameters: $('shippingForm').serialize(), requestHeaders: {Accept: 'application/json'} + result = false; + }, }); return result; } function getShipOptions() { - var result = false; var shipOptions = null; var optionList = []; - if ($F('shipMethod') == "" || $F('shipMethod') == null) { - new Ajax.Request('getShipOptions', { - asynchronous: false, - onSuccess: function(transport) { - var data = transport.responseText.evalJSON(true); - var serverError = getServerError(data); - if (serverError != "") { - Effect.Appear('shippingFormServerError'); - $('shippingFormServerError').update(serverError); + var result = false; + if (jQuery('#shipMethod').val() == "" || jQuery('#shipMethod').val() == null) { + jQuery.ajax({ + url: 'getShipOptions', + type: 'POST', + dataType: 'json', + async: false, + success: function(json) { + jQuery('#shippingFormServerError').fadeOut('fast'); + isShipStepValidate = true; + shipOptions = json.shippingOptions; + var shipMethod = jQuery('#shipMethod'); + shipMethod.find("option").remove(); + jQuery.each(shipOptions, function(shipOption) { + if (this.productStoreShipMethId){ + shipMethod.append(jQuery("")); + } else { + shipMethod.append(jQuery("")); + } + }); + result = true; + }, + error: function(error) { + if (error != "") { + jQuery('#shippingFormServerError').fadeIn('fast'); + jQuery('#shippingFormServerError').html(error); isShipStepValidate = false; - } else { - Effect.Fade('shippingFormServerError'); - isShipStepValidate = true; - shipOptions = data.shippingOptions; - shipOptions.each( function(shipOption) { - if (shipOption.productStoreShipMethId){ - optionList.push(""); - } else { - optionList.push(""); - } - }); - $('shipMethod').update(optionList); - result = true; } - }, requestHeaders: {Accept: 'application/json'} + result = false; + }, }); } return result; @@ -306,306 +320,278 @@ function getShipOptions() { // Shipping option function setShippingOption() { - var result = false; var shipTotal = null; var shipMethod = null; - Effect.Fade('shippingOptionFormServerError'); - new Ajax.Request('setShippingOption', { - asynchronous: false, - onSuccess: function(transport) { - var data = transport.responseText.evalJSON(true); - shipTotal = data.shippingTotal; - var serverError = getServerError(data); - if(serverError != "") { - Effect.Appear('shippingOptionFormServerError'); - $('shippingOptionFormServerError').update(serverError); - isShipOptionStepValidate = false; - } else { + var result = false; + jQuery('#shippingOptionFormServerError').fadeOut('fast'); + jQuery.ajax({ + url: 'setShippingOption', + type: 'POST', + dataType: 'json', + async: false, + data: jQuery('#shippingOptionForm').serialize(), + success: function(json) { + shipTotal = json.shippingTotal; isShipOptionStepValidate = true; - $('selectedShipmentOption').update(data.shippingDescription); - //$('shippingDescription').value = data.shippingDescription; - //$('shippingTotal').value = data.shippingTotal; - //$('cartGrandTotal').value = data.cartGrandTotal; - //$('totalSalesTax').value = data.totalSalesTax; + jQuery('#selectedShipmentOption').html(json.shippingDescription); + //jQuery('#shippingDescription').value = json.shippingDescription; + //jQuery('#shippingTotal').val(json.shippingTotal); + //jQuery('#cartGrandTotal').val(json.cartGrandTotal); + //jQuery('#totalSalesTax').val(json.totalSalesTax); result = true; + }, + error: function(error) { + if(error != "") { + jQuery('#shippingOptionFormServerError').fadeIn('fast'); + jQuery('#shippingOptionFormServerError').html(error); + isShipOptionStepValidate = false; } - }, parameters: $('shippingOptionForm').serialize(), requestHeaders: {Accept: 'application/json'} + result = false; + }, }); updateCartData(); return result; } - // Billing function useShippingAddressForBillingToggle() { - if ($('useShippingAddressForBilling').checked) { - $('billToAddress1').value = $F('shipToAddress1'); - $('billToAddress2').value = $F('shipToAddress2'); - $('billToCity').value = $F('shipToCity'); - $('billToPostalCode').value = $F('shipToPostalCode'); - $('billToCountryGeoId').value = $F('shipToCountryGeoId'); + if (jQuery('#useShippingAddressForBilling').is(':checked') ) { + jQuery('#billToAddress1').val(jQuery('#shipToAddress1').val()); + jQuery('#billToAddress2').val(jQuery('#shipToAddress2').val()); + jQuery('#billToCity').val(jQuery('#shipToCity').val()); + jQuery('#billToPostalCode').val(jQuery('#shipToPostalCode').val()); + jQuery('#billToCountryGeoId').val(jQuery('#shipToCountryGeoId').val()); getAssociatedStateList('billToCountryGeoId', 'billToStateProvinceGeoId','advice-required-billToStateProvinceGeoId','billToStates'); - $('useShippingAddressForBilling').value = "Y"; - $('billToStateProvinceGeoId').value = $F('shipToStateProvinceGeoId'); - Effect.BlindUp($('billingAddress'), {duration: 0.3}); + jQuery('#useShippingAddressForBilling').val("Y"); + jQuery('#billToStateProvinceGeoId').val(jQuery('#shipToStateProvinceGeoId').val()); + jQuery('#billingAddress').slideUp(); } else { - Effect.BlindDown($('billingAddress'), {duration: 0.3}); - $('useShippingAddressForBilling').value = "N"; + jQuery('#billingAddress').slideDown(); + jQuery('#useShippingAddressForBilling').val("N"); } } - function processBillingAndPayment() { var result = false; - new Ajax.Request('createUpdateBillingAndPayment', { - asynchronous: false, - onSuccess: function(transport) { - var data = transport.responseText.evalJSON(true); - var serverError = getServerError(data); - if(serverError != "") { - Effect.Appear('billingFormServerError'); - $('billingFormServerError').update(serverError); + jQuery.ajax({ + url: 'createUpdateBillingAndPayment', + type: 'POST', + dataType: 'json', + data: jQuery('#billingForm').serialize(), + async: false, + success: function(json) { + jQuery('#billingFormServerError').fadeOut('fast'); + isBillStepValidate = true; + jQuery('#billToContactMechId').val(json.contactMechId); + jQuery('#paymentMethodId').val(json.paymentMethodId); + jQuery('#billToPhoneContactMechId').val(json.phoneContactMechId); + updateBillingSummary(); + result = true; + }, + error: function(error) { + if(error != "") { + jQuery('#billingFormServerError').fadeIn('fast'); + jQuery('#billingFormServerError').html(error); isBillStepValidate = false; - } else { - Effect.Fade('billingFormServerError'); - isBillStepValidate = true; - $('billToContactMechId').value = data.contactMechId; - $('paymentMethodId').value = data.paymentMethodId; - $('billToPhoneContactMechId').value = data.phoneContactMechId; - updateBillingSummary(); - result = true; } - }, parameters: $('billingForm').serialize(), requestHeaders: {Accept: 'application/json'} + result = false; + }, }); return result; } - function initCartProcessObservers() { - var cartForm = $('cartForm'); - Event.observe($('productPromoCode'), 'change', addPromoCode); - Event.observe($('updateShoppingCart'), 'click', showEditShippingPanel); - Event.observe($('openCartPanel'), 'click', function() { + var cartForm = jQuery('#cartForm'); + jQuery('#productPromoCode').change(function() { + addPromoCode(); + }); + jQuery('#updateShoppingCart').click(function() { + showEditShippingPanel(); + }); + jQuery('#openCartPanel').click(function() { showEditCartPanel(); updateShippingSummary(); }); - var inputs = cartForm.getInputs('text'); + var inputs = cartForm.find(':text'); inputs.each(function(e) { if(e.id != 'productPromoCode') { - Event.observe(e, 'change', cartItemQtyChanged); + jQuery(e).change(function() { + cartItemQtyChanged(); + }); } }); - var links = $$('form#cartForm a'); - links.each( function(e) { - if ((e.id).startsWith('removeItemLink_')) { - Event.observe(e, 'click', removeItem); - } + var links = jQuery("#cartForm a[id^='removeItemLink_']"); + jQuery.each(links, function() { + jQuery(this).bind('click', function(){ + removeItem(this); + }); }); - if ($('initializedCompletedCartDiscount') != undefined && $('initializedCompletedCartDiscount').value == 0) { - $('completedCartDiscountRow').hide(); + if (jQuery('#initializedCompletedCartDiscount').length && jQuery('#initializedCompletedCartDiscount').val() == 0) { + jQuery('#completedCartDiscountRow').hide(); } } - function addPromoCode() { - new Ajax.Request('silentAddPromoCode', { - asynchronous: false, - onSuccess: function(transport) { - var data = transport.responseText.evalJSON(true); - var serverError = getServerError(data); - if(serverError != "") { - Effect.Appear('cartFormServerError'); - $('cartFormServerError').update(serverError); - } else { - Effect.Fade('cartFormServerError'); - updateCartData(); + jQuery.ajax({ + url: 'silentAddPromoCode', + type: 'POST', + dataType: 'json', + data: {"productPromoCodeId" : jQuery('#productPromoCode').val()}, + success: function(json) { + jQuery('#cartFormServerError').fadeOut('fast'); + updateCartData(); + }, + error: function(error) { + if(error != "") { + jQuery('#cartFormServerError').fadeIn('fast'); + jQuery('#cartFormServerError').html(error); } }, - parameters: {productPromoCodeId:$F('productPromoCode')} }); } function getProductLineItemIndex(event, productId) { var itemIndex = null; var productIdParam = "productId=" + productId; - var formValues = $('cartForm').serialize() + "&" + productIdParam; - new Ajax.Request('getShoppingCartItemIndex', { - asynchronous: false, - onSuccess: function(transport) { - var data = transport.responseText.evalJSON(true); - itemIndex = data.itemIndex; - }, - parameters: formValues + var formValues = jQuery('#cartForm').serialize() + "&" + productIdParam; + jQuery.ajax({ + url: 'getShoppingCartItemIndex', + type: 'POST', + dataType: 'json', + async: false, + data: formValues, + success: function(json) { + itemIndex = json.itemIndex; + } }); return itemIndex; } -function removeItem(event) { - var removeElement = Event.element(event); +function removeItem(elmt) { + var removeElement = elmt; var elementId = removeElement.id; var qtyId = elementId.sub('remove_', 'qty_'); var productIdElementId = elementId.sub('remove_', 'cartLineProductId_'); - var productId = $(productIdElementId).value; - var itemIndex = getProductLineItemIndex(event,productId); + var productId = jQuery(productIdElementId).val(); + var itemIndex = getProductLineItemIndex(elmt, productId); var formValues = "update_" + itemIndex + "= 0"; - if ($(qtyId).value == '' || isNaN(qtyId.value)) { - $(qtyId).value = 0; + if (jQuery(qtyId).val() == '' || isNaN(jQuery(qtyId).val())) { + jQuery(qtyId).val("0"); } updateCartData(qtyId, formValues, 0, itemIndex); } -function cartItemQtyChanged(event) { - var qtyElement = Event.element(event); +function cartItemQtyChanged(elmt) { + var qtyElement = elmt; var elementId = qtyElement.id; var productIdElementId = elementId.sub('qty_', 'cartLineProductId_'); - var productId = $(productIdElementId).value; - if (qtyElement.value && qtyElement.value >= 0 && !isNaN(qtyElement.value)) { - var itemIndex = getProductLineItemIndex(event, productId); - qtyParam = "update_" + itemIndex +"="+qtyElement.value; - var formValues = $('cartForm').serialize() + '&' + qtyParam; + var productId = jQuery(productIdElementId).val(); + if (jQuery(qtyElement).val() && jQuery(qtyElement).val() >= 0 && !isNaN(jQuery(qtyElement).val())) { + var itemIndex = getProductLineItemIndex(elmt, productId); + qtyParam = "update_" + itemIndex +"="+jQuery(qtyElement).val(); + var formValues = jQuery('#cartForm').serialize() + '&' + qtyParam; updateCartData(elementId, formValues, qtyElement.value, itemIndex); } } function updateCartData(elementId, formValues, itemQty, itemIndex) { - new Ajax.Request('cartItemQtyUpdate', { - asynchronous: true, - onSuccess: function(transport) { - var data = transport.responseText.evalJSON(true); - if (data.totalQuantity == 0) { - $('emptyCartCheckoutPanel').show(); - $('checkoutPanel').hide(); - $('microCartNotEmpty').hide(); - $('microCartEmpty').show(); - $('quickCheckoutEnabled').hide(); - $('quickCheckoutDisabled').show(); - $('onePageCheckoutEnabled').hide(); - $('onePageCheckoutDisabled').show(); - $('googleCheckoutEnabled').hide(); - $('googleCheckoutDisabled').show(); - $('microCartPayPalCheckout').hide(); + jQuery.ajax({ + url: 'cartItemQtyUpdate', + type: 'POST', + dataType: 'json', + data: formValues, + success: function(json) { + if (json.totalQuantity == 0) { + jQuery('#emptyCartCheckoutPanel').show(); + jQuery('#checkoutPanel').hide(); + jQuery('#microCartNotEmpty').hide(); + jQuery('#microCartEmpty').show(); + jQuery('#quickCheckoutEnabled').hide(); + jQuery('#quickCheckoutDisabled').show(); + jQuery('#onePageCheckoutEnabled').hide(); + jQuery('#onePageCheckoutDisabled').show(); + jQuery('#googleCheckoutEnabled').hide(); + jQuery('#googleCheckoutDisabled').show(); + jQuery('#microCartPayPalCheckout').hide(); } else { // Replace whole cart panel with updated cart values for updating line item in case of gift item is added or remove in cart after applying coupon code - // No need to calculate indivisual value for shopping cart when whole cart is updating - new Ajax.Updater($('cartPanel'), 'UpdateCart', {evalScripts: true, method: '', onComplete:function() - { - initCartProcessObservers(); - } + // No need to calculate individual value for shopping cart when whole cart is updating + jQuery('#cartPanel').load('UpdateCart', function() { + initCartProcessObservers(); }); - /*$('microCartQuantity').update(data.totalQuantity); - $('cartSubTotal').update(data.subTotalCurrencyFormatted); - $('cartDiscountValue').update(data.displayOrderAdjustmentsTotalCurrencyFormatted); - $('cartTotalShipping').update(data.totalShippingCurrencyFormatted); - $('cartTotalSalesTax').update(data.totalSalesTaxCurrencyFormatted); - $('microCartTotal').update(data.displayGrandTotalCurrencyFormatted); - $('cartDisplayGrandTotal').update(data.displayGrandTotalCurrencyFormatted); - // Used for summary - $('completedCartSubTotal').update(data.subTotalCurrencyFormatted); - $('completedCartTotalShipping').update(data.totalShippingCurrencyFormatted); - $('completedCartTotalSalesTax').update(data.totalSalesTaxCurrencyFormatted); - $('completedCartDisplayGrandTotal').update(data.displayGrandTotalCurrencyFormatted); - $('completedCartDiscount').update(data.displayOrderAdjustmentsTotalCurrencyFormatted); - if (elementId != undefined && $(elementId).value != "") { - if (itemQty == 0) { - var cartItemRowId = elementId.sub('qty_','cartItemRow_'); - $(cartItemRowId).remove(); - var cartItemDisplayRowId = elementId.sub('qty_','cartItemDisplayRow_'); - $(cartItemDisplayRowId).remove(); - } else { - var itemsHash = $H(data.cartItemData); - $(elementId).value = itemsHash.get("displayItemQty_"+itemIndex); - var lineItemPrice = itemsHash.get("displayItemPrice_"+itemIndex); - var cartItemPrice = elementId.sub('qty_','itemUnitPrice_'); - var completedCartItemPrice = elementId.sub('qty_','completedCartItemPrice_'); - $(cartItemPrice).update(lineItemPrice); - $(completedCartItemPrice).update(lineItemPrice); - var lineTotalId = elementId.sub('qty_','displayItem_'); - var lineDiscountTotalId = elementId.sub('qty_','addPromoCode_'); - var lineItemTotal = itemsHash.get("displayItemSubTotalCurrencyFormatted_"+itemIndex); - var lineItemAdjustment = itemsHash.get("displayItemAdjustment_"+itemIndex); - $(lineTotalId).update(lineItemTotal); - $(lineDiscountTotalId).update(lineItemAdjustment); - var completedLineItemQtyId = elementId.sub('qty_','completedCartItemQty_'); - $(completedLineItemQtyId).update($(elementId).value); - $('completedCartItemAdjustment_'+itemIndex).update(lineItemAdjustment); - var completedCartItemSubTotalId = elementId.sub('qty_','completedCartItemSubTotal_'); - $(completedCartItemSubTotalId).update(lineItemTotal); - } - }*/ + } }, - parameters: formValues }); } - function processOrder() { - $('processOrderButton').disabled = true ; - Effect.Fade('processOrderButton', {duration: 0.1}); - Effect.Appear('processingOrderButton', {duration: 0.1}); - $('orderSubmitForm').submit(); + jQuery('#processOrderButton').disabled = true ; + jQuery('#processOrderButton').fadeOut('fast'); + jQuery('#processingOrderButton').fadeIn('fast'); + jQuery('#orderSubmitForm').submit(); } - function getAssociatedBillingStateList(formName, divId) { var optionList = []; - new Ajax.Request("getAssociatedStateList", { - asynchronous: false, - parameters: $(formName).serialize(), - onSuccess: function(transport) { - var data = transport.responseText.evalJSON(true); + jQuery.ajax({ + url: "getAssociatedStateList", + data: jQuery(formName).serialize(), + async: false, + success: function(transport) { stateList = data.stateList; - stateList.each(function(state) { - geoVolues = state.split(': '); - optionList.push(""); + var billingStates = jQuery("#" + divId); + billingStates.find("option").remove(); + jQuery.each(stateList, function(state) { + geoVolues = this.split(': '); + billingStates.append(jQuery("")); }); - $(divId).update(optionList); } }); } function updateShippingSummary() { - var fullName = $('firstName').value + " " +$('lastName').value; + var fullName = jQuery('#firstName').val() + " " +jQuery('#lastName').val(); var extension = ""; - if ($F('shipToExtension')) { - extension = "-" + $F('shipToExtension'); + if (jQuery('#shipToExtension').val()) { + extension = "-" + jQuery('#shipToExtension').val(); } - var shippingContactPhoneNumber = $F('shipToCountryCode')+ "-" + $F('shipToAreaCode') - + "-" + $F('shipToContactNumber') + extension; - $('completedShipToAttn').update("Attn: " + fullName); - $('completedShippingContactNumber').update(shippingContactPhoneNumber); - $('completedEmailAddress').update($('emailAddress').value); - $('completedShipToAddress1').update($F('shipToAddress1')); - $('completedShipToAddress2').update($('shipToAddress2').value); - if ($('shipToStateProvinceGeoId').value == "_NA_") { - var shipToGeo = $('shipToCity').value+", "+$('shipToCountryGeoId').value+" "+$('shipToPostalCode').value; + var shippingContactPhoneNumber = jQuery('#shipToCountryCode').val()+ "-" + jQuery('#shipToAreaCode').val() + + "-" + jQuery('#shipToContactNumber').val() + extension; + jQuery('#completedShipToAttn').html("Attn: " + fullName); + jQuery('#completedShippingContactNumber').html(shippingContactPhoneNumber); + jQuery('#completedEmailAddress').html(jQuery('#emailAddress').val()); + jQuery('#completedShipToAddress1').html(jQuery('#shipToAddress1').val()); + jQuery('#completedShipToAddress2').html(jQuery('#shipToAddress2').val()); + if (jQuery('#shipToStateProvinceGeoId').val() == "_NA_") { + var shipToGeo = jQuery('#shipToCity').val()+", "+jQuery('#shipToCountryGeoId').val()+" "+jQuery('#shipToPostalCode').val(); } else { - var shipToGeo = $('shipToCity').value+","+$('shipToStateProvinceGeoId').value +" "+$('shipToCountryGeoId').value+" "+$('shipToPostalCode').value; + var shipToGeo = jQuery('#shipToCity').val()+","+jQuery('#shipToStateProvinceGeoId').val() +" "+jQuery('#shipToCountryGeoId').val()+" "+jQuery('#shipToPostalCode').val(); } - $('completedShipToGeo').update(shipToGeo); + jQuery('#completedShipToGeo').html(shipToGeo); // set shipToContactMechId in Billing form. - $('shipToContactMechIdInBillingForm').value = $F('shipToContactMechId'); + jQuery('#shipToContactMechIdInBillingForm').val(jQuery('#shipToContactMechId').val()); } function updateBillingSummary() { - var fullName = $F('firstNameOnCard') + " " +$F('lastNameOnCard'); - $('completedBillToAttn').update("Attn: " + fullName); + var fullName = jQuery('#firstNameOnCard').val() + " " +jQuery('#lastNameOnCard').val(); + jQuery('#completedBillToAttn').html("Attn: " + fullName); var extension = ""; - if ($F('billToExtension')) { - extension = "-" + $F('billToExtension'); + if (jQuery('#billToExtension').val()) { + extension = "-" + jQuery('#billToExtension').val(); } - var billToPhoneNumber = $F('billToCountryCode') + "-" + $F('billToAreaCode') + "-" + $F('billToContactNumber') + extension; - $('completedBillToPhoneNumber').update(billToPhoneNumber); - var cardNumber = "CC#:XXXXXXXXXXXX"+$F('cardNumber').gsub('-','').slice(12,16); - $('completedCCNumber').update(cardNumber); - var expiryDate = "Expires:"+$F('expMonth')+"/"+$F('expYear'); - $('completedExpiryDate').update(expiryDate); - $('completedBillToAddress1').update($F('billToAddress1')); - $('completedBillToAddress2').update($F('billToAddress2')); - if ($F('billToStateProvinceGeoId') == "_NA_") { - var billToGeo = $F('billToCity')+", "+$F('billToCountryGeoId')+" "+$F('billToPostalCode'); + var billToPhoneNumber = jQuery('#billToCountryCode').val() + "-" + jQuery('#billToAreaCode').val() + "-" + jQuery('#billToContactNumber').val() + extension; + jQuery('#completedBillToPhoneNumber').html(billToPhoneNumber); + var cardNumber = "CC#:XXXXXXXXXXXX"+jQuery('#cardNumber').val().replace('-','').slice(12,16); + jQuery('#completedCCNumber').html(cardNumber); + var expiryDate = "Expires:"+jQuery('#expMonth').val()+"/"+jQuery('#expYear').val(); + jQuery('#completedExpiryDate').html(expiryDate); + jQuery('#completedBillToAddress1').html(jQuery('#billToAddress1').val()); + jQuery('#completedBillToAddress2').html(jQuery('#billToAddress2').val()); + if (jQuery('#billToStateProvinceGeoId').val() == "_NA_") { + var billToGeo = jQuery('#billToCity').val()+", "+jQuery('#billToCountryGeoId').val()+" "+jQuery('#billToPostalCode').val(); } else { - var billToGeo = $F('billToCity')+", "+$F('billToStateProvinceGeoId') +" "+$F('billToCountryGeoId')+" "+$F('billToPostalCode'); + var billToGeo = jQuery('#billToCity').val()+", "+jQuery('#billToStateProvinceGeoId').val() +" "+jQuery('#billToCountryGeoId')+" "+jQuery('#billToPostalCode').val(); } - $('completedBillToGeo').update(billToGeo); - $('paymentMethod').update($F('paymentMethodTypeId')); - $('billToContactMechIdInShipingForm').value = $F('billToContactMechId'); + jQuery('#completedBillToGeo').html(billToGeo); + jQuery('#paymentMethod').html(jQuery('#paymentMethodTypeId').val()); + jQuery('#billToContactMechIdInShipingForm').val(jQuery('#billToContactMechId')); } diff --git a/specialpurpose/ecommerce/webapp/ecommerce/images/productAdditionalView.js b/specialpurpose/ecommerce/webapp/ecommerce/images/productAdditionalView.js index 195e561f93..a028a436cc 100644 --- a/specialpurpose/ecommerce/webapp/ecommerce/images/productAdditionalView.js +++ b/specialpurpose/ecommerce/webapp/ecommerce/images/productAdditionalView.js @@ -32,12 +32,12 @@ imgView = { } }, showDetailImage: function() { - var mainImage = $('detailImage'); - mainImage.src = $F('originalImage'); + var mainImage = document.getElementById('detailImage'); + mainImage.src = document.getElementById('originalImage').value; return false; }, showImage: function() { - var mainImage = $('detailImage'); + var mainImage = document.getElementById('detailImage'); mainImage.src = this.getAttributeNode('swapDetail').value; return false; }, @@ -53,4 +53,4 @@ imgView = { } } } -document.observe('dom:loaded', imgView.init, false); +jQuery(document).ready(imgView.init); diff --git a/specialpurpose/ecommerce/webapp/ecommerce/images/profile.js b/specialpurpose/ecommerce/webapp/ecommerce/images/profile.js index fcfa0df259..1ef211f615 100644 --- a/specialpurpose/ecommerce/webapp/ecommerce/images/profile.js +++ b/specialpurpose/ecommerce/webapp/ecommerce/images/profile.js @@ -17,97 +17,97 @@ specific language governing permissions and limitations under the License. */ -var validateNewUser = null; -var validateEditUser = null; -var validatePostalAddress = null; -document.observe('dom:loaded', function() { - if ($('newUserForm')) { - validateNewUser = new Validation('newUserForm', {immediate: true, onSubmit: false}); - addValidations(); - Event.observe($('emailAddress'), 'change', setUserNameFromEmail); +jQuery(document).ready( function() { + + // register a new user/customer + if (document.getElementById('newUserForm')) { + jQuery("#newUserForm").validate(); + + jQuery("#emailAddress").change(setUserNameFromEmail); useShippingAddressAsBillingToggle(); - Event.observe('useShippingAddressForBilling', 'click', useShippingAddressAsBillingToggle); - Event.observe($('submitNewUserForm'), 'click', submitValidNewUser); + + jQuery("#useShippingAddressForBilling").click(useShippingAddressAsBillingToggle); + jQuery("#submitNewUserForm").click(submitValidNewUser); // Get associate states for Shipping Information - Event.observe($('shipToCountryGeoId'), 'change', function(){ + jQuery("#shipToCountryGeoId").change( function(){ getAssociatedStateList('shipToCountryGeoId', 'shipToStateProvinceGeoId', 'advice-required-shipToStateProvinceGeoId', 'shipToStates'); }); // Get associate states for Billing Information - Event.observe($('billToCountryGeoId'), 'change', function() { + jQuery("#billToCountryGeoId").change( function(){ getAssociatedStateList('billToCountryGeoId', 'billToStateProvinceGeoId', 'advice-required-billToStateProvinceGeoId', 'billToStates'); }); getAssociatedStateList('shipToCountryGeoId', 'shipToStateProvinceGeoId', 'advice-required-shipToStateProvinceGeoId', 'shipToStates'); getAssociatedStateList('billToCountryGeoId', 'billToStateProvinceGeoId', 'advice-required-billToStateProvinceGeoId', 'billToStates'); } - if ($('editUserForm')) { - validateEditUser = new Validation('editUserForm', {immediate: true, onSubmit: false}); - Event.observe($('submitEditUserForm'), 'click', submitValidEditUser); + + // edit user information form validation + if (document.getElementById('editUserForm')) { + jQuery("#editUserForm").validate(); } - if (!$('newUserForm') && !$('editUserForm')) { - if ($('emailAddress')) { - inPlaceEditEmail('emailAddress'); - } - } - if ($('addAddress')) { - validatePostalAddress = new Validation('createPostalAddressForm', {immediate: true, onSubmit: false}); - } - if ($('submitPostalAddressForm')) { - Event.observe($('submitPostalAddressForm'), 'click', submitValidPostalAddress); + + // add Address validation + if (document.getElementById('addAddress')) { + jQuery("#createPostalAddressForm").validate(); } - if ($('shipToPhoneRequired')) { - Event.observe($('shipToCountryCode'), 'blur', function() { + // special validation on blur for phone number fields + if (document.getElementById('shipToPhoneRequired')) { + jQuery("#shipToCountryCode").blur( function() { validatePhoneNumber('shipToPhoneRequired', 'shipToCountryCode', 'shipToAreaCode', 'shipToContactNumber'); }); - Event.observe($('shipToAreaCode'), 'blur', function() { + jQuery("#shipToAreaCode").blur( function() { validatePhoneNumber('shipToPhoneRequired', 'shipToAreaCode', 'shipToCountryCode', 'shipToContactNumber'); }); - Event.observe($('shipToContactNumber'), 'blur', function() { + jQuery("#shipToContactNumber").blur( function() { validatePhoneNumber('shipToPhoneRequired', 'shipToContactNumber', 'shipToCountryCode', 'shipToAreaCode'); }); } - if ($('billToPhoneRequired')) { - Event.observe($('billToCountryCode'), 'blur', function() { + if (document.getElementById('billToPhoneRequired')) { + jQuery("#billToCountryCode").blur( function() { validatePhoneNumber('billToPhoneRequired', 'billToCountryCode', 'billToAreaCode', 'billToContactNumber'); }); - Event.observe($('billToAreaCode'), 'blur', function() { + jQuery("#billToAreaCode").blur( function() { validatePhoneNumber('billToPhoneRequired', 'billToAreaCode', 'billToCountryCode', 'billToContactNumber'); }); - Event.observe($('billToContactNumber'), 'blur', function() { + jQuery("#billToContactNumber").blur( function() { validatePhoneNumber('billToPhoneRequired', 'billToContactNumber', 'billToCountryCode', 'billToAreaCode'); }); } - if ($('createPostalAddressForm')) { + + // postal address validation and geo autocomplete + if (document.getElementById('createPostalAddressForm')) { + jQuery("#createPostalAddressForm").validate(); + // Get associate states for Postal Address Information - Event.observe($('countryGeoId'), 'change', function() { + jQuery("#countryGeoId").change( function() { getAssociatedStateList('countryGeoId', 'stateProvinceGeoId', 'advice-required-stateProvinceGeoId', 'states'); }); getAssociatedStateList('countryGeoId', 'stateProvinceGeoId', 'advice-required-stateProvinceGeoId', 'states'); } - if ($('editBillToPostalAddress')) { + if (document.getElementById('editBillToPostalAddress')) { // Get associate states for Billing Information - Event.observe($('billToCountryGeoId'), 'change', function() { + jQuery("#billToCountryGeoId").change( function() { getAssociatedStateList('billToCountryGeoId', 'billToStateProvinceGeoId', 'advice-required-billToStateProvinceGeoId', 'billToStates'); }); - if($('billToStateProvinceGeoId').value == "_NA_"){ + if(document.getElementById('billToStateProvinceGeoId').value == "_NA_"){ getAssociatedStateList('billToCountryGeoId', 'billToStateProvinceGeoId', 'advice-required-billToStateProvinceGeoId', 'billToStates'); } else { - stateValue = $('billToStateProvinceGeoId').value; + stateValue = document.getElementById('billToStateProvinceGeoId').value; getAssociatedStateList('billToCountryGeoId', 'billToStateProvinceGeoId', 'advice-required-billToStateProvinceGeoId', 'billToStates'); - $('billToStateProvinceGeoId').value = stateValue; + document.getElementById('billToStateProvinceGeoId').value = stateValue; } } - if ($('editShipToPostalAddress')) { + if (document.getElementById ('editShipToPostalAddress')) { // Get associate states for Shipping Information - Event.observe($('shipToCountryGeoId'), 'change', function(){ + jQuery("#shipToCountryGeoId").change( function() { getAssociatedStateList('shipToCountryGeoId', 'shipToStateProvinceGeoId', 'advice-required-shipToStateProvinceGeoId', 'shipToStates'); }); - if($('shipToStateProvinceGeoId').value == "_NA_"){ + if(document.getElementById('shipToStateProvinceGeoId').value == "_NA_"){ getAssociatedStateList('shipToCountryGeoId', 'shipToStateProvinceGeoId', 'advice-required-shipToStateProvinceGeoId', 'shipToStates'); } else { - var stateValue = $('shipToStateProvinceGeoId').value; + var stateValue = document.getElementById('shipToStateProvinceGeoId').value; getAssociatedStateList('shipToCountryGeoId', 'shipToStateProvinceGeoId', 'advice-required-shipToStateProvinceGeoId', 'shipToStates'); - $('shipToStateProvinceGeoId').value = stateValue; + document.getElementById('shipToStateProvinceGeoId').value = stateValue; } } }); @@ -120,66 +120,62 @@ document.observe('dom:loaded', function() { * 3) textToCheck1, textToCheck2 : Other text boxes to be check. */ function validatePhoneNumber(errorDivId, focusedTextId, textToCheck1, textToCheck2) { - if (($(focusedTextId).value == "")) { - Effect.Appear(errorDivId, {duration: 0.5}); - } else if (($(textToCheck1).value != "") && ($(textToCheck2).value != "" )) { - Effect.Fade(errorDivId, {duration: 0.5}); + if ((document.getElementById(focusedTextId).value == "")) { + jQuery("#" + errorDivId).fadeIn("fast"); + } else if ((document.getElementById(textToCheck1).value != "") && (document.getElementById(textToCheck2).value != "" )) { + jQuery("#" + errorDivId).fadeOut("fast"); } } function submitValidNewUser() { + validatePhoneNumber('shipToPhoneRequired', 'shipToContactNumber', 'shipToCountryCode', 'shipToAreaCode'); validatePhoneNumber('billToPhoneRequired', 'billToContactNumber', 'billToCountryCode', 'billToAreaCode'); - if (validateNewUser.validate()) { - $('newUserForm').submit(); + if (jQuery("#newUserForm").valid()) { + document.getElementById('newUserForm').submit(); } } function submitValidEditUser() { - if (validateEditUser.validate()) { - $('editUserForm').submit(); - } + document.getElementById('editUserForm').submit(); } function submitValidPostalAddress() { - if (validatePostalAddress.validate()) { - $('createPostalAddressForm').submit(); - } + document.getElementById('createPostalAddressForm').submit(); } function setUserNameFromEmail() { - if ($('username').value == "") { - $('username').value = $F('emailAddress'); + if (document.getElementById('username').value == "") { + document.getElementById('username').value = document.getElementById('emailAddress').value; } } function useShippingAddressAsBillingToggle() { - if ($('useShippingAddressForBilling').checked) { - $('billToAddress1').value = $F('shipToAddress1'); - $('billToAddress2').value = $F('shipToAddress2'); - $('billToCity').value = $F('shipToCity'); - $('billToCountryGeoId').value = $F('shipToCountryGeoId'); + if (document.getElementById('useShippingAddressForBilling').checked) { + document.getElementById('billToAddress1').value = document.getElementById('shipToAddress1').value; + document.getElementById('billToAddress2').value = document.getElementById('shipToAddress2').value; + document.getElementById('billToCity').value = document.getElementById('shipToCity').value; + document.getElementById('billToCountryGeoId').value = document.getElementById('shipToCountryGeoId').value; getAssociatedStateList('billToCountryGeoId', 'billToStateProvinceGeoId', 'advice-required-billToStateProvinceGeoId', 'billToStates'); - $('billToStateProvinceGeoId').value = $F('shipToStateProvinceGeoId'); - $('billToPostalCode').value = $F('shipToPostalCode'); + document.getElementById('billToStateProvinceGeoId').value = document.getElementById('shipToStateProvinceGeoId').value; + document.getElementById('billToPostalCode').value = document.getElementById('shipToPostalCode').value; - $('billToAddress1').disabled = true ; - $('billToAddress2').disabled = true ; - $('billToCity').disabled = true ; - $('billToCountryGeoId').disabled = true ; - $('billToStateProvinceGeoId').disabled = true ; - $('billToPostalCode').disabled = true; + document.getElementById('billToAddress1').disabled = true ; + document.getElementById('billToAddress2').disabled = true ; + document.getElementById('billToCity').disabled = true ; + document.getElementById('billToCountryGeoId').disabled = true ; + document.getElementById('billToStateProvinceGeoId').disabled = true ; + document.getElementById('billToPostalCode').disabled = true; copyShipToBillAddress(); hideErrorMessage(); } else { - validBillingAddress(); stopObservingShipToBillAddress(); - $('billToAddress1').disabled = false ; - $('billToAddress2').disabled = false ; - $('billToCity').disabled = false ; - $('billToCountryGeoId').disabled = false ; - $('billToStateProvinceGeoId').disabled = false ; - $('billToPostalCode').disabled = false; + document.getElementById('billToAddress1').disabled = false ; + document.getElementById('billToAddress2').disabled = false ; + document.getElementById('billToCity').disabled = false ; + document.getElementById('billToCountryGeoId').disabled = false ; + document.getElementById('billToStateProvinceGeoId').disabled = false ; + document.getElementById('billToPostalCode').disabled = false; } } @@ -189,11 +185,13 @@ function getServerError(data) { if (data._ERROR_MESSAGE_LIST_ != undefined) { serverErrorHash = data._ERROR_MESSAGE_LIST_; - serverErrorHash.each(function(error) { - if (error.message != undefined) { - serverError += error.message; + alert(serverErrorHash); + jQuery.each(serverErrorHash, function(error, message){ + if (error != undefined) { + serverError += message; } }); + if (serverError == "") { serverError = serverErrorHash; } @@ -204,112 +202,59 @@ function getServerError(data) { return serverError; } -function inPlaceEditEmail(e) { - if ($('updatedEmailContactMechId')) { - var url = 'updatePartyEmailAddress?contactMechId='+ $('updatedEmailContactMechId').value; - var errorId = 'serverError_' + $('updatedEmailContactMechId').value; - var oldEmailAddress = $('updatedEmailAddress').value; - var editor = new Ajax.InPlaceEditor(e, url, {clickToEditText: 'click here to change your email', paramName: 'emailAddress', htmlResponse: false, updateAfterRequestCall: true, - onComplete: function (transport) { - if (transport != undefined) { - var data = transport.responseText.evalJSON(true); - var serverError = getServerError(data); - if (serverError != "") { - Effect.Appear(errorId); - $(errorId).update(serverError); - $('emailAddress').update(oldEmailAddress); - } else { - Effect.Fade(errorId); - if (data.contactMechId != undefined) { - $('updatedEmailContactMechId').value = data.contactMechId; - $('updatedEmailAddress').value = data.emailAddress; - } else { - $('emailAddress').update(oldEmailAddress); - } - inPlaceEditEmail('emailAddress'); - $(errorId).id = 'serverError_' + $('updatedEmailContactMechId').value; - editor.dispose(); - } +function doAjaxRequest(formId, errorId, popupId, requestUrl) { + if (jQuery("#" + formId).valid()) { + jQuery.ajax({ + url: requestUrl, + type: 'POST', + async: false, + data: jQuery("#" + formId).serialize(), + success: function(data) { + var serverError = getServerError(data); + if (serverError != "") { + jQuery("#" + errorId).fadeIn("fast"); + jQuery("#" + popupId).fadeIn("fast"); + jQuery("#" + errorId).html(serverError); + } else { + jQuery("#" + errorId).fadeIn("slow"); + jQuery("#" + popupId).fadeIn("slow"); + document.getElementById('refreshRequestForm').submit(); } } + }); + } } function createPartyPostalAddress(e) { formId = 'createPostalAddressForm'; - var validateEditPostalAddress = new Validation(formId, {immediate: true, onSubmit: false}); errorId = 'serverError'; popupId = 'displayCreateAddressForm'; - if (validateEditPostalAddress.validate()) { - new Ajax.Request('createPartyPostalAddress', { - asynchronous: false, - onSuccess: function(transport) { - var data = transport.responseText.evalJSON(true); - var serverError = getServerError(data); - if (serverError != "") { - Effect.Appear(errorId); - Effect.Appear(popupId); - $(errorId).update(serverError); - } else { - Effect.Fade(popupId); - Effect.Fade(errorId); - $('refreshRequestForm').submit(); - } - }, parameters: $(formId).serialize(), requestHeaders: {Accept: 'application/json'} - }); - } + requestUrl = 'createPartyPostalAddress'; + + doAjaxRequest(formId, errorId, popupId, requestUrl); + + } function updatePartyPostalAddress(e) { contactMechId = e.split('_')[1]; formId = 'editPostalAddress_' + contactMechId; - var validateEditPostalAddress = new Validation(formId, {immediate: true, onSubmit: false}); errorId = 'serverError_' + contactMechId; popupId = 'displayEditAddressForm_' + contactMechId; - if (validateEditPostalAddress.validate()) { - new Ajax.Request('updatePartyPostalAddress', { - asynchronous: false, - onSuccess: function(transport) { - var data = transport.responseText.evalJSON(true); - var serverError = getServerError(data); - if (serverError != "") { - Effect.Appear(errorId); - Effect.Appear(popupId); - $(errorId).update(serverError); - } else { - Effect.Fade(popupId); - Effect.Fade(errorId); - $('refreshRequestForm').submit(); - } - }, parameters: $(formId).serialize(), requestHeaders: {Accept: 'application/json'} - }); - } + requestUrl = 'updatePartyPostalAddress'; + + doAjaxRequest(formId, errorId, popupId, requestUrl); } function updatePartyShipToPostalAddress(e) { formId = 'editShipToPostalAddress'; - var validateEditPostalAddress = new Validation(formId, {immediate: true, onSubmit: false}); errorId = 'shipToServerError'; popupId = 'displayEditShipToPostalAddress'; - if (validateEditPostalAddress.validate()) { - new Ajax.Request('updatePartyPostalAddress', { - asynchronous: false, - onSuccess: function(transport) { - var data = transport.responseText.evalJSON(true); - var serverError = getServerError(data); - if (serverError != "") { - Effect.Appear(errorId); - Effect.Appear(popupId); - $(errorId).update(serverError); - } else { - Effect.Fade(popupId); - Effect.Fade(errorId); - $('refreshRequestForm').submit(); - } - }, parameters: $(formId).serialize(), requestHeaders: {Accept: 'application/json'} - }); - } + requestUrl = 'updatePartyPostalAddress'; + + doAjaxRequest(formId, errorId, popupId, requestUrl); } function updatePartyBillToPostalAddress(e) { @@ -317,119 +262,67 @@ function updatePartyBillToPostalAddress(e) { var validateEditPostalAddress = new Validation(formId, {immediate: true, onSubmit: false}); errorId = 'billToServerError'; popupId = 'displayEditBillToPostalAddress'; - if (validateEditPostalAddress.validate()) { - new Ajax.Request('updatePartyPostalAddress', { - asynchronous: false, - onSuccess: function(transport) { - var data = transport.responseText.evalJSON(true); - var serverError = getServerError(data); - if (serverError != "") { - Effect.Appear(errorId); - Effect.Appear(popupId); - $(errorId).update(serverError); - } else { - Effect.Fade(popupId); - Effect.Fade(errorId); - $('refreshRequestForm').submit(); - } - }, parameters: $(formId).serialize(), requestHeaders: {Accept: 'application/json'} - }); - } -} - -function validBillingAddress () { - Event.observe($('billToAddress1'), 'blur', function() { - if ($('billToAddress1').value == "") { - Effect.Appear('advice-required-billToAddress1'); - } - }); - Event.observe($('billToStateProvinceGeoId'), 'blur', function() { - if ($('billToStateProvinceGeoId').value == "") { - Effect.Appear('advice-required-billToStateProvinceGeoId'); - } - }); - Event.observe($('billToCity'), 'blur', function() { - if ($('billToCity').value == "") { - Effect.Appear('advice-required-billToCity'); - } - }); - Event.observe($('billToPostalCode'), 'blur', function() { - if ($('billToPostalCode').value == "") { - Effect.Appear('advice-required-billToPostalCode'); - } - }); - Event.observe($('billToCountryGeoId'), 'blur', function() { - if ($('billToCountryGeoId').value == "") { - Effect.Appear('advice-required-billToCountryGeoId'); - } - }); + requestUrl = 'updatePartyPostalAddress'; + + doAjaxRequest(formId, errorId, popupId, requestUrl); } function hideErrorMessage() { - Effect.Fade('advice-required-billToAddress1'); - Effect.Fade('advice-required-billToStateProvinceGeoId'); - Effect.Fade('advice-required-billToCity'); - Effect.Fade('advice-required-billToPostalCode'); - Effect.Fade('advice-required-billToCountryGeoId'); - Effect.Fade('billToPhoneRequired'); + jQuery('#advice-required-billToAddress1').fadeOut("fast"); + jQuery('#advice-required-billToStateProvinceGeoId').fadeOut("fast"); + jQuery('#advice-required-billToCity').fadeOut("fast"); + jQuery('#advice-required-billToPostalCode').fadeOut("fast");; + jQuery('#advice-required-billToCountryGeoId').fadeOut("fast"); + jQuery('#billToPhoneRequired').fadeOut("fast"); } function copyShipToBillAddress() { - Event.observe($('shipToAddress1'), 'change', function() { - $('billToAddress1').value = $F('shipToAddress1') + jQuery("#shipToAddress1").change( function() { + document.getElementById('billToAddress1').value = document.getElementById('shipToAddress1').value; }); - Event.observe($('shipToAddress2'), 'change', function() { - $('billToAddress2').value = $F('shipToAddress2') + jQuery("#shipToAddress2").change( function() { + document.getElementById('billToAddress2').value = document.getElementById('shipToAddress2').value; }); - Event.observe($('shipToCity'), 'change', function() { - $('billToCity').value = $F('shipToCity') + jQuery("#shipToCity").change( function() { + document.getElementById('billToCity').value = document.getElementById('shipToCity').value; }); - Event.observe($('shipToStateProvinceGeoId'), 'change', function() { - $('billToStateProvinceGeoId').value = $F('shipToStateProvinceGeoId') + jQuery("#shipToStateProvinceGeoId").change( function() { + document.getElementById('billToStateProvinceGeoId').value = document.getElementById('shipToStateProvinceGeoId').value; }); - Event.observe($('shipToCountryGeoId'), 'change', copyShipToCountryToBillToCountry); - Event.observe($('shipToPostalCode'), 'change', function() { - $('billToPostalCode').value = $F('shipToPostalCode') + + jQuery("#shipToCountryGeoId").change(copyShipToCountryToBillToCountry); + jQuery("#shipToPostalCode").change( function() { + document.getElementById('billToPostalCode').value = document.getElementById('shipToPostalCode').value; }); } function stopObservingShipToBillAddress() { - Event.stopObserving($('shipToAddress1'), 'change', ""); - Event.stopObserving($('shipToAddress2'), 'change', ""); - Event.stopObserving($('shipToCity'), 'change', ""); - Event.stopObserving($('shipToStateProvinceGeoId'), 'change', ""); - Event.stopObserving($('shipToCountryGeoId'), 'change', copyShipToCountryToBillToCountry); - Event.stopObserving($('shipToPostalCode'), 'change', ""); -} - -function addValidations() { - Validation.add('validate-password', "", { - minLength : 5, - notOneOf : ['password','PASSWORD'], - notEqualToField : 'username' - }); - Validation.add('validate-passwordVerify', "", { - equalToField : 'password' - }); + jQuery('#shipToAddress1').unbind('change'); + jQuery('shipToAddress2').unbind('change'); + jQuery('shipToCity').unbind('change'); + jQuery('shipToStateProvinceGeoId').unbind('change'); + jQuery('shipToCountryGeoId').unbind('change', copyShipToCountryToBillToCountry); + jQuery('shipToPostalCode').unbind('change'); } function showState(id) { - if ($('editPostalAddress_'+id)) { + if (document.getElementById('editPostalAddress_' + id)) { // Get associate states for Postal Address Information - Event.observe($('countryGeoId_'+id), 'change', function() { + jQuery("#countryGeoId_" + id).change( function() { getAssociatedStateList('countryGeoId_'+id, 'stateProvinceGeoId_'+id, 'advice-required-stateProvinceGeoId_'+id, 'states_'+id); }); - if ($('stateProvinceGeoId_'+id).value == "_NA_") { + + if (document.getElementById('stateProvinceGeoId_'+id).value == "_NA_") { getAssociatedStateList('countryGeoId_'+id, 'stateProvinceGeoId_'+id, 'advice-required-stateProvinceGeoId_'+id, 'states_'+id); } else { - var stateValue = $('stateProvinceGeoId_'+id).value; + var stateValue = document.getElementById('stateProvinceGeoId_'+id).value; getAssociatedStateList('countryGeoId_'+id, 'stateProvinceGeoId_'+id, 'advice-required-stateProvinceGeoId_'+id, 'states_'+id); - $('stateProvinceGeoId_'+id).value = stateValue; + document.getElementById('stateProvinceGeoId_'+id).value = stateValue; } } } function copyShipToCountryToBillToCountry(){ - $('billToCountryGeoId').value = $F('shipToCountryGeoId'); + document.getElementById('billToCountryGeoId').value = document.getElementById('shipToCountryGeoId').value; getAssociatedStateList('billToCountryGeoId', 'billToStateProvinceGeoId', 'advice-required-billToStateProvinceGeoId', 'billToStates'); } \ No newline at end of file diff --git a/specialpurpose/ecommerce/webapp/ecommerce/images/quickAnonCustSettings.js b/specialpurpose/ecommerce/webapp/ecommerce/images/quickAnonCustSettings.js index 1d825bff67..3f136193a3 100644 --- a/specialpurpose/ecommerce/webapp/ecommerce/images/quickAnonCustSettings.js +++ b/specialpurpose/ecommerce/webapp/ecommerce/images/quickAnonCustSettings.js @@ -17,41 +17,41 @@ specific language governing permissions and limitations under the License. */ -document.observe('dom:loaded', isValidElement); +jQuery(document).ready(isValidElement); function isValidElement(element){ - var validator = new Validation('quickAnonProcessCustomer', {immediate : true}); + jQuery('#quickAnonProcessCustomer').validate(); } -document.observe('dom:loaded', function() { - Event.observe('useShippingPostalAddressForBilling', 'click', changeText2); +jQuery(document).ready(function() { + jQuery('#useShippingPostalAddressForBilling').click(changeText2); }); function changeText2(){ - if($('useShippingPostalAddressForBilling').checked) { - $('billToName').value = $F('shipToName'); - $('billToAttnName').value = $F('shipToAttnName'); - $('billToAddress1').value = $F('shipToAddress1'); - $('billToAddress2').value = $F('shipToAddress2'); - $('billToCity').value = $F('shipToCity'); - $('billToStateProvinceGeoId').value = $F('shipToStateProvinceGeoId'); - $('billToPostalCode').value = $F('shipToPostalCode'); - $('billToCountryGeoId').value = $F('shipToCountryGeoId'); - $('billToName').disabled = true; - $('billToAttnName').disabled = true; - $('billToAddress1').disabled = true; - $('billToAddress2').disabled = true; - $('billToCity').disabled = true; - $('billToStateProvinceGeoId').disabled = true; - $('billToPostalCode').disabled = true; - $('billToCountryGeoId').disabled = true; + if(document.getElementById('useShippingPostalAddressForBilling').checked) { + document.getElementById('billToName').value = document.getElementById('shipToName').value; + document.getElementById('billToAttnName').value = document.getElementById('shipToAttnName').value; + document.getElementById('billToAddress1').value = document.getElementById('shipToAddress1').value; + document.getElementById('billToAddress2').value = document.getElementById('shipToAddress2').value; + document.getElementById('billToCity').value = document.getElementById('shipToCity').value; + document.getElementById('billToStateProvinceGeoId').value = document.getElementById('shipToStateProvinceGeoId').value; + document.getElementById('billToPostalCode').value = document.getElementById('shipToPostalCode').value; + document.getElementById('billToCountryGeoId').value = document.getElementById('shipToCountryGeoId').value; + document.getElementById('billToName').disabled = true; + document.getElementById('billToAttnName').disabled = true; + document.getElementById('billToAddress1').disabled = true; + document.getElementById('billToAddress2').disabled = true; + document.getElementById('billToCity').disabled = true; + document.getElementById('billToStateProvinceGeoId').disabled = true; + document.getElementById('billToPostalCode').disabled = true; + document.getElementById('billToCountryGeoId').disabled = true; } else { - $('billToName').disabled = false; - $('billToAttnName').disabled = false; - $('billToAddress1').disabled = false; - $('billToAddress2').disabled = false; - $('billToCity').disabled = false; - $('billToStateProvinceGeoId').disabled = false; - $('billToPostalCode').disabled = false; - $('billToCountryGeoId').disabled = false; + document.getElementById('billToName').disabled = false; + document.getElementById('billToAttnName').disabled = false; + document.getElementById('billToAddress1').disabled = false; + document.getElementById('billToAddress2').disabled = false; + document.getElementById('billToCity').disabled = false; + document.getElementById('billToStateProvinceGeoId').disabled = false; + document.getElementById('billToPostalCode').disabled = false; + document.getElementById('billToCountryGeoId').disabled = false; } } \ No newline at end of file diff --git a/specialpurpose/ecommerce/webapp/ecommerce/includes/headerHead.ftl b/specialpurpose/ecommerce/webapp/ecommerce/includes/headerHead.ftl index bd6092da2a..00966c2c1a 100644 --- a/specialpurpose/ecommerce/webapp/ecommerce/includes/headerHead.ftl +++ b/specialpurpose/ecommerce/webapp/ecommerce/includes/headerHead.ftl @@ -88,9 +88,4 @@ under the License. <#if metaKeywords?exists> - <#if requireDojo?exists> - - diff --git a/specialpurpose/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl b/specialpurpose/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl index e69dc18900..393723bd54 100644 --- a/specialpurpose/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl +++ b/specialpurpose/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl @@ -624,6 +624,7 @@ under the License. +
    ${uiLabelMap.EcommerceContinueToStep} 5 diff --git a/specialpurpose/ecommerce/webapp/ecommerce/order/checkoutpayment.ftl b/specialpurpose/ecommerce/webapp/ecommerce/order/checkoutpayment.ftl index 63990b4802..65aa04532c 100644 --- a/specialpurpose/ecommerce/webapp/ecommerce/order/checkoutpayment.ftl +++ b/specialpurpose/ecommerce/webapp/ecommerce/order/checkoutpayment.ftl @@ -74,10 +74,10 @@ function submitForm(form, mode, value) {
    <#if productStorePaymentMethodTypeIdMap.CREDIT_CARD?exists> - ${uiLabelMap.AccountingCreditCard} + ${uiLabelMap.AccountingCreditCard} <#if productStorePaymentMethodTypeIdMap.EFT_ACCOUNT?exists> - ${uiLabelMap.AccountingEFTAccount} + ${uiLabelMap.AccountingEFTAccount} <#if productStorePaymentMethodTypeIdMap.EXT_OFFLINE?exists>
    @@ -134,7 +134,7 @@ function submitForm(form, mode, value) { checked="checked" /> <#if paymentMethod.description?has_content>(${paymentMethod.description}) - ${uiLabelMap.CommonUpdate} + ${uiLabelMap.CommonUpdate} ${uiLabelMap.OrderBillUpTo}: " /> @@ -145,7 +145,7 @@ function submitForm(form, mode, value) { checked="checked" /> <#if paymentMethod.description?has_content>(${paymentMethod.description}) - ${uiLabelMap.CommonUpdate} + ${uiLabelMap.CommonUpdate} " /> @@ -156,7 +156,7 @@ function submitForm(form, mode, value) { checked="checked" /> <#if paymentMethod.description?has_content>

    (${paymentMethod.description})

    - ${uiLabelMap.CommonUpdate} + ${uiLabelMap.CommonUpdate} @@ -193,17 +193,17 @@ function submitForm(form, mode, value) {
    - +
    <#if cart.isPinRequiredForGC(delegator)>
    - +
    - +
    @@ -219,6 +219,6 @@ function submitForm(form, mode, value) { diff --git a/specialpurpose/ecommerce/webapp/ecommerce/order/quickAnonCheckoutReview.ftl b/specialpurpose/ecommerce/webapp/ecommerce/order/quickAnonCheckoutReview.ftl index 8037674877..ab1120e1ab 100644 --- a/specialpurpose/ecommerce/webapp/ecommerce/order/quickAnonCheckoutReview.ftl +++ b/specialpurpose/ecommerce/webapp/ecommerce/order/quickAnonCheckoutReview.ftl @@ -34,12 +34,13 @@ under the License. function shippingMethodChanged(shippingMethod) { var submitToUri = "<@ofbizUrl>quickAnonProcessShipOptionsUpdateOrderItems?shipping_method=" + shippingMethod; - dojo.io.bind({url: submitToUri, - load: function(type, data, evt){ - if(type == "load"){ + jQuery.ajax({ + url: submitToUri, + type: "POST", + success: function(data) { document.getElementById("orderItemsSection").innerHTML = data; } - },mimetype: "text/html"}); + }); } // --> diff --git a/specialpurpose/ecommerce/webapp/ecommerce/order/quickAnonOptionSettings.ftl b/specialpurpose/ecommerce/webapp/ecommerce/order/quickAnonOptionSettings.ftl index 37b072afa6..ebf86bcfb5 100644 --- a/specialpurpose/ecommerce/webapp/ecommerce/order/quickAnonOptionSettings.ftl +++ b/specialpurpose/ecommerce/webapp/ecommerce/order/quickAnonOptionSettings.ftl @@ -18,13 +18,9 @@ under the License. -->
    @@ -330,8 +369,8 @@ under the License.
    -
    -
    +
      +
    • The best things in life
      are FREE.
      @@ -343,8 +382,8 @@ under the License.
      -
      -
    • +
    • Lower Costs,
      Higher Margins.
      @@ -357,8 +396,8 @@ under the License.
      -
      -
    • +
    • OPEN yourself up to all
      of the possibilities
      @@ -371,8 +410,8 @@ under the License.
      -
      -
    • +
    • We have
      street cred.
      @@ -384,11 +423,11 @@ under the License.
      -
      -
    • +
    • Just like muscles,
      - e-commerce should
      + e-commerce should be flexible.
      @@ -398,21 +437,60 @@ under the License.
      -
      -
    + +
    diff --git a/specialpurpose/ofbizwebsite/template/HtmlHead.ftl b/specialpurpose/ofbizwebsite/template/HtmlHead.ftl index b1026e096c..f4b9159c8d 100644 --- a/specialpurpose/ofbizwebsite/template/HtmlHead.ftl +++ b/specialpurpose/ofbizwebsite/template/HtmlHead.ftl @@ -23,17 +23,16 @@ under the License. ${uiLabelMap.OfbizTitle} - + - - - - + + + - + diff --git a/specialpurpose/ofbizwebsite/webapp/ofbiz/images/global.css b/specialpurpose/ofbizwebsite/webapp/ofbiz/images/global.css index b68a1fd7a6..38ff01c4d7 100644 --- a/specialpurpose/ofbizwebsite/webapp/ofbiz/images/global.css +++ b/specialpurpose/ofbizwebsite/webapp/ofbiz/images/global.css @@ -812,6 +812,7 @@ body#home #header #slides { position: absolute; top: 128px; left: 10px; + overflow: hidden; background: url(/ofbiz/images/slideshow-bg.jpg) top center no-repeat; width: 923px; height: 260px; @@ -825,7 +826,7 @@ body#home #header #slides .slideshow { } body#home #header #slides .callout { - position: absolute; + position: relative; top: 35px; left: 30px; font-size: 30px; @@ -834,8 +835,8 @@ body#home #header #slides .callout { } body#home #header #slides .description { - position: absolute; - top: 175px; + position: relative; + top: 110px; left: 30px; font-size: 14px; line-height: 15px; @@ -896,9 +897,21 @@ body#home #header #slides .controls a img { } body#home #header #slides .mantle{ - position:absolute; - top:58px; + position:relative; + top:-80px; left:385px; + float:right; +} + +#mantleSlides{ + width: 20000em; + height: 260px; + position: absolute; +} + +#mantleSlides div { + float:left; + width: 923px; } body#home #col1 { diff --git a/specialpurpose/ofbizwebsite/webapp/ofbiz/script/effects.js b/specialpurpose/ofbizwebsite/webapp/ofbiz/script/effects.js deleted file mode 100644 index f31a81a009..0000000000 --- a/specialpurpose/ofbizwebsite/webapp/ofbiz/script/effects.js +++ /dev/null @@ -1,1130 +0,0 @@ -// script.aculo.us effects.js v1.8.2, Tue Nov 18 18:30:58 +0100 2008 - -// Copyright (c) 2005-2008 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) -// Contributors: -// Justin Palmer (http://encytemedia.com/) -// Mark Pilgrim (http://diveintomark.org/) -// Martin Bialasinki -// -// script.aculo.us is freely distributable under the terms of an MIT-style license. -// For details, see the script.aculo.us web site: http://script.aculo.us/ - -// converts rgb() and #xxx to #xxxxxx format, -// returns self (or first argument) if not convertable -String.prototype.parseColor = function() { - var color = '#'; - if (this.slice(0,4) == 'rgb(') { - var cols = this.slice(4,this.length-1).split(','); - var i=0; do { color += parseInt(cols[i]).toColorPart() } while (++i<3); - } else { - if (this.slice(0,1) == '#') { - if (this.length==4) for(var i=1;i<4;i++) color += (this.charAt(i) + this.charAt(i)).toLowerCase(); - if (this.length==7) color = this.toLowerCase(); - } - } - return (color.length==7 ? color : (arguments[0] || this)); -}; - -/*--------------------------------------------------------------------------*/ - -Element.collectTextNodes = function(element) { - return $A($(element).childNodes).collect( function(node) { - return (node.nodeType==3 ? node.nodeValue : - (node.hasChildNodes() ? Element.collectTextNodes(node) : '')); - }).flatten().join(''); -}; - -Element.collectTextNodesIgnoreClass = function(element, className) { - return $A($(element).childNodes).collect( function(node) { - return (node.nodeType==3 ? node.nodeValue : - ((node.hasChildNodes() && !Element.hasClassName(node,className)) ? - Element.collectTextNodesIgnoreClass(node, className) : '')); - }).flatten().join(''); -}; - -Element.setContentZoom = function(element, percent) { - element = $(element); - element.setStyle({fontSize: (percent/100) + 'em'}); - if (Prototype.Browser.WebKit) window.scrollBy(0,0); - return element; -}; - -Element.getInlineOpacity = function(element){ - return $(element).style.opacity || ''; -}; - -Element.forceRerendering = function(element) { - try { - element = $(element); - var n = document.createTextNode(' '); - element.appendChild(n); - element.removeChild(n); - } catch(e) { } -}; - -/*--------------------------------------------------------------------------*/ - -var Effect = { - _elementDoesNotExistError: { - name: 'ElementDoesNotExistError', - message: 'The specified DOM element does not exist, but is required for this effect to operate' - }, - Transitions: { - linear: Prototype.K, - sinoidal: function(pos) { - return (-Math.cos(pos*Math.PI)/2) + .5; - }, - reverse: function(pos) { - return 1-pos; - }, - flicker: function(pos) { - var pos = ((-Math.cos(pos*Math.PI)/4) + .75) + Math.random()/4; - return pos > 1 ? 1 : pos; - }, - wobble: function(pos) { - return (-Math.cos(pos*Math.PI*(9*pos))/2) + .5; - }, - pulse: function(pos, pulses) { - return (-Math.cos((pos*((pulses||5)-.5)*2)*Math.PI)/2) + .5; - }, - spring: function(pos) { - return 1 - (Math.cos(pos * 4.5 * Math.PI) * Math.exp(-pos * 6)); - }, - none: function(pos) { - return 0; - }, - full: function(pos) { - return 1; - } - }, - DefaultOptions: { - duration: 1.0, // seconds - fps: 100, // 100= assume 66fps max. - sync: false, // true for combining - from: 0.0, - to: 1.0, - delay: 0.0, - queue: 'parallel' - }, - tagifyText: function(element) { - var tagifyStyle = 'position:relative'; - if (Prototype.Browser.IE) tagifyStyle += ';zoom:1'; - - element = $(element); - $A(element.childNodes).each( function(child) { - if (child.nodeType==3) { - child.nodeValue.toArray().each( function(character) { - element.insertBefore( - new Element('span', {style: tagifyStyle}).update( - character == ' ' ? String.fromCharCode(160) : character), - child); - }); - Element.remove(child); - } - }); - }, - multiple: function(element, effect) { - var elements; - if (((typeof element == 'object') || - Object.isFunction(element)) && - (element.length)) - elements = element; - else - elements = $(element).childNodes; - - var options = Object.extend({ - speed: 0.1, - delay: 0.0 - }, arguments[2] || { }); - var masterDelay = options.delay; - - $A(elements).each( function(element, index) { - new effect(element, Object.extend(options, { delay: index * options.speed + masterDelay })); - }); - }, - PAIRS: { - 'slide': ['SlideDown','SlideUp'], - 'blind': ['BlindDown','BlindUp'], - 'appear': ['Appear','Fade'] - }, - toggle: function(element, effect) { - element = $(element); - effect = (effect || 'appear').toLowerCase(); - var options = Object.extend({ - queue: { position:'end', scope:(element.id || 'global'), limit: 1 } - }, arguments[2] || { }); - Effect[element.visible() ? - Effect.PAIRS[effect][1] : Effect.PAIRS[effect][0]](element, options); - } -}; - -Effect.DefaultOptions.transition = Effect.Transitions.sinoidal; - -/* ------------- core effects ------------- */ - -Effect.ScopedQueue = Class.create(Enumerable, { - initialize: function() { - this.effects = []; - this.interval = null; - }, - _each: function(iterator) { - this.effects._each(iterator); - }, - add: function(effect) { - var timestamp = new Date().getTime(); - - var position = Object.isString(effect.options.queue) ? - effect.options.queue : effect.options.queue.position; - - switch(position) { - case 'front': - // move unstarted effects after this effect - this.effects.findAll(function(e){ return e.state=='idle' }).each( function(e) { - e.startOn += effect.finishOn; - e.finishOn += effect.finishOn; - }); - break; - case 'with-last': - timestamp = this.effects.pluck('startOn').max() || timestamp; - break; - case 'end': - // start effect after last queued effect has finished - timestamp = this.effects.pluck('finishOn').max() || timestamp; - break; - } - - effect.startOn += timestamp; - effect.finishOn += timestamp; - - if (!effect.options.queue.limit || (this.effects.length < effect.options.queue.limit)) - this.effects.push(effect); - - if (!this.interval) - this.interval = setInterval(this.loop.bind(this), 15); - }, - remove: function(effect) { - this.effects = this.effects.reject(function(e) { return e==effect }); - if (this.effects.length == 0) { - clearInterval(this.interval); - this.interval = null; - } - }, - loop: function() { - var timePos = new Date().getTime(); - for(var i=0, len=this.effects.length;i= this.startOn) { - if (timePos >= this.finishOn) { - this.render(1.0); - this.cancel(); - this.event('beforeFinish'); - if (this.finish) this.finish(); - this.event('afterFinish'); - return; - } - var pos = (timePos - this.startOn) / this.totalTime, - frame = (pos * this.totalFrames).round(); - if (frame > this.currentFrame) { - this.render(pos); - this.currentFrame = frame; - } - } - }, - cancel: function() { - if (!this.options.sync) - Effect.Queues.get(Object.isString(this.options.queue) ? - 'global' : this.options.queue.scope).remove(this); - this.state = 'finished'; - }, - event: function(eventName) { - if (this.options[eventName + 'Internal']) this.options[eventName + 'Internal'](this); - if (this.options[eventName]) this.options[eventName](this); - }, - inspect: function() { - var data = $H(); - for(property in this) - if (!Object.isFunction(this[property])) data.set(property, this[property]); - return '#'; - } -}); - -Effect.Parallel = Class.create(Effect.Base, { - initialize: function(effects) { - this.effects = effects || []; - this.start(arguments[1]); - }, - update: function(position) { - this.effects.invoke('render', position); - }, - finish: function(position) { - this.effects.each( function(effect) { - effect.render(1.0); - effect.cancel(); - effect.event('beforeFinish'); - if (effect.finish) effect.finish(position); - effect.event('afterFinish'); - }); - } -}); - -Effect.Tween = Class.create(Effect.Base, { - initialize: function(object, from, to) { - object = Object.isString(object) ? $(object) : object; - var args = $A(arguments), method = args.last(), - options = args.length == 5 ? args[3] : null; - this.method = Object.isFunction(method) ? method.bind(object) : - Object.isFunction(object[method]) ? object[method].bind(object) : - function(value) { object[method] = value }; - this.start(Object.extend({ from: from, to: to }, options || { })); - }, - update: function(position) { - this.method(position); - } -}); - -Effect.Event = Class.create(Effect.Base, { - initialize: function() { - this.start(Object.extend({ duration: 0 }, arguments[0] || { })); - }, - update: Prototype.emptyFunction -}); - -Effect.Opacity = Class.create(Effect.Base, { - initialize: function(element) { - this.element = $(element); - if (!this.element) throw(Effect._elementDoesNotExistError); - // make this work on IE on elements without 'layout' - if (Prototype.Browser.IE && (!this.element.currentStyle.hasLayout)) - this.element.setStyle({zoom: 1}); - var options = Object.extend({ - from: this.element.getOpacity() || 0.0, - to: 1.0 - }, arguments[1] || { }); - this.start(options); - }, - update: function(position) { - this.element.setOpacity(position); - } -}); - -Effect.Move = Class.create(Effect.Base, { - initialize: function(element) { - this.element = $(element); - if (!this.element) throw(Effect._elementDoesNotExistError); - var options = Object.extend({ - x: 0, - y: 0, - mode: 'relative' - }, arguments[1] || { }); - this.start(options); - }, - setup: function() { - this.element.makePositioned(); - this.originalLeft = parseFloat(this.element.getStyle('left') || '0'); - this.originalTop = parseFloat(this.element.getStyle('top') || '0'); - if (this.options.mode == 'absolute') { - this.options.x = this.options.x - this.originalLeft; - this.options.y = this.options.y - this.originalTop; - } - }, - update: function(position) { - this.element.setStyle({ - left: (this.options.x * position + this.originalLeft).round() + 'px', - top: (this.options.y * position + this.originalTop).round() + 'px' - }); - } -}); - -// for backwards compatibility -Effect.MoveBy = function(element, toTop, toLeft) { - return new Effect.Move(element, - Object.extend({ x: toLeft, y: toTop }, arguments[3] || { })); -}; - -Effect.Scale = Class.create(Effect.Base, { - initialize: function(element, percent) { - this.element = $(element); - if (!this.element) throw(Effect._elementDoesNotExistError); - var options = Object.extend({ - scaleX: true, - scaleY: true, - scaleContent: true, - scaleFromCenter: false, - scaleMode: 'box', // 'box' or 'contents' or { } with provided values - scaleFrom: 100.0, - scaleTo: percent - }, arguments[2] || { }); - this.start(options); - }, - setup: function() { - this.restoreAfterFinish = this.options.restoreAfterFinish || false; - this.elementPositioning = this.element.getStyle('position'); - - this.originalStyle = { }; - ['top','left','width','height','fontSize'].each( function(k) { - this.originalStyle[k] = this.element.style[k]; - }.bind(this)); - - this.originalTop = this.element.offsetTop; - this.originalLeft = this.element.offsetLeft; - - var fontSize = this.element.getStyle('font-size') || '100%'; - ['em','px','%','pt'].each( function(fontSizeType) { - if (fontSize.indexOf(fontSizeType)>0) { - this.fontSize = parseFloat(fontSize); - this.fontSizeType = fontSizeType; - } - }.bind(this)); - - this.factor = (this.options.scaleTo - this.options.scaleFrom)/100; - - this.dims = null; - if (this.options.scaleMode=='box') - this.dims = [this.element.offsetHeight, this.element.offsetWidth]; - if (/^content/.test(this.options.scaleMode)) - this.dims = [this.element.scrollHeight, this.element.scrollWidth]; - if (!this.dims) - this.dims = [this.options.scaleMode.originalHeight, - this.options.scaleMode.originalWidth]; - }, - update: function(position) { - var currentScale = (this.options.scaleFrom/100.0) + (this.factor * position); - if (this.options.scaleContent && this.fontSize) - this.element.setStyle({fontSize: this.fontSize * currentScale + this.fontSizeType }); - this.setDimensions(this.dims[0] * currentScale, this.dims[1] * currentScale); - }, - finish: function(position) { - if (this.restoreAfterFinish) this.element.setStyle(this.originalStyle); - }, - setDimensions: function(height, width) { - var d = { }; - if (this.options.scaleX) d.width = width.round() + 'px'; - if (this.options.scaleY) d.height = height.round() + 'px'; - if (this.options.scaleFromCenter) { - var topd = (height - this.dims[0])/2; - var leftd = (width - this.dims[1])/2; - if (this.elementPositioning == 'absolute') { - if (this.options.scaleY) d.top = this.originalTop-topd + 'px'; - if (this.options.scaleX) d.left = this.originalLeft-leftd + 'px'; - } else { - if (this.options.scaleY) d.top = -topd + 'px'; - if (this.options.scaleX) d.left = -leftd + 'px'; - } - } - this.element.setStyle(d); - } -}); - -Effect.Highlight = Class.create(Effect.Base, { - initialize: function(element) { - this.element = $(element); - if (!this.element) throw(Effect._elementDoesNotExistError); - var options = Object.extend({ startcolor: '#ffff99' }, arguments[1] || { }); - this.start(options); - }, - setup: function() { - // Prevent executing on elements not in the layout flow - if (this.element.getStyle('display')=='none') { this.cancel(); return; } - // Disable background image during the effect - this.oldStyle = { }; - if (!this.options.keepBackgroundImage) { - this.oldStyle.backgroundImage = this.element.getStyle('background-image'); - this.element.setStyle({backgroundImage: 'none'}); - } - if (!this.options.endcolor) - this.options.endcolor = this.element.getStyle('background-color').parseColor('#ffffff'); - if (!this.options.restorecolor) - this.options.restorecolor = this.element.getStyle('background-color'); - // init color calculations - this._base = $R(0,2).map(function(i){ return parseInt(this.options.startcolor.slice(i*2+1,i*2+3),16) }.bind(this)); - this._delta = $R(0,2).map(function(i){ return parseInt(this.options.endcolor.slice(i*2+1,i*2+3),16)-this._base[i] }.bind(this)); - }, - update: function(position) { - this.element.setStyle({backgroundColor: $R(0,2).inject('#',function(m,v,i){ - return m+((this._base[i]+(this._delta[i]*position)).round().toColorPart()); }.bind(this)) }); - }, - finish: function() { - this.element.setStyle(Object.extend(this.oldStyle, { - backgroundColor: this.options.restorecolor - })); - } -}); - -Effect.ScrollTo = function(element) { - var options = arguments[1] || { }, - scrollOffsets = document.viewport.getScrollOffsets(), - elementOffsets = $(element).cumulativeOffset(); - - if (options.offset) elementOffsets[1] += options.offset; - - return new Effect.Tween(null, - scrollOffsets.top, - elementOffsets[1], - options, - function(p){ scrollTo(scrollOffsets.left, p.round()); } - ); -}; - -/* ------------- combination effects ------------- */ - -Effect.Fade = function(element) { - element = $(element); - var oldOpacity = element.getInlineOpacity(); - var options = Object.extend({ - from: element.getOpacity() || 1.0, - to: 0.0, - afterFinishInternal: function(effect) { - if (effect.options.to!=0) return; - effect.element.hide().setStyle({opacity: oldOpacity}); - } - }, arguments[1] || { }); - return new Effect.Opacity(element,options); -}; - -Effect.Appear = function(element) { - element = $(element); - var options = Object.extend({ - from: (element.getStyle('display') == 'none' ? 0.0 : element.getOpacity() || 0.0), - to: 1.0, - // force Safari to render floated elements properly - afterFinishInternal: function(effect) { - effect.element.forceRerendering(); - }, - beforeSetup: function(effect) { - effect.element.setOpacity(effect.options.from).show(); - }}, arguments[1] || { }); - return new Effect.Opacity(element,options); -}; - -Effect.Puff = function(element) { - element = $(element); - var oldStyle = { - opacity: element.getInlineOpacity(), - position: element.getStyle('position'), - top: element.style.top, - left: element.style.left, - width: element.style.width, - height: element.style.height - }; - return new Effect.Parallel( - [ new Effect.Scale(element, 200, - { sync: true, scaleFromCenter: true, scaleContent: true, restoreAfterFinish: true }), - new Effect.Opacity(element, { sync: true, to: 0.0 } ) ], - Object.extend({ duration: 1.0, - beforeSetupInternal: function(effect) { - Position.absolutize(effect.effects[0].element); - }, - afterFinishInternal: function(effect) { - effect.effects[0].element.hide().setStyle(oldStyle); } - }, arguments[1] || { }) - ); -}; - -Effect.BlindUp = function(element) { - element = $(element); - element.makeClipping(); - return new Effect.Scale(element, 0, - Object.extend({ scaleContent: false, - scaleX: false, - restoreAfterFinish: true, - afterFinishInternal: function(effect) { - effect.element.hide().undoClipping(); - } - }, arguments[1] || { }) - ); -}; - -Effect.BlindDown = function(element) { - element = $(element); - var elementDimensions = element.getDimensions(); - return new Effect.Scale(element, 100, Object.extend({ - scaleContent: false, - scaleX: false, - scaleFrom: 0, - scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width}, - restoreAfterFinish: true, - afterSetup: function(effect) { - effect.element.makeClipping().setStyle({height: '0px'}).show(); - }, - afterFinishInternal: function(effect) { - effect.element.undoClipping(); - } - }, arguments[1] || { })); -}; - -Effect.SwitchOff = function(element) { - element = $(element); - var oldOpacity = element.getInlineOpacity(); - return new Effect.Appear(element, Object.extend({ - duration: 0.4, - from: 0, - transition: Effect.Transitions.flicker, - afterFinishInternal: function(effect) { - new Effect.Scale(effect.element, 1, { - duration: 0.3, scaleFromCenter: true, - scaleX: false, scaleContent: false, restoreAfterFinish: true, - beforeSetup: function(effect) { - effect.element.makePositioned().makeClipping(); - }, - afterFinishInternal: function(effect) { - effect.element.hide().undoClipping().undoPositioned().setStyle({opacity: oldOpacity}); - } - }); - } - }, arguments[1] || { })); -}; - -Effect.DropOut = function(element) { - element = $(element); - var oldStyle = { - top: element.getStyle('top'), - left: element.getStyle('left'), - opacity: element.getInlineOpacity() }; - return new Effect.Parallel( - [ new Effect.Move(element, {x: 0, y: 100, sync: true }), - new Effect.Opacity(element, { sync: true, to: 0.0 }) ], - Object.extend( - { duration: 0.5, - beforeSetup: function(effect) { - effect.effects[0].element.makePositioned(); - }, - afterFinishInternal: function(effect) { - effect.effects[0].element.hide().undoPositioned().setStyle(oldStyle); - } - }, arguments[1] || { })); -}; - -Effect.Shake = function(element) { - element = $(element); - var options = Object.extend({ - distance: 20, - duration: 0.5 - }, arguments[1] || {}); - var distance = parseFloat(options.distance); - var split = parseFloat(options.duration) / 10.0; - var oldStyle = { - top: element.getStyle('top'), - left: element.getStyle('left') }; - return new Effect.Move(element, - { x: distance, y: 0, duration: split, afterFinishInternal: function(effect) { - new Effect.Move(effect.element, - { x: -distance*2, y: 0, duration: split*2, afterFinishInternal: function(effect) { - new Effect.Move(effect.element, - { x: distance*2, y: 0, duration: split*2, afterFinishInternal: function(effect) { - new Effect.Move(effect.element, - { x: -distance*2, y: 0, duration: split*2, afterFinishInternal: function(effect) { - new Effect.Move(effect.element, - { x: distance*2, y: 0, duration: split*2, afterFinishInternal: function(effect) { - new Effect.Move(effect.element, - { x: -distance, y: 0, duration: split, afterFinishInternal: function(effect) { - effect.element.undoPositioned().setStyle(oldStyle); - }}); }}); }}); }}); }}); }}); -}; - -Effect.SlideDown = function(element) { - element = $(element).cleanWhitespace(); - // SlideDown need to have the content of the element wrapped in a container element with fixed height! - var oldInnerBottom = element.down().getStyle('bottom'); - var elementDimensions = element.getDimensions(); - return new Effect.Scale(element, 100, Object.extend({ - scaleContent: false, - scaleX: false, - scaleFrom: window.opera ? 0 : 1, - scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width}, - restoreAfterFinish: true, - afterSetup: function(effect) { - effect.element.makePositioned(); - effect.element.down().makePositioned(); - if (window.opera) effect.element.setStyle({top: ''}); - effect.element.makeClipping().setStyle({height: '0px'}).show(); - }, - afterUpdateInternal: function(effect) { - effect.element.down().setStyle({bottom: - (effect.dims[0] - effect.element.clientHeight) + 'px' }); - }, - afterFinishInternal: function(effect) { - effect.element.undoClipping().undoPositioned(); - effect.element.down().undoPositioned().setStyle({bottom: oldInnerBottom}); } - }, arguments[1] || { }) - ); -}; - -Effect.SlideUp = function(element) { - element = $(element).cleanWhitespace(); - var oldInnerBottom = element.down().getStyle('bottom'); - var elementDimensions = element.getDimensions(); - return new Effect.Scale(element, window.opera ? 0 : 1, - Object.extend({ scaleContent: false, - scaleX: false, - scaleMode: 'box', - scaleFrom: 100, - scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width}, - restoreAfterFinish: true, - afterSetup: function(effect) { - effect.element.makePositioned(); - effect.element.down().makePositioned(); - if (window.opera) effect.element.setStyle({top: ''}); - effect.element.makeClipping().show(); - }, - afterUpdateInternal: function(effect) { - effect.element.down().setStyle({bottom: - (effect.dims[0] - effect.element.clientHeight) + 'px' }); - }, - afterFinishInternal: function(effect) { - effect.element.hide().undoClipping().undoPositioned(); - effect.element.down().undoPositioned().setStyle({bottom: oldInnerBottom}); - } - }, arguments[1] || { }) - ); -}; - -// Bug in opera makes the TD containing this element expand for a instance after finish -Effect.Squish = function(element) { - return new Effect.Scale(element, window.opera ? 1 : 0, { - restoreAfterFinish: true, - beforeSetup: function(effect) { - effect.element.makeClipping(); - }, - afterFinishInternal: function(effect) { - effect.element.hide().undoClipping(); - } - }); -}; - -Effect.Grow = function(element) { - element = $(element); - var options = Object.extend({ - direction: 'center', - moveTransition: Effect.Transitions.sinoidal, - scaleTransition: Effect.Transitions.sinoidal, - opacityTransition: Effect.Transitions.full - }, arguments[1] || { }); - var oldStyle = { - top: element.style.top, - left: element.style.left, - height: element.style.height, - width: element.style.width, - opacity: element.getInlineOpacity() }; - - var dims = element.getDimensions(); - var initialMoveX, initialMoveY; - var moveX, moveY; - - switch (options.direction) { - case 'top-left': - initialMoveX = initialMoveY = moveX = moveY = 0; - break; - case 'top-right': - initialMoveX = dims.width; - initialMoveY = moveY = 0; - moveX = -dims.width; - break; - case 'bottom-left': - initialMoveX = moveX = 0; - initialMoveY = dims.height; - moveY = -dims.height; - break; - case 'bottom-right': - initialMoveX = dims.width; - initialMoveY = dims.height; - moveX = -dims.width; - moveY = -dims.height; - break; - case 'center': - initialMoveX = dims.width / 2; - initialMoveY = dims.height / 2; - moveX = -dims.width / 2; - moveY = -dims.height / 2; - break; - } - - return new Effect.Move(element, { - x: initialMoveX, - y: initialMoveY, - duration: 0.01, - beforeSetup: function(effect) { - effect.element.hide().makeClipping().makePositioned(); - }, - afterFinishInternal: function(effect) { - new Effect.Parallel( - [ new Effect.Opacity(effect.element, { sync: true, to: 1.0, from: 0.0, transition: options.opacityTransition }), - new Effect.Move(effect.element, { x: moveX, y: moveY, sync: true, transition: options.moveTransition }), - new Effect.Scale(effect.element, 100, { - scaleMode: { originalHeight: dims.height, originalWidth: dims.width }, - sync: true, scaleFrom: window.opera ? 1 : 0, transition: options.scaleTransition, restoreAfterFinish: true}) - ], Object.extend({ - beforeSetup: function(effect) { - effect.effects[0].element.setStyle({height: '0px'}).show(); - }, - afterFinishInternal: function(effect) { - effect.effects[0].element.undoClipping().undoPositioned().setStyle(oldStyle); - } - }, options) - ); - } - }); -}; - -Effect.Shrink = function(element) { - element = $(element); - var options = Object.extend({ - direction: 'center', - moveTransition: Effect.Transitions.sinoidal, - scaleTransition: Effect.Transitions.sinoidal, - opacityTransition: Effect.Transitions.none - }, arguments[1] || { }); - var oldStyle = { - top: element.style.top, - left: element.style.left, - height: element.style.height, - width: element.style.width, - opacity: element.getInlineOpacity() }; - - var dims = element.getDimensions(); - var moveX, moveY; - - switch (options.direction) { - case 'top-left': - moveX = moveY = 0; - break; - case 'top-right': - moveX = dims.width; - moveY = 0; - break; - case 'bottom-left': - moveX = 0; - moveY = dims.height; - break; - case 'bottom-right': - moveX = dims.width; - moveY = dims.height; - break; - case 'center': - moveX = dims.width / 2; - moveY = dims.height / 2; - break; - } - - return new Effect.Parallel( - [ new Effect.Opacity(element, { sync: true, to: 0.0, from: 1.0, transition: options.opacityTransition }), - new Effect.Scale(element, window.opera ? 1 : 0, { sync: true, transition: options.scaleTransition, restoreAfterFinish: true}), - new Effect.Move(element, { x: moveX, y: moveY, sync: true, transition: options.moveTransition }) - ], Object.extend({ - beforeStartInternal: function(effect) { - effect.effects[0].element.makePositioned().makeClipping(); - }, - afterFinishInternal: function(effect) { - effect.effects[0].element.hide().undoClipping().undoPositioned().setStyle(oldStyle); } - }, options) - ); -}; - -Effect.Pulsate = function(element) { - element = $(element); - var options = arguments[1] || { }, - oldOpacity = element.getInlineOpacity(), - transition = options.transition || Effect.Transitions.linear, - reverser = function(pos){ - return 1 - transition((-Math.cos((pos*(options.pulses||5)*2)*Math.PI)/2) + .5); - }; - - return new Effect.Opacity(element, - Object.extend(Object.extend({ duration: 2.0, from: 0, - afterFinishInternal: function(effect) { effect.element.setStyle({opacity: oldOpacity}); } - }, options), {transition: reverser})); -}; - -Effect.Fold = function(element) { - element = $(element); - var oldStyle = { - top: element.style.top, - left: element.style.left, - width: element.style.width, - height: element.style.height }; - element.makeClipping(); - return new Effect.Scale(element, 5, Object.extend({ - scaleContent: false, - scaleX: false, - afterFinishInternal: function(effect) { - new Effect.Scale(element, 1, { - scaleContent: false, - scaleY: false, - afterFinishInternal: function(effect) { - effect.element.hide().undoClipping().setStyle(oldStyle); - } }); - }}, arguments[1] || { })); -}; - -Effect.Morph = Class.create(Effect.Base, { - initialize: function(element) { - this.element = $(element); - if (!this.element) throw(Effect._elementDoesNotExistError); - var options = Object.extend({ - style: { } - }, arguments[1] || { }); - - if (!Object.isString(options.style)) this.style = $H(options.style); - else { - if (options.style.include(':')) - this.style = options.style.parseStyle(); - else { - this.element.addClassName(options.style); - this.style = $H(this.element.getStyles()); - this.element.removeClassName(options.style); - var css = this.element.getStyles(); - this.style = this.style.reject(function(style) { - return style.value == css[style.key]; - }); - options.afterFinishInternal = function(effect) { - effect.element.addClassName(effect.options.style); - effect.transforms.each(function(transform) { - effect.element.style[transform.style] = ''; - }); - }; - } - } - this.start(options); - }, - - setup: function(){ - function parseColor(color){ - if (!color || ['rgba(0, 0, 0, 0)','transparent'].include(color)) color = '#ffffff'; - color = color.parseColor(); - return $R(0,2).map(function(i){ - return parseInt( color.slice(i*2+1,i*2+3), 16 ); - }); - } - this.transforms = this.style.map(function(pair){ - var property = pair[0], value = pair[1], unit = null; - - if (value.parseColor('#zzzzzz') != '#zzzzzz') { - value = value.parseColor(); - unit = 'color'; - } else if (property == 'opacity') { - value = parseFloat(value); - if (Prototype.Browser.IE && (!this.element.currentStyle.hasLayout)) - this.element.setStyle({zoom: 1}); - } else if (Element.CSS_LENGTH.test(value)) { - var components = value.match(/^([\+\-]?[0-9\.]+)(.*)$/); - value = parseFloat(components[1]); - unit = (components.length == 3) ? components[2] : null; - } - - var originalValue = this.element.getStyle(property); - return { - style: property.camelize(), - originalValue: unit=='color' ? parseColor(originalValue) : parseFloat(originalValue || 0), - targetValue: unit=='color' ? parseColor(value) : value, - unit: unit - }; - }.bind(this)).reject(function(transform){ - return ( - (transform.originalValue == transform.targetValue) || - ( - transform.unit != 'color' && - (isNaN(transform.originalValue) || isNaN(transform.targetValue)) - ) - ); - }); - }, - update: function(position) { - var style = { }, transform, i = this.transforms.length; - while(i--) - style[(transform = this.transforms[i]).style] = - transform.unit=='color' ? '#'+ - (Math.round(transform.originalValue[0]+ - (transform.targetValue[0]-transform.originalValue[0])*position)).toColorPart() + - (Math.round(transform.originalValue[1]+ - (transform.targetValue[1]-transform.originalValue[1])*position)).toColorPart() + - (Math.round(transform.originalValue[2]+ - (transform.targetValue[2]-transform.originalValue[2])*position)).toColorPart() : - (transform.originalValue + - (transform.targetValue - transform.originalValue) * position).toFixed(3) + - (transform.unit === null ? '' : transform.unit); - this.element.setStyle(style, true); - } -}); - -Effect.Transform = Class.create({ - initialize: function(tracks){ - this.tracks = []; - this.options = arguments[1] || { }; - this.addTracks(tracks); - }, - addTracks: function(tracks){ - tracks.each(function(track){ - track = $H(track); - var data = track.values().first(); - this.tracks.push($H({ - ids: track.keys().first(), - effect: Effect.Morph, - options: { style: data } - })); - }.bind(this)); - return this; - }, - play: function(){ - return new Effect.Parallel( - this.tracks.map(function(track){ - var ids = track.get('ids'), effect = track.get('effect'), options = track.get('options'); - var elements = [$(ids) || $$(ids)].flatten(); - return elements.map(function(e){ return new effect(e, Object.extend({ sync:true }, options)) }); - }).flatten(), - this.options - ); - } -}); - -Element.CSS_PROPERTIES = $w( - 'backgroundColor backgroundPosition borderBottomColor borderBottomStyle ' + - 'borderBottomWidth borderLeftColor borderLeftStyle borderLeftWidth ' + - 'borderRightColor borderRightStyle borderRightWidth borderSpacing ' + - 'borderTopColor borderTopStyle borderTopWidth bottom clip color ' + - 'fontSize fontWeight height left letterSpacing lineHeight ' + - 'marginBottom marginLeft marginRight marginTop markerOffset maxHeight '+ - 'maxWidth minHeight minWidth opacity outlineColor outlineOffset ' + - 'outlineWidth paddingBottom paddingLeft paddingRight paddingTop ' + - 'right textIndent top width wordSpacing zIndex'); - -Element.CSS_LENGTH = /^(([\+\-]?[0-9\.]+)(em|ex|px|in|cm|mm|pt|pc|\%))|0$/; - -String.__parseStyleElement = document.createElement('div'); -String.prototype.parseStyle = function(){ - var style, styleRules = $H(); - if (Prototype.Browser.WebKit) - style = new Element('div',{style:this}).style; - else { - String.__parseStyleElement.innerHTML = '
    '; - style = String.__parseStyleElement.childNodes[0].style; - } - - Element.CSS_PROPERTIES.each(function(property){ - if (style[property]) styleRules.set(property, style[property]); - }); - - if (Prototype.Browser.IE && this.include('opacity')) - styleRules.set('opacity', this.match(/opacity:\s*((?:0|1)?(?:\.\d*)?)/)[1]); - - return styleRules; -}; - -if (document.defaultView && document.defaultView.getComputedStyle) { - Element.getStyles = function(element) { - var css = document.defaultView.getComputedStyle($(element), null); - return Element.CSS_PROPERTIES.inject({ }, function(styles, property) { - styles[property] = css[property]; - return styles; - }); - }; -} else { - Element.getStyles = function(element) { - element = $(element); - var css = element.currentStyle, styles; - styles = Element.CSS_PROPERTIES.inject({ }, function(results, property) { - results[property] = css[property]; - return results; - }); - if (!styles.opacity) styles.opacity = element.getOpacity(); - return styles; - }; -} - -Effect.Methods = { - morph: function(element, style) { - element = $(element); - new Effect.Morph(element, Object.extend({ style: style }, arguments[2] || { })); - return element; - }, - visualEffect: function(element, effect, options) { - element = $(element); - var s = effect.dasherize().camelize(), klass = s.charAt(0).toUpperCase() + s.substring(1); - new Effect[klass](element, options); - return element; - }, - highlight: function(element, options) { - element = $(element); - new Effect.Highlight(element, options); - return element; - } -}; - -$w('fade appear grow shrink fold blindUp blindDown slideUp slideDown '+ - 'pulsate shake puff squish switchOff dropOut').each( - function(effect) { - Effect.Methods[effect] = function(element, options){ - element = $(element); - Effect[effect.charAt(0).toUpperCase() + effect.substring(1)](element, options); - return element; - }; - } -); - -$w('getInlineOpacity forceRerendering setContentZoom collectTextNodes collectTextNodesIgnoreClass getStyles').each( - function(f) { Effect.Methods[f] = Element[f]; } -); - -Element.addMethods(Effect.Methods); \ No newline at end of file diff --git a/specialpurpose/ofbizwebsite/webapp/ofbiz/script/search.js b/specialpurpose/ofbizwebsite/webapp/ofbiz/script/search.js index 5d45d303da..544716d427 100644 --- a/specialpurpose/ofbizwebsite/webapp/ofbiz/script/search.js +++ b/specialpurpose/ofbizwebsite/webapp/ofbiz/script/search.js @@ -17,24 +17,17 @@ * under the License. */ -function initSearch(){ - var methods = { - defaultValueActsAsHint: function(element){ - element = $(element); - element._default = element.value; - return element.observe('focus', function(){ - if(element._default != element.value) return; - element.removeClassName('hint').value = ''; - }).observe('blur', function(){ - if(element.value.strip() != '') return; - element.addClassName('hint').value = element._default; - }).addClassName('hint'); +jQuery(document).ready(function () { + var jOsearchDocs = jQuery('#searchDocs'); + var _default = jOsearchDocs.val(); + + jOsearchDocs.focus(function() { + if (jOsearchDocs.val() != "") { + jOsearchDocs.val("").removeClass("hint"); } - }; - $w('input textarea').each(function(tag){ Element.addMethods(tag, methods) }); -} -initSearch(); - -document.observe('dom:loaded', function(){ - $('searchDocs').defaultValueActsAsHint(); + }).blur(function() { + if (jOsearchDocs.val() == "") { + jOsearchDocs.val(_default).addClass("hint"); + } + }); }); \ No newline at end of file diff --git a/specialpurpose/ofbizwebsite/webapp/ofbiz/script/slides.js b/specialpurpose/ofbizwebsite/webapp/ofbiz/script/slides.js deleted file mode 100644 index 64f03e8446..0000000000 --- a/specialpurpose/ofbizwebsite/webapp/ofbiz/script/slides.js +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -var Slides = Class.create({ - - initialize: function(element, options) { - this.options = { - Duration: 1, - Delay: 10.0, - Random: true, - Slideshow:true, - Controls:true - } - Object.extend(this.options, options || {}); - - this.element = $(element); - this.slides = this.element.childElements(); - this.num_slides = this.slides.length; - this.current_slide = (this.options.Random) ? (Math.floor(Math.random()*this.num_slides)) : 0; - this.end_slide = this.num_slides - 1; - - this.slides.invoke('hide'); - this.slides[this.current_slide].show(); - - if (this.options.Slideshow) { - this.startSlideshow(); - } - if (this.options.Controls) { - this.addControls(); - } - }, - - addControls: function() { - this.btn_previous = $('previous'); - this.btn_next = $('next'); - this.btn_start = $('start'); - this.btn_stop = $('stop'); - - this.btn_previous.observe('click', this.moveToPrevious.bindAsEventListener(this)); - this.btn_next.observe('click', this.moveToNext.bindAsEventListener(this)); - this.btn_start.observe('click', this.startSlideshow.bindAsEventListener(this)); - this.btn_stop.observe('click', this.stopSlideshow.bindAsEventListener(this)); - }, - - startSlideshow: function(event) { - if (event) { Event.stop(event); } - if (!this.running) { - this.fadeStartBtn(); - this.executer = new PeriodicalExecuter(function(){ - this.updateSlide(this.current_slide+1); - }.bind(this),this.options.Delay); - this.running=true; - } - - }, - - fadeStartBtn: function() { - var startBtn = $('start'); - var stopBtn = $('stop'); - Effect.Fade(startBtn, { duration: 0.3 }), - Effect.Appear(stopBtn, { duration: 0.3 }) - }, - - stopSlideshow: function(event) { - if (event) { Event.stop(event); } - if (this.executer) { - this.fadeStopBtn(); - this.executer.stop(); - this.running=false; - } - }, - - fadeStopBtn: function() { - var startBtn = $('start'); - var stopBtn = $('stop'); - Effect.Fade(stopBtn, { duration: 0.3 }), - Effect.Appear(startBtn, { duration: 0.3 }) - }, - - moveToPrevious: function (event) { - if (event) { Event.stop(event); } - //this.stopSlideshow(); - this.updateSlide(this.current_slide-1); - }, - - moveToNext: function (event) { - if (event) { Event.stop(event); } - //this.stopSlideshow(); - this.updateSlide(this.current_slide+1); - }, - - updateSlide: function(next_slide) { - if (next_slide > this.end_slide) { - next_slide = 0; - } - else if ( next_slide == -1 ) { - next_slide = this.end_slide; - } - - this.fadeInOut(next_slide, this.current_slide); - }, - - fadeInOut: function (next, current) { - new Effect.Parallel([ - new Effect.Fade(this.slides[current], { sync: true }), - new Effect.Appear(this.slides[next], { sync: true }) - ], { duration: this.options.Duration }); - - this.current_slide = next; - } - -}); \ No newline at end of file diff --git a/specialpurpose/projectmgr/webapp/projectmgr/project/edittaskandassoc.ftl b/specialpurpose/projectmgr/webapp/projectmgr/project/edittaskandassoc.ftl index 5b18fd8e89..18024278f9 100644 --- a/specialpurpose/projectmgr/webapp/projectmgr/project/edittaskandassoc.ftl +++ b/specialpurpose/projectmgr/webapp/projectmgr/project/edittaskandassoc.ftl @@ -168,44 +168,43 @@ under the License.
    ${uiLabelMap.WorkEffortEstimatedStartDate} <#if task?exists> - + <@htmlTemplate.renderDateTimeField name="estimatedStartDate" className="" event="" action="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${task.estimatedStartDate?if_exists}" size="25" maxlength="30" id="estimatedStartDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> <#else> - + <@htmlTemplate.renderDateTimeField name="estimatedStartDate" className="" event="" action="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="" size="25" maxlength="30" id="estimatedStartDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> - Calendar
    ${uiLabelMap.WorkEffortEstimatedCompletionDate} <#if task?exists> - + <@htmlTemplate.renderDateTimeField name="estimatedCompletionDate" className="" event="" action="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${task.estimatedCompletionDate?if_exists}" size="25" maxlength="30" id="estimatedCompletionDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> <#else> - + <@htmlTemplate.renderDateTimeField name="estimatedCompletionDate" className="" event="" action="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="" size="25" maxlength="30" id="estimatedCompletionDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> - Calendar
    ${uiLabelMap.FormFieldTitle_actualStartDate} + + <#if task?exists> - + <@htmlTemplate.renderDateTimeField name="actualStartDate" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${task.actualStartDate?if_exists}" size="25" maxlength="30" id="actualStartDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> <#else> - + <@htmlTemplate.renderDateTimeField name="actualStartDate" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="" size="25" maxlength="30" id="actualStartDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> - Calendar
    ${uiLabelMap.FormFieldTitle_actualCompletionDate} + <#if task?exists> - + <@htmlTemplate.renderDateTimeField name="actualCompletionDate" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${task.actualCompletionDate?if_exists}" size="25" maxlength="30" id="actualCompletionDate2" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> <#else> - + <@htmlTemplate.renderDateTimeField name="actualCompletionDate" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="" size="25" maxlength="30" id="actualCompletionDate2" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> - Calendar
    ${workEffortSurveyAppl.surveyId?if_exists} - ${survey.surveyName?if_exists} ${workEffortSurveyAppl.fromDate?if_exists} - readonly="readonly" /> - Calendar + <@htmlTemplate.renderDateTimeField name="thruDate" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${(workEffortSurveyAppl.thruDate)?if_exists}" size="25" maxlength="30" id="thruDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> ${uiLabelMap.EcommerceTakeSurvey}