From b9ad279ad2d8d93dd501115a028783cf8fe7fcbd Mon Sep 17 00:00:00 2001
From: Adam Young
Date: Wed, 19 Jan 2011 12:26:14 -0500
Subject: rename static to ui
Directory rename
---
install/Makefile.am | 2 +-
install/conf/ipa.conf | 4 +-
install/configure.ac | 6 +-
install/static/FreeWay-Bold.otf | Bin 47524 -> 0 bytes
install/static/FreeWay.otf | Bin 38948 -> 0 bytes
install/static/Mainnav-background.png | Bin 180 -> 0 bytes
install/static/Mainnav-offtab.png | Bin 189 -> 0 bytes
install/static/Mainnav-ontab.png | Bin 146 -> 0 bytes
install/static/Mainnav-seperatorbars.png | Bin 122 -> 0 bytes
install/static/Makefile.am | 88 -
install/static/Subnav-background.png | Bin 141 -> 0 bytes
install/static/Subnav-offbutton.png | Bin 145 -> 0 bytes
install/static/Subnav-onbutton.png | Bin 173 -> 0 bytes
install/static/aci.js | 876 ---
install/static/add.js | 122 -
install/static/associate.js | 944 ---
install/static/caution.png | Bin 438 -> 0 bytes
install/static/certificate.js | 785 --
install/static/check.png | Bin 3209 -> 0 bytes
install/static/details.js | 897 ---
install/static/develop.js | 6 -
install/static/entity.js | 592 --
install/static/gray-fade-line.png | Bin 2826 -> 0 bytes
install/static/group.js | 201 -
install/static/hbacrule.js | 989 ---
install/static/hbacsvc.js | 118 -
install/static/hbacsvcgroup.js | 197 -
install/static/header.png | Bin 2839 -> 0 bytes
install/static/header_background.png | Bin 211 -> 0 bytes
install/static/header_logo.png | Bin 13311 -> 0 bytes
install/static/host.js | 494 --
install/static/hostgroup.js | 67 -
install/static/index.html | 66 -
install/static/ipa.css | 750 --
install/static/ipa.js | 490 --
install/static/ipa_logo_180x50.png | Bin 12071 -> 0 bytes
install/static/ipalogo.png | Bin 2492 -> 0 bytes
install/static/jquery-ui.css | 572 --
install/static/jquery-ui.js | 763 --
install/static/jquery.ba-bbq.js | 18 -
install/static/jquery.cookie.js | 96 -
install/static/jquery.js | 6240 ----------------
install/static/jsl.conf | 153 -
install/static/json2.js | 482 --
install/static/layouts/Makefile.am | 22 -
install/static/layouts/default/Makefile.am | 30 -
.../default/hbacrule-details-accesstime.html | 49 -
.../layouts/default/hbacrule-details-general.html | 57 -
.../layouts/default/hbacrule-details-host.html | 78 -
.../layouts/default/hbacrule-details-service.html | 78 -
.../default/hbacrule-details-sourcehost.html | 78 -
.../layouts/default/hbacrule-details-user.html | 78 -
.../layouts/default/sudorule-details-general.html | 49 -
.../layouts/default/sudorule-group-dialog.html | 110 -
.../layouts/default/sudorule-host-dialog.html | 110 -
.../layouts/default/sudorule-hostgroup-dialog.html | 110 -
.../layouts/default/sudorule-user-dialog.html | 110 -
install/static/modal-background.png | Bin 642 -> 0 bytes
install/static/navigation.js | 149 -
install/static/netgroup.js | 67 -
install/static/outer-bg.png | Bin 248 -> 0 bytes
install/static/panel-background.png | Bin 200 -> 0 bytes
install/static/policy.js | 599 --
install/static/rule.js | 174 -
install/static/search.js | 462 --
install/static/serverconfig.js | 43 -
install/static/service.js | 499 --
install/static/spinner_header.gif | Bin 2841 -> 0 bytes
install/static/spinner_large.gif | Bin 6030 -> 0 bytes
install/static/spinner_small.gif | Bin 3532 -> 0 bytes
install/static/sudocmd.js | 278 -
install/static/sudocmdgroup.js | 197 -
install/static/sudorule.js | 1127 ---
install/static/test/README | 1 -
install/static/test/aci_tests.html | 33 -
install/static/test/aci_tests.js | 81 -
install/static/test/all_tests.html | 36 -
install/static/test/association_tests.html | 23 -
install/static/test/association_tests.js | 127 -
install/static/test/certificate_tests.html | 26 -
install/static/test/certificate_tests.js | 81 -
install/static/test/data/aci_find.json | 63 -
.../static/test/data/automountlocation_find.json | 17 -
.../static/test/data/automountlocation_show.json | 14 -
install/static/test/data/cert_remove_hold.json | 9 -
install/static/test/data/cert_request.json | 17 -
install/static/test/data/cert_revoke.json | 9 -
install/static/test/data/cert_show.json | 16 -
install/static/test/data/config_show.json | 99 -
install/static/test/data/delegation_find.json | 35 -
install/static/test/data/delegation_list.json | 35 -
install/static/test/data/delegation_mod.json | 21 -
install/static/test/data/delegation_show.json | 20 -
install/static/test/data/dns_find.json | 101 -
install/static/test/data/dns_find_rr.json | 110 -
install/static/test/data/dns_show.json | 38 -
install/static/test/data/dnsrecord_add.json | 21 -
install/static/test/data/dnsrecord_del.json | 10 -
install/static/test/data/dnsrecord_find.json | 110 -
install/static/test/data/dnszone_add.json | 46 -
install/static/test/data/dnszone_find.json | 137 -
install/static/test/data/dnszone_show.json | 90 -
install/static/test/data/group_add.json | 31 -
install/static/test/data/group_add_member.json | 25 -
install/static/test/data/group_find.json | 75 -
install/static/test/data/group_member_user.json | 149 -
install/static/test/data/group_remove_member.json | 44 -
install/static/test/data/group_show.json | 38 -
install/static/test/data/hbacrule_add.json | 27 -
.../static/test/data/hbacrule_add_accesstime.json | 7 -
install/static/test/data/hbacrule_add_host.json | 56 -
install/static/test/data/hbacrule_add_service.json | 56 -
.../static/test/data/hbacrule_add_sourcehost.json | 56 -
install/static/test/data/hbacrule_add_user.json | 56 -
install/static/test/data/hbacrule_del.json | 9 -
install/static/test/data/hbacrule_find.json | 54 -
install/static/test/data/hbacrule_mod.json | 60 -
.../test/data/hbacrule_remove_accesstime.json | 7 -
install/static/test/data/hbacrule_remove_host.json | 50 -
.../static/test/data/hbacrule_remove_service.json | 49 -
.../test/data/hbacrule_remove_sourcehost.json | 50 -
install/static/test/data/hbacrule_remove_user.json | 48 -
install/static/test/data/hbacrule_show.json | 76 -
install/static/test/data/hbacsvc_add.json | 24 -
install/static/test/data/hbacsvc_del.json | 9 -
install/static/test/data/hbacsvc_find.json | 101 -
install/static/test/data/hbacsvc_mod.json | 31 -
install/static/test/data/hbacsvc_show.json | 35 -
install/static/test/data/hbacsvcgroup_add.json | 26 -
.../static/test/data/hbacsvcgroup_add_member.json | 24 -
install/static/test/data/hbacsvcgroup_del.json | 9 -
install/static/test/data/hbacsvcgroup_find.json | 24 -
.../test/data/hbacsvcgroup_member_hbacsvc.json | 57 -
install/static/test/data/hbacsvcgroup_mod.json | 39 -
.../test/data/hbacsvcgroup_remove_member.json | 21 -
install/static/test/data/hbacsvcgroup_show.json | 46 -
install/static/test/data/host_add.json | 40 -
.../test/data/host_disable_dev.example.com.json | 9 -
install/static/test/data/host_find.json | 91 -
install/static/test/data/host_mod.json | 75 -
install/static/test/data/host_show.json | 80 -
.../test/data/host_show_dev.example.com.json | 98 -
.../test/data/host_show_test.example.com.json | 80 -
install/static/test/data/hostgroup_add.json | 27 -
install/static/test/data/hostgroup_add_member.json | 37 -
install/static/test/data/hostgroup_find.json | 33 -
.../static/test/data/hostgroup_member_host.json | 70 -
install/static/test/data/hostgroup_show.json | 22 -
install/static/test/data/i18n_messages.json | 37 -
install/static/test/data/ipa_init.json | 7884 --------------------
install/static/test/data/json_metadata.json | 4097 ----------
install/static/test/data/krbtpolicy_show.json | 78 -
install/static/test/data/netgroup_add.json | 28 -
install/static/test/data/netgroup_add_member.json | 40 -
install/static/test/data/netgroup_find.json | 56 -
install/static/test/data/netgroup_show.json | 38 -
install/static/test/data/permission_add.json | 26 -
install/static/test/data/permission_del | 9 -
install/static/test/data/permission_find.json | 887 ---
install/static/test/data/permission_show.json | 41 -
install/static/test/data/privilege_find.json | 215 -
install/static/test/data/privilege_show.json | 39 -
install/static/test/data/pwpolicy_find.json | 72 -
install/static/test/data/pwpolicy_mod.json | 56 -
install/static/test/data/pwpolicy_show.json | 57 -
install/static/test/data/role_find.json | 20 -
install/static/test/data/role_show.json | 36 -
install/static/test/data/rolegroup_add.json | 22 -
install/static/test/data/rolegroup_add_member.json | 27 -
install/static/test/data/rolegroup_del.json | 9 -
install/static/test/data/rolegroup_find.json | 185 -
.../static/test/data/rolegroup_remove_member.json | 24 -
install/static/test/data/rolegroup_show.json | 20 -
install/static/test/data/selfservice_find.json | 24 -
install/static/test/data/selfservice_show.json | 21 -
install/static/test/data/service_add.json | 29 -
install/static/test/data/service_add_host.json | 21 -
install/static/test/data/service_del.json | 9 -
install/static/test/data/service_disable.json | 9 -
install/static/test/data/service_find.json | 48 -
.../static/test/data/service_managedby_host.json | 110 -
install/static/test/data/service_mod.json | 21 -
install/static/test/data/service_remove_host.sh | 18 -
install/static/test/data/service_show.json | 74 -
install/static/test/data/sudocmd_add.json | 21 -
install/static/test/data/sudocmd_del.json | 9 -
install/static/test/data/sudocmd_find.json | 23 -
install/static/test/data/sudocmd_memberof_add.json | 53 -
.../static/test/data/sudocmd_memberof_remove.json | 50 -
.../static/test/data/sudocmd_memberof_show.json | 61 -
install/static/test/data/sudocmd_mod.json | 31 -
install/static/test/data/sudocmd_show.json | 33 -
install/static/test/data/sudocmdgroup_add.json | 26 -
.../static/test/data/sudocmdgroup_add_member.json | 26 -
install/static/test/data/sudocmdgroup_del.json | 9 -
install/static/test/data/sudocmdgroup_find.json | 33 -
.../test/data/sudocmdgroup_member_sudocmd.json | 57 -
install/static/test/data/sudocmdgroup_mod.json | 39 -
.../test/data/sudocmdgroup_remove_member.json | 22 -
install/static/test/data/sudocmdgroup_show.json | 44 -
install/static/test/data/sudorule_add.json | 24 -
install/static/test/data/sudorule_del.json | 9 -
install/static/test/data/sudorule_find.json | 17 -
install/static/test/data/sudorule_mod.json | 51 -
install/static/test/data/sudorule_show.json | 84 -
install/static/test/data/taskgroup_find.json | 554 --
install/static/test/data/user_add.json | 49 -
install/static/test/data/user_disable.json | 9 -
install/static/test/data/user_enable.json | 9 -
install/static/test/data/user_find.json | 243 -
install/static/test/data/user_memberof_group.json | 64 -
install/static/test/data/user_mod.json | 162 -
install/static/test/data/user_show.json | 163 -
install/static/test/data/whoami.json | 7 -
install/static/test/details_tests.html | 25 -
install/static/test/details_tests.js | 327 -
install/static/test/entity_tests.html | 27 -
install/static/test/entity_tests.js | 171 -
install/static/test/index.html | 43 -
install/static/test/ipa_tests.html | 23 -
install/static/test/ipa_tests.js | 297 -
install/static/test/navigation_tests.html | 23 -
install/static/test/navigation_tests.js | 163 -
install/static/test/qunit.css | 155 -
install/static/test/qunit.js | 1261 ----
install/static/ui-bg_flat_65_ffffff_40x100.png | Bin 178 -> 0 bytes
install/static/ui-bg_glass_40_111111_1x400.png | Bin 124 -> 0 bytes
install/static/ui-bg_glass_55_1c1c1c_1x400.png | Bin 171 -> 0 bytes
.../ui-bg_highlight-hard_100_f9f9f9_1x100.png | Bin 86 -> 0 bytes
.../ui-bg_highlight-hard_40_aaaaaa_1x100.png | Bin 100 -> 0 bytes
.../ui-bg_highlight-soft_50_aaaaaa_1x100.png | Bin 102 -> 0 bytes
.../static/ui-bg_inset-hard_45_cd0a0a_1x100.png | Bin 123 -> 0 bytes
.../static/ui-bg_inset-hard_55_ffeb80_1x100.png | Bin 113 -> 0 bytes
install/static/ui-bg_loop_8_333333_21x21.png | Bin 281 -> 0 bytes
install/static/ui-icons_222222_256x240.png | Bin 4369 -> 0 bytes
install/static/ui-icons_4ca300_256x240.png | Bin 4369 -> 0 bytes
install/static/ui-icons_bbbbbb_256x240.png | Bin 4369 -> 0 bytes
install/static/ui-icons_ededed_256x240.png | Bin 5355 -> 0 bytes
install/static/ui-icons_ffcf29_256x240.png | Bin 4369 -> 0 bytes
install/static/ui-icons_ffffff_256x240.png | Bin 4369 -> 0 bytes
install/static/user.js | 298 -
install/static/webui.js | 172 -
install/static/widget.js | 1319 ----
install/ui/FreeWay-Bold.otf | Bin 0 -> 47524 bytes
install/ui/FreeWay.otf | Bin 0 -> 38948 bytes
install/ui/Mainnav-background.png | Bin 0 -> 180 bytes
install/ui/Mainnav-offtab.png | Bin 0 -> 189 bytes
install/ui/Mainnav-ontab.png | Bin 0 -> 146 bytes
install/ui/Mainnav-seperatorbars.png | Bin 0 -> 122 bytes
install/ui/Makefile.am | 88 +
install/ui/Subnav-background.png | Bin 0 -> 141 bytes
install/ui/Subnav-offbutton.png | Bin 0 -> 145 bytes
install/ui/Subnav-onbutton.png | Bin 0 -> 173 bytes
install/ui/aci.js | 876 +++
install/ui/add.js | 122 +
install/ui/associate.js | 944 +++
install/ui/caution.png | Bin 0 -> 438 bytes
install/ui/certificate.js | 785 ++
install/ui/check.png | Bin 0 -> 3209 bytes
install/ui/details.js | 897 +++
install/ui/develop.js | 6 +
install/ui/entity.js | 592 ++
install/ui/gray-fade-line.png | Bin 0 -> 2826 bytes
install/ui/group.js | 201 +
install/ui/hbacrule.js | 989 +++
install/ui/hbacsvc.js | 118 +
install/ui/hbacsvcgroup.js | 197 +
install/ui/header.png | Bin 0 -> 2839 bytes
install/ui/header_background.png | Bin 0 -> 211 bytes
install/ui/header_logo.png | Bin 0 -> 13311 bytes
install/ui/host.js | 494 ++
install/ui/hostgroup.js | 67 +
install/ui/index.html | 66 +
install/ui/ipa.css | 750 ++
install/ui/ipa.js | 490 ++
install/ui/ipa_logo_180x50.png | Bin 0 -> 12071 bytes
install/ui/ipalogo.png | Bin 0 -> 2492 bytes
install/ui/jquery-ui.css | 572 ++
install/ui/jquery-ui.js | 763 ++
install/ui/jquery.ba-bbq.js | 18 +
install/ui/jquery.cookie.js | 96 +
install/ui/jquery.js | 6240 ++++++++++++++++
install/ui/jsl.conf | 153 +
install/ui/json2.js | 482 ++
install/ui/layouts/Makefile.am | 22 +
install/ui/layouts/default/Makefile.am | 30 +
.../default/hbacrule-details-accesstime.html | 49 +
.../layouts/default/hbacrule-details-general.html | 57 +
.../ui/layouts/default/hbacrule-details-host.html | 78 +
.../layouts/default/hbacrule-details-service.html | 78 +
.../default/hbacrule-details-sourcehost.html | 78 +
.../ui/layouts/default/hbacrule-details-user.html | 78 +
.../layouts/default/sudorule-details-general.html | 49 +
.../ui/layouts/default/sudorule-group-dialog.html | 110 +
.../ui/layouts/default/sudorule-host-dialog.html | 110 +
.../layouts/default/sudorule-hostgroup-dialog.html | 110 +
.../ui/layouts/default/sudorule-user-dialog.html | 110 +
install/ui/modal-background.png | Bin 0 -> 642 bytes
install/ui/navigation.js | 149 +
install/ui/netgroup.js | 67 +
install/ui/outer-bg.png | Bin 0 -> 248 bytes
install/ui/panel-background.png | Bin 0 -> 200 bytes
install/ui/policy.js | 599 ++
install/ui/rule.js | 174 +
install/ui/search.js | 462 ++
install/ui/serverconfig.js | 43 +
install/ui/service.js | 499 ++
install/ui/spinner_header.gif | Bin 0 -> 2841 bytes
install/ui/spinner_large.gif | Bin 0 -> 6030 bytes
install/ui/spinner_small.gif | Bin 0 -> 3532 bytes
install/ui/sudocmd.js | 278 +
install/ui/sudocmdgroup.js | 197 +
install/ui/sudorule.js | 1127 +++
install/ui/test/README | 1 +
install/ui/test/aci_tests.html | 33 +
install/ui/test/aci_tests.js | 81 +
install/ui/test/all_tests.html | 36 +
install/ui/test/association_tests.html | 23 +
install/ui/test/association_tests.js | 127 +
install/ui/test/certificate_tests.html | 26 +
install/ui/test/certificate_tests.js | 81 +
install/ui/test/data/aci_find.json | 63 +
install/ui/test/data/automountlocation_find.json | 17 +
install/ui/test/data/automountlocation_show.json | 14 +
install/ui/test/data/cert_remove_hold.json | 9 +
install/ui/test/data/cert_request.json | 17 +
install/ui/test/data/cert_revoke.json | 9 +
install/ui/test/data/cert_show.json | 16 +
install/ui/test/data/config_show.json | 99 +
install/ui/test/data/delegation_find.json | 35 +
install/ui/test/data/delegation_list.json | 35 +
install/ui/test/data/delegation_mod.json | 21 +
install/ui/test/data/delegation_show.json | 20 +
install/ui/test/data/dns_find.json | 101 +
install/ui/test/data/dns_find_rr.json | 110 +
install/ui/test/data/dns_show.json | 38 +
install/ui/test/data/dnsrecord_add.json | 21 +
install/ui/test/data/dnsrecord_del.json | 10 +
install/ui/test/data/dnsrecord_find.json | 110 +
install/ui/test/data/dnszone_add.json | 46 +
install/ui/test/data/dnszone_find.json | 137 +
install/ui/test/data/dnszone_show.json | 90 +
install/ui/test/data/group_add.json | 31 +
install/ui/test/data/group_add_member.json | 25 +
install/ui/test/data/group_find.json | 75 +
install/ui/test/data/group_member_user.json | 149 +
install/ui/test/data/group_remove_member.json | 44 +
install/ui/test/data/group_show.json | 38 +
install/ui/test/data/hbacrule_add.json | 27 +
install/ui/test/data/hbacrule_add_accesstime.json | 7 +
install/ui/test/data/hbacrule_add_host.json | 56 +
install/ui/test/data/hbacrule_add_service.json | 56 +
install/ui/test/data/hbacrule_add_sourcehost.json | 56 +
install/ui/test/data/hbacrule_add_user.json | 56 +
install/ui/test/data/hbacrule_del.json | 9 +
install/ui/test/data/hbacrule_find.json | 54 +
install/ui/test/data/hbacrule_mod.json | 60 +
.../ui/test/data/hbacrule_remove_accesstime.json | 7 +
install/ui/test/data/hbacrule_remove_host.json | 50 +
install/ui/test/data/hbacrule_remove_service.json | 49 +
.../ui/test/data/hbacrule_remove_sourcehost.json | 50 +
install/ui/test/data/hbacrule_remove_user.json | 48 +
install/ui/test/data/hbacrule_show.json | 76 +
install/ui/test/data/hbacsvc_add.json | 24 +
install/ui/test/data/hbacsvc_del.json | 9 +
install/ui/test/data/hbacsvc_find.json | 101 +
install/ui/test/data/hbacsvc_mod.json | 31 +
install/ui/test/data/hbacsvc_show.json | 35 +
install/ui/test/data/hbacsvcgroup_add.json | 26 +
install/ui/test/data/hbacsvcgroup_add_member.json | 24 +
install/ui/test/data/hbacsvcgroup_del.json | 9 +
install/ui/test/data/hbacsvcgroup_find.json | 24 +
.../ui/test/data/hbacsvcgroup_member_hbacsvc.json | 57 +
install/ui/test/data/hbacsvcgroup_mod.json | 39 +
.../ui/test/data/hbacsvcgroup_remove_member.json | 21 +
install/ui/test/data/hbacsvcgroup_show.json | 46 +
install/ui/test/data/host_add.json | 40 +
.../ui/test/data/host_disable_dev.example.com.json | 9 +
install/ui/test/data/host_find.json | 91 +
install/ui/test/data/host_mod.json | 75 +
install/ui/test/data/host_show.json | 80 +
.../ui/test/data/host_show_dev.example.com.json | 98 +
.../ui/test/data/host_show_test.example.com.json | 80 +
install/ui/test/data/hostgroup_add.json | 27 +
install/ui/test/data/hostgroup_add_member.json | 37 +
install/ui/test/data/hostgroup_find.json | 33 +
install/ui/test/data/hostgroup_member_host.json | 70 +
install/ui/test/data/hostgroup_show.json | 22 +
install/ui/test/data/i18n_messages.json | 37 +
install/ui/test/data/ipa_init.json | 7884 ++++++++++++++++++++
install/ui/test/data/json_metadata.json | 4097 ++++++++++
install/ui/test/data/krbtpolicy_show.json | 78 +
install/ui/test/data/netgroup_add.json | 28 +
install/ui/test/data/netgroup_add_member.json | 40 +
install/ui/test/data/netgroup_find.json | 56 +
install/ui/test/data/netgroup_show.json | 38 +
install/ui/test/data/permission_add.json | 26 +
install/ui/test/data/permission_del | 9 +
install/ui/test/data/permission_find.json | 887 +++
install/ui/test/data/permission_show.json | 41 +
install/ui/test/data/privilege_find.json | 215 +
install/ui/test/data/privilege_show.json | 39 +
install/ui/test/data/pwpolicy_find.json | 72 +
install/ui/test/data/pwpolicy_mod.json | 56 +
install/ui/test/data/pwpolicy_show.json | 57 +
install/ui/test/data/role_find.json | 20 +
install/ui/test/data/role_show.json | 36 +
install/ui/test/data/rolegroup_add.json | 22 +
install/ui/test/data/rolegroup_add_member.json | 27 +
install/ui/test/data/rolegroup_del.json | 9 +
install/ui/test/data/rolegroup_find.json | 185 +
install/ui/test/data/rolegroup_remove_member.json | 24 +
install/ui/test/data/rolegroup_show.json | 20 +
install/ui/test/data/selfservice_find.json | 24 +
install/ui/test/data/selfservice_show.json | 21 +
install/ui/test/data/service_add.json | 29 +
install/ui/test/data/service_add_host.json | 21 +
install/ui/test/data/service_del.json | 9 +
install/ui/test/data/service_disable.json | 9 +
install/ui/test/data/service_find.json | 48 +
install/ui/test/data/service_managedby_host.json | 110 +
install/ui/test/data/service_mod.json | 21 +
install/ui/test/data/service_remove_host.sh | 18 +
install/ui/test/data/service_show.json | 74 +
install/ui/test/data/sudocmd_add.json | 21 +
install/ui/test/data/sudocmd_del.json | 9 +
install/ui/test/data/sudocmd_find.json | 23 +
install/ui/test/data/sudocmd_memberof_add.json | 53 +
install/ui/test/data/sudocmd_memberof_remove.json | 50 +
install/ui/test/data/sudocmd_memberof_show.json | 61 +
install/ui/test/data/sudocmd_mod.json | 31 +
install/ui/test/data/sudocmd_show.json | 33 +
install/ui/test/data/sudocmdgroup_add.json | 26 +
install/ui/test/data/sudocmdgroup_add_member.json | 26 +
install/ui/test/data/sudocmdgroup_del.json | 9 +
install/ui/test/data/sudocmdgroup_find.json | 33 +
.../ui/test/data/sudocmdgroup_member_sudocmd.json | 57 +
install/ui/test/data/sudocmdgroup_mod.json | 39 +
.../ui/test/data/sudocmdgroup_remove_member.json | 22 +
install/ui/test/data/sudocmdgroup_show.json | 44 +
install/ui/test/data/sudorule_add.json | 24 +
install/ui/test/data/sudorule_del.json | 9 +
install/ui/test/data/sudorule_find.json | 17 +
install/ui/test/data/sudorule_mod.json | 51 +
install/ui/test/data/sudorule_show.json | 84 +
install/ui/test/data/taskgroup_find.json | 554 ++
install/ui/test/data/user_add.json | 49 +
install/ui/test/data/user_disable.json | 9 +
install/ui/test/data/user_enable.json | 9 +
install/ui/test/data/user_find.json | 243 +
install/ui/test/data/user_memberof_group.json | 64 +
install/ui/test/data/user_mod.json | 162 +
install/ui/test/data/user_show.json | 163 +
install/ui/test/data/whoami.json | 7 +
install/ui/test/details_tests.html | 25 +
install/ui/test/details_tests.js | 327 +
install/ui/test/entity_tests.html | 27 +
install/ui/test/entity_tests.js | 171 +
install/ui/test/index.html | 43 +
install/ui/test/ipa_tests.html | 23 +
install/ui/test/ipa_tests.js | 297 +
install/ui/test/navigation_tests.html | 23 +
install/ui/test/navigation_tests.js | 163 +
install/ui/test/qunit.css | 155 +
install/ui/test/qunit.js | 1261 ++++
install/ui/ui-bg_flat_65_ffffff_40x100.png | Bin 0 -> 178 bytes
install/ui/ui-bg_glass_40_111111_1x400.png | Bin 0 -> 124 bytes
install/ui/ui-bg_glass_55_1c1c1c_1x400.png | Bin 0 -> 171 bytes
.../ui/ui-bg_highlight-hard_100_f9f9f9_1x100.png | Bin 0 -> 86 bytes
.../ui/ui-bg_highlight-hard_40_aaaaaa_1x100.png | Bin 0 -> 100 bytes
.../ui/ui-bg_highlight-soft_50_aaaaaa_1x100.png | Bin 0 -> 102 bytes
install/ui/ui-bg_inset-hard_45_cd0a0a_1x100.png | Bin 0 -> 123 bytes
install/ui/ui-bg_inset-hard_55_ffeb80_1x100.png | Bin 0 -> 113 bytes
install/ui/ui-bg_loop_8_333333_21x21.png | Bin 0 -> 281 bytes
install/ui/ui-icons_222222_256x240.png | Bin 0 -> 4369 bytes
install/ui/ui-icons_4ca300_256x240.png | Bin 0 -> 4369 bytes
install/ui/ui-icons_bbbbbb_256x240.png | Bin 0 -> 4369 bytes
install/ui/ui-icons_ededed_256x240.png | Bin 0 -> 5355 bytes
install/ui/ui-icons_ffcf29_256x240.png | Bin 0 -> 4369 bytes
install/ui/ui-icons_ffffff_256x240.png | Bin 0 -> 4369 bytes
install/ui/user.js | 298 +
install/ui/webui.js | 172 +
install/ui/widget.js | 1319 ++++
ipa.spec.in | 24 +-
lite-server.py | 2 +-
485 files changed, 44811 insertions(+), 44807 deletions(-)
delete mode 100644 install/static/FreeWay-Bold.otf
delete mode 100644 install/static/FreeWay.otf
delete mode 100644 install/static/Mainnav-background.png
delete mode 100644 install/static/Mainnav-offtab.png
delete mode 100644 install/static/Mainnav-ontab.png
delete mode 100644 install/static/Mainnav-seperatorbars.png
delete mode 100644 install/static/Makefile.am
delete mode 100644 install/static/Subnav-background.png
delete mode 100644 install/static/Subnav-offbutton.png
delete mode 100644 install/static/Subnav-onbutton.png
delete mode 100644 install/static/aci.js
delete mode 100644 install/static/add.js
delete mode 100644 install/static/associate.js
delete mode 100755 install/static/caution.png
delete mode 100755 install/static/certificate.js
delete mode 100755 install/static/check.png
delete mode 100644 install/static/details.js
delete mode 100644 install/static/develop.js
delete mode 100644 install/static/entity.js
delete mode 100644 install/static/gray-fade-line.png
delete mode 100644 install/static/group.js
delete mode 100644 install/static/hbacrule.js
delete mode 100644 install/static/hbacsvc.js
delete mode 100644 install/static/hbacsvcgroup.js
delete mode 100644 install/static/header.png
delete mode 100644 install/static/header_background.png
delete mode 100644 install/static/header_logo.png
delete mode 100644 install/static/host.js
delete mode 100644 install/static/hostgroup.js
delete mode 100644 install/static/index.html
delete mode 100644 install/static/ipa.css
delete mode 100644 install/static/ipa.js
delete mode 100644 install/static/ipa_logo_180x50.png
delete mode 100644 install/static/ipalogo.png
delete mode 100644 install/static/jquery-ui.css
delete mode 100644 install/static/jquery-ui.js
delete mode 100644 install/static/jquery.ba-bbq.js
delete mode 100644 install/static/jquery.cookie.js
delete mode 100644 install/static/jquery.js
delete mode 100644 install/static/jsl.conf
delete mode 100644 install/static/json2.js
delete mode 100644 install/static/layouts/Makefile.am
delete mode 100644 install/static/layouts/default/Makefile.am
delete mode 100755 install/static/layouts/default/hbacrule-details-accesstime.html
delete mode 100755 install/static/layouts/default/hbacrule-details-general.html
delete mode 100755 install/static/layouts/default/hbacrule-details-host.html
delete mode 100755 install/static/layouts/default/hbacrule-details-service.html
delete mode 100755 install/static/layouts/default/hbacrule-details-sourcehost.html
delete mode 100755 install/static/layouts/default/hbacrule-details-user.html
delete mode 100755 install/static/layouts/default/sudorule-details-general.html
delete mode 100755 install/static/layouts/default/sudorule-group-dialog.html
delete mode 100755 install/static/layouts/default/sudorule-host-dialog.html
delete mode 100755 install/static/layouts/default/sudorule-hostgroup-dialog.html
delete mode 100755 install/static/layouts/default/sudorule-user-dialog.html
delete mode 100644 install/static/modal-background.png
delete mode 100644 install/static/navigation.js
delete mode 100644 install/static/netgroup.js
delete mode 100644 install/static/outer-bg.png
delete mode 100644 install/static/panel-background.png
delete mode 100644 install/static/policy.js
delete mode 100644 install/static/rule.js
delete mode 100644 install/static/search.js
delete mode 100644 install/static/serverconfig.js
delete mode 100644 install/static/service.js
delete mode 100644 install/static/spinner_header.gif
delete mode 100644 install/static/spinner_large.gif
delete mode 100644 install/static/spinner_small.gif
delete mode 100644 install/static/sudocmd.js
delete mode 100644 install/static/sudocmdgroup.js
delete mode 100644 install/static/sudorule.js
delete mode 100755 install/static/test/README
delete mode 100755 install/static/test/aci_tests.html
delete mode 100644 install/static/test/aci_tests.js
delete mode 100644 install/static/test/all_tests.html
delete mode 100644 install/static/test/association_tests.html
delete mode 100644 install/static/test/association_tests.js
delete mode 100755 install/static/test/certificate_tests.html
delete mode 100755 install/static/test/certificate_tests.js
delete mode 100644 install/static/test/data/aci_find.json
delete mode 100644 install/static/test/data/automountlocation_find.json
delete mode 100644 install/static/test/data/automountlocation_show.json
delete mode 100644 install/static/test/data/cert_remove_hold.json
delete mode 100644 install/static/test/data/cert_request.json
delete mode 100644 install/static/test/data/cert_revoke.json
delete mode 100644 install/static/test/data/cert_show.json
delete mode 100644 install/static/test/data/config_show.json
delete mode 100644 install/static/test/data/delegation_find.json
delete mode 100644 install/static/test/data/delegation_list.json
delete mode 100644 install/static/test/data/delegation_mod.json
delete mode 100644 install/static/test/data/delegation_show.json
delete mode 100644 install/static/test/data/dns_find.json
delete mode 100644 install/static/test/data/dns_find_rr.json
delete mode 100644 install/static/test/data/dns_show.json
delete mode 100644 install/static/test/data/dnsrecord_add.json
delete mode 100644 install/static/test/data/dnsrecord_del.json
delete mode 100644 install/static/test/data/dnsrecord_find.json
delete mode 100644 install/static/test/data/dnszone_add.json
delete mode 100644 install/static/test/data/dnszone_find.json
delete mode 100644 install/static/test/data/dnszone_show.json
delete mode 100644 install/static/test/data/group_add.json
delete mode 100644 install/static/test/data/group_add_member.json
delete mode 100644 install/static/test/data/group_find.json
delete mode 100644 install/static/test/data/group_member_user.json
delete mode 100644 install/static/test/data/group_remove_member.json
delete mode 100644 install/static/test/data/group_show.json
delete mode 100644 install/static/test/data/hbacrule_add.json
delete mode 100644 install/static/test/data/hbacrule_add_accesstime.json
delete mode 100644 install/static/test/data/hbacrule_add_host.json
delete mode 100644 install/static/test/data/hbacrule_add_service.json
delete mode 100644 install/static/test/data/hbacrule_add_sourcehost.json
delete mode 100644 install/static/test/data/hbacrule_add_user.json
delete mode 100644 install/static/test/data/hbacrule_del.json
delete mode 100644 install/static/test/data/hbacrule_find.json
delete mode 100644 install/static/test/data/hbacrule_mod.json
delete mode 100644 install/static/test/data/hbacrule_remove_accesstime.json
delete mode 100644 install/static/test/data/hbacrule_remove_host.json
delete mode 100644 install/static/test/data/hbacrule_remove_service.json
delete mode 100644 install/static/test/data/hbacrule_remove_sourcehost.json
delete mode 100644 install/static/test/data/hbacrule_remove_user.json
delete mode 100644 install/static/test/data/hbacrule_show.json
delete mode 100644 install/static/test/data/hbacsvc_add.json
delete mode 100644 install/static/test/data/hbacsvc_del.json
delete mode 100644 install/static/test/data/hbacsvc_find.json
delete mode 100644 install/static/test/data/hbacsvc_mod.json
delete mode 100644 install/static/test/data/hbacsvc_show.json
delete mode 100644 install/static/test/data/hbacsvcgroup_add.json
delete mode 100644 install/static/test/data/hbacsvcgroup_add_member.json
delete mode 100644 install/static/test/data/hbacsvcgroup_del.json
delete mode 100644 install/static/test/data/hbacsvcgroup_find.json
delete mode 100644 install/static/test/data/hbacsvcgroup_member_hbacsvc.json
delete mode 100644 install/static/test/data/hbacsvcgroup_mod.json
delete mode 100644 install/static/test/data/hbacsvcgroup_remove_member.json
delete mode 100644 install/static/test/data/hbacsvcgroup_show.json
delete mode 100644 install/static/test/data/host_add.json
delete mode 100644 install/static/test/data/host_disable_dev.example.com.json
delete mode 100644 install/static/test/data/host_find.json
delete mode 100644 install/static/test/data/host_mod.json
delete mode 100644 install/static/test/data/host_show.json
delete mode 100644 install/static/test/data/host_show_dev.example.com.json
delete mode 100644 install/static/test/data/host_show_test.example.com.json
delete mode 100644 install/static/test/data/hostgroup_add.json
delete mode 100644 install/static/test/data/hostgroup_add_member.json
delete mode 100644 install/static/test/data/hostgroup_find.json
delete mode 100644 install/static/test/data/hostgroup_member_host.json
delete mode 100644 install/static/test/data/hostgroup_show.json
delete mode 100644 install/static/test/data/i18n_messages.json
delete mode 100644 install/static/test/data/ipa_init.json
delete mode 100644 install/static/test/data/json_metadata.json
delete mode 100644 install/static/test/data/krbtpolicy_show.json
delete mode 100644 install/static/test/data/netgroup_add.json
delete mode 100644 install/static/test/data/netgroup_add_member.json
delete mode 100644 install/static/test/data/netgroup_find.json
delete mode 100644 install/static/test/data/netgroup_show.json
delete mode 100644 install/static/test/data/permission_add.json
delete mode 100644 install/static/test/data/permission_del
delete mode 100644 install/static/test/data/permission_find.json
delete mode 100644 install/static/test/data/permission_show.json
delete mode 100644 install/static/test/data/privilege_find.json
delete mode 100644 install/static/test/data/privilege_show.json
delete mode 100644 install/static/test/data/pwpolicy_find.json
delete mode 100644 install/static/test/data/pwpolicy_mod.json
delete mode 100644 install/static/test/data/pwpolicy_show.json
delete mode 100644 install/static/test/data/role_find.json
delete mode 100644 install/static/test/data/role_show.json
delete mode 100644 install/static/test/data/rolegroup_add.json
delete mode 100644 install/static/test/data/rolegroup_add_member.json
delete mode 100644 install/static/test/data/rolegroup_del.json
delete mode 100644 install/static/test/data/rolegroup_find.json
delete mode 100644 install/static/test/data/rolegroup_remove_member.json
delete mode 100644 install/static/test/data/rolegroup_show.json
delete mode 100644 install/static/test/data/selfservice_find.json
delete mode 100644 install/static/test/data/selfservice_show.json
delete mode 100644 install/static/test/data/service_add.json
delete mode 100644 install/static/test/data/service_add_host.json
delete mode 100644 install/static/test/data/service_del.json
delete mode 100644 install/static/test/data/service_disable.json
delete mode 100644 install/static/test/data/service_find.json
delete mode 100644 install/static/test/data/service_managedby_host.json
delete mode 100644 install/static/test/data/service_mod.json
delete mode 100644 install/static/test/data/service_remove_host.sh
delete mode 100644 install/static/test/data/service_show.json
delete mode 100644 install/static/test/data/sudocmd_add.json
delete mode 100644 install/static/test/data/sudocmd_del.json
delete mode 100644 install/static/test/data/sudocmd_find.json
delete mode 100644 install/static/test/data/sudocmd_memberof_add.json
delete mode 100644 install/static/test/data/sudocmd_memberof_remove.json
delete mode 100644 install/static/test/data/sudocmd_memberof_show.json
delete mode 100644 install/static/test/data/sudocmd_mod.json
delete mode 100644 install/static/test/data/sudocmd_show.json
delete mode 100644 install/static/test/data/sudocmdgroup_add.json
delete mode 100644 install/static/test/data/sudocmdgroup_add_member.json
delete mode 100644 install/static/test/data/sudocmdgroup_del.json
delete mode 100644 install/static/test/data/sudocmdgroup_find.json
delete mode 100644 install/static/test/data/sudocmdgroup_member_sudocmd.json
delete mode 100644 install/static/test/data/sudocmdgroup_mod.json
delete mode 100644 install/static/test/data/sudocmdgroup_remove_member.json
delete mode 100644 install/static/test/data/sudocmdgroup_show.json
delete mode 100644 install/static/test/data/sudorule_add.json
delete mode 100644 install/static/test/data/sudorule_del.json
delete mode 100644 install/static/test/data/sudorule_find.json
delete mode 100644 install/static/test/data/sudorule_mod.json
delete mode 100644 install/static/test/data/sudorule_show.json
delete mode 100644 install/static/test/data/taskgroup_find.json
delete mode 100644 install/static/test/data/user_add.json
delete mode 100644 install/static/test/data/user_disable.json
delete mode 100644 install/static/test/data/user_enable.json
delete mode 100644 install/static/test/data/user_find.json
delete mode 100644 install/static/test/data/user_memberof_group.json
delete mode 100644 install/static/test/data/user_mod.json
delete mode 100644 install/static/test/data/user_show.json
delete mode 100644 install/static/test/data/whoami.json
delete mode 100644 install/static/test/details_tests.html
delete mode 100644 install/static/test/details_tests.js
delete mode 100644 install/static/test/entity_tests.html
delete mode 100644 install/static/test/entity_tests.js
delete mode 100644 install/static/test/index.html
delete mode 100644 install/static/test/ipa_tests.html
delete mode 100644 install/static/test/ipa_tests.js
delete mode 100644 install/static/test/navigation_tests.html
delete mode 100644 install/static/test/navigation_tests.js
delete mode 100644 install/static/test/qunit.css
delete mode 100644 install/static/test/qunit.js
delete mode 100644 install/static/ui-bg_flat_65_ffffff_40x100.png
delete mode 100644 install/static/ui-bg_glass_40_111111_1x400.png
delete mode 100644 install/static/ui-bg_glass_55_1c1c1c_1x400.png
delete mode 100644 install/static/ui-bg_highlight-hard_100_f9f9f9_1x100.png
delete mode 100644 install/static/ui-bg_highlight-hard_40_aaaaaa_1x100.png
delete mode 100644 install/static/ui-bg_highlight-soft_50_aaaaaa_1x100.png
delete mode 100644 install/static/ui-bg_inset-hard_45_cd0a0a_1x100.png
delete mode 100644 install/static/ui-bg_inset-hard_55_ffeb80_1x100.png
delete mode 100644 install/static/ui-bg_loop_8_333333_21x21.png
delete mode 100644 install/static/ui-icons_222222_256x240.png
delete mode 100644 install/static/ui-icons_4ca300_256x240.png
delete mode 100644 install/static/ui-icons_bbbbbb_256x240.png
delete mode 100644 install/static/ui-icons_ededed_256x240.png
delete mode 100644 install/static/ui-icons_ffcf29_256x240.png
delete mode 100644 install/static/ui-icons_ffffff_256x240.png
delete mode 100644 install/static/user.js
delete mode 100644 install/static/webui.js
delete mode 100644 install/static/widget.js
create mode 100644 install/ui/FreeWay-Bold.otf
create mode 100644 install/ui/FreeWay.otf
create mode 100644 install/ui/Mainnav-background.png
create mode 100644 install/ui/Mainnav-offtab.png
create mode 100644 install/ui/Mainnav-ontab.png
create mode 100644 install/ui/Mainnav-seperatorbars.png
create mode 100644 install/ui/Makefile.am
create mode 100644 install/ui/Subnav-background.png
create mode 100644 install/ui/Subnav-offbutton.png
create mode 100644 install/ui/Subnav-onbutton.png
create mode 100644 install/ui/aci.js
create mode 100644 install/ui/add.js
create mode 100644 install/ui/associate.js
create mode 100755 install/ui/caution.png
create mode 100755 install/ui/certificate.js
create mode 100755 install/ui/check.png
create mode 100644 install/ui/details.js
create mode 100644 install/ui/develop.js
create mode 100644 install/ui/entity.js
create mode 100644 install/ui/gray-fade-line.png
create mode 100644 install/ui/group.js
create mode 100644 install/ui/hbacrule.js
create mode 100644 install/ui/hbacsvc.js
create mode 100644 install/ui/hbacsvcgroup.js
create mode 100644 install/ui/header.png
create mode 100644 install/ui/header_background.png
create mode 100644 install/ui/header_logo.png
create mode 100644 install/ui/host.js
create mode 100644 install/ui/hostgroup.js
create mode 100644 install/ui/index.html
create mode 100644 install/ui/ipa.css
create mode 100644 install/ui/ipa.js
create mode 100644 install/ui/ipa_logo_180x50.png
create mode 100644 install/ui/ipalogo.png
create mode 100644 install/ui/jquery-ui.css
create mode 100644 install/ui/jquery-ui.js
create mode 100644 install/ui/jquery.ba-bbq.js
create mode 100644 install/ui/jquery.cookie.js
create mode 100644 install/ui/jquery.js
create mode 100644 install/ui/jsl.conf
create mode 100644 install/ui/json2.js
create mode 100644 install/ui/layouts/Makefile.am
create mode 100644 install/ui/layouts/default/Makefile.am
create mode 100755 install/ui/layouts/default/hbacrule-details-accesstime.html
create mode 100755 install/ui/layouts/default/hbacrule-details-general.html
create mode 100755 install/ui/layouts/default/hbacrule-details-host.html
create mode 100755 install/ui/layouts/default/hbacrule-details-service.html
create mode 100755 install/ui/layouts/default/hbacrule-details-sourcehost.html
create mode 100755 install/ui/layouts/default/hbacrule-details-user.html
create mode 100755 install/ui/layouts/default/sudorule-details-general.html
create mode 100755 install/ui/layouts/default/sudorule-group-dialog.html
create mode 100755 install/ui/layouts/default/sudorule-host-dialog.html
create mode 100755 install/ui/layouts/default/sudorule-hostgroup-dialog.html
create mode 100755 install/ui/layouts/default/sudorule-user-dialog.html
create mode 100644 install/ui/modal-background.png
create mode 100644 install/ui/navigation.js
create mode 100644 install/ui/netgroup.js
create mode 100644 install/ui/outer-bg.png
create mode 100644 install/ui/panel-background.png
create mode 100644 install/ui/policy.js
create mode 100644 install/ui/rule.js
create mode 100644 install/ui/search.js
create mode 100644 install/ui/serverconfig.js
create mode 100644 install/ui/service.js
create mode 100644 install/ui/spinner_header.gif
create mode 100644 install/ui/spinner_large.gif
create mode 100644 install/ui/spinner_small.gif
create mode 100644 install/ui/sudocmd.js
create mode 100644 install/ui/sudocmdgroup.js
create mode 100644 install/ui/sudorule.js
create mode 100755 install/ui/test/README
create mode 100755 install/ui/test/aci_tests.html
create mode 100644 install/ui/test/aci_tests.js
create mode 100644 install/ui/test/all_tests.html
create mode 100644 install/ui/test/association_tests.html
create mode 100644 install/ui/test/association_tests.js
create mode 100755 install/ui/test/certificate_tests.html
create mode 100755 install/ui/test/certificate_tests.js
create mode 100644 install/ui/test/data/aci_find.json
create mode 100644 install/ui/test/data/automountlocation_find.json
create mode 100644 install/ui/test/data/automountlocation_show.json
create mode 100644 install/ui/test/data/cert_remove_hold.json
create mode 100644 install/ui/test/data/cert_request.json
create mode 100644 install/ui/test/data/cert_revoke.json
create mode 100644 install/ui/test/data/cert_show.json
create mode 100644 install/ui/test/data/config_show.json
create mode 100644 install/ui/test/data/delegation_find.json
create mode 100644 install/ui/test/data/delegation_list.json
create mode 100644 install/ui/test/data/delegation_mod.json
create mode 100644 install/ui/test/data/delegation_show.json
create mode 100644 install/ui/test/data/dns_find.json
create mode 100644 install/ui/test/data/dns_find_rr.json
create mode 100644 install/ui/test/data/dns_show.json
create mode 100644 install/ui/test/data/dnsrecord_add.json
create mode 100644 install/ui/test/data/dnsrecord_del.json
create mode 100644 install/ui/test/data/dnsrecord_find.json
create mode 100644 install/ui/test/data/dnszone_add.json
create mode 100644 install/ui/test/data/dnszone_find.json
create mode 100644 install/ui/test/data/dnszone_show.json
create mode 100644 install/ui/test/data/group_add.json
create mode 100644 install/ui/test/data/group_add_member.json
create mode 100644 install/ui/test/data/group_find.json
create mode 100644 install/ui/test/data/group_member_user.json
create mode 100644 install/ui/test/data/group_remove_member.json
create mode 100644 install/ui/test/data/group_show.json
create mode 100644 install/ui/test/data/hbacrule_add.json
create mode 100644 install/ui/test/data/hbacrule_add_accesstime.json
create mode 100644 install/ui/test/data/hbacrule_add_host.json
create mode 100644 install/ui/test/data/hbacrule_add_service.json
create mode 100644 install/ui/test/data/hbacrule_add_sourcehost.json
create mode 100644 install/ui/test/data/hbacrule_add_user.json
create mode 100644 install/ui/test/data/hbacrule_del.json
create mode 100644 install/ui/test/data/hbacrule_find.json
create mode 100644 install/ui/test/data/hbacrule_mod.json
create mode 100644 install/ui/test/data/hbacrule_remove_accesstime.json
create mode 100644 install/ui/test/data/hbacrule_remove_host.json
create mode 100644 install/ui/test/data/hbacrule_remove_service.json
create mode 100644 install/ui/test/data/hbacrule_remove_sourcehost.json
create mode 100644 install/ui/test/data/hbacrule_remove_user.json
create mode 100644 install/ui/test/data/hbacrule_show.json
create mode 100644 install/ui/test/data/hbacsvc_add.json
create mode 100644 install/ui/test/data/hbacsvc_del.json
create mode 100644 install/ui/test/data/hbacsvc_find.json
create mode 100644 install/ui/test/data/hbacsvc_mod.json
create mode 100644 install/ui/test/data/hbacsvc_show.json
create mode 100644 install/ui/test/data/hbacsvcgroup_add.json
create mode 100644 install/ui/test/data/hbacsvcgroup_add_member.json
create mode 100644 install/ui/test/data/hbacsvcgroup_del.json
create mode 100644 install/ui/test/data/hbacsvcgroup_find.json
create mode 100644 install/ui/test/data/hbacsvcgroup_member_hbacsvc.json
create mode 100644 install/ui/test/data/hbacsvcgroup_mod.json
create mode 100644 install/ui/test/data/hbacsvcgroup_remove_member.json
create mode 100644 install/ui/test/data/hbacsvcgroup_show.json
create mode 100644 install/ui/test/data/host_add.json
create mode 100644 install/ui/test/data/host_disable_dev.example.com.json
create mode 100644 install/ui/test/data/host_find.json
create mode 100644 install/ui/test/data/host_mod.json
create mode 100644 install/ui/test/data/host_show.json
create mode 100644 install/ui/test/data/host_show_dev.example.com.json
create mode 100644 install/ui/test/data/host_show_test.example.com.json
create mode 100644 install/ui/test/data/hostgroup_add.json
create mode 100644 install/ui/test/data/hostgroup_add_member.json
create mode 100644 install/ui/test/data/hostgroup_find.json
create mode 100644 install/ui/test/data/hostgroup_member_host.json
create mode 100644 install/ui/test/data/hostgroup_show.json
create mode 100644 install/ui/test/data/i18n_messages.json
create mode 100644 install/ui/test/data/ipa_init.json
create mode 100644 install/ui/test/data/json_metadata.json
create mode 100644 install/ui/test/data/krbtpolicy_show.json
create mode 100644 install/ui/test/data/netgroup_add.json
create mode 100644 install/ui/test/data/netgroup_add_member.json
create mode 100644 install/ui/test/data/netgroup_find.json
create mode 100644 install/ui/test/data/netgroup_show.json
create mode 100644 install/ui/test/data/permission_add.json
create mode 100644 install/ui/test/data/permission_del
create mode 100644 install/ui/test/data/permission_find.json
create mode 100644 install/ui/test/data/permission_show.json
create mode 100644 install/ui/test/data/privilege_find.json
create mode 100644 install/ui/test/data/privilege_show.json
create mode 100644 install/ui/test/data/pwpolicy_find.json
create mode 100644 install/ui/test/data/pwpolicy_mod.json
create mode 100644 install/ui/test/data/pwpolicy_show.json
create mode 100644 install/ui/test/data/role_find.json
create mode 100644 install/ui/test/data/role_show.json
create mode 100644 install/ui/test/data/rolegroup_add.json
create mode 100644 install/ui/test/data/rolegroup_add_member.json
create mode 100644 install/ui/test/data/rolegroup_del.json
create mode 100644 install/ui/test/data/rolegroup_find.json
create mode 100644 install/ui/test/data/rolegroup_remove_member.json
create mode 100644 install/ui/test/data/rolegroup_show.json
create mode 100644 install/ui/test/data/selfservice_find.json
create mode 100644 install/ui/test/data/selfservice_show.json
create mode 100644 install/ui/test/data/service_add.json
create mode 100644 install/ui/test/data/service_add_host.json
create mode 100644 install/ui/test/data/service_del.json
create mode 100644 install/ui/test/data/service_disable.json
create mode 100644 install/ui/test/data/service_find.json
create mode 100644 install/ui/test/data/service_managedby_host.json
create mode 100644 install/ui/test/data/service_mod.json
create mode 100644 install/ui/test/data/service_remove_host.sh
create mode 100644 install/ui/test/data/service_show.json
create mode 100644 install/ui/test/data/sudocmd_add.json
create mode 100644 install/ui/test/data/sudocmd_del.json
create mode 100644 install/ui/test/data/sudocmd_find.json
create mode 100644 install/ui/test/data/sudocmd_memberof_add.json
create mode 100644 install/ui/test/data/sudocmd_memberof_remove.json
create mode 100644 install/ui/test/data/sudocmd_memberof_show.json
create mode 100644 install/ui/test/data/sudocmd_mod.json
create mode 100644 install/ui/test/data/sudocmd_show.json
create mode 100644 install/ui/test/data/sudocmdgroup_add.json
create mode 100644 install/ui/test/data/sudocmdgroup_add_member.json
create mode 100644 install/ui/test/data/sudocmdgroup_del.json
create mode 100644 install/ui/test/data/sudocmdgroup_find.json
create mode 100644 install/ui/test/data/sudocmdgroup_member_sudocmd.json
create mode 100644 install/ui/test/data/sudocmdgroup_mod.json
create mode 100644 install/ui/test/data/sudocmdgroup_remove_member.json
create mode 100644 install/ui/test/data/sudocmdgroup_show.json
create mode 100644 install/ui/test/data/sudorule_add.json
create mode 100644 install/ui/test/data/sudorule_del.json
create mode 100644 install/ui/test/data/sudorule_find.json
create mode 100644 install/ui/test/data/sudorule_mod.json
create mode 100644 install/ui/test/data/sudorule_show.json
create mode 100644 install/ui/test/data/taskgroup_find.json
create mode 100644 install/ui/test/data/user_add.json
create mode 100644 install/ui/test/data/user_disable.json
create mode 100644 install/ui/test/data/user_enable.json
create mode 100644 install/ui/test/data/user_find.json
create mode 100644 install/ui/test/data/user_memberof_group.json
create mode 100644 install/ui/test/data/user_mod.json
create mode 100644 install/ui/test/data/user_show.json
create mode 100644 install/ui/test/data/whoami.json
create mode 100644 install/ui/test/details_tests.html
create mode 100644 install/ui/test/details_tests.js
create mode 100644 install/ui/test/entity_tests.html
create mode 100644 install/ui/test/entity_tests.js
create mode 100644 install/ui/test/index.html
create mode 100644 install/ui/test/ipa_tests.html
create mode 100644 install/ui/test/ipa_tests.js
create mode 100644 install/ui/test/navigation_tests.html
create mode 100644 install/ui/test/navigation_tests.js
create mode 100644 install/ui/test/qunit.css
create mode 100644 install/ui/test/qunit.js
create mode 100644 install/ui/ui-bg_flat_65_ffffff_40x100.png
create mode 100644 install/ui/ui-bg_glass_40_111111_1x400.png
create mode 100644 install/ui/ui-bg_glass_55_1c1c1c_1x400.png
create mode 100644 install/ui/ui-bg_highlight-hard_100_f9f9f9_1x100.png
create mode 100644 install/ui/ui-bg_highlight-hard_40_aaaaaa_1x100.png
create mode 100644 install/ui/ui-bg_highlight-soft_50_aaaaaa_1x100.png
create mode 100644 install/ui/ui-bg_inset-hard_45_cd0a0a_1x100.png
create mode 100644 install/ui/ui-bg_inset-hard_55_ffeb80_1x100.png
create mode 100644 install/ui/ui-bg_loop_8_333333_21x21.png
create mode 100644 install/ui/ui-icons_222222_256x240.png
create mode 100644 install/ui/ui-icons_4ca300_256x240.png
create mode 100644 install/ui/ui-icons_bbbbbb_256x240.png
create mode 100644 install/ui/ui-icons_ededed_256x240.png
create mode 100644 install/ui/ui-icons_ffcf29_256x240.png
create mode 100644 install/ui/ui-icons_ffffff_256x240.png
create mode 100644 install/ui/user.js
create mode 100644 install/ui/webui.js
create mode 100644 install/ui/widget.js
diff --git a/install/Makefile.am b/install/Makefile.am
index 80f04bd74..1b0cda90a 100644
--- a/install/Makefile.am
+++ b/install/Makefile.am
@@ -9,7 +9,7 @@ SUBDIRS = \
html \
migration \
share \
- static \
+ ui \
tools \
updates \
po \
diff --git a/install/conf/ipa.conf b/install/conf/ipa.conf
index 0bc53548f..72e3e4c01 100644
--- a/install/conf/ipa.conf
+++ b/install/conf/ipa.conf
@@ -85,8 +85,8 @@ Alias /ipa/crl "/var/lib/pki-ca/publish"
# webUI is now completely static, and served out of that directory
-Alias /ipa/ui "/usr/share/ipa/static"
-
+Alias /ipa/ui "/usr/share/ipa/ui"
+
SetHandler None
AllowOverride None
Satisfy Any
diff --git a/install/configure.ac b/install/configure.ac
index 2424ef29f..88bf9f805 100644
--- a/install/configure.ac
+++ b/install/configure.ac
@@ -72,9 +72,9 @@ AC_CONFIG_FILES([
html/Makefile
migration/Makefile
share/Makefile
- static/Makefile
- static/layouts/Makefile
- static/layouts/default/Makefile
+ ui/Makefile
+ ui/layouts/Makefile
+ ui/layouts/default/Makefile
tools/Makefile
tools/man/Makefile
updates/Makefile
diff --git a/install/static/FreeWay-Bold.otf b/install/static/FreeWay-Bold.otf
deleted file mode 100644
index 793185317..000000000
Binary files a/install/static/FreeWay-Bold.otf and /dev/null differ
diff --git a/install/static/FreeWay.otf b/install/static/FreeWay.otf
deleted file mode 100644
index ebefcb25e..000000000
Binary files a/install/static/FreeWay.otf and /dev/null differ
diff --git a/install/static/Mainnav-background.png b/install/static/Mainnav-background.png
deleted file mode 100644
index 37a9dc6a5..000000000
Binary files a/install/static/Mainnav-background.png and /dev/null differ
diff --git a/install/static/Mainnav-offtab.png b/install/static/Mainnav-offtab.png
deleted file mode 100644
index 997863a29..000000000
Binary files a/install/static/Mainnav-offtab.png and /dev/null differ
diff --git a/install/static/Mainnav-ontab.png b/install/static/Mainnav-ontab.png
deleted file mode 100644
index 303402f73..000000000
Binary files a/install/static/Mainnav-ontab.png and /dev/null differ
diff --git a/install/static/Mainnav-seperatorbars.png b/install/static/Mainnav-seperatorbars.png
deleted file mode 100644
index 9d1a9d414..000000000
Binary files a/install/static/Mainnav-seperatorbars.png and /dev/null differ
diff --git a/install/static/Makefile.am b/install/static/Makefile.am
deleted file mode 100644
index d6a9274e1..000000000
--- a/install/static/Makefile.am
+++ /dev/null
@@ -1,88 +0,0 @@
-AUTOMAKE_OPTIONS = 1.7
-
-NULL =
-
-SUBDIRS = \
- layouts \
- $(NULL)
-
-appdir = $(IPA_DATA_DIR)/static
-app_DATA = \
- aci.js \
- add.js \
- associate.js \
- caution.png \
- check.png \
- ipa_logo_180x50.png \
- ipa.js \
- ipa.css \
- json2.js \
- jquery.js \
- jquery-ui.js \
- jquery.ba-bbq.js \
- jquery-ui.css \
- certificate.js \
- group.js \
- hbacrule.js \
- hbacsvc.js \
- hbacsvcgroup.js \
- host.js \
- hostgroup.js \
- index.html \
- jquery.cookie.js \
- navigation.js \
- netgroup.js \
- service.js \
- serverconfig.js \
- sudorule.js \
- sudocmd.js \
- sudocmdgroup.js \
- policy.js \
- search.js \
- rule.js \
- details.js \
- entity.js \
- webui.js \
- widget.js \
- user.js \
- ipalogo.png \
- gray-fade-line.png \
- Mainnav-background.png \
- Mainnav-offtab.png \
- Mainnav-ontab.png \
- modal-background.png \
- outer-bg.png \
- panel-background.png \
- Subnav-background.png \
- Subnav-offbutton.png \
- Subnav-onbutton.png \
- ui-bg_flat_65_ffffff_40x100.png \
- ui-bg_glass_40_111111_1x400.png \
- ui-bg_glass_55_1c1c1c_1x400.png \
- ui-bg_highlight-hard_100_f9f9f9_1x100.png \
- ui-bg_highlight-hard_40_aaaaaa_1x100.png \
- ui-bg_highlight-soft_50_aaaaaa_1x100.png \
- ui-bg_inset-hard_45_cd0a0a_1x100.png \
- ui-bg_inset-hard_55_ffeb80_1x100.png \
- ui-bg_loop_8_333333_21x21.png \
- ui-icons_222222_256x240.png \
- ui-icons_4ca300_256x240.png \
- ui-icons_bbbbbb_256x240.png \
- ui-icons_ededed_256x240.png \
- ui-icons_ffcf29_256x240.png \
- ui-icons_ffffff_256x240.png \
- FreeWay.otf \
- FreeWay-Bold.otf \
- spinner_header.gif \
- spinner_large.gif \
- spinner_small.gif \
- $(NULL)
-
-EXTRA_DIST = \
- $(app_DATA) \
- $(NULL)
-
-MAINTAINERCLEANFILES = \
- *~ \
- Makefile.in
- $(NULL)
diff --git a/install/static/Subnav-background.png b/install/static/Subnav-background.png
deleted file mode 100644
index c1baebffe..000000000
Binary files a/install/static/Subnav-background.png and /dev/null differ
diff --git a/install/static/Subnav-offbutton.png b/install/static/Subnav-offbutton.png
deleted file mode 100644
index 859e5f5ee..000000000
Binary files a/install/static/Subnav-offbutton.png and /dev/null differ
diff --git a/install/static/Subnav-onbutton.png b/install/static/Subnav-onbutton.png
deleted file mode 100644
index 2cee0a70b..000000000
Binary files a/install/static/Subnav-onbutton.png and /dev/null differ
diff --git a/install/static/aci.js b/install/static/aci.js
deleted file mode 100644
index 85cfcaa85..000000000
--- a/install/static/aci.js
+++ /dev/null
@@ -1,876 +0,0 @@
-/*jsl:import ipa.js */
-
-/* Authors:
- * Adam Young
- *
- * Copyright (C) 2010 Red Hat
- * see file 'COPYING' for use and warranty information
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; version 2 only
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-/* REQUIRES: ipa.js, details.js, search.js, add.js, entity.js */
-
-
-/*TODO Merge this code into the attribtue table widget */
-IPA.populate_attribute_table = function (table, entity){
- var attr_per_col = 400;
- var aciattrs = IPA.metadata[entity].aciattrs;
- var col_span = aciattrs.length / attr_per_col + 1;
-
- $('tbody tr', table).remove();
-
- var tbody = $('tbody',table);
- var td;
- for (var a = 0; a < aciattrs.length ; a += 1){
- var aci_tr = $(' ').appendTo(tbody);
-
- td = $(' ').appendTo(aci_tr);
- td.append($(' ',{
- type:"checkbox",
- id:'aciattr-'+aciattrs[a].toLowerCase(),
- "class":'aci-attribute'
- }));
- td.append($(' ',{
- text:aciattrs[a].toLowerCase()}));
- }
-};
-
-IPA.attribute_table_widget= function (spec){
- var id = spec.name;
- var that = IPA.widget(spec);
- var object_type = spec.objecttype || 'user';
- var table;
-
- that.create = function(container){
-
- var dd = $(' ').appendTo(container);
- table = $('',{
- id:id,
- 'class':'search-table'}).
- append(' ').
- append($(' ',{
- style:"height:30em; overflow:auto;"
- })).
- appendTo(dd);
-
- $(' ').
- append($(' ',{
- style:"height:2em; vertical-align:bottom;",
- html:$(' ',{
- type: "checkbox",
- click: function(){
- $('.aci-attribute').
- attr('checked', $(this).attr('checked'));
- }}).
- after('Attribute')
- })).
- appendTo($('thead', table));
- IPA.populate_attribute_table(table, object_type);
- };
-
- that.save = function(){
- var attrs_boxes = $('table#'+id+" td :checked");
- if (!attrs_boxes.length){
- return [];
- }
- var retval = "";
- for (var i = 0; i < attrs_boxes.length; i += 1){
- if (i > 0){
- retval += ',';
- }
- retval += attrs_boxes[i].id.substring("aciattr-".length);
- }
-
- return [retval];
- };
-
- var attrs = [];
- that.reset =function(){
- $('input[type=checkbox]', table).attr('checked','');
- for (var i = 0; i < attrs.length; i+=1){
- $(attrs[i], table).attr('checked','checked');
- }
- };
-
- that.load = function(record){
- if (!record.attrs) return;
- attrs = [];
- for (var i = 0; i < record.attrs.length; i+=1){
- attrs.push('#aciattr-' +record.attrs[i]);
- }
- that.reset();
- };
-
- return that;
-};
-
-IPA.entity_select_widget = function(spec){
-
- var that = IPA.widget(spec);
- var entity = spec.entity || 'group';
-
- function populate_select(value){
- var selected = value;
- function find_success(result){
- $('option', that.entity_select).remove();
- var entities = result.result.result;
- for (var i =0; i < result.result.count; i +=1){
- var option =
- that.entity_select.append($(' ',{
- text:entities[i].cn[0],
- value:entities[i].cn[0]
- }));
- if (selected === entities[i].cn[0]){
- option.attr('selected','selected');
- }
- }
- }
- function find_error(err){
- }
- IPA.command({
- method: entity+'_find',
- args:[that.entity_filter.val()],
- options:{},
- on_success:find_success,
- on_error:find_error
- }).execute();
- }
-
- that.create = function(container){
- var dd = $(' ').appendTo(container);
-
- that.entity_select = $(' ', {
- id: that.name + '-entity-select',
- change: function(){
-
- }
- }).appendTo(dd);
-
-
- that.entity_filter = $(' ',{
- size:10,
- type: 'text',
- id: 'entity_filter',
- style: 'display: none;',
- keypress: function(){
- populate_select();
- }
- }).appendTo(dd);
-
- $(' ',{
- href:"",
- text: 'filter: ',
- click:function(){
- that.entity_filter.css('display','inline');
- $(this).css('display','none');
- return false;
- }
- }).appendTo(dd);
- populate_select();
- };
- var value = '';
- that.reset = function(){
- that.entity_filter.val(value );
- populate_select(value);
-
- };
- that.load = function(record){
- value = record[that.name];
- that.reset();
- };
-
- that.save = function(){
- return [$('option:selected', that.entity_select).val()];
- };
-
- return that;
-};
-
-IPA.rights_widget = function(spec){
- var rights = ['write','add','delete'];
-
- var that = IPA.widget({name:'permissions',label:'Permissions'});
- that.id = spec.id;
-
- that.create = function(container){
- for (var i =0; i < rights.length; i += 1){
- $(" ").
- append($(' ',{
- type:'checkbox',
- 'class':that.entity_name +"_"+ that.name,
- 'id':rights[i],
- value:rights[i]
- })).
- append($(' ',{
- text:rights[i]
- })).
- appendTo(container);
- }
-
- };
- var values = [];
-
- that.reset = function(){
- var selector = '.'+ that.entity_name +"_"+ that.name;
-
- var checkboxes = $(selector);
-
- for (var i = 0; i < checkboxes.length; i +=1){
- checkboxes.attr('checked','');
- }
-
- for (var j = 0; j < values.length; j +=1){
- var value = values[j];
- var cb = $('#'+value+ selector);
- cb.attr('checked', 'checked');
- }
-
- };
-
- that.load = function(record) {
- values = record[that.name] || [];
- that.reset();
- };
-
- that.save = function(){
- var rights_input = $('.'+ that.entity_name +"_"+ that.name);
- var retval = "";
- for (var i =0; i < rights_input.length; i+=1){
- if (i > 0) {
- retval += ',';
- }
- retval += rights_input[i].value;
- }
- return [retval];
- };
-
- return that;
-};
-
-
-IPA.hidden_widget = function(spec){
- spec.label = '';
- var that = IPA.widget(spec);
- that.id = spec.id;
- var value = spec.value || '';
- that.create = function(container){
- $(' ',{
- type:'hidden',
- 'id':that.id,
- value: value
- }).
- appendTo(container);
- };
-
- that.save = function(){
- return [value];
- };
- that.reset = function(){
-
- };
- return that;
-};
-
-
-IPA.rights_section = function () {
- var spec = {
- 'name':'rights',
- 'label': 'Rights'
- };
- var that = IPA.details_section(spec);
- that.add_field(IPA.rights_widget({name:'permissions'}));
-
- return that;
-};
-
-
-IPA.target_section = function () {
- var spec = {
- 'name':'target',
- 'label': 'Target'
- };
-
- var that = IPA.details_section(spec);
- var groupings = ['aci_by_type', 'aci_by_query', 'aci_by_group',
- 'aci_by_filter' ];
- var inputs = ['input', 'select', 'textarea'];
-
- function disable_inputs(){
- for (var g = 0; g < groupings.length; g += 1 ){
- for (var t = 0 ; t < inputs.length; t += 1){
- $('.' + groupings[g] + ' '+ inputs[t]).
- attr('disabled', 'disabled');
- }
- }
- }
- function enable_by(grouping){
- for (var t = 0 ; t < inputs.length; t += 1){
- $('.' + grouping + ' '+ inputs[t]).
- attr('disabled', '');
- }
- }
-
- function display_filter_target(dl){
- $(" ").
- append($(" ",{
- text: "Filter" })).
- append($(' ',{
- type:"radio",
- name:"type",
- checked:"true",
- id:"aci_by_filter"
- })).
- appendTo(dl);
-
- $(' ',{
- 'class': 'aci_by_filter first'}).
- append($(' ',{
-
- disabled:'true',
- type:'text',
- id:'aci_filter'
- })).
- appendTo(dl);
- }
-
-
- function display_type_target(dl){
- $(" ").
- append($(" ",{
- text: "Object By Type " })).
- append($(' ',{
- type:"radio",
- name:"type",
- checked:"true",
- id:"aci_by_type" })).
- appendTo(dl);
-
- var dd = $(' ',{
- "class":"aci_by_type first" }).
- appendTo(dl);
-
- var type_select = $(' ', {
- id: 'object_type_select',
- change: function(){
- var attribute_table = $('#aci_attributes_table');
- IPA.populate_attribute_table(
- attribute_table, this.options[this.selectedIndex].value);
- }
- }).appendTo(dd);
- var type_params=IPA.get_param_info("permission","type");
- for (var pc =0; pc < type_params.values.length; pc += 1){
- type_select.append($(' ',{
- value: type_params.values[pc],
- text: type_params.values[pc]
- }));
- }
- dd = $(' ',{
- "class":"aci_by_type other"}).appendTo(dl);
-
- var attribute_table = IPA.attribute_table_widget(
- {name:'aci_attributes_table',object_type:'user'});
-
- attribute_table.create(dl);
-
-
- }
-
- function display_query_target(dl){
- $(' ').
- append($(' ',{ html: 'By Subtree'} )).
- append($(' ',{
- type:"radio",
- name:"type",
- id:"aci_by_query" })).
- appendTo(dl);
-
- $(" ",{
- "class":'aci_by_query first'}).append($('',{
- id: 'aci_query_text',
- cols:'30',
- rows:'1'})) .appendTo(dl);
- }
-
- function populate_target_group_select(){
- function find_success(result){
- var groups = result.result.result;
- for (var i =0; i < result.result.count; i +=1){
- var option = groups[i].cn[0];
- that.group_select.append($(' ',{
- text:groups[i].cn[0],
- value:groups[i].cn[0]
- }));
- }
- }
- function find_error(err){
- }
-
- $('option', that.group_select).remove();
- IPA.command({
- method:'group_find',
- args:[that.group_filter.val()],
- options:{},
- on_success:find_success,
- on_error:find_error}).execute();
- }
-
- function display_group_target(dl){
- $(' ' ).
- append($(' ',{
- html: 'Target Group'} )).
- append($(' ',{
- type:"radio",
- name:"type",
- id:"aci_by_group" })).
- appendTo(dl);
-
- that.group_filter = $(' ',{
- type: 'text',
- id: 'group_filter' });
- that.group_select = $(' ', {
- id: 'aci_target_group_select',
- change: function(){
- }
- });
-
- $(" ",{
- 'class':'aci_by_group first'
- }).
- append(that.group_filter).
- append($('Group Filter ')).
- appendTo(dl);
-
- $(" ",{
- 'class':'aci_by_group other'
- }).
- append(that.group_select).
- appendTo(dl);
- }
-
-
-
-
- that.create = function(container) {
- var dl = $(' ').appendTo(container);
-
- display_filter_target(dl);
- display_query_target(dl);
- display_group_target(dl);
- display_type_target(dl);
-
- $('#aci_by_filter', dl).click(function (){
- disable_inputs();
- enable_by(groupings[3]);
- });
-
- $('#aci_by_type', dl).click(function (){
- disable_inputs();
- enable_by(groupings[0]);
- });
-
- $('#aci_by_query', dl).click(function (){
- disable_inputs();
- enable_by(groupings[1]);
- });
-
- $('#aci_by_group', dl).click(function (){
- disable_inputs();
- enable_by(groupings[2]);
- populate_target_group_select();
- });
-
- $('#aci_by_query', dl).click();
-
-
- };
-
- that.setup = function(container) {
- };
-
- that.load = function(result) {
- if(result.subtree){
- $('#aci_query_text').val(result.subtree);
- $('#aci_by_query').click();
- }else if(result.type){
- $('#aci_by_type').click();
- $('#object_type_select').val(result.type);
- IPA.populate_attribute_table($('#aci_attributes_table'),
- result.type);
- if (result.attrs){
- for (var a = 0; a < result.attrs.length; a += 1){
- var cb = $('#aciattr-'+result.attrs[a]);
- if (!cb.length){
- alert('unmatched:'+result.attrs[a]);
- }
- cb.attr('checked',true);
- }
- }
- }else if (result.targetgroup){
- var segments = result.targetgroup.split(/,/);
- var targetgroup=segments[0].split(/=/)[1];
- that.group_filter.val( targetgroup);
- $('#aci_by_group').click();
- }else if (result.filter){
- $('#aci_by_filter').click();
- $('#aci_filter').val(result.filter);
- }else{
- alert('permission with invalid target specification');
- }
- };
-
- that.reset = function() {
- };
-
- that.save = function (record){
-
- var record_type = $("input[name='type']:checked").attr('id');
-
- if (record_type === 'aci_by_group'){
- record.targetgroup =
- $('#aci_target_group_select option:selected').val();
- }else if (record_type === 'aci_by_type'){
- record.type = $('#object_type_select option:selected').val();
- }else if (record_type === 'aci_by_query'){
- record.subtree = $('#aci_query_text').val();
- }else if (record_type === 'aci_by_filter'){
- var filter = $('#aci_filter').val();
- record.filter = filter;
- }
-
- var attrs = $('.aci-attribute:checked').each(function(){
- var id = this.id.split('-')[1];
-
- if (!record.attributes){
- record.attributes = "";
- }else{
- record.attributes += ",";
- }
- record.attributes += id;
- });
- };
- return that;
-};
-
-
-IPA.permission = function () {
-
- var that = IPA.entity({
- 'name': 'permission'
- });
-
- that.init = function() {
-
- var dialog = IPA.permission_add_dialog({
- name: 'add',
- title: 'Add New Permission',
- entity_name: 'permission'
- });
- that.add_dialog(dialog);
- dialog.init();
-
- var facet = IPA.permission_search_facet({
- name: 'search',
- label: 'Search'
- });
- that.add_facet(facet);
-
- facet = IPA.permission_details_facet();
- that.add_facet(facet);
-
- that.entity_init();
- };
-
- return that;
-};
-
-
-IPA.add_entity(IPA.permission());
-
-
-
-IPA.permission_add_dialog = function (spec) {
-
- spec = spec || {};
-
- var that = IPA.add_dialog(spec);
-
- that.init = function() {
-
- that.add_field(IPA.text_widget({
- name: 'cn',
- undo: false
- }));
-
- that.add_field(IPA.text_widget({
- name: 'description',
- undo: false
- }));
-
- that.add_field(IPA.rights_widget({name:'permissions'}));
- that.add_field(IPA.hidden_widget({name:'filter','value':'objectClass=changethisvalue'}));
- that.add_dialog_init();
- };
-
-
- return that;
-};
-
-
-IPA.permission_search_facet = function (spec) {
-
- spec = spec || {};
- var that = IPA.search_facet(spec);
- that.init = function() {
- that.create_column({name:'cn'});
- that.create_column({name:'description'});
- that.search_facet_init();
- };
- return that;
-};
-
-
-IPA.permission_details_facet = function () {
-
- var spec = {
- name: 'details'
- };
- var that = IPA.details_facet(spec);
-
- that.init = function() {
-
- var section = that.add_section(IPA.details_list_section({
- name:'identity',label:'Identity' }));
- section.create_field({ name: 'cn', 'read_only': true });
- section.create_field({ name: 'description'});
-
- that.rights_section = IPA.rights_section();
- that.add_section(that.rights_section);
-
- that.target_section = IPA.target_section();
-
- that.add_section(that.target_section);
- that.details_facet_init();
- };
-
- that.superior_load = that.load;
-
- that.load = function(result) {
- that.superior_load(result);
- };
-
- that.superior_update = that.update;
- that.update = function(on_win, on_fail){
- that.superior_update(on_win, on_fail);
- };
- return that;
-};
-
-
-IPA.add_entity( function() {
- var that = IPA.entity({
- 'name': 'privilege'
- });
- that.init = function() {
-
- var search_facet = IPA.search_facet({
- name: 'search',
- label: 'Search',
- entity_name: that.name
- });
- search_facet.create_column({name:'cn'});
- search_facet.create_column({name:'description'});
- that.add_facet(search_facet);
-
- that.add_facet(function() {
- var that = IPA.details_facet({name:'details'});
- that.add_section(
- IPA.stanza({name:'identity', label:'Privilege Settings'}).
- input({name:'cn'}).
- input({name: 'description'}));
- return that;
- }());
-
-
- var dialog = IPA.add_dialog({
- name: 'add',
- title: 'Add Privilege',
- entity_name: that.entity
- });
- that.add_dialog(dialog);
-
- dialog.add_field(IPA.text_widget({ name: 'cn', undo: false}));
- dialog.add_field(IPA.text_widget({ name: 'description', undo: false}));
- dialog.init();
-
- that.create_association_facets();
- that.entity_init();
- };
- return that;
-}());
-
-
-IPA.add_entity( function() {
- var that = IPA.entity({
- 'name': 'role'
- });
- that.init = function() {
- var search_facet = IPA.search_facet({
- name: 'search',
- label: 'Search',
- entity_name: that.name
- });
- search_facet.create_column({name:'cn'});
- search_facet.create_column({name:'description'});
- that.add_facet(search_facet);
-
- that.add_facet(function() {
- var that = IPA.details_facet({name:'details'});
- that.add_section(
- IPA.stanza({name:'identity', label:'Role Settings'}).
- input({name:'cn'}).
- input({name: 'description'}));
- return that;
- }());
-
- var dialog = IPA.add_dialog({
- name: 'add',
- title: 'Add Role'
- });
- that.add_dialog(dialog);
-
- dialog.add_field(IPA.text_widget({ name: 'cn', undo: false}));
- dialog.add_field(IPA.text_widget({ name: 'description', undo: false}));
- dialog.init();
-
- that.create_association_facets();
-
- that.entity_init();
- };
- return that;
-}());
-
-
-IPA.add_entity( function() {
- var that = IPA.entity({
- 'name': 'selfservice'
- });
-
- that.add_facet(function () {
- var spec = {
- name: 'search',
- label: 'Search'
- };
- var that = IPA.search_facet(spec);
- that.init = function() {
- that.create_column({name:'aciname'});
- that.search_facet_init();
- };
- return that;
- }());
-
-
- that.add_facet(function(){
- var that = IPA.details_facet({'name':'details'});
-
- that.init = function() {
- that.add_section(
- IPA.stanza({name:'general', label:'General'}).
- input({name:'aciname'}).
- custom_input(IPA.attribute_table_widget({
- object_type:'user',
- name:'attrs'
- })));
- };
- return that;
- }());
-
-
- that.parent_init = that.init;
- that.init = function(){
- that.parent_init();
- var dialog = IPA.add_dialog({
- name: 'add',
- title: 'Add Self Service Definition'
- });
- that.add_dialog(dialog);
- dialog.add_field(IPA.text_widget({ name: 'aciname', undo: false}));
- dialog.add_field(IPA.attribute_table_widget({
- object_type:'user',
- name:'attrs'
- }));
- dialog.init();
- };
- return that;
-}());
-
-
-IPA.add_entity( function() {
- var that = IPA.entity({
- 'name': 'delegation'
- });
-
- that.add_facet(function () {
- var spec = {
- name: 'search',
- label: 'Search'
- };
- var that = IPA.search_facet(spec);
- that.init = function() {
- that.create_column({name:'aciname'});
- that.search_facet_init();
- };
- return that;
- }());
- that.add_facet(function(){
- var that = IPA.details_facet({'name':'details'});
- var section =
- IPA.stanza({name:'general', label:'General'}).
- input({name:'aciname'}).
- custom_input(IPA.entity_select_widget(
- {name:'group', entity:'group'})).
- custom_input(IPA.entity_select_widget(
- {name:'memberof', entity:'group'})).
- custom_input(
- IPA.rights_widget({
- id:'delegation_rights'})).
- custom_input(
- IPA.attribute_table_widget({
- name:'attrs'}));
- that.add_section(section);
- return that;
- }());
-
- that.super_init = that.init;
- that.init = function(){
- that.super_init();
- var dialog = IPA.add_dialog({
- name: 'add',
- title: 'Add Delegation',
- entity_name: that.entity
- });
- that.add_dialog(dialog);
- dialog.add_field(IPA.text_widget({ name: 'aciname', undo: false}));
- dialog.add_field(IPA.entity_select_widget({name:'group',
- entity:'group'}));
- dialog.add_field(IPA.entity_select_widget({name:'memberof',
- entity:'group'}));
- dialog.add_field(IPA.attribute_table_widget({ name: 'attrs'}));
-
- dialog.init();
- that.create_association_facets();
- };
-
- return that;
-}());
\ No newline at end of file
diff --git a/install/static/add.js b/install/static/add.js
deleted file mode 100644
index 69b1108c3..000000000
--- a/install/static/add.js
+++ /dev/null
@@ -1,122 +0,0 @@
-/*jsl:import ipa.js */
-
-/* Authors:
- * Pavel Zuna
- * Endi Sukma Dewata
- *
- * Copyright (C) 2010 Red Hat
- * see file 'COPYING' for use and warranty information
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
-*/
-
-/* REQUIRES: ipa.js */
-
-IPA.add_dialog = function (spec) {
-
- spec = spec || {};
-
- var that = IPA.dialog(spec);
-
- that.name = spec.name;
- that.title = spec.title;
- that._entity_name = spec.entity_name;
-
- that.init = function() {
-
- that.add_button('Add', function() {
- var record = that.get_record();
- that.add(
- record,
- function() {
- var entity = IPA.get_entity(that.entity_name);
- var facet = entity.get_facet('search');
- var table = facet.table;
- table.refresh();
- that.close();
- }
- );
- });
-
-
- that.add_button('Add and Add Another', function() {
- var record = that.get_record();
- that.add(
- record,
- function() {
- var entity = IPA.get_entity(that.entity_name);
- var facet = entity.get_facet('search');
- var table = facet.table;
- table.refresh();
- that.reset();
- }
- );
- });
-
- that.add_button('Add and Edit', function() {
- var record = that.get_record();
- that.add(
- record,
- function() {
- that.close();
-
- var pkey_name = IPA.metadata[that.entity_name].primary_key;
- var pkey = record[pkey_name];
-
- var state = {};
- state[that.entity_name + '-facet'] = 'details';
- state[that.entity_name + '-pkey'] = pkey;
- $.bbq.pushState(state);
- }
- );
- });
-
- that.add_button('Cancel', function() {
- that.close();
- });
-
- that.dialog_init();
- };
-
- that.add = function(record, on_success, on_error) {
-
- var pkey_name = IPA.metadata[that.entity_name].primary_key;
-
- var command = IPA.command({
- method: that.entity_name+'_add',
- on_success: on_success,
- on_error: on_error
- });
-
- for (var i=0; i
- *
- * Copyright (C) 2010 Red Hat
- * see file 'COPYING' for use and warranty information
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
-*/
-
-/* REQUIRES: ipa.js */
-/* CURRENTLY ALSO REQUIRES search.js, because it reuses it's code to create
- * the AssociationList elements; IT NEEDS IT'S OWN CODE! */
-
-IPA.associator = function (spec) {
-
- spec = spec || {};
-
- var that = {};
-
- that.entity_name = spec.entity_name;
- that.pkey = spec.pkey;
-
- that.other_entity = spec.other_entity;
- that.values = spec.values;
-
- that.method = spec.method;
-
- that.on_success = spec.on_success;
- that.on_error = spec.on_error;
-
- that.execute = function() {
- };
-
- return that;
-};
-
-
-/**
-*This associator is built for the case where each association requires a separate rpc
-*/
-function serial_associator(spec) {
-
- spec = spec || {};
-
- var that = IPA.associator(spec);
-
- that.execute = function() {
-
- if (!that.values || !that.values.length) {
- that.on_success();
- return;
- }
-
- var value = that.values.shift();
- if (!value) {
- that.on_success();
- return;
- }
-
- var args = [value];
- var options = {};
- options[that.entity_name] = that.pkey;
-
- IPA.cmd(
- that.method,
- args,
- options,
- that.execute,
- that.on_error,
- that.other_entity);
- };
-
- return that;
-}
-
-/**
-*This associator is for the common case where all the asociations can be sent
-in a single rpc
-*/
-function bulk_associator(spec) {
-
- spec = spec || {};
-
- var that = IPA.associator(spec);
-
- that.execute = function() {
-
- if (!that.values || !that.values.length) {
- that.on_success();
- return;
- }
-
- var value = that.values.shift();
- if (!value) {
- that.on_success();
- return;
- }
-
- while (that.values.length > 0) {
- value += ',' + that.values.shift();
- }
-
- var args = [that.pkey];
- var options = { 'all': true };
- options[that.other_entity] = value;
-
- IPA.cmd(
- that.method,
- args,
- options,
- that.on_success,
- that.on_error,
- that.entity_name);
- };
-
- return that;
-}
-
-/**
- * This dialog is used for adding associations between two entities.
- */
-IPA.association_adder_dialog = function (spec) {
-
- spec = spec || {};
-
- var that = IPA.adder_dialog(spec);
-
- that.entity_name = spec.entity_name;
- that.pkey = spec.pkey;
- that.other_entity = spec.other_entity;
- that.attribute_member = spec.attribute_member;
-
- that.init = function() {
- if (!that.columns.length) {
- var pkey_name = IPA.metadata[that.other_entity].primary_key;
- that.create_column({
- name: pkey_name,
- label: IPA.metadata[that.other_entity].label,
- primary_key: true,
- width: '200px'
- });
- }
-
- /* FIXME: event not firing? */
- $('input[name=hidememb]', that.container).click(that.search);
-
- that.adder_dialog_init();
- };
-
- that.search = function() {
- function on_success(data, text_status, xhr) {
- var results = data.result;
- that.clear_available_values();
-
- var pkey_attr = IPA.metadata[that.entity_name].primary_key;
-
- for (var i=0; i ', {
- 'type': 'button',
- 'name': 'remove',
- 'value': 'Remove'
- }).appendTo(buttons);
-
- $(' ', {
- 'type': 'button',
- 'name': 'add',
- 'value': 'Add'
- }).appendTo(buttons);
- };
-
- that.setup = function(container) {
-
- that.table_setup(container);
-
- var button = $('input[name=remove]', container);
- button.replaceWith(IPA.action_button({
- 'label': button.val(),
- 'icon': 'ui-icon-trash',
- 'click': function() {
- if ($(this).hasClass('action-button-disabled')) {
- return false;
- }
- that.show_remove_dialog();
- return false;
- }
- }));
-
- button = $('input[name=add]', container);
- button.replaceWith(IPA.action_button({
- 'label': button.val(),
- 'icon': 'ui-icon-plus',
- 'click': function() {
- if ($(this).hasClass('action-button-disabled')) return false;
- that.show_add_dialog();
- return false;
- }
- }));
- };
-
- that.set_enabled = function(enabled) {
- that.table_set_enabled(enabled);
- if (enabled) {
- $('.action-button', that.table).removeClass('action-button-disabled');
- } else {
- $('.action-button', that.table).addClass('action-button-disabled');
- }
- };
-
- that.get_records = function(on_success, on_error) {
-
- if (!that.values.length) return;
-
- var batch = IPA.batch_command({
- 'name': that.entity_name+'_'+that.name,
- 'on_success': on_success,
- 'on_error': on_error
- });
-
- for (var i=0; i ', {
- 'href': '#'+value,
- 'html': value,
- 'click': function (value) {
- return function() {
- var state = IPA.tab_state(that.other_entity);
- state[that.other_entity + '-facet'] = 'details';
- state[that.other_entity + '-pkey'] = value;
- $.bbq.pushState(state);
- return false;
- };
- }(value)
- }).appendTo(container);
- };
- }
-
- for (i=0; i ', {
- 'id': that.entity_name+'-'+that.other_entity,
- html: $(' ',{ html: header_message })
- }).appendTo(container);
-
- var span = $(' ', { 'name': 'association' }).appendTo(container);
-
- that.table.create(span);
-
- var action_panel = that.get_action_panel();
- var li = $('.action-controls', action_panel);
-
- // creating generic buttons for layout
- $(' ', {
- 'type': 'button',
- 'name': 'remove',
- 'value': IPA.messages.button.remove
- }).appendTo(li);
-
- /* TODO: genering handling of different relationships */
- if ((relationship[0] == 'Member')||(relationship[0] == 'Member Of')) {
- $(' ', {
- 'type': 'button',
- 'name': 'add',
- 'value': IPA.messages.button.enroll
- }).appendTo(li);
- }
- };
-
- that.setup = function(container) {
-
- that.facet_setup(container);
-
- var span = $('span[name=association]', that.container);
-
- that.table.setup(span);
-
- // replacing generic buttons with IPA.button and setting click handler
- var action_panel = that.get_action_panel();
-
- var button = $('input[name=remove]', action_panel);
- button.replaceWith(IPA.action_button({
- 'label': button.val(),
- 'icon': 'ui-icon-trash',
- 'click': function() { that.show_remove_dialog(); }
- }));
-
- button = $('input[name=add]', action_panel);
- button.replaceWith(IPA.action_button({
- 'label': button.val(),
- 'icon': 'ui-icon-plus',
- 'click': function() { that.show_add_dialog(); }
- }));
- };
-
- that.show_add_dialog = function() {
-
- var pkey = $.bbq.getState(that.entity_name + '-pkey', true) || '';
- var label = IPA.metadata[that.other_entity] ? IPA.metadata[that.other_entity].label : that.other_entity;
- var title = 'Enroll ' + label + ' in ' + that.entity_name + ' ' + pkey;
-
- var dialog = IPA.association_adder_dialog({
- 'title': title,
- 'entity_name': that.entity_name,
- 'pkey': pkey,
- 'other_entity': that.other_entity,
- 'attribute_member': that.attribute_member
- });
-
- if (that.adder_columns.length) {
- dialog.set_columns(that.adder_columns);
- }
-
- dialog.execute = function() {
-
- var pkey = $.bbq.getState(that.entity_name + '-pkey', true) || '';
-
- var associator = that.associator({
- 'entity_name': that.entity_name,
- 'pkey': pkey,
- 'other_entity': that.other_entity,
- 'values': dialog.get_selected_values(),
- 'method': that.add_method,
- 'on_success': function() {
- that.refresh();
- dialog.close();
- },
- 'on_error': function() {
- that.refresh();
- dialog.close();
- }
- });
-
- associator.execute();
- };
-
- dialog.init();
-
- dialog.open(that.container);
- };
-
- that.show_remove_dialog = function() {
-
- var label = IPA.metadata[that.other_entity] ? IPA.metadata[that.other_entity].label : that.other_entity;
- var values = that.table.get_selected_values();
-
- if (!values.length) {
- alert('Select '+label+' to be removed.');
- return;
- }
-
- var pkey = $.bbq.getState(that.entity_name + '-pkey', true) || '';
- var title = 'Remove '+label+' from '+that.entity_name+' '+pkey;
-
- var dialog = IPA.association_deleter_dialog({
- 'title': title,
- 'entity_name': that.entity_name,
- 'pkey': pkey,
- 'other_entity': that.other_entity,
- 'values': values,
- 'associator': that.associator,
- 'method': that.remove_method,
- 'on_success': function() {
- that.refresh();
- dialog.close();
- },
- 'on_error': function() {
- that.refresh();
- dialog.close();
- }
- });
-
- dialog.init();
-
- dialog.open(that.container);
- };
-
- that.get_records = function(pkeys, on_success, on_error) {
-
- if (!pkeys.length) return;
-
- var batch = IPA.batch_command({
- 'name': that.entity_name+'_'+that.name,
- 'on_success': on_success,
- 'on_error': on_error
- });
-
- for (var i=0; iError: '+error_thrown.name+'
');
- summary.append(''+error_thrown.title+'
');
- summary.append(''+error_thrown.message+'
');
- }
-
- var pkey = $.bbq.getState(that.entity_name + '-pkey', true) || '';
- IPA.cmd('show', [pkey], {'rights': true}, on_success, on_error, that.entity_name);
- };
-
- that.association_facet_init = that.init;
-
- return that;
-};
-
-
-IPA.deleter_dialog_setup = function () {
-
- var that = this;
-
- var ul = $('');
- ul.appendTo(that.dialog);
-
- for (var i=0; i ',{
- 'text': that.values[i]
- }).appendTo(ul);
- }
-
- $('
', {
- 'text': IPA.messages.search.delete_confirm
- }).appendTo(that.dialog);
-};
diff --git a/install/static/caution.png b/install/static/caution.png
deleted file mode 100755
index ce7a68ad9..000000000
Binary files a/install/static/caution.png and /dev/null differ
diff --git a/install/static/certificate.js b/install/static/certificate.js
deleted file mode 100755
index b7e5a51d3..000000000
--- a/install/static/certificate.js
+++ /dev/null
@@ -1,785 +0,0 @@
-/*jsl:import ipa.js */
-
-/* Authors:
- * Endi Sukma Dewata
- *
- * Copyright (C) 2010 Red Hat
- * see file 'COPYING' for use and warranty information
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
-
-var BEGIN_CERTIFICATE = '-----BEGIN CERTIFICATE-----';
-var END_CERTIFICATE = '-----END CERTIFICATE-----';
-
-var BEGIN_CERTIFICATE_REQUEST = '-----BEGIN CERTIFICATE REQUEST-----';
-var END_CERTIFICATE_REQUEST = '-----END CERTIFICATE REQUEST-----';
-
-var CRL_REASON = [
- 'Unspecified',
- 'Key Compromise',
- 'CA Compromise',
- 'Affiliation Changed',
- 'Superseded',
- 'Cessation of Operation',
- 'Certificate Hold',
- null,
- 'Remove from CRL',
- 'Privilege Withdrawn',
- 'AA Compromise'
-];
-
-var CERTIFICATE_STATUS_MISSING = 0;
-var CERTIFICATE_STATUS_VALID = 1;
-var CERTIFICATE_STATUS_REVOKED = 2;
-
-function certificate_parse_dn(dn) {
-
- var result = {};
- if (!dn) return result;
-
- // TODO: Use proper LDAP DN parser
- var rdns = dn.split(',');
- for (var i=0; i', {
- 'title': that.title
- });
-
- var textarea = $('', {
- readonly: 'yes',
- style: 'width: 100%; height: 275px;'
- }).appendTo(dialog);
-
- textarea.val(
- BEGIN_CERTIFICATE+'\n'+
- that.usercertificate+'\n'+
- END_CERTIFICATE );
-
- that.open = function() {
- dialog.dialog({
- modal: true,
- width: 500,
- height: 400,
- buttons: {
- 'Close': function() {
- dialog.dialog('destroy');
- }
- }
- });
- };
-
- return that;
-}
-
-function certificate_revoke_dialog(spec) {
- var that = {};
- spec = spec || {};
-
- that.title = spec.title || '';
- that.revoke = spec.revoke;
-
- var dialog = $('
', {
- 'title': that.title
- });
-
- var table = $('').appendTo(dialog);
-
- var tr = $(' ').appendTo(table);
-
- var td = $(' ').appendTo(tr);
- td.append('Note:');
-
- td = $(' ').appendTo(tr);
- td.append(
- 'To confirm your intention to revoke this certificate, '+
- 'select a reason from the pull-down list, and click '+
- 'the "Revoke" button.');
-
- tr = $(' ').appendTo(table);
-
- td = $(' ').appendTo(tr);
- td.append('Reason for Revocation:');
-
- td = $(' ').appendTo(tr);
-
- var select = $(' ').appendTo(td);
- for (var i=0; i ', {
- 'value': i,
- 'html': CRL_REASON[i]
- }).appendTo(select);
- }
-
- that.open = function() {
- dialog.dialog({
- modal: true,
- width: 500,
- height: 300,
- buttons: {
- 'Revoke': function() {
- var values = {};
- values['reason'] = select.val();
- if (that.revoke) {
- that.revoke(values);
- }
- dialog.dialog('destroy');
- },
- 'Cancel': function() {
- dialog.dialog('destroy');
- }
- }
- });
- };
-
- return that;
-}
-
-function certificate_restore_dialog(spec) {
- var that = {};
- spec = spec || {};
-
- that.title = spec.title || '';
- that.restore = spec.restore;
-
- var dialog = $('
', {
- 'title': that.title
- });
-
- dialog.append(
- 'To confirm your intention to restore this certificate, '+
- 'click the "Restore" button.');
-
- that.open = function() {
- dialog.dialog({
- modal: true,
- width: 400,
- height: 200,
- buttons: {
- 'Restore': function() {
- var values = {};
- if (that.restore) {
- that.restore(values);
- }
- dialog.dialog('destroy');
- },
- 'Cancel': function() {
- dialog.dialog('destroy');
- }
- }
- });
- };
-
- return that;
-}
-
-function certificate_view_dialog(spec) {
- var that = {};
- spec = spec || {};
-
- that.title = spec.title || '';
- that.subject = certificate_parse_dn(spec.subject);
- that.serial_number = spec.serial_number || '';
- that.issuer = certificate_parse_dn(spec.issuer);
- that.issued_on = spec.issued_on || '';
- that.expires_on = spec.expires_on || '';
- that.md5_fingerprint = spec.md5_fingerprint || '';
- that.sha1_fingerprint = spec.sha1_fingerprint || '';
-
- var dialog = $('
', {
- 'title': that.title
- });
-
- var table = $('').appendTo(dialog);
-
- var tr = $(' ').appendTo(table);
- $(' ', {
- 'colspan': 2,
- 'html': 'Issued To '
- }).appendTo(tr);
-
- tr = $(' ').appendTo(table);
- $('Common Name: ').appendTo(tr);
- $(' ', {
- 'html': that.subject.cn
- }).appendTo(tr);
-
- tr = $(' ').appendTo(table);
- $('Organization: ').appendTo(tr);
- $(' ', {
- 'html': that.subject.o
- }).appendTo(tr);
-
- tr = $(' ').appendTo(table);
- $('Organizational Unit: ').appendTo(tr);
- $(' ', {
- 'html': that.subject.ou
- }).appendTo(tr);
-
- tr = $(' ').appendTo(table);
- $('Serial Number: ').appendTo(tr);
- $(' ', {
- 'html': that.serial_number
- }).appendTo(tr);
-
- tr = $(' ').appendTo(table);
- $(' ', {
- 'colspan': 2,
- 'html': 'Issued By '
- }).appendTo(tr);
-
- tr = $(' ').appendTo(table);
- $('Common Name: ').appendTo(tr);
- $(' ', {
- 'html': that.issuer.cn
- }).appendTo(tr);
-
- tr = $(' ').appendTo(table);
- $('Organization: ').appendTo(tr);
- $(' ', {
- 'html': that.issuer.o
- }).appendTo(tr);
-
- tr = $(' ').appendTo(table);
- $('Organizational Unit: ').appendTo(tr);
- $(' ', {
- 'html': that.issuer.ou
- }).appendTo(tr);
-
- tr = $(' ').appendTo(table);
- $(' ', {
- 'colspan': 2,
- 'html': 'Validity '
- }).appendTo(tr);
-
- tr = $(' ').appendTo(table);
- $('Issued On: ').appendTo(tr);
- $(' ', {
- 'html': that.issued_on
- }).appendTo(tr);
-
- tr = $(' ').appendTo(table);
- $('Expires On: ').appendTo(tr);
- $(' ', {
- 'html': that.expires_on
- }).appendTo(tr);
-
- tr = $(' ').appendTo(table);
- $(' ', {
- 'colspan': 2,
- 'html': 'Fingerprints '
- }).appendTo(tr);
-
- tr = $(' ').appendTo(table);
- $('SHA1 Fingerprint: ').appendTo(tr);
- $(' ', {
- 'html': that.sha1_fingerprint
- }).appendTo(tr);
-
- tr = $(' ').appendTo(table);
- $('MD5 Fingerprint: ').appendTo(tr);
- $(' ', {
- 'html': that.md5_fingerprint
- }).appendTo(tr);
-
- that.open = function() {
- dialog.dialog({
- modal: true,
- width: 600,
- height: 500,
- buttons: {
- 'Close': function() {
- dialog.dialog('destroy');
- }
- }
- });
- };
-
- return that;
-}
-
-function certificate_request_dialog(spec) {
- var that = {};
- spec = spec || {};
-
- that.title = spec.title || '';
- that.request = spec.request;
-
- var dialog = $('
', {
- 'title': that.title
- });
-
- dialog.append('Copy and paste the Base64-encoded CSR below:');
- dialog.append(' ');
- dialog.append(' ');
-
- dialog.append(BEGIN_CERTIFICATE_REQUEST);
- dialog.append(' ');
-
- var textarea = $('', {
- style: 'width: 100%; height: 225px;'
- }).appendTo(dialog);
-
- dialog.append(' ');
- dialog.append(END_CERTIFICATE_REQUEST);
-
- that.open = function() {
- dialog.dialog({
- modal: true,
- width: 500,
- height: 400,
- buttons: {
- 'Issue': function() {
- var values = {};
- var request = textarea.val();
- request =
- BEGIN_CERTIFICATE_REQUEST+'\n'+
- $.trim(request)+'\n'+
- END_CERTIFICATE_REQUEST+'\n';
- values['request'] = request;
- if (that.request) {
- that.request(values);
- }
- dialog.dialog('destroy');
- },
- 'Cancel': function() {
- dialog.dialog('destroy');
- }
- }
- });
- };
-
- return that;
-}
-
-function certificate_status_widget(spec) {
-
- spec = spec || {};
-
- var that = IPA.widget(spec);
-
- that.entity_label = spec.entity_label || that.entity_name;
-
- that.result = spec.result;
-
- that.get_entity_pkey = spec.get_entity_pkey;
- that.get_entity_name = spec.get_entity_name;
- that.get_entity_principal = spec.get_entity_principal;
- that.get_entity_certificate = spec.get_entity_certificate;
-
- that.is_selfsign = function() {
- return IPA.env.ra_plugin == 'selfsign';
- };
-
- that.create = function(container) {
-
- that.widget_create(container);
-
- var dd = $(' ', {
- 'class': 'first'
- }).appendTo(container);
-
- var div = $('
', {
- name: 'certificate-valid'
- }).appendTo(dd);
-
- $(' ', {
- src: 'check.png',
- style: 'float: left;',
- 'class': 'status-icon'
- }).appendTo(div);
-
- var content_div = $('
', {
- style: 'float: left;'
- }).appendTo(div);
-
- content_div.append('Valid Certificate Present: ');
-
- content_div.append(' ');
-
- $(' ', {
- 'type': 'button',
- 'name': 'get',
- 'value': 'Get'
- }).appendTo(content_div);
-
- content_div.append(' ');
-
- if (!that.is_selfsign()) {
- $(' ', {
- 'type': 'button',
- 'name': 'revoke',
- 'value': 'Revoke'
- }).appendTo(content_div);
-
- content_div.append(' ');
- }
-
- $(' ', {
- 'type': 'button',
- 'name': 'view',
- 'value': 'View'
- }).appendTo(content_div);
-
- content_div.append(' ');
-
- $(' ', {
- 'type': 'button',
- 'name': 'create',
- 'value': 'New Certificate'
- }).appendTo(content_div);
-
- if (!that.is_selfsign()) {
- div = $('
', {
- name: 'certificate-revoked'
- }).appendTo(dd);
-
- $(' ', {
- src: 'caution.png',
- style: 'float: left;',
- 'class': 'status-icon'
- }).appendTo(div);
-
- content_div = $('
', {
- style: 'float: left;'
- }).appendTo(div);
-
- content_div.append('Certificate Revoked: ');
-
- content_div.append(' ');
-
- content_div.append($(' ', {
- 'name': 'revocation_reason'
- }));
-
- content_div.append(' ');
-
- $(' ', {
- 'type': 'button',
- 'name': 'restore',
- 'value': 'Restore'
- }).appendTo(content_div);
-
- content_div.append(' ');
-
- $(' ', {
- 'type': 'button',
- 'name': 'create',
- 'value': 'New Certificate'
- }).appendTo(content_div);
- }
-
- div = $('
', {
- name: 'certificate-missing'
- }).appendTo(dd);
-
- $(' ', {
- src: 'caution.png',
- style: 'float: left;',
- 'class': 'status-icon'
- }).appendTo(div);
-
- content_div = $('
', {
- style: 'float: left;'
- }).appendTo(div);
-
- content_div.append('No Valid Certificate: ');
-
- content_div.append(' ');
-
- $(' ', {
- 'type': 'button',
- 'name': 'create',
- 'value': 'New Certificate'
- }).appendTo(content_div);
- };
-
- that.setup = function(container) {
-
- that.widget_setup(container);
-
- that.valid = $('div[name=certificate-valid]', that.container);
- that.revoked = $('div[name=certificate-revoked]', that.container);
- that.missing = $('div[name=certificate-missing]', that.container);
-
- var button = $('input[name=get]', that.container);
- that.get_button = IPA.button({
- 'label': 'Get',
- 'click': function() {
- IPA.cmd(that.entity_name+'_show', [that.pkey], {},
- function(data, text_status, xhr) {
- get_certificate(data.result.result);
- }
- );
- }
- });
- button.replaceWith(that.get_button);
-
- button = $('input[name=revoke]', that.container);
- that.revoke_button = IPA.button({
- 'label': 'Revoke',
- 'click': function() {
- IPA.cmd(that.entity_name+'_show', [that.pkey], {},
- function(data, text_status, xhr) {
- revoke_certificate(data.result.result);
- }
- );
- }
- });
- button.replaceWith(that.revoke_button);
-
- button = $('input[name=view]', that.container);
- that.view_button = IPA.button({
- 'label': 'View',
- 'click': function() {
- IPA.cmd(that.entity_name+'_show', [that.pkey], {},
- function(data, text_status, xhr) {
- view_certificate(data.result.result);
- }
- );
- }
- });
- button.replaceWith(that.view_button);
-
- that.revocation_reason = $('span[name=revocation_reason]', that.container);
-
- button = $('input[name=restore]', that.container);
- that.restore_button = IPA.button({
- 'label': 'Restore',
- 'click': function() {
- IPA.cmd(that.entity_name+'_show', [that.pkey], {},
- function(data, text_status, xhr) {
- restore_certificate(data.result.result);
- }
- );
- }
- });
- button.replaceWith(that.restore_button);
-
- $('input[name=create]', that.container).each(function(index) {
- button = $(this);
- that.create_button = IPA.button({
- 'label': 'New Certificate',
- 'click': function() {
- request_certificate(that.result);
- }
- });
- button.replaceWith(that.create_button);
- });
- };
-
- that.load = function(result) {
-
- that.result = result;
- that.pkey = that.get_entity_pkey(that.result);
-
- var entity_certificate = that.get_entity_certificate(that.result);
- if (entity_certificate) {
- check_status(that.result.serial_number);
- } else {
- set_status(CERTIFICATE_STATUS_MISSING);
- }
- };
-
- function set_status(status, revocation_reason) {
- that.valid.css('display', status == CERTIFICATE_STATUS_VALID ? 'inline' : 'none');
- that.missing.css('display', status == CERTIFICATE_STATUS_MISSING ? 'inline' : 'none');
-
- if (!that.is_selfsign()) {
- that.revoked.css('display', status == CERTIFICATE_STATUS_REVOKED ? 'inline' : 'none');
- that.revoke_button.css('visibility', status == CERTIFICATE_STATUS_VALID ? 'visible' : 'hidden');
- that.revocation_reason.html(revocation_reason == undefined ? '' : CRL_REASON[revocation_reason]);
- that.restore_button.css('visibility', revocation_reason == 6 ? 'visible' : 'hidden');
- }
- }
-
- function check_status(serial_number) {
-
- if (that.is_selfsign()) {
- set_status(CERTIFICATE_STATUS_VALID);
- return;
- }
-
- IPA.cmd(
- 'cert_show',
- [serial_number],
- { },
- function(data, text_status, xhr) {
- var revocation_reason = data.result.result.revocation_reason;
- if (revocation_reason == undefined) {
- set_status(CERTIFICATE_STATUS_VALID);
- } else {
- set_status(CERTIFICATE_STATUS_REVOKED, revocation_reason);
- }
- }
- );
- }
-
- function view_certificate(result) {
-
- var entity_certificate = that.get_entity_certificate(result);
- if (!entity_certificate) {
- set_status(CERTIFICATE_STATUS_MISSING);
- return;
- }
-
- var entity_name = that.get_entity_name(result);
-
- var dialog = certificate_view_dialog({
- 'title': 'Certificate for '+that.entity_label+' '+entity_name,
- 'subject': result['subject'],
- 'serial_number': result['serial_number'],
- 'issuer': result['issuer'],
- 'issued_on': result['valid_not_before'],
- 'expires_on': result['valid_not_after'],
- 'md5_fingerprint': result['md5_fingerprint'],
- 'sha1_fingerprint': result['sha1_fingerprint']
- });
-
- dialog.open();
- }
-
- function get_certificate(result) {
-
- var entity_certificate = that.get_entity_certificate(result);
- if (!entity_certificate) {
- set_status(CERTIFICATE_STATUS_MISSING);
- return;
- }
-
- var entity_name = that.get_entity_name(result);
-
- var dialog = certificate_get_dialog({
- 'title': 'Certificate for '+that.entity_label+' '+entity_name,
- 'usercertificate': entity_certificate
- });
-
- dialog.open();
- }
-
- function request_certificate(result) {
-
- var entity_name = that.get_entity_name(result);
- var entity_principal = that.get_entity_principal(result);
-
- var dialog = certificate_request_dialog({
- 'title': 'Issue New Certificate for '+that.entity_label+' '+entity_name,
- 'request': function(values) {
- var request = values['request'];
-
- IPA.cmd(
- 'cert_request',
- [request],
- {
- 'principal': entity_principal
- },
- function(data, text_status, xhr) {
- check_status(data.result.result.serial_number);
- }
- );
- }
- });
-
- dialog.open();
- }
-
- function revoke_certificate(result) {
-
- var entity_certificate = that.get_entity_certificate(result);
- if (!entity_certificate) {
- set_status(CERTIFICATE_STATUS_MISSING);
- return;
- }
-
- var entity_name = that.get_entity_name(result);
- var serial_number = result['serial_number'];
-
- var dialog = certificate_revoke_dialog({
- 'title': 'Revoke Certificate for '+that.entity_label+' '+entity_name,
- 'revoke': function(values) {
- var reason = values['reason'];
-
- IPA.cmd(
- 'cert_revoke',
- [serial_number],
- {
- 'revocation_reason': reason
- },
- function(data, text_status, xhr) {
- check_status(serial_number);
- }
- );
- }
- });
-
- dialog.open();
- }
-
- function restore_certificate(result) {
-
- var entity_certificate = that.get_entity_certificate(result);
- if (!entity_certificate) {
- set_status(CERTIFICATE_STATUS_MISSING);
- return;
- }
-
- var entity_name = that.get_entity_name(result);
- var serial_number = result['serial_number'];
-
- var dialog = certificate_restore_dialog({
- 'title': 'Restore Certificate for '+that.entity_label+' '+entity_name,
- 'restore': function(values) {
- IPA.cmd(
- 'cert_remove_hold',
- [serial_number],
- { },
- function(data, text_status, xhr) {
- check_status(serial_number);
- }
- );
- }
- });
-
- dialog.open();
- }
-
- return that;
-}
diff --git a/install/static/check.png b/install/static/check.png
deleted file mode 100755
index c3646db11..000000000
Binary files a/install/static/check.png and /dev/null differ
diff --git a/install/static/details.js b/install/static/details.js
deleted file mode 100644
index aad77a9c4..000000000
--- a/install/static/details.js
+++ /dev/null
@@ -1,897 +0,0 @@
-/*jsl:import ipa.js */
-
-/* Authors:
- * Pavel Zuna
- * Adam Young
- * Endi S. Dewata
- *
- * Copyright (C) 2010 Red Hat
- * see file 'COPYING' for use and warranty information
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
-
-/* IPA Object Details - populating definiton lists from entry data */
-
-/* REQUIRES: ipa.js */
-
-IPA.expand_icon = 'ui-icon-minus';
-IPA.collapse_icon = 'ui-icon-plus';
-
-IPA.is_field_writable = function(rights){
- if (!rights){
- alert('no right');
- }
- return rights.indexOf('w') > -1;
-};
-
-IPA.details_field = function (spec) {
-
- spec = spec || {};
-
- var that = IPA.widget(spec);
-
- that.load = spec.load || load;
- that.save = spec.save || save;
-
- function load(record) {
- that.record = record;
- that.values = record[that.name];
- that.reset();
- }
-
- that.update = function() {
-
- if (!that.record) return;
-
- /* remove all tags i.e. all attribute values */
- $('dd', that.container).remove();
-
- var multivalue = false;
- var hint_span = null;
- var dd;
-
- var param_info = IPA.get_param_info(that.entity_name, that.name);
- if (param_info) {
- if (param_info['multivalue'] || param_info['class'] == 'List')
- multivalue = true;
- var hint = param_info['doc'];
- if (hint){
- hint_span = $(' ',{
- 'class': 'attrhint',
- 'html': 'Hint: ' + hint});
- }
- }
-
- var rights = 'rsc';
-
- if (that.record.attributelevelrights){
- rights = that.record.attributelevelrights[this.name] || rights ;
- }
-
- if (that.values) {
- /*
- Too much logic currently assumes an array.
- This is true everywhere but ACIs. */
-
- if (!(that.values instanceof Array)){
- that.values = [that.values];
- }
-
- dd = IPA.create_first_dd(that.name);
- dd.append(that.create_value(that.values[0], hint_span, rights, 0));
- dd.appendTo(that.container);
-
- for (var i = 1; i < that.values.length; ++i) {
- dd = IPA.create_other_dd(that.name);
- dd.append(that.create_value(that.values[i], hint_span, rights, i));
- dd.appendTo(that.container);
- }
-
- if (multivalue && IPA.is_field_writable(rights) ) {
- dd = IPA.create_other_dd(that.name);
- dd.append(IPA.details_field_create_add_link.call(that, that.name, rights, that.values.length));
- dd.appendTo(that.container);
- }
-
- } else {
- if (multivalue && IPA.is_field_writable(rights)) {
- dd = IPA.create_first_dd(that.name);
- dd.append(IPA.details_field_create_add_link.call(that, that.name, rights, 0));
- dd.appendTo(that.container);
-
- } else {
- dd = IPA.create_first_dd(that.name);
- dd.append(that.create_value('', hint_span, rights, 0));
- dd.appendTo(that.container);
- }
- }
- };
-
- /* create an HTML element for displaying/editing an attribute
- * arguments:
- * attr - LDAP attribute name
- * value - the attributes value */
- that.create_value = function(value, hint, rights, index) {
-
- // if field is primary key or non-writable, return a label
-
- var label = $(' ', { html:value.toString() });
-
- if (!IPA.is_field_writable(rights)) return label;
-
- var param_info = IPA.get_param_info(that.entity_name, that.name);
- if (param_info) {
- if (param_info['primary_key']) return label;
- if ('no_update' in param_info['flags']) return label;
- }
-
- // otherwise, create input field
-
- var input = that.create_input(value, param_info, rights, index);
- if (param_info) {
- if (param_info['multivalue'] || param_info['class'] == 'List') {
- input.append(_ipa_create_remove_link(that.name, param_info));
- }
- }
-
- if (hint) input.after(hint);
-
- return input;
- };
-
- /* creates a input box for editing a string attribute */
- that.create_input = function(value, param_info, rights, index) {
-
- index = index || 0;
-
- function validate_input(text, param_info, error_link) {
- if (param_info && param_info.pattern) {
- var regex = new RegExp( param_info.pattern );
- if (!text.match(regex)) {
- error_link.style.display = "block";
- if (param_info.pattern_errmsg) {
- error_link.innerHTML = param_info.pattern_errmsg;
- }
- } else {
- error_link.style.display = "none";
- }
- }
- }
-
- var doc = that.name;
- if (param_info && param_info.doc) {
- doc = param_info.doc;
- }
- var span = $(" ");
- var input = $(" ", {
- type: "text",
- name: that.name,
- value: value.toString(),
- title: doc,
- keyup: function(){
- var undo_link = this.nextElementSibling;
- undo_link.style.display = "inline";
- var error_link = undo_link.nextElementSibling;
-
- var text = $(this).val();
- validate_input(text, param_info,error_link);
- }
- }).appendTo(span) ;
-
- if (!IPA.is_field_writable(rights)) {
- input.attr('disabled', 'disabled');
- }
-
- span.append($(" ", {
- html:"undo",
- "class":"ui-state-highlight ui-corner-all undo",
- style:"display:none",
- click: function(){
- var previous_value = that.values || '';
- if (index >= previous_value.length){
- previous_value = '';
- }else{
- previous_value= previous_value[index];
- }
-
- this.previousElementSibling.value = previous_value;
- this.style.display = "none";
- var error_link = this.nextElementSibling;
- validate_input(previous_value, param_info,error_link);
- }
- }));
- span.append($(" ", {
- html:"Does not match pattern",
- "class":"ui-state-error ui-corner-all",
- style:"display:none"
- }));
- return span;
- };
-
- function save() {
- var values = [];
-
- $('dd', that.container).each(function () {
-
- var input = $('input', $(this));
- if (!input.length) return;
-
- if (input.is('.strikethrough')) return;
-
- var value = $.trim(input.val());
- if (!value) value = '';
-
- values.push(value);
- });
-
- return values;
- }
-
- return that;
-};
-
-
-IPA.details_section = function (spec){
-
- spec = spec || {};
-
- var that = {};
-
- that.name = spec.name || '';
- that.label = spec.label || '';
- that.template = spec.template;
- that._entity_name = spec.entity_name;
-
- that.fields = [];
- that.fields_by_name = {};
-
- that.__defineGetter__("entity_name", function(){
- return that._entity_name;
- });
-
- that.__defineSetter__("entity_name", function(entity_name){
- that._entity_name = entity_name;
-
- for (var i=0; i', { 'name': field.name }).appendTo(container);
- field.create(span);
- }
- };
-
- that.setup = function(container) {
-
- that.container = container;
-
- if (that.template) return;
-
- var fields = that.fields;
- for (var i = 0; i < fields.length; ++i) {
- var field = fields[i];
-
- var span = $('span[name='+field.name+']', this.container).first();
- field.setup(span);
- }
- };
-
- that.load = function(record) {
-
- var fields = that.fields;
-
- if (that.template) {
- var template = IPA.get_template(that.template);
- this.container.load(
- template,
- function(data, text_status, xhr) {
- for (var i = 0; i < fields.length; ++i) {
- var field = fields[i];
- var span = $('span[name='+field.name+']', this.container).first();
- field.setup(span);
- field.load(record);
- }
- }
- );
- return;
- }
-
- for (var j=0; j tag.
- * The attribute name is defined inside a tag. The attribute
- * value is defined using a tag inside a tag. If the
- * attribute has multiple values the content inside will
- * be duplicated to display each value.
- *
- * Example:
- *
- *
- * First Name:
- *
- *
- *
- *
- * Telephone Number:
- *
- *
- *
- *
- *
- *
- */
-IPA.details_list_section = function (spec){
-
- spec = spec || {};
-
- var that = IPA.details_section(spec);
-
- that.create = function(container) {
-
- // do not call section_create() here
-
- if (that.template) return;
-
- var dl = $(' ', {
- 'id': that.name,
- 'class': 'entryattrs'
- }).appendTo(container);
-
- var fields = that.fields;
- for (var i = 0; i < fields.length; ++i) {
- var field = fields[i];
-
- var label = field.label;
-
- // no need to get i18n label from metadata
- // because it's already done by field.init()
-
- if (label !== '') {
- label += ':';
- }
-
- $(' ', {
- html: label
- }).appendTo(dl);
-
- var span = $(' ', { 'name': field.name }).appendTo(dl);
- field.create(span);
- }
- };
-
- return that;
-};
-
-
-/* shorthand notation used for declarative definitions of details pages */
-IPA.stanza = function (spec) {
-
- spec = spec || {};
-
- var that = IPA.details_list_section(spec);
-
- // This is to allow declarative style programming for details
- that.input = function(spec) {
- that.create_field(spec);
- return that;
- };
-
- that.custom_input = function(input) {
- that.add_field(input);
- return that;
- };
-
- return that;
-};
-
-
-IPA.details_facet = function (spec) {
-
- spec = spec || {};
-
- var that = IPA.facet(spec);
-
- that.label = ( IPA.messages && IPA.messages.facets && IPA.messages.facets.details) || spec.label;
- that.is_dirty = spec.is_dirty || is_dirty;
- that.create = spec.create || create;
- that.setup = spec.setup || setup;
- that.load = spec.load || load;
- that.update = spec.update || IPA.details_update;
- that.reset = spec.reset || reset;
- that.refresh = spec.refresh || IPA.details_refresh;
-
- that.sections = [];
- that.sections_by_name = {};
-
- that.__defineGetter__("entity_name", function(){
- return that._entity_name;
- });
-
- that.__defineSetter__("entity_name", function(entity_name){
- that._entity_name = entity_name;
-
- for (var i=0; i ';
- } else {
- return ' ';
- }
- };
-
- function create(container) {
-
- container.attr('title', that.entity_name);
-
- $(' ',{
- html: ""+that.entity_name + ' Settings'
- }).append(IPA.create_network_spinner()).
- appendTo(container);
-
- var details = $('
', {
- 'class': 'content'
- }).appendTo(container);
-
- var action_panel = that.get_action_panel();
-
- var ul = $('ul', action_panel);
- var buttons = $('.action-controls',action_panel);
-
- $(' ', {
- 'type': 'text',
- 'name': 'reset'
- }).appendTo(buttons);
-
- $(' ', {
- 'type': 'text',
- 'name': 'update'
- }).appendTo(buttons);
-
-
- for (var i = 0; i < that.sections.length; ++i) {
- var section = that.sections[i];
-
- $(' ', {
- name: section.name,
- title: section.label,
- html: that.get_section_header_prefix(true) + ' ' + section.label
- }).appendTo(details);
-
- var div = $('
', {
- 'id': that.entity_name+'-'+that.name+'-'+section.name,
- 'class': 'details-section'
- }).appendTo(details);
-
- section.create(div);
-
- details.append(' ');
- }
- }
-
- function setup(container) {
-
- that.facet_setup(container);
-
- var button = $('input[name=reset]', that.container);
- that.reset_button = IPA.action_button({
- 'label': 'Reset',
- 'icon': 'ui-icon-refresh',
- 'class': 'details-reset',
- 'click': function() {
- that.reset();
- return false;
- }
- });
- button.replaceWith(that.reset_button);
-
- button = $('input[name=update]', that.container);
- that.update_button = IPA.action_button({
- 'label': 'Update',
- 'icon': 'ui-icon-check',
- 'class': 'details-update',
- 'click': function() {
- that.update();
- return false;
- }
- });
- button.replaceWith(that.update_button);
-
- for (var i = 0; i < that.sections.length; ++i) {
- var section = that.sections[i];
-
- var header = $('h2[name='+section.name+']', that.container);
-
- var div = $('#'+that.entity_name+'-'+that.name+'-'+section.name,
- that.container);
-
- header.click(function(section, header, div) {
- return function() {
- var visible = div.is(":visible");
- header.html(that.get_section_header_prefix(!visible) + ' ' + section.label);
- div.slideToggle();
- };
- }(section, header, div));
-
- section.setup(div);
- }
- }
-
- function is_dirty() {
- var pkey = $.bbq.getState(that.entity_name + '-pkey', true) || '';
- return pkey != that.pkey;
- }
-
- function load(record) {
- that.record = record;
- for (var i=0; i', {
- id: spec.id,
- html: spec.label,
- title: spec.title || spec.label,
- 'class': 'ui-state-default ui-corner-all'
- });
-
- if (spec.click) button.click(spec.click);
- if (spec['class']) button.addClass(spec['class']);
-
- if (spec.icon) {
- button.addClass('input_link');
- button.append(' ');
- } else {
- button.addClass('button-without-icon');
- }
-
- return button;
-};
-
-IPA.details_refresh = function () {
-
- var that = this;
-
- that.pkey = $.bbq.getState(that.entity_name + '-pkey', true) || '';
-
- function on_success(data, text_status, xhr) {
- that.load(data.result.result);
- }
-
- function on_failure(xhr, text_status, error_thrown) {
- var details = $('.details', that.container).empty();
- details.append('Error: '+error_thrown.name+'
');
- details.append(''+error_thrown.title+'
');
- details.append(''+error_thrown.message+'
');
- }
-
- var params = [];
- if (that.pkey) params.push(that.pkey);
-
- IPA.cmd( 'show', params, {all: true, rights: true}, on_success, on_failure,
- that.entity_name );
-};
-
-IPA.details_update = function (on_win, on_fail)
-{
- var that = this;
- var entity_name = that.entity_name;
-
- function update_on_win(data, text_status, xhr) {
- if (on_win)
- on_win(data, text_status, xhr);
- if (data.error)
- return;
-
- var result = data.result.result;
- that.load(result);
- }
-
- function update_on_fail(xhr, text_status, error_thrown) {
- if (on_fail)
- on_fail(xhr, text_status, error_thrown);
- }
-
- var values;
- var modlist = {'all': true, 'setattr': [], 'addattr': [], 'rights': true};
- var attrs_wo_option = {};
-
- for (var i=0; i 1){
- modlist[field.name] = values;
- } else if (param_info['multivalue']){
- modlist[field.name] = [];
- }
- } else {
- if (values.length) attrs_wo_option[field.name] = values;
- }
- }
- }
-
- for (var attr in attrs_wo_option) {
- values = attrs_wo_option[attr];
- modlist['setattr'].push(attr + '=' + values[0]);
- for (var k = 1; k < values.length; ++k){
- modlist['addattr'].push(attr + '=' + values[k]);
- }
- }
-
- var pkey = that.get_primary_key() ;
- if (pkey){
- pkey = [pkey];
- }else{
- pkey = [];
- }
-
- IPA.cmd('mod', pkey, modlist, update_on_win, null, entity_name);
-};
-
-
-IPA.create_first_dd = function (field_name, content){
- var dd = $(' ', {
- 'class': 'first',
- 'title': field_name
- });
- if (content) dd.append(content);
- return dd;
-};
-
-IPA.create_other_dd = function (field_name, content){
- return $(' ', {
- 'class': 'other',
- 'title': field_name
- }).append(content);
-};
-
-
-/* creates a Remove link for deleting attribute values */
-function _ipa_create_remove_link(attr, param_info)
-{
- if (param_info){
- /* check if the param is required or of the Password type
- * if it is, then we don't want people to be able to remove it */
- if ((param_info['required']) || (param_info['class'] == 'Password')){
- return ('');
- }
- }
- return $(' ',{
- href:"jslink",
- click: function (){return (_ipa_remove_on_click(this));},
- title: attr,
- text: 'Remove'});
-
-}
-
-IPA.details_field_create_add_link = function (title, rights, index) {
-
- var that = this;
-
- var link = $(' ', {
- 'href': 'jslink',
- 'title': title,
- 'html': 'Add',
- 'click': function () {
-
- var param_info = IPA.get_param_info(that.entity_name, '');
- var input = that.create_input('', param_info, rights, index);
-
- link.replaceWith(input);
- input.focus();
-
- var dd = IPA.create_other_dd(that.name);
- dd.append(IPA.details_field_create_add_link.call(that, that.name, rights, index+1));
- dd.appendTo(that.container);
-
- return false;
- }
- });
-
- return link;
-};
-
-
-function _ipa_remove_on_click(obj)
-{
- var jobj = $(obj);
- var attr = jobj.attr('title');
- var par = jobj.parent();
-
- var input = par.find('input');
-
- if (input.is('.strikethrough')){
- input.removeClass('strikethrough');
- jobj.text("Remove");
- }else{
- input.addClass('strikethrough');
- jobj.text("Undo");
- }
- return (false);
-}
diff --git a/install/static/develop.js b/install/static/develop.js
deleted file mode 100644
index 462253500..000000000
--- a/install/static/develop.js
+++ /dev/null
@@ -1,6 +0,0 @@
-/*jsl:import ipa.js */
-
-if (window.location.protocol == 'file:') {
- IPA.json_url = "test/data";
- IPA.use_static_files = true;
-}
diff --git a/install/static/entity.js b/install/static/entity.js
deleted file mode 100644
index 9c58ee3db..000000000
--- a/install/static/entity.js
+++ /dev/null
@@ -1,592 +0,0 @@
-/*jsl:import ipa.js */
-/*jsl:import navigation.js */
-
-/* Authors:
- * Pavel Zuna
- * Endi S. Dewata
- * Adam Young
- *
- * Copyright (C) 2010 Red Hat
- * see file 'COPYING' for use and warranty information
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
-
-/* REQUIRES: ipa.js, details.js, search.js, add.js */
-
-IPA.facet = function (spec) {
-
- spec = spec || {};
-
- var that = {};
- that.display_class = spec.display_class || 'entity-facet';
- that.name = spec.name;
- that.label = spec.label;
- that._entity_name = spec.entity_name;
-
- that.init = spec.init || init;
- that.create = spec.create || create;
- that.setup = spec.setup || setup;
- that.load = spec.load || load;
-
- that.__defineGetter__("entity_name", function(){
- return that._entity_name;
- });
-
- that.__defineSetter__("entity_name", function(entity_name){
- that._entity_name = entity_name;
- });
-
- that.create_action_panel = IPA.facet_create_action_panel;
-
- function init() {
- }
-
- function create(container) {
- }
-
- function setup(container) {
- that.container = container;
- }
-
- function load() {
- }
-
- that.get_client_area = function() {
- return $('.client', that.container);
- };
-
- that.get_action_panel = function() {
- return $('.action-panel', that.container);
- };
-
- that.facet_init = that.init;
- that.facet_create = that.create;
- that.facet_setup = that.setup;
-
- return that;
-};
-
-
-IPA.entity = function (spec) {
-
- spec = spec || {};
-
- var that = {};
- that.name = spec.name;
- that.label = spec.label;
-
- that.setup = spec.setup || IPA.entity_setup;
-
- that.dialogs = [];
- that.dialogs_by_name = {};
-
- that.facets = [];
- that.facets_by_name = {};
-
- that.facet_name = null;
-
- that.autogenerate_associations = false;
-
- that.associations = [];
- that.associations_by_name = {};
-
- that.get_dialog = function(name) {
- return that.dialogs_by_name[name];
- };
-
- that.add_dialog = function(dialog) {
- dialog.entity_name = that.name;
- that.dialogs.push(dialog);
- that.dialogs_by_name[dialog.name] = dialog;
- };
-
- that.get_facet = function(name) {
- return that.facets_by_name[name];
- };
-
- that.add_facet = function(facet) {
- facet.entity_name = that.name;
- that.facets.push(facet);
- that.facets_by_name[facet.name] = facet;
- };
-
- that.get_associations = function() {
- return that.associations;
- };
-
- that.get_association = function(name) {
- return that.associations_by_name[name];
- };
-
- that.add_association = function(config) {
- that.associations.push(config);
- that.associations_by_name[config.name] = config;
- };
-
- that.create_association = function(spec) {
- var config = IPA.association_config(spec);
- that.add_association(config);
- return config;
- };
-
- that.create_association_facet = function(attribute_member, other_entity, label, facet_group) {
-
- if (!attribute_member) {
- attribute_member = IPA.get_member_attribute(
- that.entity_name, other_entity);
- }
-
- return IPA.association_facet({
- 'name': attribute_member+'_'+other_entity,
- 'label': label,
- 'other_entity': other_entity,
- 'facet_group': facet_group,
- 'attribute_member': attribute_member
- });
- };
-
- that.create_association_facets = function() {
-
- var attribute_members = IPA.metadata[that.name].attribute_members;
-
- for (var attribute_member in attribute_members) {
-
- // skip non-assignable associations
- if (attribute_member === 'memberindirect') continue;
- if (attribute_member === 'enrolledby') continue;
-
- var other_entities = attribute_members[attribute_member];
-
- for (var j = 0; j < other_entities.length; j++) {
- var other_entity = other_entities[j];
- var other_entity_name = IPA.metadata[other_entity].label;
-
- var label = other_entity_name;
-
- var relationships = IPA.metadata[that.name].relationships;
-
- var relationship = relationships[attribute_member];
- if (!relationship)
- relationship = ['Member', '', 'no_'];
- var facet_group = relationship[0];
-
- var facet = that.create_association_facet(
- attribute_member, other_entity, label, facet_group);
-
- if (that.get_facet(facet.name)) continue;
-
- that.add_facet(facet);
- }
- }
- };
-
- that.init = function() {
-
- if (!that.label) {
- that.label = IPA.metadata[that.name].label;
- }
-
- if (that.autogenerate_associations) {
- that.create_association_facets();
- }
-
- for (var i=0; i', {
- "class": "action-panel",
- html: $('',{
- text: IPA.metadata[entity_name].label
- })
- }).appendTo(container);
- function build_link(other_facet,label){
- var li = $(' ', {
- "class" : other_facet.display_class,
- title: other_facet.name,
- text: label,
- click: function(entity_name, other_facet_name) {
- return function() {
- if($(this).hasClass('entity-facet-disabled')){
- return false;
- }
- var this_pkey = $('input[id=pkey]', action_panel).val();
- IPA.switch_and_show_page(
- entity_name, other_facet_name,
- this_pkey);
- return false;
- };
- }(entity_name, other_facet_name)
- });
- return li;
- }
- /*Note, for debugging purposes, it is useful to set var pkey_type = 'text';*/
- var pkey_type = 'hidden';
- $(' ', {
- 'type': pkey_type,
- id:'pkey',
- name:'pkey'
- }).appendTo(action_panel);
- var ul = $('', {'class': 'action'}).appendTo(action_panel);
- var entity = IPA.get_entity(entity_name);
- var facet_name = IPA.current_facet(entity);
- var other_facet = entity.facets[0];
- var other_facet_name = other_facet.name;
- var nested_tabs = IPA.nested_tabs(entity_name);
- var main_facet = build_link(other_facet,other_facet.label);
- for (var nested_index = 0 ;
- nested_index < nested_tabs.length;
- nested_index += 1){
- if (nested_tabs[nested_index] === entity_name){
- /*assume for now that entities with only a single facet
- do not have search*/
- if (entity.facets.length > 0 ){
- if ( entity.facets[0].name === IPA.current_facet( entity)){
- ul.append($(' '));
-
- }else{
- main_facet.html(
- $(' ',{
- "class":"input_link"
- }).
- append(IPA.back_icon + ' Back to List '));
- main_facet.addClass('back-to-search');
- main_facet.appendTo(ul);
- }
- ul.append($(' '));
-
- }
- var facet_groups = {};
- var li;
- for (var i=1; i', {
- 'class': 'entity-facet entity-facet-relation-label',
- 'text': other_facet.facet_group,
- 'title': other_facet.facet_group
- });
- ul.append(li);
- facet_groups[facet_group] = li;
- }
- li = facet_groups[facet_group];
- var link = build_link(other_facet, other_facet.label);
- link.addClass('facet-group-member');
- li.after(link );
- /*
- If we are on the current facet, we make the text black, non-clickable,
- add an icon and make sure the action controls are positioned underneath it.
- */
- if ( other_facet.name === IPA.current_facet( entity)){
- var text = link.text();
- link.text('');
- link.append($('').
- append($(' ',{
- 'class': 'entity-facet-selected',
- html: IPA.selected_icon + text
- })).
- append($(' ',{
- html:$(' ',{
- 'class':"action-controls"
- })
- })));
- }
- facet_groups[facet_group] = li.next();
- } else {
- var innerlist = $('').appendTo(ul);
- var facet_link = build_link(other_facet, other_facet.label);
- facet_link.addClass('entity-facet-selected');
- facet_link.prepend(IPA.selected_icon);
- innerlist.append(facet_link);
- if ( other_facet.name === IPA.current_facet( entity)){
-
- innerlist.append($(' '));
- }
- }
- }
- }else{
- $(' ', {
- title: nested_tabs[nested_index],
- text: IPA.metadata[nested_tabs[nested_index]].label,
- "class": "search-facet",
- click: function() {
- var state = {};
- state[nested_tabs[0]+'-entity'] =
- this.title;
- nav_push_state(state);
- return false;
- }
- }).appendTo(ul);
- }
- }
- /*When we land on the search page, disable all facets
- that require a pkey until one is selected*/
- if (facet_name === 'search'){
- $('.entity-facet', action_panel).addClass('entity-facet-disabled');
- }
- return action_panel;
-};
diff --git a/install/static/gray-fade-line.png b/install/static/gray-fade-line.png
deleted file mode 100644
index 896cfca0e..000000000
Binary files a/install/static/gray-fade-line.png and /dev/null differ
diff --git a/install/static/group.js b/install/static/group.js
deleted file mode 100644
index 13017ac5a..000000000
--- a/install/static/group.js
+++ /dev/null
@@ -1,201 +0,0 @@
-/*jsl:import ipa.js */
-
-/* Authors:
- * Pavel Zuna
- *
- * Copyright (C) 2010 Red Hat
- * see file 'COPYING' for use and warranty information
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
-
-/* REQUIRES: ipa.js, details.js, search.js, add.js, entity.js */
-
-IPA.group = function () {
-
- var that = IPA.entity({
- 'name': 'group'
- });
-
- that.init = function() {
-
- that.create_association({
- name: 'netgroup',
- associator: 'serial'
- });
-
- that.create_association({
- name: 'rolegroup',
- associator: 'serial'
- });
-
- that.create_association({
- name: 'taskgroup',
- associator: 'serial'
- });
-
- var dialog = IPA.group_add_dialog({
- 'name': 'add',
- 'title': 'Add New Group'
- });
- that.add_dialog(dialog);
- dialog.init();
-
- var facet = IPA.group_search_facet({
- 'name': 'search',
- 'label': 'Search'
- });
- that.add_facet(facet);
-
- facet = IPA.group_details_facet({
- 'name': 'details'
- });
- that.add_facet(facet);
-
- that.create_association_facets();
-
- that.entity_init();
- };
-
- return that;
-};
-
-
-IPA.add_entity(IPA.group());
-
-
-IPA.group_add_dialog = function (spec) {
-
- spec = spec || {};
-
- var that = IPA.add_dialog(spec);
-
- that.init = function() {
-
- that.add_field(IPA.text_widget({name:'cn', undo: false}));
- that.add_field(IPA.text_widget({name:'description', undo: false}));
- // TODO: Replace with i18n label
- that.add_field(IPA.checkbox_widget({
- name:'posix',
- label:'Is this a POSIX group?',
- undo: false,
- checked:'checked'}));
- that.add_field(IPA.text_widget({name:'gidnumber', undo: false}));
-
- that.add_dialog_init();
- };
-
- return that;
-};
-
-
-IPA.group_search_facet = function (spec) {
-
- spec = spec || {};
-
- var that = IPA.search_facet(spec);
-
- that.init = function() {
- that.create_column({name:'cn'});
- that.create_column({name:'gidnumber'});
- that.create_column({name:'description'});
- that.search_facet_init();
- };
-
- return that;
-};
-
-
-IPA.group_details_facet = function (spec) {
-
- spec = spec || {};
-
- var that = IPA.details_facet(spec);
-
- that.init = function() {
-
- var section = IPA.details_list_section({
- name: 'details',
- label: 'Group Settings'
- });
- that.add_section(section);
-
- section.create_field({name: 'cn' });
- section.create_field({name: 'description'});
- section.create_field({name: 'gidnumber' });
-
- that.details_facet_init();
- };
-
- return that;
-};
-
-
-IPA.group_member_user_facet = function (spec) {
-
- spec = spec || {};
-
- var that = IPA.association_facet(spec);
-
- that.init = function() {
-
- that.create_column({name: 'cn'});
-
- var column = that.create_column({
- name: 'uid',
- primary_key: true
- });
-
- column.setup = function(container, record) {
- container.empty();
-
- var value = record[column.name];
- value = value ? value.toString() : '';
-
- $(' ', {
- 'href': '#'+value,
- 'html': value,
- 'click': function (value) {
- return function() {
- var state = IPA.tab_state(that.other_entity);
- state[that.other_entity + '-facet'] = 'details';
- state[that.other_entity + '-pkey'] = value;
- $.bbq.pushState(state);
- return false;
- };
- }(value)
- }).appendTo(container);
- };
-
- that.create_column({name: 'uidnumber'});
- that.create_column({name: 'mail'});
- that.create_column({name: 'telephonenumber'});
- that.create_column({name: 'title'});
-
- that.create_adder_column({
- name: 'cn',
- width: '100px'
- });
-
- that.create_adder_column({
- name: 'uid',
- primary_key: true,
- width: '100px'
- });
-
- that.association_facet_init();
- };
-
- return that;
-};
diff --git a/install/static/hbacrule.js b/install/static/hbacrule.js
deleted file mode 100644
index 455ad4d38..000000000
--- a/install/static/hbacrule.js
+++ /dev/null
@@ -1,989 +0,0 @@
-/*jsl:import ipa.js */
-
-/* Authors:
- * Endi Sukma Dewata
- *
- * Copyright (C) 2010 Red Hat
- * see file 'COPYING' for use and warranty information
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
-
-/* REQUIRES: ipa.js, details.js, search.js, add.js, entity.js */
-
-IPA.hbacrule = function () {
-
- var that = IPA.entity({
- 'name': 'hbacrule'
- });
-
- that.init = function() {
-
- var dialog = IPA.hbacrule_add_dialog({
- 'name': 'add',
- 'title': 'Add New Rule'
- });
- that.add_dialog(dialog);
- dialog.init();
-
- var facet = IPA.hbacrule_search_facet({
- 'name': 'search',
- 'label': 'Search'
- });
- that.add_facet(facet);
-
- facet = IPA.hbacrule_details_facet({
- 'name': 'details'
- });
- that.add_facet(facet);
-
- that.entity_init();
- };
-
- return that;
-};
-
-
-IPA.add_entity(IPA.hbacrule());
-
-
-IPA.hbacrule_add_dialog = function (spec) {
-
- spec = spec || {};
-
- var that = IPA.add_dialog(spec);
-
- that.init = function() {
-
- that.add_field(IPA.text_widget({
- 'name': 'cn',
- 'undo': false
- }));
-
- that.add_field(IPA.radio_widget({
- 'name': 'accessruletype',
- 'options': [
- { 'value': 'allow', 'label': 'Allow' },
- { 'value': 'deny', 'label': 'Deny' }
- ],
- 'undo': false
- }));
-
- that.add_dialog_init();
- };
-
- return that;
-};
-
-
-IPA.hbacrule_search_facet = function (spec) {
-
- spec = spec || {};
-
- var that = IPA.search_facet(spec);
-
- that.init = function() {
-
- that.create_column({name:'cn'});
- that.create_column({name:'usercategory'});
- that.create_column({name:'hostcategory'});
- that.create_column({name:'ipaenabledflag'});
- that.create_column({name:'servicecategory'});
- that.create_column({name:'sourcehostcategory'});
-
- that.search_facet_init();
- };
-
- that.create = function(container) {
-
-/*
- // Not yet implemented
-
- var left_buttons = $(' ', {
- 'style': 'float: left;'
- }).appendTo(container);
-
- left_buttons.append(IPA.button({
- 'label': 'Troubleshoot Rules'
- }));
-
- left_buttons.append(IPA.button({
- 'label': 'Cull Disabled Rules'
- }));
-*/
-
- that.search_facet_create(container);
-
- };
-
- return that;
-};
-
-
-IPA.hbacrule_details_facet = function (spec) {
-
- spec = spec || {};
-
- var that = IPA.details_facet(spec);
-
- that.init = function() {
-
- var section;
-
- if (IPA.layout) {
- section = that.create_section({
- 'name': 'general',
- 'label': 'General',
- 'template': 'hbacrule-details-general.html #contents'
- });
-
- } else {
- section = IPA.hbacrule_details_general_section({
- 'name': 'general',
- 'label': 'General'
- });
- that.add_section(section);
- }
-
- section.create_text({ 'name': 'cn', 'label': 'Name', 'read_only': true });
- section.create_radio({ 'name': 'accessruletype', 'label': 'Rule Type' });
- section.create_textarea({ 'name': 'description', 'label': 'Description' });
- section.create_radio({ 'name': 'ipaenabledflag', 'label': 'Enabled' });
-
- if (IPA.layout) {
- section = that.create_section({
- 'name': 'user',
- 'label': 'Who',
- 'template': 'hbacrule-details-user.html #contents'
- });
-
- } else {
- section = IPA.rule_details_section({
- 'name': 'user',
- 'label': 'Who',
- 'text': 'Rule applies when access is requested by:',
- 'field_name': 'usercategory',
- 'options': [
- { 'value': 'all', 'label': 'Anyone' },
- { 'value': '', 'label': 'Specified Users and Groups' }
- ],
- 'tables': [
- { 'field_name': 'memberuser_user' },
- { 'field_name': 'memberuser_group' }
- ]
- });
- that.add_section(section);
- }
-
- var category = section.create_radio({ name: 'usercategory', label: 'User category' });
- section.add_field(IPA.rule_association_table_widget({
- 'id': that.entity_name+'-memberuser_user',
- 'name': 'memberuser_user', 'label': 'Users', 'category': category,
- 'other_entity': 'user', 'add_method': 'add_user', 'remove_method': 'remove_user'
- }));
- section.add_field(IPA.rule_association_table_widget({
- 'id': that.entity_name+'-memberuser_group',
- 'name': 'memberuser_group', 'label': 'Groups', 'category': category,
- 'other_entity': 'group', 'add_method': 'add_user', 'remove_method': 'remove_user'
- }));
-
- if (IPA.layout) {
- section = that.create_section({
- 'name': 'host',
- 'label': 'Accessing',
- 'template': 'hbacrule-details-host.html #contents'
- });
-
- } else {
- section = IPA.rule_details_section({
- 'name': 'host',
- 'label': 'Accessing',
- 'text': 'Rule applies when access is requested to:',
- 'field_name': 'hostcategory',
- 'options': [
- { 'value': 'all', 'label': 'Any Host' },
- { 'value': '', 'label': 'Specified Hosts and Groups' }
- ],
- 'tables': [
- { 'field_name': 'memberhost_host' },
- { 'field_name': 'memberhost_hostgroup' }
- ]
- });
- that.add_section(section);
- }
-
- category = section.create_radio({ 'name': 'hostcategory', 'label': 'Host category' });
- section.add_field(IPA.rule_association_table_widget({
- 'id': that.entity_name+'-memberhost_host',
- 'name': 'memberhost_host', 'label': 'Hosts', 'category': category,
- 'other_entity': 'host', 'add_method': 'add_host', 'remove_method': 'remove_host'
- }));
- section.add_field(IPA.rule_association_table_widget({
- 'id': that.entity_name+'-memberhost_hostgroup',
- 'name': 'memberhost_hostgroup', 'label': 'Host Groups', 'category': category,
- 'other_entity': 'hostgroup', 'add_method': 'add_host', 'remove_method': 'remove_host'
- }));
-
- if (IPA.layout) {
- section = that.create_section({
- 'name': 'service',
- 'label': 'Via Service',
- 'template': 'hbacrule-details-service.html #contents'
- });
-
- } else {
- section = IPA.rule_details_section({
- 'name': 'service',
- 'label': 'Via Service',
- 'text': 'Rule applies when access is requested via:',
- 'field_name': 'servicecategory',
- 'options': [
- { 'value': 'all', 'label': 'Any Service' },
- { 'value': '', 'label': 'Specified Services and Groups' }
- ],
- 'tables': [
- { 'field_name': 'memberservice_hbacsvc' },
- { 'field_name': 'memberservice_hbacsvcgroup' }
- ]
- });
- that.add_section(section);
- }
-
- category = section.create_radio({ 'name': 'servicecategory', 'label': 'Service category' });
- section.add_field(IPA.rule_association_table_widget({
- 'id': that.entity_name+'-memberservice_hbacsvc',
- 'name': 'memberservice_hbacsvc', 'label': 'Services', 'category': category,
- 'other_entity': 'hbacsvc', 'add_method': 'add_service', 'remove_method': 'remove_service'
- }));
- section.add_field(IPA.rule_association_table_widget({
- 'id': that.entity_name+'-memberservice_hbacsvcgroup',
- 'name': 'memberservice_hbacsvcgroup', 'label': 'Service Groups', 'category': category,
- 'other_entity': 'hbacsvcgroup', 'add_method': 'add_service', 'remove_method': 'remove_service'
- }));
-
- if (IPA.layout) {
- section = that.create_section({
- 'name': 'sourcehost',
- 'label': 'From',
- 'template': 'hbacrule-details-sourcehost.html #contents'
- });
-
- } else {
- section = IPA.rule_details_section({
- 'name': 'sourcehost',
- 'label': 'From',
- 'text': 'Rule applies when access is being initiated from:',
- 'field_name': 'sourcehostcategory',
- 'options': [
- { 'value': 'all', 'label': 'Any Host' },
- { 'value': '', 'label': 'Specified Hosts and Groups' }
- ],
- 'tables': [
- { 'field_name': 'sourcehost_host' },
- { 'field_name': 'sourcehost_hostgroup' }
- ]
- });
- that.add_section(section);
- }
-
- category = section.create_radio({ 'name': 'sourcehostcategory', 'label': 'Source host category' });
- section.add_field(IPA.rule_association_table_widget({
- 'id': that.entity_name+'-sourcehost_host',
- 'name': 'sourcehost_host', 'label': 'Host', 'category': category,
- 'other_entity': 'host', 'add_method': 'add_sourcehost', 'remove_method': 'remove_sourcehost'
- }));
- section.add_field(IPA.rule_association_table_widget({
- 'id': that.entity_name+'-sourcehost_hostgroup',
- 'name': 'sourcehost_hostgroup', 'label': 'Host Groups', 'category': category,
- 'other_entity': 'hostgroup', 'add_method': 'add_sourcehost', 'remove_method': 'remove_sourcehost'
- }));
-/*
- if (IPA.layout) {
- section = that.create_section({
- 'name': 'accesstime',
- 'label': 'When',
- 'template': 'hbacrule-details-accesstime.html #contents'
- });
-
- } else {
- section = that.create_section({
- 'name': 'accesstime',
- 'label': 'When'
- });
- }
-
- section.add_field(ipa_hbacrule_accesstime_widget({
- 'id': 'accesstime',
- 'name': 'accesstime', 'label': 'Access Time',
- 'text': 'Rule applies when access is being requested at:',
- 'options': [
- { 'value': 'all', 'label': 'Any Time' },
- { 'value': '', 'label': 'Specified Times' }
- ]
- }));
-*/
- that.details_facet_init();
- };
-
- that.update = function() {
-
- var pkey = $.bbq.getState(that.entity_name + '-pkey', true) || '';
-
- var modify_operation = {
- 'execute': false,
- 'command': IPA.command({
- 'method': that.entity_name+'_mod',
- 'args': [pkey],
- 'options': {'all': true, 'rights': true}
- })
- };
-
- var remove_accesstime = {
- 'template': IPA.command({
- 'method': that.entity_name+'_remove_accesstime',
- 'args': [pkey],
- 'options': {'all': true, 'rights': true}
- }),
- 'commands': []
- };
-
- var categories = {
- 'usercategory': {
- 'remove_values': false
- },
- 'hostcategory': {
- 'remove_values': false
- },
- 'servicecategory': {
- 'remove_values': false
- },
- 'sourcehostcategory': {
- 'remove_values': false
- }
- };
-
- var member_operations = {
- 'memberuser': {
- 'category': 'usercategory',
- 'has_values': false,
- 'command': IPA.command({
- 'method': that.entity_name+'_remove_user',
- 'args': [pkey],
- 'options': {'all': true, 'rights': true}
- })
- },
- 'memberhost': {
- 'category': 'hostcategory',
- 'has_values': false,
- 'command': IPA.command({
- 'method': that.entity_name+'_remove_host',
- 'args': [pkey],
- 'options': {'all': true, 'rights': true}
- })
- },
- 'memberservice': {
- 'category': 'servicecategory',
- 'has_values': false,
- 'command': IPA.command({
- 'method': that.entity_name+'_remove_service',
- 'args': [pkey],
- 'options': {'all': true, 'rights': true}
- })
- },
- 'sourcehost': {
- 'category': 'sourcehostcategory',
- 'has_values': false,
- 'command': IPA.command({
- 'method': that.entity_name+'_remove_sourcehost',
- 'args': [pkey],
- 'options': {'all': true, 'rights': true}
- })
- }
- };
-
- var enable_operation = {
- 'execute': false,
- 'command': IPA.command({
- 'method': that.entity_name+'_enable',
- 'args': [pkey],
- 'options': {'all': true, 'rights': true}
- })
- };
-
- for (var i=0; i= 0) {
- // prepare command to remove members if needed
- var attribute = field.name.substring(0, p);
- var other_entity = field.name.substring(p+1);
-
- if (values.length) {
- member_operations[attribute].command.set_option(other_entity, values.join(','));
- member_operations[attribute].has_values = true;
- }
- continue;
- }
-
- // skip unchanged field
- if (!field.is_dirty(span)) continue;
-
- // check enable/disable
- if (field.name == 'ipaenabledflag') {
- if (values[0] == 'FALSE') enable_operation.command.method = that.entity_name+'_disable';
- enable_operation.execute = true;
- continue;
- }
-
- if (field.name == 'accesstime') {
- // if accesstime is dirty, it means 'Any Time' is selected,
- // so existing values have to be removed
- for (var k=0; k', {
- 'style': 'width: 100%;'
- }).appendTo(container);
-
- var tr = $(' ').appendTo(table);
-
- var td = $(' ', {
- 'style': 'width: 100px; text-align: right;',
- 'html': 'Name:'
- }).appendTo(tr);
-
- td = $(' ').appendTo(tr);
-
- var span = $(' ', { 'name': 'cn' }).appendTo(td);
-
- $(' ', {
- 'type': 'text',
- 'name': 'cn',
- 'size': 30
- }).appendTo(span);
-
- span.append(' ');
-
- $(' ', {
- 'name': 'undo',
- 'class': 'ui-state-highlight ui-corner-all',
- 'style': 'display: none;',
- 'html': 'undo'
- }).appendTo(span);
-
- td = $(' ', {
- 'style': 'text-align: right;'
- }).appendTo(tr);
-
- td.append('Rule type:');
-
- span = $(' ', { 'name': 'accessruletype' }).appendTo(td);
-
- $(' ', {
- 'type': 'radio',
- 'name': 'accessruletype',
- 'value': 'allow'
- }).appendTo(span);
-
- span.append('Allow');
-
- $(' ', {
- 'type': 'radio',
- 'name': 'accessruletype',
- 'value': 'deny'
- }).appendTo(span);
-
- span.append('Deny');
-
- span.append(' ');
-
- $(' ', {
- 'name': 'undo',
- 'class': 'ui-state-highlight ui-corner-all',
- 'style': 'display: none;',
- 'html': 'undo'
- }).appendTo(span);
-
- tr = $(' ').appendTo(table);
-
- td = $(' ', {
- 'style': 'text-align: right; vertical-align: top;',
- 'html': 'Description:'
- }).appendTo(tr);
-
- td = $(' ', {
- 'colspan': 2
- }).appendTo(tr);
-
- span = $(' ', { 'name': 'description' }).appendTo(td);
-
- $('', {
- 'name': 'description',
- 'rows': 5,
- 'style': 'width: 100%'
- }).appendTo(span);
-
- span.append(' ');
-
- $(' ', {
- 'name': 'undo',
- 'class': 'ui-state-highlight ui-corner-all',
- 'style': 'display: none;',
- 'html': 'undo'
- }).appendTo(span);
-
- tr = $(' ').appendTo(table);
-
- td = $(' ', {
- 'style': 'text-align: right; vertical-align: top;',
- 'html': 'Rule status:'
- }).appendTo(tr);
-
- td = $(' ', {
- 'colspan': 2
- }).appendTo(tr);
-
- span = $(' ', { 'name': 'ipaenabledflag' }).appendTo(td);
-
- $(' ', {
- 'type': 'radio',
- 'name': 'ipaenabledflag',
- 'value': 'TRUE'
- }).appendTo(span);
-
- span.append('Active');
-
- $(' ', {
- 'type': 'radio',
- 'name': 'ipaenabledflag',
- 'value': 'FALSE'
- }).appendTo(span);
-
- span.append('Inactive');
-
- span.append(' ');
-
- $(' ', {
- 'name': 'undo',
- 'class': 'ui-state-highlight ui-corner-all',
- 'style': 'display: none;',
- 'html': 'undo'
- }).appendTo(span);
- };
-
- return that;
-};
-
-IPA.hbacrule_accesstime_widget = function (spec) {
-
- spec = spec || {};
-
- var that = IPA.widget(spec);
-
- that.text = spec.text;
- that.options = spec.options || [];
-
- that.init = function() {
-
- that.widget_init();
-
- that.table = IPA.table_widget({
- 'id': 'accesstime-table',
- 'name': 'table', 'label': that.label
- });
-
- that.table.create_column({
- 'name': that.name,
- 'label': that.label,
- 'primary_key': true
- });
-
- that.table.init();
- };
-
- that.create = function(container) {
-
- that.widget_create(container);
-
- var span = $(' ', { 'name': 'text' }).appendTo(container);
-
- span.append(that.text);
-
- for (var i=0; i ', {
- 'type': 'radio',
- 'name': that.name,
- 'value': option.value
- }).appendTo(container);
-
- container.append(option.label);
- }
-
- container.append(' ');
-
- $(' ', {
- 'name': 'undo',
- 'class': 'ui-state-highlight ui-corner-all',
- 'style': 'display: none;',
- 'html': 'undo'
- }).appendTo(container);
-
- container.append(' ');
-
- span = $(' ', { 'name': 'table' }).appendTo(container);
-
- that.table.create(span);
-
- var buttons = $('span[name=buttons]', span);
-
- $(' ', {
- 'type': 'button',
- 'name': 'remove',
- 'value': 'Remove '+that.label
- }).appendTo(buttons);
-
- $(' ', {
- 'type': 'button',
- 'name': 'add',
- 'value': 'Add '+that.label
- }).appendTo(buttons);
- };
-
- that.setup = function(container) {
-
- that.widget_setup(container);
-
- var span = $('span[name="table"]', that.container);
- that.table.setup(span);
-
- var button = $('input[name=remove]', span);
- button.replaceWith(IPA.button({
- 'label': button.val(),
- 'icon': 'ui-icon-trash',
- 'click': function() { that.remove(that.container); }
- }));
-
- button = $('input[name=add]', span);
- button.replaceWith(IPA.button({
- 'label': button.val(),
- 'icon': 'ui-icon-plus',
- 'click': function() { that.add(that.container); }
- }));
-
- var input = $('input[name="'+that.name+'"]', that.container);
- input.change(function() {
- that.show_undo();
- });
-
- var undo = that.get_undo();
- undo.click(function() {
- that.reset();
- });
- };
-
- that.save = function() {
- var value = $('input[name="'+that.name+'"]:checked', that.container).val();
- if (value === '') {
- return that.table.save();
- } else {
- return [];
- }
- };
-
- that.load = function(record) {
-
- that.values = record[that.name] || [];
- that.reset();
- };
-
- that.update = function() {
-
- that.set_category(that.container, that.values && that.values.length ? '' : 'all');
-
- that.table.tbody.empty();
- for (var i=0; that.values && i').appendTo(dialog.container);
-
- var tr = $(' ').appendTo(table);
-
- var td = $(' ', {
- 'style': 'vertical-align: top;'
- }).appendTo(tr);
- td.append(that.label+': ');
-
- td = $(' ').appendTo(tr);
-
- var span = $(' ', { 'name': that.name }).appendTo(td);
-
- $(' ', {
- 'type': 'text',
- 'name': that.name,
- 'size': 40
- }).appendTo(span);
-
- tr = $(' ').appendTo(table);
-
- td = $(' ', {
- 'style': 'vertical-align: top;'
- }).appendTo(tr);
- td.append('Example:');
-
- td = $(' ').appendTo(tr);
-
- td.append('Every day between 0800 and 1400: ');
- td.append('periodic daily 0800-1400 ');
-
- td.append('December 16, 2010 from 10:32 until 10:33: ');
- td.append('absolute 201012161032 ~ 201012161033 ');
- };
-
- function add(on_success, on_error) {
-
- var field = dialog.get_field(that.name);
- var value = field.save()[0];
-
- var command = IPA.command({
- 'method': that.entity_name+'_add_'+that.name,
- 'args': [pkey],
- 'on_success': function() {
- that.refresh();
- if (on_success) on_success();
- },
- 'on_error': function() {
- that.refresh();
- if (on_error) on_error();
- }
- });
-
- command.set_option(that.name, value);
-
- command.execute();
- }
-
- dialog.add_button('Add', function() {
- add(
- function() { dialog.reset(); }
- );
- });
-
- dialog.add_button('Add and Close', function() {
- add(
- function() { dialog.close(); },
- function() { dialog.close(); }
- );
- });
-
- dialog.add_button('Cancel', function() {
- dialog.close();
- });
-
- dialog.init();
-
- dialog.open(that.container);
- };
-
- that.remove = function() {
-
- var values = that.table.get_selected_values();
-
- if (!values.length) {
- alert('Select '+that.label+' to be removed.');
- return;
- }
-
- var pkey = $.bbq.getState(that.entity_name + '-pkey', true) || '';
- var title = 'Remove '+that.label+' from '+that.entity_name+' '+pkey;
-
- var dialog = IPA.deleter_dialog({
- 'title': title,
- 'values': values
- });
-
- dialog.remove = function() {
-
- var batch = IPA.batch_command({
- 'on_success': function() {
- that.refresh();
- dialog.close();
- },
- 'on_error': function() {
- that.refresh();
- dialog.close();
- }
- });
-
- for (var i=0; iError: '+error_thrown.name+'');
- summary.append(''+error_thrown.title+'
');
- summary.append(''+error_thrown.message+'
');
- }
-
- var pkey = $.bbq.getState(that.entity_name + '-pkey', true) || '';
- IPA.cmd('show', [pkey], {'rights': true}, on_success, on_error, that.entity_name);
- };
-
- return that;
-};
diff --git a/install/static/hbacsvc.js b/install/static/hbacsvc.js
deleted file mode 100644
index dc0bc3230..000000000
--- a/install/static/hbacsvc.js
+++ /dev/null
@@ -1,118 +0,0 @@
-/*jsl:import ipa.js */
-
-/* Authors:
- * Endi Sukma Dewata
- *
- * Copyright (C) 2010 Red Hat
- * see file 'COPYING' for use and warranty information
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
-
-/* REQUIRES: ipa.js, details.js, search.js, add.js, entity.js */
-
-IPA.hbacsvc = function () {
-
- var that = IPA.entity({
- 'name': 'hbacsvc'
- });
-
- that.init = function() {
-
- var dialog = IPA.hbacsvc_add_dialog({
- 'name': 'add',
- 'title': 'Add New HBAC Service'
- });
- that.add_dialog(dialog);
- dialog.init();
-
- var facet = IPA.hbacsvc_search_facet({
- 'name': 'search',
- 'label': 'Search'
- });
- that.add_facet(facet);
-
- facet = IPA.hbacsvc_details_facet({
- 'name': 'details'
- });
- that.add_facet(facet);
-
- that.entity_init();
- };
-
- return that;
-};
-
-
-IPA.add_entity(IPA.hbacsvc());
-
-
-IPA.hbacsvc_add_dialog = function (spec) {
-
- spec = spec || {};
-
- var that = IPA.add_dialog(spec);
-
- that.init = function() {
-
- that.add_field(IPA.text_widget({name:'cn', undo: false}));
- that.add_field(IPA.text_widget({name:'description', undo: false}));
-
- that.add_dialog_init();
- };
-
- return that;
-};
-
-
-IPA.hbacsvc_search_facet = function (spec) {
-
- spec = spec || {};
-
- var that = IPA.search_facet(spec);
-
- that.init = function() {
-
- that.create_column({name:'cn', primary_key: true});
- that.create_column({name:'description'});
-
- that.search_facet_init();
- };
-
- return that;
-};
-
-
-IPA.hbacsvc_details_facet = function (spec) {
-
- spec = spec || {};
-
- var that = IPA.details_facet(spec);
-
- that.init = function() {
-
- var section = IPA.details_list_section({
- 'name': 'general',
- 'label': 'General'
- });
- that.add_section(section);
-
- section.create_field({'name': 'cn'});
- section.create_field({'name': 'description'});
-
- that.details_facet_init();
- };
-
- return that;
-};
diff --git a/install/static/hbacsvcgroup.js b/install/static/hbacsvcgroup.js
deleted file mode 100644
index 2dd049cbe..000000000
--- a/install/static/hbacsvcgroup.js
+++ /dev/null
@@ -1,197 +0,0 @@
-/*jsl:import ipa.js */
-
-/* Authors:
- * Endi Sukma Dewata
- *
- * Copyright (C) 2010 Red Hat
- * see file 'COPYING' for use and warranty information
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
-
-/* REQUIRES: ipa.js, details.js, search.js, add.js, entity.js */
-
-IPA.hbacsvcgroup = function () {
-
- var that = IPA.entity({
- 'name': 'hbacsvcgroup'
- });
-
- that.init = function() {
-
- that.create_association({
- 'name': 'hbacsvc',
- 'add_method': 'add_member',
- 'remove_method': 'remove_member'
- });
-
- var dialog = IPA.hbacsvcgroup_add_dialog({
- 'name': 'add',
- 'title': 'Add New HBAC Service Group'
- });
- that.add_dialog(dialog);
- dialog.init();
-
- var facet = IPA.hbacsvcgroup_search_facet({
- 'name': 'search',
- 'label': 'Search'
- });
- that.add_facet(facet);
-
- facet = IPA.hbacsvcgroup_details_facet({
- 'name': 'details'
- });
- that.add_facet(facet);
-
- that.entity_init();
- };
-
- return that;
-};
-
-
-IPA.add_entity(IPA.hbacsvcgroup());
-
-
-IPA.hbacsvcgroup_add_dialog = function (spec) {
-
- spec = spec || {};
-
- var that = IPA.add_dialog(spec);
-
- that.init = function() {
-
- that.add_field(IPA.text_widget({name:'cn', undo: false}));
- that.add_field(IPA.text_widget({name:'description', undo: false}));
-
- that.add_dialog_init();
- };
-
- return that;
-};
-
-
-IPA.hbacsvcgroup_search_facet = function (spec) {
-
- spec = spec || {};
-
- var that = IPA.search_facet(spec);
-
- that.init = function() {
-
- that.create_column({name:'cn', primary_key: true});
- that.create_column({name:'description'});
-
- that.search_facet_init();
- };
-
-
- return that;
-};
-
-
-IPA.hbacsvcgroup_details_facet = function (spec) {
-
- spec = spec || {};
-
- var that = IPA.details_facet(spec);
-
- that.init = function() {
-
- var section = IPA.details_list_section({
- 'name': 'general',
- 'label': 'General'
- });
- that.add_section(section);
-
- section.create_field({'name': 'cn'});
- section.create_field({'name': 'description'});
-
- section = IPA.details_section({
- 'name': 'services',
- 'label': 'Services'
- });
- that.add_section(section);
-
- var field = IPA.hbacsvcgroup_member_hbacsvc_table_widget({
- 'name': 'member_hbacsvc',
- 'label': 'Services',
- 'other_entity': 'hbacsvc',
- 'save_values': false
- });
- section.add_field(field);
-
- that.details_facet_init();
- };
-
- return that;
-};
-
-
-IPA.hbacsvcgroup_member_hbacsvc_table_widget = function (spec) {
-
- spec = spec || {};
-
- var that = IPA.association_table_widget(spec);
-
- that.init = function() {
-
- var column = that.create_column({
- name: 'cn',
- primary_key: true,
- width: '150px'
- });
-
- column.setup = function(container, record) {
- container.empty();
-
- var value = record[column.name];
- value = value ? value.toString() : '';
-
- $(' ', {
- 'href': '#'+value,
- 'html': value,
- 'click': function (value) {
- return function() {
- var state = IPA.tab_state(that.other_entity);
- state[that.other_entity + '-facet'] = 'details';
- state[that.other_entity + '-pkey'] = value;
- $.bbq.pushState(state);
- return false;
- };
- }(value)
- }).appendTo(container);
- };
-
- that.create_column({
- name: 'description',
- width: '350px'
- });
-
- that.create_adder_column({
- name: 'cn',
- primary_key: true,
- width: '100px'
- });
-
- that.create_adder_column({
- name: 'description',
- width: '100px'
- });
-
- that.association_table_widget_init();
- };
-
- return that;
-};
diff --git a/install/static/header.png b/install/static/header.png
deleted file mode 100644
index 265d9b404..000000000
Binary files a/install/static/header.png and /dev/null differ
diff --git a/install/static/header_background.png b/install/static/header_background.png
deleted file mode 100644
index 609a4575c..000000000
Binary files a/install/static/header_background.png and /dev/null differ
diff --git a/install/static/header_logo.png b/install/static/header_logo.png
deleted file mode 100644
index 2b8e65361..000000000
Binary files a/install/static/header_logo.png and /dev/null differ
diff --git a/install/static/host.js b/install/static/host.js
deleted file mode 100644
index c3851ff75..000000000
--- a/install/static/host.js
+++ /dev/null
@@ -1,494 +0,0 @@
-/*jsl:import ipa.js */
-/*jsl:import certificate.js */
-
-/* Authors:
- * Pavel Zuna
- * Endi S. Dewata
- *
- * Copyright (C) 2010 Red Hat
- * see file 'COPYING' for use and warranty information
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
-
-/* REQUIRES: ipa.js, details.js, search.js, add.js, entity.js */
-
-IPA.host = function () {
-
- var that = IPA.entity({
- 'name': 'host'
- });
-
- that.init = function() {
-
- that.create_association({
- 'name': 'hostgroup',
- 'associator': 'serial'
- });
-
- that.create_association({
- 'name': 'rolegroup',
- 'associator': 'serial'
- });
-
- var dialog = IPA.host_add_dialog({
- 'name': 'add',
- 'title': 'Add New Host'
- });
- that.add_dialog(dialog);
- dialog.init();
-
- var facet = IPA.host_search_facet({
- 'name': 'search',
- 'label': 'Search'
- });
- that.add_facet(facet);
-
- facet = IPA.host_details_facet({
- 'name': 'details'
- });
- that.add_facet(facet);
-
- facet = IPA.host_managedby_host_facet({
- 'name': 'managedby_host',
- 'label': IPA.messages.association.managedby+' '+IPA.metadata['host'].label,
- 'other_entity': 'host'
- });
- that.add_facet(facet);
-
- that.create_association_facets();
-
- that.entity_init();
- };
-
- return that;
-};
-
-
-IPA.add_entity(IPA.host());
-
-
-IPA.host_add_dialog = function (spec) {
-
- spec = spec || {};
-
- var that = IPA.add_dialog(spec);
-
- that.init = function() {
-
- that.add_field(IPA.text_widget({
- name: 'fqdn',
- size: 40,
- undo: false
- }));
-
- // TODO: Replace with i18n label
- that.add_field(IPA.checkbox_widget({
- name: 'force',
- label: 'Force',
- tooltip: 'force host name even if not in DNS',
- undo: false
- }));
-
- that.add_dialog_init();
- };
-
- return that;
-};
-
-
-IPA.host_search_facet = function (spec) {
-
- spec = spec || {};
-
- var that = IPA.search_facet(spec);
-
- that.init = function() {
-
- that.create_column({name:'fqdn'});
- that.create_column({name:'description'});
- //TODO use the value of this field to set enrollment status
- that.create_column({name:'krblastpwdchange', label:'Enrolled?'});
- that.create_column({name:'nshostlocation'});
-
- that.search_facet_init();
- };
-
- return that;
-};
-
-
-IPA.host_details_facet = function (spec) {
-
- spec = spec || {};
-
- var that = IPA.details_facet(spec);
-
- that.init = function() {
-
- var section = IPA.details_list_section({
- 'name': 'details',
- 'label': 'Host Settings'
- });
- that.add_section(section);
-
- //TODO: use i18n labels
- section.create_field({
- name: 'fqdn',
- label: 'Fully Qualified Host Name'
- });
-
- section.create_field({'name': 'krbprincipalname'});
-
- //TODO: add this to the host plugin
- //TODO: use i18n labels
- section.create_field({
- 'name': 'serverhostname',
- 'label': 'Host Name'
- });
-
- section.create_field({'name': 'description'});
-
- //TODO: use i18n labels
- section = IPA.details_list_section({
- 'name': 'enrollment',
- 'label': 'Enrollment'
- });
- that.add_section(section);
-
- //TODO add label to messages
- section.add_field(host_provisioning_status_widget({
- 'name': 'provisioning_status',
- 'label': 'Status',
- 'facet': that
- }));
-
- section = IPA.details_list_section({
- 'name': 'certificate',
- 'label': 'Host Certificate'
- });
- that.add_section(section);
-
- section.add_field(host_certificate_status_widget({
- 'name': 'certificate_status',
- 'label': 'Status'
- }));
-
- that.details_facet_init();
- };
-
- that.refresh = function() {
-
- var pkey = $.bbq.getState(that.entity_name + '-pkey', true) || '';
-
- var command = IPA.command({
- 'name': that.entity_name+'_show_'+pkey,
- 'method': that.entity_name+'_show',
- 'args': [pkey],
- 'options': { 'all': true, 'rights': true }
- });
-
- command.on_success = function(data, text_status, xhr) {
- that.load(data.result.result);
- };
-
- command.on_error = function(xhr, text_status, error_thrown) {
- var details = $('.details', that.container).empty();
- details.append('Error: '+error_thrown.name+'
');
- details.append(''+error_thrown.title+'
');
- details.append(''+error_thrown.message+'
');
- };
-
- command.execute();
- };
-
- return that;
-};
-
-
-function host_provisioning_status_widget(spec) {
-
- spec = spec || {};
-
- var that = IPA.widget(spec);
-
- that.facet = spec.facet;
-
- that.create = function(container) {
-
- that.widget_create(container);
-
- var dd = $(' ', {
- 'class': 'first'
- }).appendTo(container);
-
- var div = $('
', {
- name: 'kerberos-key-valid'
- }).appendTo(dd);
-
- $(' ', {
- src: 'check.png',
- style: 'float: left;',
- 'class': 'status-icon'
- }).appendTo(div);
-
- var content_div = $('
', {
- style: 'float: left;'
- }).appendTo(div);
-
- content_div.append('Kerberos Key Present, Host Provisioned: ');
-
- content_div.append(' ');
-
- $(' ', {
- 'type': 'button',
- 'name': 'unprovision',
- 'value': 'Delete Key, Unprovision'
- }).appendTo(content_div);
-
- div = $('
', {
- name: 'kerberos-key-missing'
- }).appendTo(dd);
-
- $(' ', {
- src: 'caution.png',
- style: 'float: left;',
- 'class': 'status-icon'
- }).appendTo(div);
-
- content_div = $('
', {
- style: 'float: left;'
- }).appendTo(div);
-
- content_div.append('Kerberos Key Not Present ');
-
- content_div.append(' ');
-
- content_div.append('Enroll via One-Time-Password:');
-
- content_div.append(' ');
- content_div.append(' ');
-
- $(' ', {
- 'type': 'text',
- 'name': 'otp',
- 'class': 'otp'
- }).appendTo(content_div);
-
- content_div.append(' ');
-
- $(' ', {
- 'type': 'button',
- 'name': 'enroll',
- 'value': 'Set OTP'
- }).appendTo(content_div);
- };
-
- that.setup = function(container) {
-
- that.widget_setup(container);
-
- that.valid = $('div[name=kerberos-key-valid]', that.container);
- that.missing = $('div[name=kerberos-key-missing]', that.container);
-
- var button = $('input[name=unprovision]', that.container);
- that.unprovision_button = IPA.button({
- 'label': 'Delete Key, Unprovision',
- 'click': that.show_unprovision_dialog
- });
- button.replaceWith(that.unprovision_button);
-
- that.otp_input = $('input[name=otp]', that.container);
-
- that.enroll_button = $('input[name=enroll]', that.container);
- button = IPA.button({
- 'label': 'Set OTP',
- 'click': that.set_otp
- });
-
- that.enroll_button.replaceWith(button);
- that.enroll_button = button;
- };
-
- that.show_unprovision_dialog = function() {
-
- var label = IPA.metadata[that.entity_name].label;
- var dialog = IPA.dialog({
- 'title': 'Unprovisioning '+label
- });
-
- dialog.create = function() {
- dialog.container.append(
- 'Are you sure you want to unprovision this host?');
- };
-
- dialog.add_button('Unprovision', function() {
- that.unprovision(
- function(data, text_status, xhr) {
- set_status('missing');
- dialog.close();
- },
- function(xhr, text_status, error_thrown) {
- dialog.close();
- }
- );
- });
-
- dialog.init();
-
- dialog.open(that.container);
-
- return false;
- };
-
- that.unprovision = function(on_success, on_error) {
-
- var pkey = that.facet.get_primary_key();
-
- var command = IPA.command({
- 'name': that.entity_name+'_disable_'+pkey,
- 'method': that.entity_name+'_disable',
- 'args': [pkey],
- 'options': { 'all': true, 'rights': true },
- 'on_success': on_success,
- 'on_error': on_error
- });
-
- command.execute();
- };
-
- that.set_otp = function() {
-
- var pkey = that.facet.get_primary_key();
- var otp = that.otp_input.val();
- that.otp_input.val('');
-
- var command = IPA.command({
- 'method': that.entity_name+'_mod',
- 'args': [pkey],
- 'options': {
- 'all': true,
- 'rights': true,
- 'userpassword': otp
- },
- 'on_success': function(data, text_status, xhr) {
- alert('One-Time-Password has been set.');
- }
- });
-
- command.execute();
- };
-
- that.load = function(result) {
- that.result = result;
- var krblastpwdchange = result['krblastpwdchange'];
- set_status(krblastpwdchange ? 'valid' : 'missing');
- };
-
- function set_status(status) {
- that.valid.css('display', status == 'valid' ? 'inline' : 'none');
- that.missing.css('display', status == 'missing' ? 'inline' : 'none');
- }
-
- return that;
-}
-
-function host_certificate_status_widget(spec) {
-
- spec = spec || {};
-
- var that = certificate_status_widget(spec);
-
- that.init = function() {
-
- that.entity_label = IPA.metadata[that.entity_name].label;
-
- that.get_entity_pkey = function(result) {
- var values = result['fqdn'];
- return values ? values[0] : null;
- };
-
- that.get_entity_name = function(result) {
- return that.get_entity_pkey(result);
- };
-
- that.get_entity_principal = function(result) {
- var values = result['krbprincipalname'];
- return values ? values[0] : null;
- };
-
- that.get_entity_certificate = function(result) {
- var values = result['usercertificate'];
- return values ? values[0].__base64__ : null;
- };
- };
-
- return that;
-}
-
-IPA.host_managedby_host_facet = function (spec) {
-
- spec = spec || {};
-
- var that = IPA.association_facet(spec);
-
- that.add_method = 'add_managedby';
- that.remove_method = 'remove_managedby';
-
- that.init = function() {
-
- var column = that.create_column({
- name: 'fqdn',
- primary_key: true
- });
-
- column.setup = function(container, record) {
- container.empty();
-
- var value = record[column.name];
- value = value ? value.toString() : '';
-
- $(' ', {
- 'href': '#'+value,
- 'html': value,
- 'click': function (value) {
- return function() {
- var state = IPA.tab_state(that.other_entity);
- state[that.other_entity + '-facet'] = 'details';
- state[that.other_entity + '-pkey'] = value;
- $.bbq.pushState(state);
- return false;
- };
- }(value)
- }).appendTo(container);
- };
-
- that.create_column({name: 'description'});
-
- that.create_adder_column({
- name: 'fqdn',
- primary_key: true,
- width: '100px'
- });
-
- that.create_adder_column({
- name: 'description',
- width: '100px'
- });
-
- that.association_facet_init();
- };
-
- return that;
-};
diff --git a/install/static/hostgroup.js b/install/static/hostgroup.js
deleted file mode 100644
index 0525c05f2..000000000
--- a/install/static/hostgroup.js
+++ /dev/null
@@ -1,67 +0,0 @@
-/*jsl:import ipa.js */
-
-/* Authors:
- * Pavel Zuna
- *
- * Copyright (C) 2010 Red Hat
- * see file 'COPYING' for use and warranty information
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
-
-/* REQUIRES: ipa.js, details.js, search.js, add.js, entity.js */
-
-
-IPA.add_entity( function() {
- var that = IPA.entity({
- 'name': 'hostgroup'
- });
- that.init = function() {
- var search_facet = IPA.search_facet({
- name: 'search',
- label: 'Search',
- entity_name: that.name
- });
- search_facet.create_column({name:'cn'});
- search_facet.create_column({name:'description'});
- that.add_facet(search_facet);
-
- that.add_facet(function() {
- var that = IPA.details_facet({name:'details'});
- that.add_section(
- IPA.stanza({name:'identity', label:'Hostgroup Settings'}).
- input({name:'cn'}).
- input({name: 'description'}));
- return that;
- }());
-
-
- var dialog = IPA.add_dialog({
- name: 'add',
- title: 'Add Hostgroup'
- });
- that.add_dialog(dialog);
-
- dialog.add_field(IPA.text_widget({name: 'cn', undo: false}));
- dialog.add_field(IPA.text_widget({name: 'description', undo: false}));
- dialog.init();
-
- that.create_association_facets();
- that.entity_init();
- };
- return that;
-}());
-
-
-
diff --git a/install/static/index.html b/install/static/index.html
deleted file mode 100644
index 7ee4aa61c..000000000
--- a/install/static/index.html
+++ /dev/null
@@ -1,66 +0,0 @@
-
-
-
-
- IPA: Identity Policy Audit
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/install/static/ipa.css b/install/static/ipa.css
deleted file mode 100644
index 5726ad99c..000000000
--- a/install/static/ipa.css
+++ /dev/null
@@ -1,750 +0,0 @@
-/* Authors:
- * Pavel Zuna
- * Adam Young
- * Endi Sukma Dewata
- * Kyle Baker
- *
- * Copyright (C) 2010 Red Hat
-*/
-
-
-@font-face {font-family: "FreeWay"; src:url("FreeWay.otf");}
-@font-face {font-family: "FreeWayBold"; src:url("FreeWay-Bold.otf");}
-
-body{
- background-image:url('outer-bg.png');
- background-repeat:repeat-x;
- background-position:left top;
- background-color:#F9F9F9;
- border-width: 0;
- font-family:"Liberation Sans",Arial,Sans;
- font-size:11px;
- margin: 0;
-}
-
-.network-activity-indicator{
- display:none;
-}
-
-.center-container {
- margin-left: auto;
- margin-right: auto;
- width: 960px;
-}
-
-.ui-widget {
- font-size: 1em;
-}
-
-.input_link {
- padding: .4em 1em .4em 2em;
- text-decoration: none;
- position: relative;
- cursor: pointer;
-}
-
-.input_link span.ui-icon {
- -moz-border-radius: 0.3em;
- border: 1px solid #B8B8B8;
- margin: -0.9em 0.4em 0em -0.3em;
- position: absolute;
- left: .2em;
- top: 50%;
-}
-
-.button-without-icon {
- padding: .4em 1em .4em 1em;
- text-decoration: none;
- position: relative;
- cursor: pointer;
-}
-
-/* ---- Header ---- */
-div.header {
- background-color:#0C3B00;
- width: 100%;
- height: 4em;
-}
-
-div.header a {
- text-decoration: none;
-}
-
-div.header a:link {
- text-decoration: none;
- color: white;
-}
-
-div.header a:visited {
- text-decoration: none;
- color: white;
-}
-
-div.header span.header-logo {
- padding-left: 2em;
-}
-
-div.header span.header-logo a img {
- border: 0;
-}
-
-div.header span.header-loggedinas {
- width: 96em;
- color: #fff;
- display: block;
- padding-left: 71em;
- margin-top: -2.6em;
- margin-left: auto;
- margin-right: 27.6em;
- width: 20em;
-}
-
-/* ---- Navigation ---- */
-div.tabs {
- overflow: auto;
- width: 100%;
- height: 100%;
- min-height: 40em;
-}
-
-div#content {
- margin-top: 0;
- position: relative;
- width: 100%;
-}
-
-
-ul#viewtype {
- padding-left: 2em;
-}
-
-ul#viewtype li {
- color: #656565;
- display: inline;
- font-weight: bold;
- list-style-type: none;
- padding-right: 2em;
-}
-
-
-ul#viewtype li img {
- vertical-align: middle;
-}
-
-ul#viewtype li a {
- font-weight: normal;
-}
-
-div.content div.content-buttons {
- float: right;
- margin-right: 1.5em;
-}
-
-div.content div.content-buttons img {
- border: 0;
-}
-
-
-.entity-container h1{
- -moz-border-radius: 0.3em;
- font-family: "FreeWayBold", "Liberation Sans", Arial, sans-serif;
- color: #333333;
- margin: 0;
- background: #EEEEEE;
- margin-top: 0.5em;
- padding: .5em;
- text-transform: uppercase;
- font-size: 1.2em;
-}
-
-
-h2 {
- font-family: "FreeWayBold","Liberation Sans", Arial, sans-serif;
- font-size: 1.5em;
- font-weight: normal;
- color: #333333;
- text-transform: uppercase;
- margin-left: 1em;
- margin-bottom: 0;
- text-align: left;
-}
-
-.section-expand{
- float:left;
- -moz-border-radius: 0.3em;
- background-color: -moz-linear-gradient(top, #959595, #5e5e5e);
- border: 1px solid #b8b8b8;
- color: #fff;
- margin-right: 0.5em;
- margin-top: 0.1em;
-}
-
-hr {
- background-color: #EEEEEE;
- clear: both;
- color: #FFFFFF;
- height: 0.1em;
- margin-left: 1.5em;
- margin-right: 1.5em;
- margin-top: 1em;
-}
-
-.details-section {
- margin-left: 4.5em;
- margin-right: 1.5em;
- margin-top: 1.8em;
- white-space: nowrap;
- padding-bottom: 1.8em;
- padding-right: 1.8em;
-}
-
-.undo {
- cursor:pointer;
-}
-
-dl.entryattrs {
- clear: both;
- margin-left: 1.5em;
- margin-top: 1.8em;
- white-space: nowrap;
-}
-
-dl.entryattrs dt {
- clear: left;
- float: left;
- padding-bottom: 1.8em;
- padding-right: 1.8em;
- text-align: right;
- width: 16em;
- margin: 0.5em -0.5em 0 -6em;
-}
-
-dl.entryattrs dd {
- float: left;
- padding-bottom: 1.8em;
-}
-
-dl.entryattrs dd.first {
- margin-left: 0;
- margin-top: 0.7em;
-}
-
-dl.entryattrs dd.other {
- clear: both;
- margin-left: 10.7em;
-}
-
-dl.entryattrs input {
- margin-right: 0.5em;
- margin-top: -1.2em;
- min-width: 27.5em;
-}
-
-dl.entryattrs input.otp {
- min-width: 15em;
- width: 15em;
-}
-
-span.attrhint {
- font-size: 8pt;
- left: 5em;
- margin-left: 12.5em;
- position: absolute;
- overflow-x: hidden;
-}
-
-
-/*Navigation */
-.tabs1 .ui-tabs-nav{
- padding-left: 2.5em;
- padding-top: 2em;
- margin: 0;
- border: none;
- background-image: url(Mainnav-background.png);
- -moz-border-radius: 0;
-}
-
-.ui-tabs {
- padding:0;
-}
-
-#the positions for these are in the large icon image,
-#and need to be specified in pixels.
-.ui-icon-plus {
- background-position: -16px -129px;
-}
-
-.ui-icon-minus {
- background-position: -48px -129px;
-}
-
-.ui-icon-trash {
- background-position: -176px -97px;
-}
-
-.ui-widget-content .ui-icon {
- background-image: url("ui-icons_222222_256x240.png");
- background-color: #e2e2e2;
-}
-
-.ui-widget-content {
-}
-
-
-.ui-widget-content a {
- text-decoration: none;
- color: #1d85d5;
- font-weight: normal;
-}
-
-.ui-widget-header {
- background: url("modal-background.png")
- repeat scroll 50% 50% #1f9123;
- border: 1px solid #244c16;
- color: #EEEEEE;
- font-weight: bold;
-}
-
-.tabs1 .ui-tabs-nav {
- height: 3em;
-}
-
-.ui-widget input, .ui-widget select,
-.ui-widget textarea, .ui-widget button {
- font-family: "Liberation Sans", Arial, sans-serif;
- font-size: 1.3em;
- margin-right: .1em;
-}
-
-.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
- -moz-border-radius: .3em;
- background: -moz-linear-gradient(top, #959595, #5e5e5e);
- border: 1px solid #777777;
- color: #fff;
- font-weight: normal;
-}
-
-.tabs1 .ui-tabs-nav li {
- -moz-border-radius: 0 !important;
- background-image: url(Mainnav-offtab.png);
- margin: 0;
- border-width: 0;
- text-align: center;
- vertical-align:baseline;
- }
-
-.tabs1 .ui-tabs-nav li.ui-tabs-selected {
- padding: 0 0;
- background-image: url(Mainnav-ontab.png);
- text-align: center;
- margin: 0;
-}
-
-.tabs1 .ui-tabs-nav li a{
- -moz-border-radius: 0 !important;
- font-family: "FreeWayBold", "Liberation Sans", Arial, Sans;
- width:5.5em;
- padding: none;
- color: #7E7E7E;
- margin: 0 auto;
- text-align:center;
- font-size:1.5em;
-}
-
-
-.tabs1 .ui-tabs-nav li > a:link, span.main-nav-off > a:visited{
- color: #7E7E7E;
-}
-
-.tabs1 .ui-tabs-nav li.ui-tabs-selected a{
- color: #3D752A;
-}
-
-.tabs1 .ui-tabs-panel {
- display: block;
- border-width: 0;
- padding: 0 0 0 0;
- background: none;
- overflow-x: hidden;
-}
-
-.tabs2 .ui-tabs-nav {
- padding: 0.3em 6em 0 4em;
- margin: 0;
- height: 2.4em;
- background-image: url(Subnav-background.png);
-}
-
-.tabs2 .ui-tabs-nav li {
- width:auto;
- padding-left: 1em;
- margin: 0;
- background: #326122 !important;
- color: white;
-}
-
-.tabs2 .ui-tabs-nav li.ui-tabs-selected {
- padding-left: 1em;
- height: 1em;
- background: #326122 !important;
-}
-
-
-.tabs2 .ui-tabs-nav li a{
- width:auto;
- padding: 0.4em 0.6em ;
- -moz-border-radius: 2em !important;
- border-radius: 2em !important;
- color: white;
- font-size: 1em;
- font-family: "Liberation Sans", Arial, Sans;
-}
-
-.tabs2 .ui-tabs-nav li > a:link, span.main-nav-off > a:visited{
- color:white;
-}
-
-
-.tabs2 .ui-tabs-nav li a:hover{
- background: none repeat scroll 0 0 #1C3612;
-}
-
-.tabs2 .ui-tabs-nav li.ui-tabs-selected a{
- background: none repeat scroll 0 0 #1C3612;
- color: white;
-
-}
-
-span.sub-nav-off > a:link, span.sub-nav-off > a:visited{
- color:white;
-}
-
-span.main-nav-off > a:link, span.main-nav-off > a:visited{
- color:white;
-}
-
-span.main-separator{
- background: #333339;
- padding:0.1em;
-}
-
-
-
-/* Entity */
-
-.entity-container{
- position: relative;
- left: 22em;
- width: 80%;
- margin: 0.06em;
- padding: 0.06em;
- background: #e8e8e8;
-}
-
-.action-panel {
- position: fixed;
- height: 33em;
- left: auto;
- border: none;
- float: none;
- margin-top: 6.3em;
- margin-left: -19.5em;
- margin-right: 0;
- padding-left: 0;
- position: fixed;
- width: 18em;
- background-image:url('panel-background.png');
- background-repeat:no-repeat;
- background-position:right;
-}
-
-.action-panel h3{
- font-family: "FreeWayBold", "Liberation Sans", Arial, sans-serif;
- color: #333333;
- margin: 0;
- background: #EEEEEE;
- padding: .5em;
- border-right: 1px solid #dfdfdf;
- text-transform: uppercase;
- font-size: 1.2em;
-}
-
-.action-panel ul {
- list-style-type:none;
- padding-left: .5em;
-}
-
-.action-panel h3{
- margin: 0;
- background: #e8e8e8;
-}
-
-.action-panel li {
- font-family: "FreeWayBold", "Liberation Sans", Arial, sans-serif;
- font-size: 1.1em;
- color: #1d85d5;
- list-style-type: none;
- min-height: 2.1em;
- padding: none;
-}
-
-.action-panel li.search-facet {
- font-family: "FreeWayBold", "Liberation Sans", Arial, Sans;
- color: #1D85D5;
- cursor: pointer;
- text-transform: uppercase;
- font-size: 1.2em;
-}
-
-.action-panel li.back-to-search {
- margin-left: -1.5em;
-}
-
-.action-panel li.entity-facet {
- font-family: "Liberation Sans",Arial,sans-serif;
- color: #1d85d5;
- cursor: pointer;
- margin-left:1.2em;
- text-transform: none;
-}
-
-.action-panel li.entity-facet-selected {
- font-family: "FreeWayBold", "Liberation Sans", Arial, Sans;
- color: black;
- text-transform: uppercase;
- cursor: pointer;
-}
-
-.action-panel li.entity-facet-disabled {
- display:none;
-}
-
-.action-panel li.entity-facet-relation-label {
- font-family: "FreeWayBold", "Liberation Sans", Arial, Sans;
- color: #8a8a8a;
- cursor: default;
- text-transform: uppercase;
- margin-left:1.8em;
-}
-
-.action-panel li.facet-group-member {
- margin-left: 2.9em
-}
-
-
-.action-button {
- background: none;
- background-image:none;
- font-family: "Liberation Sans", Arial, sans-serif;
- font-size: 0.9em;
-}
-
-a.action-button-disabled {
- color: gray;
- cursor: default;
-}
-
-.action-controls {
- position: relative;
- display:inline;
-}
-
-.client {
- font-size: 10px;
- margin-top: 0.4em;
- float: left;
- min-width: 70em;
-}
-
-
-/* Search */
-
-.search-controls {
- -moz-border-radius: .7em .7em 0 0;
- height:2.5em;
- background: -moz-linear-gradient(top, #eeeeee, #dfdfdf);
- position: relative;
- padding: 1em 1.5em;
- margin-top: 1.5em;
-}
-
-.search-table > a:link,a:visted{
- color:black;
-}
-
-.search-table{
- padding: 0;
- width:100%;
- border: none;
-}
-
-.search-table td{
- padding-left: 0.5em;
-}
-
-.search-table th{
- padding-left: 0.5em;
- background-color:#f6f6f6;
- color:#333333;
- text-align: left;
- border: 1px solid #dfdfdf;
-}
-
-.search-table tfoot tr td span{
- border-top: 1px solid #dfdfdf;
- padding: 0.9em 0 0 1em;
- display: block;
- margin-top: 2em;
-}
-
-.search-table tr:nth-child(even){
-# background-color:#CCC;
-}
-
-.search-table tr:nth-child(odd){
-# background-color:#FFF;
-}
-
-.entity-views{
- list-style-type:none;
-}
-
-.entity-views li {
- display:inline;
- cursor: pointer;
- padding: 0.4em;
-}
-
-.strikethrough { text-decoration: line-through; }
-
-table.certificate-status {
- line-height: 2;
-}
-
-table.kerberos-key-status {
- line-height: 2;
-}
-
-.status-icon {
- vertical-align: bottom;
-# width: auto;
-# height: 1em;
-# -webkit-border-radius: 0.5em;
-# -moz-border-radius: 0.5em;
-}
-
-.status-valid {
- background-image:url('check.png');
- border: 0.2em solid #008000;
-}
-
-.status-valid-active {
- background-color: #008000;
-}
-
-.status-revoked {
- border: 0.2em solid #ff0000;
-}
-
-.status-revoked-active {
- background-color: #ff0000;
-}
-
-.status-missing {
- border: 0.2em solid #daa520;
-}
-
-.status-missing-active {
- background-color: #daa520;
-}
-
-dl.modal {
- clear: both;
- margin-left: 1em;
- margin-top: 1em;
- white-space: nowrap;
-}
-
-dl.modal dt {
- clear: left;
- float: left;
- padding-bottom: 0;
- padding-right: 0;
- text-align: right;
- width: 10em;
-}
-
-dl.modal dd {
- float: left;
- padding-bottom: 0;
- margin-left: 0.8em;
-}
-
-
-
-.ui-widget-content {
-border:0;
-}
-
-table.scrollable thead {
- display: block;
-}
-
-table.scrollable tbody {
- display: block;
- overflow: auto;
-}
-
-.adder-dialog-filter {
- height: 2.5em;
-}
-
-.adder-dialog-results {
- position: relative;
- height: 20.0em;
-}
-
-.adder-dialog-available {
- border: 1px solid black;
- position: absolute;
- top: 0;
- left: 0;
- bottom: 0;
- width: 23.0em;
-}
-
-.adder-dialog-buttons {
- position: absolute;
- top: 1.5em;
- left: 23.35em;
- right: 25;
- bottom: 0;
- text-align: center;
-}
-
-.adder-dialog-selected {
- border: 1px solid black;
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- width: 23em;
-}
-
-.adder-dialog-internal {
- border: 1px solid black;
- position: absolute;
- top: 0;
- left: 0;
- bottom: 4.5em;
- width: 25em;
-}
-
-.adder-dialog-external {
- border: 1px solid black;
- position: absolute;
- left: 0;
- bottom: 0;
- width: 25em;
- height: 4em;
-}
diff --git a/install/static/ipa.js b/install/static/ipa.js
deleted file mode 100644
index 48c116a8c..000000000
--- a/install/static/ipa.js
+++ /dev/null
@@ -1,490 +0,0 @@
-/* Authors:
- * Pavel Zuna
- * Adam Young
- * Endi Dewata
- *
- * Copyright (C) 2010 Red Hat
- * see file 'COPYING' for use and warranty information
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
-*/
-
-
-/*global $:true, location:true */
-
-var IPA = ( function () {
-
- var that = {
- jsonrpc_id: 0
- };
-
- that.use_static_files = false;
- that.json_url = '/ipa/json';
- if (that.use_static_files){
- that.json_url = 'test/data';
- }
-
- that.ajax_options = {
- type: 'POST',
- contentType: 'application/json',
- dataType: 'json',
- async: true,
- processData: false
- };
-
- that.messages = {};
- that.metadata = {};
- that.whoami = {};
-
-
- that.entities = [];
- that.entities_by_name = {};
-
- that.error_dialog = $('
', {
- id: 'error_dialog'
- });
-
- that.layout = $.bbq.getState('layout');
- that.layouts_dir = 'layouts';
-
- that.get_template = function(path) {
- var layout = that.layout || 'default';
- return that.layouts_dir+'/'+layout+'/'+path;
- };
-
- /* initialize the IPA JSON-RPC helper
- * arguments:
- * url - JSON-RPC URL to use (optional) */
- that.init = function (url, use_static_files, on_success, on_error) {
- if (url) {
- that.json_url = url;
- }
-
- if (use_static_files) {
- that.use_static_files = use_static_files;
- }
-
- $.ajaxSetup(that.ajax_options);
-
-
- var startup_batch =
- [
- {"method":"json_metadata","params":[[],{}]},
- {"method":"i18n_messages","params":[[],{}]},
- {"method":"user_find","params":[[],{
- "whoami":"true","all":"true"}]},
- {"method":"env","params":[[],{}]}
- ];
-
-
- IPA.cmd('batch', startup_batch, {},
- function (data, text_status, xhr) {
- that.metadata = data.result.results[0].metadata;
- that.messages = data.result.results[1].messages;
- that.whoami = data.result.results[2].result[0];
- that.env = data.result.results[3].result;
- if (on_success) {
- on_success(data, text_status, xhr);
- }
- },
- on_error,
- null,
- 'ipa_init');
- };
-
- that.get_entities = function () {
- return that.entities;
- };
-
- that.get_entity = function (name) {
- return that.entities_by_name[name];
- };
-
- that.add_entity = function (entity) {
- that.entities.push(entity);
- that.entities_by_name[entity.name] = entity;
- };
-
-
- that.show_page = function (entity_name, facet_name) {
-
- var state = {};
- state[entity_name + '-facet'] = facet_name;
- $.bbq.pushState(state);
- };
-
- that.switch_and_show_page = function (this_entity, facet_name, pkey) {
- if (!pkey){
- that.show_page(this_entity, facet_name);
- return;
- }
- var state = {};
- state[this_entity+'-pkey'] = pkey;
- state[this_entity + '-facet'] = facet_name;
- $.bbq.pushState(state);
- };
-
- return that;
-}());
-
-IPA.command = function (spec) {
-
- spec = spec || {};
-
- var that = {};
-
- that.name = spec.name;
- that.method = spec.method;
-
- that.args = $.merge([], spec.args || []);
- that.options = $.extend({}, spec.options || {});
-
- that.on_success = spec.on_success;
- that.on_error = spec.on_error;
-
- that.add_arg = function(arg) {
- that.args.push(arg);
- };
-
- that.set_option = function(name, value) {
- that.options[name] = value;
- };
-
- that.get_option = function(name) {
- return that.options[name];
- };
-
- that.execute = function() {
- IPA.cmd(
- that.method,
- that.args,
- that.options,
- that.on_success,
- that.on_error,
- null,
- that.name);
- };
-
- that.to_json = function() {
- var json = {};
-
- json.method = that.method;
-
- json.params = [];
- json.params[0] = that.args || [];
- json.params[1] = that.options || {};
-
- return json;
- };
-
- that.to_string = function() {
- var string = that.method.replace(/_/g, '-');
-
- for (var i=0; i'+error_thrown.message+'');
-
- dialog_open.call(this, xhr, text_status, error_thrown);
- }
-
- function error_handler(xhr, text_status, error_thrown) {
- hide_activity_icon();
- if (!error_thrown) {
- error_thrown = {
- name: xhr.responseText || 'Unknown Error',
- message: xhr.statusText || 'Unknown Error'
- };
- }
-
- if (xhr.status === 401) {
- error_thrown.name = 'Kerberos ticket no longer valid.';
- if (IPA.messages && IPA.messages.ajax){
- error_thrown.message = IPA.messages.ajax["401"];
- } else {
- error_thrown.message =
- "Your kerberos ticket no longer valid. "+
- "Please run kinit and then click 'retry'. "+
- "If this is your first time running the IPA Web UI "+
- ""+
- "follow these directions to configure your browser.";
- }
- }
-
- error_thrown.title = 'AJAX Error: '+error_thrown.name;
- ajax_error_handler.call(this, xhr, text_status, error_thrown);
- }
-
-
- function http_error_handler(xhr, text_status, error_thrown) {
- IPA.error_dialog.empty();
- IPA.error_dialog.attr('title', error_thrown.title);
-
- IPA.error_dialog.append('URL: '+this.url+'
');
- IPA.error_dialog.append(''+error_thrown.message+'
');
-
- dialog_open.call(this, xhr, text_status, error_thrown);
- }
-
- //Think this should be removed
- function alt_error_handler(xhr, text_status, error_thrown) {
- hide_activity_icon();
- IPA.error_dialog.empty();
- IPA.error_dialog.attr('title', error_thrown.title);
-
- IPA.error_dialog.append(''+error_thrown.message+'
');
-
- dialog_open.call(this, xhr, text_status, error_thrown);
- }
-
-
- function success_handler(data, text_status, xhr) {
- hide_activity_icon();
- if (!data) {
- var error_thrown = {
- title: 'HTTP Error '+xhr.status,
- message: data ? xhr.statusText : "No response"
- };
- http_error_handler.call(this, xhr, text_status, error_thrown);
-
- } else if (data.error) {
- error_handler.call(this, xhr, text_status, /* error_thrown */ {
- title: 'IPA Error '+data.error.code,
- message: data.error.message
- });
-
- } else if (win_callback) {
- win_callback.call(this, data, text_status, xhr);
- }
- }
-
- IPA.jsonrpc_id += 1;
- var id = IPA.jsonrpc_id;
-
- var method_name = name;
-
- if (objname){
- method_name = objname + '_' + name;
- }
-
- var url = IPA.json_url;
-
- if (IPA.use_static_files){
- if (command_name) {
- url += '/' + command_name + '.json';
- } else {
- url += '/' + method_name + '.json';
- }
- }
- var data = {
- method: method_name,
- params: [args, options],
- id: id
- };
-
- var request = {
- url: url,
- data: JSON.stringify(data),
- success: success_handler,
- error: error_handler
- };
- display_activity_icon();
- $.ajax(request);
-
- return (id);
-};
-
-
-/* helper function used to retrieve information about an attribute */
-IPA.get_param_info = function(obj_name, attr)
-{
- var obj = IPA.metadata[obj_name];
- if (!obj) {
- return null;
- }
-
- var takes_params = obj.takes_params;
- if (!takes_params) {
- return (null);
-
- }
- for (var i = 0; i < takes_params.length; i += 1) {
- if (takes_params[i].name === attr){
- return (takes_params[i]);
- }
- }
-
- return (null);
-};
-
-/* helper function used to retrieve attr name with members of type `member` */
-IPA.get_member_attribute = function (obj_name, member)
-{
- var obj = IPA.metadata[obj_name];
- if (!obj) {
- return null;
- }
- var attribute_members = obj.attribute_members;
- for (var a in attribute_members) {
- var objs = attribute_members[a];
- for (var i = 0; i < objs.length; i += 1) {
- if (objs[i] === member){
- return a;
- }
- }
- }
- return null;
-
-};
-
-
-IPA.create_network_spinner = function(){
- return $(' ',{
- 'class':'network-activity-indicator',
- html: ' '});
-};
diff --git a/install/static/ipa_logo_180x50.png b/install/static/ipa_logo_180x50.png
deleted file mode 100644
index defa78cfd..000000000
Binary files a/install/static/ipa_logo_180x50.png and /dev/null differ
diff --git a/install/static/ipalogo.png b/install/static/ipalogo.png
deleted file mode 100644
index 62185c1b0..000000000
Binary files a/install/static/ipalogo.png and /dev/null differ
diff --git a/install/static/jquery-ui.css b/install/static/jquery-ui.css
deleted file mode 100644
index 01c3ec90e..000000000
--- a/install/static/jquery-ui.css
+++ /dev/null
@@ -1,572 +0,0 @@
-/*
- * jQuery UI CSS Framework @VERSION
- *
- * 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/Theming/API
- */
-
-/* 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 @VERSION
- *
- * 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/Theming/API
- *
- * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana,%20Arial,%20sans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=0px&bgColorHeader=333333&bgTextureHeader=14_loop.png&bgImgOpacityHeader=8&borderColorHeader=a3a3a3&fcHeader=eeeeee&iconColorHeader=bbbbbb&bgColorContent=f9f9f9&bgTextureContent=04_highlight_hard.png&bgImgOpacityContent=100&borderColorContent=cccccc&fcContent=222222&iconColorContent=222222&bgColorDefault=111111&bgTextureDefault=02_glass.png&bgImgOpacityDefault=40&borderColorDefault=777777&fcDefault=e3e3e3&iconColorDefault=ededed&bgColorHover=1c1c1c&bgTextureHover=02_glass.png&bgImgOpacityHover=55&borderColorHover=000000&fcHover=ffffff&iconColorHover=ffffff&bgColorActive=ffffff&bgTextureActive=01_flat.png&bgImgOpacityActive=65&borderColorActive=cccccc&fcActive=222222&iconColorActive=222222&bgColorHighlight=ffeb80&bgTextureHighlight=06_inset_hard.png&bgImgOpacityHighlight=55&borderColorHighlight=ffde2e&fcHighlight=363636&iconColorHighlight=4ca300&bgColorError=cd0a0a&bgTextureError=06_inset_hard.png&bgImgOpacityError=45&borderColorError=9e0505&fcError=ffffff&iconColorError=ffcf29&bgColorOverlay=aaaaaa&bgTextureOverlay=04_highlight_hard.png&bgImgOpacityOverlay=40&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=03_highlight_soft.png&bgImgOpacityShadow=50&opacityShadow=20&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
- */
-
-
-/* Component containers
-----------------------------------*/
-.ui-widget { font-family: 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: Verdana, Arial, sans-serif; font-size: 1em; }
-.ui-widget-content { border: 1px solid #cccccc; background: #f9f9f9 url(ui-bg_highlight-hard_100_f9f9f9_1x100.png) 50% top repeat-x; color: #222222; }
-.ui-widget-content a { color: #222222; }
-.ui-widget-header { border: 1px solid #a3a3a3; background: #333333 url(ui-bg_loop_8_333333_21x21.png) 50% 50% repeat; color: #eeeeee; font-weight: bold; }
-.ui-widget-header a { color: #eeeeee; }
-
-/* Interaction states
-----------------------------------*/
-.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #777777; background: #111111 url(ui-bg_glass_40_111111_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #e3e3e3; }
-.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #e3e3e3; 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 #000000; background: #1c1c1c url(ui-bg_glass_55_1c1c1c_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #ffffff; }
-.ui-state-hover a, .ui-state-hover a:hover { color: #ffffff; text-decoration: none; }
-.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #cccccc; background: #ffffff url(ui-bg_flat_65_ffffff_40x100.png) 50% 50% repeat-x; font-weight: normal; color: #222222; }
-.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #222222; 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 #ffde2e; background: #ffeb80 url(ui-bg_inset-hard_55_ffeb80_1x100.png) 50% bottom 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 #9e0505; background: #cd0a0a url(ui-bg_inset-hard_45_cd0a0a_1x100.png) 50% bottom repeat-x; 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(ui-icons_222222_256x240.png); }
-.ui-widget-content .ui-icon {background-image: url(ui-icons_222222_256x240.png); }
-.ui-widget-header .ui-icon {background-image: url(ui-icons_bbbbbb_256x240.png); }
-.ui-state-default .ui-icon { background-image: url(ui-icons_ededed_256x240.png); }
-.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(ui-icons_ffffff_256x240.png); }
-.ui-state-active .ui-icon {background-image: url(ui-icons_222222_256x240.png); }
-.ui-state-highlight .ui-icon {background-image: url(ui-icons_4ca300_256x240.png); }
-.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(ui-icons_ffcf29_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: 0px; -webkit-border-top-left-radius: 0px; border-top-left-radius: 0px; }
-.ui-corner-tr { -moz-border-radius-topright: 0px; -webkit-border-top-right-radius: 0px; border-top-right-radius: 0px; }
-.ui-corner-bl { -moz-border-radius-bottomleft: 0px; -webkit-border-bottom-left-radius: 0px; border-bottom-left-radius: 0px; }
-.ui-corner-br { -moz-border-radius-bottomright: 0px; -webkit-border-bottom-right-radius: 0px; border-bottom-right-radius: 0px; }
-.ui-corner-top { -moz-border-radius-topleft: 0px; -webkit-border-top-left-radius: 0px; border-top-left-radius: 0px; -moz-border-radius-topright: 0px; -webkit-border-top-right-radius: 0px; border-top-right-radius: 0px; }
-.ui-corner-bottom { -moz-border-radius-bottomleft: 0px; -webkit-border-bottom-left-radius: 0px; border-bottom-left-radius: 0px; -moz-border-radius-bottomright: 0px; -webkit-border-bottom-right-radius: 0px; border-bottom-right-radius: 0px; }
-.ui-corner-right { -moz-border-radius-topright: 0px; -webkit-border-top-right-radius: 0px; border-top-right-radius: 0px; -moz-border-radius-bottomright: 0px; -webkit-border-bottom-right-radius: 0px; border-bottom-right-radius: 0px; }
-.ui-corner-left { -moz-border-radius-topleft: 0px; -webkit-border-top-left-radius: 0px; border-top-left-radius: 0px; -moz-border-radius-bottomleft: 0px; -webkit-border-bottom-left-radius: 0px; border-bottom-left-radius: 0px; }
-.ui-corner-all { -moz-border-radius: 0px; -webkit-border-radius: 0px; border-radius: 0px; }
-
-/* Overlays */
-.ui-widget-overlay { background: #aaaaaa url(ui-bg_highlight-hard_40_aaaaaa_1x100.png) 50% top repeat-x; opacity: .30;filter:Alpha(Opacity=30); }
-.ui-widget-shadow { margin: -8px 0 0 -8px; padding: 8px; background: #aaaaaa url(ui-bg_highlight-soft_50_aaaaaa_1x100.png) 50% top repeat-x; opacity: .20;filter:Alpha(Opacity=20); -moz-border-radius: 8px; -webkit-border-radius: 8px; border-radius: 8px; }/*
- * jQuery UI Resizable @VERSION
- *
- * 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/Resizable#theming
- */
-.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;}/*
- * jQuery UI Selectable @VERSION
- *
- * 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/Selectable#theming
- */
-.ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
-/*
- * jQuery UI Accordion @VERSION
- *
- * 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/Accordion#theming
- */
-/* IE/Win - Fix animation bug - #4615 */
-.ui-accordion { width: 100%; }
-.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; }
-.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; }/*
- * jQuery UI Autocomplete @VERSION
- *
- * 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#theming
- */
-.ui-autocomplete { position: absolute; cursor: default; }
-
-/* workarounds */
-* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
-
-/*
- * jQuery UI Menu @VERSION
- *
- * 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/Menu#theming
- */
-.ui-menu {
- list-style:none;
- padding: 2px;
- margin: 0;
- display:block;
- float: left;
-}
-.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;
-}
-/*
- * jQuery UI Button @VERSION
- *
- * 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/Button#theming
- */
-.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-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
-.ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 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-primary .ui-icon, .ui-button-text-icon-secondary .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-primary .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-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .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 */
-/*
- * jQuery UI Dialog @VERSION
- *
- * 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#theming
- */
-.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 { position: relative; 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 .ui-dialog-buttonset { float: right; }
-.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
-.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
-.ui-draggable .ui-dialog-titlebar { cursor: move; }
-/*
- * jQuery UI Slider @VERSION
- *
- * 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/Slider#theming
- */
-.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; }/*
- * jQuery UI Tabs @VERSION
- *
- * 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#theming
- */
-.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; }
-/*
- * jQuery UI Datepicker @VERSION
- *
- * 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/Datepicker#theming
- */
-.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%; }
-
-/* 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*/
-}/*
- * jQuery UI Progressbar @VERSION
- *
- * 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#theming
- */
-.ui-progressbar { height:2em; text-align: left; }
-.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
\ No newline at end of file
diff --git a/install/static/jquery-ui.js b/install/static/jquery-ui.js
deleted file mode 100644
index b1cac98b6..000000000
--- a/install/static/jquery-ui.js
+++ /dev/null
@@ -1,763 +0,0 @@
-/*!
- * jQuery UI 1.8.4
- *
- * 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
- */
-(function(c,j){function k(a){return!c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility")==="hidden"||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.4",plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&&a.element[0].parentNode)for(var e=0;e0)return true;a[b]=1;d=a[b]>0;a[b]=0;return d},isOverAxis:function(a,b,d){return a>b&&a=0)&&c(a).is(":focusable")}})}})(jQuery);
-;/*!
- * jQuery UI Widget 1.8.4
- *
- * 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/Widget
- */
-(function(b,j){var k=b.fn.remove;b.fn.remove=function(a,c){return this.each(function(){if(!c)if(!a||b.filter(a,[this]).length)b("*",this).add([this]).each(function(){b(this).triggerHandler("remove")});return k.call(b(this),a,c)})};b.widget=function(a,c,d){var e=a.split(".")[0],f;a=a.split(".")[1];f=e+"-"+a;if(!d){d=c;c=b.Widget}b.expr[":"][f]=function(h){return!!b.data(h,a)};b[e]=b[e]||{};b[e][a]=function(h,g){arguments.length&&this._createWidget(h,g)};c=new c;c.options=b.extend(true,{},c.options);
-b[e][a].prototype=b.extend(true,c,{namespace:e,widgetName:a,widgetEventPrefix:b[e][a].prototype.widgetEventPrefix||a,widgetBaseClass:f},d);b.widget.bridge(a,b[e][a])};b.widget.bridge=function(a,c){b.fn[a]=function(d){var e=typeof d==="string",f=Array.prototype.slice.call(arguments,1),h=this;d=!e&&f.length?b.extend.apply(null,[true,d].concat(f)):d;if(e&&d.substring(0,1)==="_")return h;e?this.each(function(){var g=b.data(this,a),i=g&&b.isFunction(g[d])?g[d].apply(g,f):g;if(i!==g&&i!==j){h=i;return false}}):
-this.each(function(){var g=b.data(this,a);if(g){d&&g.option(d);g._init()}else b.data(this,a,new c(d,this))});return h}};b.Widget=function(a,c){arguments.length&&this._createWidget(a,c)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(a,c){b.data(c,this.widgetName,this);this.element=b(c);this.options=b.extend(true,{},this.options,b.metadata&&b.metadata.get(c)[this.widgetName],a);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});
-this._create();this._init()},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(a,c){var d=a,e=this;if(arguments.length===0)return b.extend({},e.options);if(typeof a==="string"){if(c===j)return this.options[a];d={};d[a]=c}b.each(d,function(f,
-h){e._setOption(f,h)});return e},_setOption:function(a,c){this.options[a]=c;if(a==="disabled")this.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",c);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(a,c,d){var e=this.options[a];c=b.Event(c);c.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();d=d||{};if(c.originalEvent){a=
-b.event.props.length;for(var f;a;){f=b.event.props[--a];c[f]=c.originalEvent[f]}}this.element.trigger(c,d);return!(b.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())}}})(jQuery);
-;/*!
- * jQuery UI Mouse 1.8.4
- *
- * 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/Mouse
- *
- * Depends:
- * jquery.ui.widget.js
- */
-(function(c){c.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(b){return a._mouseDown(b)}).bind("click."+this.widgetName,function(b){if(a._preventClickEvent){a._preventClickEvent=false;b.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(a){a.originalEvent=a.originalEvent||{};if(!a.originalEvent.mouseHandled){this._mouseStarted&&
-this._mouseUp(a);this._mouseDownEvent=a;var b=this,e=a.which==1,f=typeof this.options.cancel=="string"?c(a.target).parents().add(a.target).filter(this.options.cancel).length:false;if(!e||f||!this._mouseCapture(a))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){b.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=this._mouseStart(a)!==false;if(!this._mouseStarted){a.preventDefault();
-return true}}this._mouseMoveDelegate=function(d){return b._mouseMove(d)};this._mouseUpDelegate=function(d){return b._mouseUp(d)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);c.browser.safari||a.preventDefault();return a.originalEvent.mouseHandled=true}},_mouseMove:function(a){if(c.browser.msie&&!a.button)return this._mouseUp(a);if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&
-this._mouseDelayMet(a))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==false)?this._mouseDrag(a):this._mouseUp(a);return!this._mouseStarted},_mouseUp:function(a){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=a.target==this._mouseDownEvent.target;this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-
-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
-;/*
- * jQuery UI Position 1.8.4
- *
- * 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/Position
- */
-(function(c){c.ui=c.ui||{};var m=/left|center|right/,n=/top|center|bottom/,p=c.fn.position,q=c.fn.offset;c.fn.position=function(a){if(!a||!a.of)return p.apply(this,arguments);a=c.extend({},a);var b=c(a.of),d=(a.collision||"flip").split(" "),e=a.offset?a.offset.split(" "):[0,0],g,h,i;if(a.of.nodeType===9){g=b.width();h=b.height();i={top:0,left:0}}else if(a.of.scrollTo&&a.of.document){g=b.width();h=b.height();i={top:b.scrollTop(),left:b.scrollLeft()}}else if(a.of.preventDefault){a.at="left top";g=h=
-0;i={top:a.of.pageY,left:a.of.pageX}}else{g=b.outerWidth();h=b.outerHeight();i=b.offset()}c.each(["my","at"],function(){var f=(a[this]||"").split(" ");if(f.length===1)f=m.test(f[0])?f.concat(["center"]):n.test(f[0])?["center"].concat(f):["center","center"];f[0]=m.test(f[0])?f[0]:"center";f[1]=n.test(f[1])?f[1]:"center";a[this]=f});if(d.length===1)d[1]=d[0];e[0]=parseInt(e[0],10)||0;if(e.length===1)e[1]=e[0];e[1]=parseInt(e[1],10)||0;if(a.at[0]==="right")i.left+=g;else if(a.at[0]==="center")i.left+=
-g/2;if(a.at[1]==="bottom")i.top+=h;else if(a.at[1]==="center")i.top+=h/2;i.left+=e[0];i.top+=e[1];return this.each(function(){var f=c(this),k=f.outerWidth(),l=f.outerHeight(),j=c.extend({},i);if(a.my[0]==="right")j.left-=k;else if(a.my[0]==="center")j.left-=k/2;if(a.my[1]==="bottom")j.top-=l;else if(a.my[1]==="center")j.top-=l/2;j.left=parseInt(j.left);j.top=parseInt(j.top);c.each(["left","top"],function(o,r){c.ui.position[d[o]]&&c.ui.position[d[o]][r](j,{targetWidth:g,targetHeight:h,elemWidth:k,
-elemHeight:l,offset:e,my:a.my,at:a.at})});c.fn.bgiframe&&f.bgiframe();f.offset(c.extend(j,{using:a.using}))})};c.ui.position={fit:{left:function(a,b){var d=c(window);b=a.left+b.elemWidth-d.width()-d.scrollLeft();a.left=b>0?a.left-b:Math.max(0,a.left)},top:function(a,b){var d=c(window);b=a.top+b.elemHeight-d.height()-d.scrollTop();a.top=b>0?a.top-b:Math.max(0,a.top)}},flip:{left:function(a,b){if(b.at[0]!=="center"){var d=c(window);d=a.left+b.elemWidth-d.width()-d.scrollLeft();var e=b.my[0]==="left"?
--b.elemWidth:b.my[0]==="right"?b.elemWidth:0,g=-2*b.offset[0];a.left+=a.left<0?e+b.targetWidth+g:d>0?e-b.targetWidth+g:0}},top:function(a,b){if(b.at[1]!=="center"){var d=c(window);d=a.top+b.elemHeight-d.height()-d.scrollTop();var e=b.my[1]==="top"?-b.elemHeight:b.my[1]==="bottom"?b.elemHeight:0,g=b.at[1]==="top"?b.targetHeight:-b.targetHeight,h=-2*b.offset[1];a.top+=a.top<0?e+b.targetHeight+h:d>0?e+g+h:0}}}};if(!c.offset.setOffset){c.offset.setOffset=function(a,b){if(/static/.test(c.curCSS(a,"position")))a.style.position=
-"relative";var d=c(a),e=d.offset(),g=parseInt(c.curCSS(a,"top",true),10)||0,h=parseInt(c.curCSS(a,"left",true),10)||0;e={top:b.top-e.top+g,left:b.left-e.left+h};"using"in b?b.using.call(a,e):d.css(e)};c.fn.offset=function(a){var b=this[0];if(!b||!b.ownerDocument)return null;if(a)return this.each(function(){c.offset.setOffset(this,a)});return q.call(this)}}})(jQuery);
-;/*
- * jQuery UI Draggable 1.8.4
- *
- * 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/Draggables
- *
- * Depends:
- * jquery.ui.core.js
- * jquery.ui.mouse.js
- * jquery.ui.widget.js
- */
-(function(d){d.widget("ui.draggable",d.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper==
-"original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(a){var b=
-this.options;if(this.helper||b.disabled||d(a.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(a);if(!this.handle)return false;return true},_mouseStart:function(a){var b=this.options;this.helper=this._createHelper(a);this._cacheHelperProportions();if(d.ui.ddmanager)d.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-
-this.margins.top,left:this.offset.left-this.margins.left};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.position=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);b.containment&&this._setContainment();if(this._trigger("start",a)===false){this._clear();return false}this._cacheHelperProportions();
-d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(a,true);return true},_mouseDrag:function(a,b){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!b){b=this._uiHash();if(this._trigger("drag",a,b)===false){this._mouseUp({});return false}this.position=b.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||
-this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);return false},_mouseStop:function(a){var b=false;if(d.ui.ddmanager&&!this.options.dropBehaviour)b=d.ui.ddmanager.drop(this,a);if(this.dropped){b=this.dropped;this.dropped=false}if(!this.element[0]||!this.element[0].parentNode)return false;if(this.options.revert=="invalid"&&!b||this.options.revert=="valid"&&b||this.options.revert===true||d.isFunction(this.options.revert)&&this.options.revert.call(this.element,
-b)){var c=this;d(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){c._trigger("stop",a)!==false&&c._clear()})}else this._trigger("stop",a)!==false&&this._clear();return false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(a){var b=!this.options.handle||!d(this.options.handle,this.element).length?true:false;d(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==
-a.target)b=true});return b},_createHelper:function(a){var b=this.options;a=d.isFunction(b.helper)?d(b.helper.apply(this.element[0],[a])):b.helper=="clone"?this.element.clone():this.element;a.parents("body").length||a.appendTo(b.appendTo=="parent"?this.element[0].parentNode:b.appendTo);a[0]!=this.element[0]&&!/(fixed|absolute)/.test(a.css("position"))&&a.css("position","absolute");return a},_adjustOffsetFromHelper:function(a){if(typeof a=="string")a=a.split(" ");if(d.isArray(a))a={left:+a[0],top:+a[1]||
-0};if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],
-this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&d.browser.msie)a={top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-
-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var a=this.options;if(a.containment==
-"parent")a.containment=this.helper[0].parentNode;if(a.containment=="document"||a.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,d(a.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(d(a.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)&&
-a.containment.constructor!=Array){var b=d(a.containment)[0];if(b){a=d(a.containment).offset();var c=d(b).css("overflow")!="hidden";this.containment=[a.left+(parseInt(d(b).css("borderLeftWidth"),10)||0)+(parseInt(d(b).css("paddingLeft"),10)||0)-this.margins.left,a.top+(parseInt(d(b).css("borderTopWidth"),10)||0)+(parseInt(d(b).css("paddingTop"),10)||0)-this.margins.top,a.left+(c?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(d(b).css("borderLeftWidth"),10)||0)-(parseInt(d(b).css("paddingRight"),
-10)||0)-this.helperProportions.width-this.margins.left,a.top+(c?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(d(b).css("borderTopWidth"),10)||0)-(parseInt(d(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else if(a.containment.constructor==Array)this.containment=a.containment},_convertPositionTo:function(a,b){if(!b)b=this.position;a=a=="absolute"?1:-1;var c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],
-this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName);return{top:b.top+this.offset.relative.top*a+this.offset.parent.top*a-(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:c.scrollTop())*a),left:b.left+this.offset.relative.left*a+this.offset.parent.left*a-(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
-f?0:c.scrollLeft())*a)}},_generatePosition:function(a){var b=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName),e=a.pageX,g=a.pageY;if(this.originalPosition){if(this.containment){if(a.pageX-this.offset.click.leftthis.containment[2])e=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])?e:!(e-this.offset.click.left').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(d(this).offset()).appendTo("body")})},stop:function(){d("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});d.ui.plugin.add("draggable","opacity",{start:function(a,b){a=d(b.helper);b=d(this).data("draggable").options;
-if(a.css("opacity"))b._opacity=a.css("opacity");a.css("opacity",b.opacity)},stop:function(a,b){a=d(this).data("draggable").options;a._opacity&&d(b.helper).css("opacity",a._opacity)}});d.ui.plugin.add("draggable","scroll",{start:function(){var a=d(this).data("draggable");if(a.scrollParent[0]!=document&&a.scrollParent[0].tagName!="HTML")a.overflowOffset=a.scrollParent.offset()},drag:function(a){var b=d(this).data("draggable"),c=b.options,f=false;if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!=
-"HTML"){if(!c.axis||c.axis!="x")if(b.overflowOffset.top+b.scrollParent[0].offsetHeight-a.pageY=0;h--){var i=c.snapElements[h].left,k=i+c.snapElements[h].width,j=c.snapElements[h].top,l=j+c.snapElements[h].height;if(i-e=j&&f<=l||h>=j&&h<=l||fl)&&(e>=
-i&&e<=k||g>=i&&g<=k||ek);default:return false}};d.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(a,b){var c=d.ui.ddmanager.droppables[a.options.scope]||[],e=b?b.type:null,g=(a.currentItem||a.element).find(":data(droppable)").andSelf(),f=0;a:for(;f').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),
-top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=
-this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=a.handles||(!e(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",
-nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all")this.handles="n,e,s,w,se,sw,ne,nw";var c=this.handles.split(",");this.handles={};for(var d=0;d');/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.4"});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.4
- *
- * 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 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.4",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.4
- *
- * 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;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){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:a.menu.element.is(":visible")&&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("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];
-c.target===d&&setTimeout(function(){e(document).one("mousedown",function(f){f.target!==a.element[0]&&f.target!==d&&!e.ui.contains(d,f.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",null,{item:d})&&/^key/.test(c.originalEvent.type)&&a.element.val(d.value)},selected:function(c,d){d=d.item.data("item.autocomplete");var f=a.previous;if(a.element[0]!==b.activeElement){a.element.focus();
-a.previous=f}false!==a._trigger("select",c,{item:d})&&a.element.val(d.value);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,b;if(e.isArray(this.options.source)){a=this.options.source;this.source=function(c,d){d(e.ui.autocomplete.filter(a,c.term))}}else if(typeof this.options.source==="string"){b=this.options.source;this.source=function(c,d){e.getJSON(b,
-c,d)}}else this.source=this.options.source},search:function(a,b){a=a!=null?a: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 c=new RegExp(e.ui.autocomplete.escapeRegex(b),"i");return e.grep(a,function(d){return c.test(d.label||d.value||
-d)})}})})(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 c=b.offset().top-this.element.offset().top,d=this.element.attr("scrollTop"),f=this.element.height();if(c<0)this.element.attr("scrollTop",d+c);else c>f&&this.element.attr("scrollTop",d+c-f+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,c){if(this.active){a=this.active[a+"All"](".ui-menu-item").eq(0);a.length?this.activate(c,a):this.activate(c,this.element.children(b))}else this.activate(c,
-this.element.children(b))},nextPage:function(a){if(this.hasScroll())if(!this.active||this.last())this.activate(a,this.element.children(":first"));else{var b=this.active.offset().top,c=this.element.height(),d=this.element.children("li").filter(function(){var f=e(this).offset().top-b-c+e(this).height();return f<10&&f>-10});d.length||(d=this.element.children(":last"));this.activate(a,d)}else this.activate(a,this.element.children(!this.active||this.last()?":first":":last"))},previousPage:function(a){if(this.hasScroll())if(!this.active||
-this.first())this.activate(a,this.element.children(":last"));else{var b=this.active.offset().top,c=this.element.height();result=this.element.children("li").filter(function(){var d=e(this).offset().top-b+c-e(this).height();return d<10&&d>-10});result.length||(result=this.element.children(":first"));this.activate(a,result)}else this.activate(a,this.element.children(!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");this._init()},_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(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").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.4
- *
- * 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){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="";var a=this,b=a.options,d=b.title||a.originalTitle||" ",f=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":f}).mousedown(function(i){a.moveToTop(false,
-i)});a.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g);var e=(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(e);(a.uiDialogTitlebarCloseText=c(" ")).addClass("ui-icon ui-icon-closethick").text(b.closeText).appendTo(h);c(" ").addClass("ui-dialog-title").attr("id",f).html(d).prependTo(e);if(c.isFunction(b.beforeclose)&&!c.isFunction(b.beforeClose))b.beforeClose=b.beforeclose;e.find("*").add(e).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,f=d.options;if(f.modal&&!a||!f.stack&&!f.modal)return d._trigger("focus",b);if(f.zIndex>c.ui.dialog.maxZ)c.ui.dialog.maxZ=
-f.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;d.next().length&&d.appendTo("body");a._size();a._position(b.position);d.show(b.show);
-a.moveToTop(true);b.modal&&d.bind("keypress.ui-dialog",function(f){if(f.keyCode===c.ui.keyCode.TAB){var g=c(":tabbable",this),e=g.filter(":first");g=g.filter(":last");if(f.target===g[0]&&!f.shiftKey){e.focus(1);return false}else if(f.target===e[0]&&f.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._trigger("open");a._isOpen=true;return a}},_createButtons:function(a){var b=this,d=false,
-f=c("
").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),g=c("
").addClass("ui-dialog-buttonset").appendTo(f);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(e,h){e=c(' ').text(e).click(function(){h.apply(b.element[0],arguments)}).appendTo(g);c.fn.button&&e.button()});f.appendTo(b.uiDialog)}},_makeDraggable:function(){function a(e){return{position:e.position,
-offset:e.offset}}var b=this,d=b.options,f=c(document),g;b.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(e,h){g=d.height==="auto"?"auto":c(this).height();c(this).height(c(this).height()).addClass("ui-dialog-dragging");b._trigger("dragStart",e,a(h))},drag:function(e,h){b._trigger("drag",e,a(h))},stop:function(e,h){d.position=[h.position.left-f.scrollLeft(),h.position.top-f.scrollTop()];c(this).removeClass("ui-dialog-dragging").height(g);
-b._trigger("dragStop",e,a(h));c.ui.dialog.overlay.resize()}})},_makeResizable:function(a){function b(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}a=a===j?this.options.resizable:a;var d=this,f=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:f.maxWidth,maxHeight:f.maxHeight,minWidth:f.minWidth,minHeight:d._minHeight(),
-handles:a,start:function(e,h){c(this).addClass("ui-dialog-resizing");d._trigger("resizeStart",e,b(h))},resize:function(e,h){d._trigger("resize",e,b(h))},stop:function(e,h){c(this).removeClass("ui-dialog-resizing");f.height=c(this).height();f.width=c(this).width();d._trigger("resizeStop",e,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],f;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,e){if(+b[g]===b[g]){d[g]=b[g];b[g]=e}});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;(f=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(a);
-f||this.uiDialog.hide()},_setOption:function(a,b){var d=this,f=d.uiDialog,g=f.is(":data(resizable)"),e=false;switch(a){case "beforeclose":a="beforeClose";break;case "buttons":d._createButtons(b);e=true;break;case "closeText":d.uiDialogTitlebarCloseText.text(""+b);break;case "dialogClass":f.removeClass(d.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+b);break;case "disabled":b?f.addClass("ui-dialog-disabled"):f.removeClass("ui-dialog-disabled");break;case "draggable":b?
-d._makeDraggable():f.draggable("destroy");break;case "height":e=true;break;case "maxHeight":g&&f.resizable("option","maxHeight",b);e=true;break;case "maxWidth":g&&f.resizable("option","maxWidth",b);e=true;break;case "minHeight":g&&f.resizable("option","minHeight",b);e=true;break;case "minWidth":g&&f.resizable("option","minWidth",b);e=true;break;case "position":d._position(b);break;case "resizable":g&&!b&&f.resizable("destroy");g&&typeof b==="string"&&f.resizable("option","handles",b);!g&&b!==false&&
-d._makeResizable(b);break;case "title":c(".ui-dialog-title",d.uiDialogTitlebar).html(""+(b||" "));break;case "width":e=true;break}c.Widget.prototype._setOption.apply(d,arguments);e&&d._size()},_size:function(){var a=this.options,b;this.element.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();this.element.css(a.height==="auto"?{minHeight:Math.max(a.minHeight-b,0),height:"auto"}:{minHeight:0,height:Math.max(a.height-
-b,0)}).show();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});c.extend(c.ui.dialog,{version:"1.8.4",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){return c(d.target).zIndex()>=c.ui.dialog.overlay.maxZ})},1);c(document).bind("keydown.dialog-overlay",function(d){if(a.options.closeOnEscape&&d.keyCode&&d.keyCode===c.ui.keyCode.ESCAPE){a.close(d);d.preventDefault()}});c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}var b=(this.oldInstances.pop()||c("
").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.4"})})(jQuery);
-;/*
- * jQuery UI Tabs 1.8.4
- *
- * 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(a,e){if(a=="selected")this.options.collapsible&&
-e==this.options.selected||this.select(e);else{this.options[a]=e;this._tabify()}},_tabId:function(a){return a.title&&a.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+u()},_sanitizeSelector:function(a){return a.replace(/:/g,"\\:")},_cookie:function(){var a=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+w());return d.cookie.apply(null,[a].concat(d.makeArray(arguments)))},_ui:function(a,e){return{tab:a,panel:e,index:this.anchors.index(a)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var a=
-d(this);a.html(a.data("label.tabs")).removeData("label.tabs")})},_tabify:function(a){function e(g,f){g.css("display","");!d.support.opacity&&f.opacity&&g[0].style.removeAttribute("filter")}var b=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 j=d(f).attr("href"),l=j.split("#")[0],q;if(l&&(l===location.toString().split("#")[0]||
-(q=d("base")[0])&&l===q.href)){j=f.hash;f.href=j}if(h.test(j))b.panels=b.panels.add(b._sanitizeSelector(j));else if(j!=="#"){d.data(f,"href.tabs",j);d.data(f,"load.tabs",j.replace(/#.*$/,""));j=b._tabId(f);f.href="#"+j;f=d("#"+j);if(!f.length){f=d(c.panelTemplate).attr("id",j).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(b.panels[g-1]||b.list);f.data("destroy.tabs",true)}b.panels=b.panels.add(f)}else c.disabled.push(g)});if(a){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(b._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 b.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){this.panels.eq(c.selected).removeClass("ui-tabs-hide");this.lis.eq(c.selected).addClass("ui-tabs-selected ui-state-active");b.element.queue("tabs",function(){b._trigger("show",null,b._ui(b.anchors[c.selected],b.panels[c.selected]))});this.load(c.selected)}d(window).bind("unload",function(){b.lis.add(b.anchors).unbind(".tabs");b.lis=b.anchors=b.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);a=0;for(var i;i=this.lis[a];a++)d(i)[d.inArray(a,c.disabled)!=-1&&!d(i).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);b._trigger("show",
-null,b._ui(g,f[0]))})}:function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.removeClass("ui-tabs-hide");b._trigger("show",null,b._ui(g,f[0]))},s=m?function(g,f){f.animate(m,m.duration||"normal",function(){b.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");e(f,m);b.element.dequeue("tabs")})}:function(g,f){b.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");b.element.dequeue("tabs")};this.anchors.bind(c.event+".tabs",
-function(){var g=this,f=d(g).closest("li"),j=b.panels.filter(":not(.ui-tabs-hide)"),l=d(b._sanitizeSelector(g.hash));if(f.hasClass("ui-tabs-selected")&&!c.collapsible||f.hasClass("ui-state-disabled")||f.hasClass("ui-state-processing")||b._trigger("select",null,b._ui(this,l[0]))===false){this.blur();return false}c.selected=b.anchors.index(this);b.abort();if(c.collapsible)if(f.hasClass("ui-tabs-selected")){c.selected=-1;c.cookie&&b._cookie(c.selected,c.cookie);b.element.queue("tabs",function(){s(g,
-j)}).dequeue("tabs");this.blur();return false}else if(!j.length){c.cookie&&b._cookie(c.selected,c.cookie);b.element.queue("tabs",function(){r(g,l)});b.load(b.anchors.index(this));this.blur();return false}c.cookie&&b._cookie(c.selected,c.cookie);if(l.length){j.length&&b.element.queue("tabs",function(){s(g,j)});b.element.queue("tabs",function(){r(g,l)});b.load(b.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(a){if(typeof a=="string")a=this.anchors.index(this.anchors.filter("[href$="+a+"]"));return a},destroy:function(){var a=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 b=d(this).unbind(".tabs");d.each(["href","load","cache"],function(c,h){b.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")});a.cookie&&this._cookie(null,a.cookie);return this},add:function(a,e,b){if(b===p)b=this.anchors.length;
-var c=this,h=this.options;e=d(h.tabTemplate.replace(/#\{href\}/g,a).replace(/#\{label\}/g,e));a=!a.indexOf("#")?a.replace("#",""):this._tabId(d("a",e)[0]);e.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var i=d("#"+a);i.length||(i=d(h.panelTemplate).attr("id",a).data("destroy.tabs",true));i.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(b>=this.lis.length){e.appendTo(this.list);i.appendTo(this.list[0].parentNode)}else{e.insertBefore(this.lis[b]);
-i.insertBefore(this.panels[b])}h.disabled=d.map(h.disabled,function(k){return k>=b?++k:k});this._tabify();if(this.anchors.length==1){h.selected=0;e.addClass("ui-tabs-selected ui-state-active");i.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[b],this.panels[b]));return this},remove:function(a){a=this._getIndex(a);var e=this.options,b=this.lis.eq(a).remove(),c=this.panels.eq(a).remove();
-if(b.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(a+(a+1=a?--h:h});this._tabify();this._trigger("remove",null,this._ui(b.find("a")[0],c[0]));return this},enable:function(a){a=this._getIndex(a);var e=this.options;if(d.inArray(a,e.disabled)!=-1){this.lis.eq(a).removeClass("ui-state-disabled");e.disabled=d.grep(e.disabled,function(b){return b!=a});this._trigger("enable",null,
-this._ui(this.anchors[a],this.panels[a]));return this}},disable:function(a){a=this._getIndex(a);var e=this.options;if(a!=e.selected){this.lis.eq(a).addClass("ui-state-disabled");e.disabled.push(a);e.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[a],this.panels[a]))}return this},select:function(a){a=this._getIndex(a);if(a==-1)if(this.options.collapsible&&this.options.selected!=-1)a=this.options.selected;else return this;this.anchors.eq(a).trigger(this.options.event+".tabs");return this},
-load:function(a){a=this._getIndex(a);var e=this,b=this.options,c=this.anchors.eq(a)[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(a).addClass("ui-state-processing");if(b.spinner){var i=d("span",c);i.data("label.tabs",i.html()).html(b.spinner)}this.xhr=d.ajax(d.extend({},b.ajaxOptions,{url:h,success:function(k,n){d(e._sanitizeSelector(c.hash)).html(k);e._cleanup();b.cache&&d.data(c,"cache.tabs",
-true);e._trigger("load",null,e._ui(e.anchors[a],e.panels[a]));try{b.ajaxOptions.success(k,n)}catch(m){}},error:function(k,n){e._cleanup();e._trigger("load",null,e._ui(e.anchors[a],e.panels[a]));try{b.ajaxOptions.error(k,n,a,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(a,
-e){this.anchors.eq(a).removeData("cache.tabs").data("load.tabs",e);return this},length:function(){return this.anchors.length}});d.extend(d.ui.tabs,{version:"1.8.4"});d.extend(d.ui.tabs.prototype,{rotation:null,rotate:function(a,e){var b=this,c=this.options,h=b._rotate||(b._rotate=function(i){clearTimeout(b.rotation);b.rotation=setTimeout(function(){var k=c.selected;b.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.4"}});var y=(new Date).getTime();d.extend(L.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?''+this._get(a,"closeText")+" ":"";e=e?''+(c?h:"")+(this._isInRange(a,r)?'"+k+" ":"")+(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 M=this._getDefaultDate(a),I="",C=0;C'}x+='';var A=k?''+this._get(a,"weekHeader")+" ":"";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?"":' '+this._get(a,"calculateWeek")(q)+" ";for(t=0;t<7;t++){var F=p?p.apply(a.input?a.input[0]:null,[q]):[true,""],B=q.getMonth()!=g,K=B&&!H||!F[0]||j&&qo;P+='"+(B&&!w?" ":K?''+q.getDate()+
-" ":''+q.getDate()+" ")+" ";q.setDate(q.getDate()+1);q=this._daylightSavingAdjust(q)}x+=P+""}g++;if(g>11){g=0;m++}x+="
"+(l?""+(i[0]>0&&D==i[1]-1?'
':""):"");N+=x}I+=N}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+='";for(var n=0;n<12;n++)if((!i||n>=e.getMonth())&&(!m||n<=f.getMonth()))o+='"+g[n]+" ";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+='";b<=g;b++)j+='"+b+" ";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 L;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.4";window["DP_jQuery_"+y]=d})(jQuery);
-;/*
- * jQuery UI Progressbar 1.8.4
- *
- * 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")}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.4"})})(jQuery);
-;/*
- * jQuery UI Effects 1.8.4
- *
- * 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 l(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 m.transparent;return m[f.trim(c).toLowerCase()]}function r(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 l(b)}function n(){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 o(c){var a,b;for(a in c){b=c[a];if(b==null||f.isFunction(b)||a in s||/scrollbar/.test(a)||!/color/i.test(a)&&isNaN(parseFloat(b)))delete c[a]}return c}function t(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]}f.effects={};f.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(c,a){f.fx.step[a]=function(b){if(!b.colorInit){b.start=r(b.elem,a);b.end=l(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 m={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]},p=["add","remove","toggle"],s={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=o(n.call(this)),q,u=e.attr("className");f.each(p,function(v,
-i){c[i]&&e[i+"Class"](c[i])});q=o(n.call(this));e.attr("className",u);e.animate(t(h,q),a,b,function(){f.each(p,function(v,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.4",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);a={options:a[1],duration:a[2],callback:a[3]};var b=f.effects[c];return b&&!f.fx.off?b.call(this,a):this},_show:f.fn.show,show:function(c){if(!c||
-typeof c=="number"||f.fx.speeds[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(!c||typeof c=="number"||f.fx.speeds[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(!c||typeof c=="number"||f.fx.speeds[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 Fold 1.8.4
- *
- * 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.4
- *
- * 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.4
- *
- * 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/install/static/jquery.ba-bbq.js b/install/static/jquery.ba-bbq.js
deleted file mode 100644
index bcbf24834..000000000
--- a/install/static/jquery.ba-bbq.js
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
- * jQuery BBQ: Back Button & Query Library - v1.2.1 - 2/17/2010
- * http://benalman.com/projects/jquery-bbq-plugin/
- *
- * Copyright (c) 2010 "Cowboy" Ben Alman
- * Dual licensed under the MIT and GPL licenses.
- * http://benalman.com/about/license/
- */
-(function($,p){var i,m=Array.prototype.slice,r=decodeURIComponent,a=$.param,c,l,v,b=$.bbq=$.bbq||{},q,u,j,e=$.event.special,d="hashchange",A="querystring",D="fragment",y="elemUrlAttr",g="location",k="href",t="src",x=/^.*\?|#.*$/g,w=/^.*\#/,h,C={};function E(F){return typeof F==="string"}function B(G){var F=m.call(arguments,1);return function(){return G.apply(this,F.concat(m.call(arguments)))}}function n(F){return F.replace(/^[^#]*#?(.*)$/,"$1")}function o(F){return F.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}function f(H,M,F,I,G){var O,L,K,N,J;if(I!==i){K=F.match(H?/^([^#]*)\#?(.*)$/:/^([^#?]*)\??([^#]*)(#?.*)/);J=K[3]||"";if(G===2&&E(I)){L=I.replace(H?w:x,"")}else{N=l(K[2]);I=E(I)?l[H?D:A](I):I;L=G===2?I:G===1?$.extend({},I,N):$.extend({},N,I);L=a(L);if(H){L=L.replace(h,r)}}O=K[1]+(H?"#":L||!K[1]?"?":"")+L+J}else{O=M(F!==i?F:p[g][k])}return O}a[A]=B(f,0,o);a[D]=c=B(f,1,n);c.noEscape=function(G){G=G||"";var F=$.map(G.split(""),encodeURIComponent);h=new RegExp(F.join("|"),"g")};c.noEscape(",/");$.deparam=l=function(I,F){var H={},G={"true":!0,"false":!1,"null":null};$.each(I.replace(/\+/g," ").split("&"),function(L,Q){var K=Q.split("="),P=r(K[0]),J,O=H,M=0,R=P.split("]["),N=R.length-1;if(/\[/.test(R[0])&&/\]$/.test(R[N])){R[N]=R[N].replace(/\]$/,"");R=R.shift().split("[").concat(R);N=R.length-1}else{N=0}if(K.length===2){J=r(K[1]);if(F){J=J&&!isNaN(J)?+J:J==="undefined"?i:G[J]!==i?G[J]:J}if(N){for(;M<=N;M++){P=R[M]===""?O.length:R[M];O=O[P]=M ').hide().insertAfter("body")[0].contentWindow;q=function(){return a(n.document[c][l])};o=function(u,s){if(u!==s){var t=n.document;t.open().close();t[c].hash="#"+u}};o(a())}}m.start=function(){if(r){return}var t=a();o||p();(function s(){var v=a(),u=q(t);if(v!==t){o(t=v,u);$(i).trigger(d)}else{if(u!==t){i[c][l]=i[c][l].replace(/#.*/,"")+"#"+u}}r=setTimeout(s,$[d+"Delay"])})()};m.stop=function(){if(!n){r&&clearTimeout(r);r=0}};return m})()})(jQuery,this);
\ No newline at end of file
diff --git a/install/static/jquery.cookie.js b/install/static/jquery.cookie.js
deleted file mode 100644
index 6df1faca2..000000000
--- a/install/static/jquery.cookie.js
+++ /dev/null
@@ -1,96 +0,0 @@
-/**
- * Cookie plugin
- *
- * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
- * Dual licensed under the MIT and GPL licenses:
- * http://www.opensource.org/licenses/mit-license.php
- * http://www.gnu.org/licenses/gpl.html
- *
- */
-
-/**
- * Create a cookie with the given name and value and other optional parameters.
- *
- * @example $.cookie('the_cookie', 'the_value');
- * @desc Set the value of a cookie.
- * @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true });
- * @desc Create a cookie with all available options.
- * @example $.cookie('the_cookie', 'the_value');
- * @desc Create a session cookie.
- * @example $.cookie('the_cookie', null);
- * @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain
- * used when the cookie was set.
- *
- * @param String name The name of the cookie.
- * @param String value The value of the cookie.
- * @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
- * @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
- * If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
- * If set to null or omitted, the cookie will be a session cookie and will not be retained
- * when the the browser exits.
- * @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
- * @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
- * @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
- * require a secure protocol (like HTTPS).
- * @type undefined
- *
- * @name $.cookie
- * @cat Plugins/Cookie
- * @author Klaus Hartl/klaus.hartl@stilbuero.de
- */
-
-/**
- * Get the value of a cookie with the given name.
- *
- * @example $.cookie('the_cookie');
- * @desc Get the value of a cookie.
- *
- * @param String name The name of the cookie.
- * @return The value of the cookie.
- * @type String
- *
- * @name $.cookie
- * @cat Plugins/Cookie
- * @author Klaus Hartl/klaus.hartl@stilbuero.de
- */
-jQuery.cookie = function(name, value, options) {
- if (typeof value != 'undefined') { // name and value given, set cookie
- options = options || {};
- if (value === null) {
- value = '';
- options.expires = -1;
- }
- var expires = '';
- if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
- var date;
- if (typeof options.expires == 'number') {
- date = new Date();
- date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
- } else {
- date = options.expires;
- }
- expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
- }
- // CAUTION: Needed to parenthesize options.path and options.domain
- // in the following expressions, otherwise they evaluate to undefined
- // in the packed version for some reason...
- var path = options.path ? '; path=' + (options.path) : '';
- var domain = options.domain ? '; domain=' + (options.domain) : '';
- var secure = options.secure ? '; secure' : '';
- document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
- } else { // only name given, get cookie
- var cookieValue = null;
- if (document.cookie && document.cookie != '') {
- var cookies = document.cookie.split(';');
- for (var i = 0; i < cookies.length; i++) {
- var cookie = jQuery.trim(cookies[i]);
- // Does this cookie string begin with the name we want?
- if (cookie.substring(0, name.length + 1) == (name + '=')) {
- cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
- break;
- }
- }
- }
- return cookieValue;
- }
-};
\ No newline at end of file
diff --git a/install/static/jquery.js b/install/static/jquery.js
deleted file mode 100644
index fff677643..000000000
--- a/install/static/jquery.js
+++ /dev/null
@@ -1,6240 +0,0 @@
-/*!
- * jQuery JavaScript Library v1.4.2
- * http://jquery.com/
- *
- * Copyright 2010, John Resig
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * Includes Sizzle.js
- * http://sizzlejs.com/
- * Copyright 2010, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- *
- * Date: Sat Feb 13 22:33:48 2010 -0500
- */
-(function( window, undefined ) {
-
-// Define a local copy of jQuery
-var jQuery = function( selector, context ) {
- // The jQuery object is actually just the init constructor 'enhanced'
- return new jQuery.fn.init( selector, context );
- },
-
- // Map over jQuery in case of overwrite
- _jQuery = window.jQuery,
-
- // Map over the $ in case of overwrite
- _$ = window.$,
-
- // Use the correct document accordingly with window argument (sandbox)
- document = window.document,
-
- // A central reference to the root jQuery(document)
- rootjQuery,
-
- // A simple way to check for HTML strings or ID strings
- // (both of which we optimize for)
- quickExpr = /^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,
-
- // Is it a simple selector
- isSimple = /^.[^:#\[\.,]*$/,
-
- // Check if a string has a non-whitespace character in it
- rnotwhite = /\S/,
-
- // Used for trimming whitespace
- rtrim = /^(\s|\u00A0)+|(\s|\u00A0)+$/g,
-
- // Match a standalone tag
- rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
-
- // Keep a UserAgent string for use with jQuery.browser
- userAgent = navigator.userAgent,
-
- // For matching the engine and version of the browser
- browserMatch,
-
- // Has the ready events already been bound?
- readyBound = false,
-
- // The functions to execute on DOM ready
- readyList = [],
-
- // The ready event handler
- DOMContentLoaded,
-
- // Save a reference to some core methods
- toString = Object.prototype.toString,
- hasOwnProperty = Object.prototype.hasOwnProperty,
- push = Array.prototype.push,
- slice = Array.prototype.slice,
- indexOf = Array.prototype.indexOf;
-
-jQuery.fn = jQuery.prototype = {
- init: function( selector, context ) {
- var match, elem, ret, doc;
-
- // Handle $(""), $(null), or $(undefined)
- if ( !selector ) {
- return this;
- }
-
- // Handle $(DOMElement)
- if ( selector.nodeType ) {
- this.context = this[0] = selector;
- this.length = 1;
- return this;
- }
-
- // The body element only exists once, optimize finding it
- if ( selector === "body" && !context ) {
- this.context = document;
- this[0] = document.body;
- this.selector = "body";
- this.length = 1;
- return this;
- }
-
- // Handle HTML strings
- if ( typeof selector === "string" ) {
- // Are we dealing with HTML string or an ID?
- match = quickExpr.exec( selector );
-
- // Verify a match, and that no context was specified for #id
- if ( match && (match[1] || !context) ) {
-
- // HANDLE: $(html) -> $(array)
- if ( match[1] ) {
- doc = (context ? context.ownerDocument || context : document);
-
- // If a single string is passed in and it's a single tag
- // just do a createElement and skip the rest
- ret = rsingleTag.exec( selector );
-
- if ( ret ) {
- if ( jQuery.isPlainObject( context ) ) {
- selector = [ document.createElement( ret[1] ) ];
- jQuery.fn.attr.call( selector, context, true );
-
- } else {
- selector = [ doc.createElement( ret[1] ) ];
- }
-
- } else {
- ret = buildFragment( [ match[1] ], [ doc ] );
- selector = (ret.cacheable ? ret.fragment.cloneNode(true) : ret.fragment).childNodes;
- }
-
- return jQuery.merge( this, selector );
-
- // HANDLE: $("#id")
- } else {
- elem = document.getElementById( match[2] );
-
- if ( elem ) {
- // Handle the case where IE and Opera return items
- // by name instead of ID
- if ( elem.id !== match[2] ) {
- return rootjQuery.find( selector );
- }
-
- // Otherwise, we inject the element directly into the jQuery object
- this.length = 1;
- this[0] = elem;
- }
-
- this.context = document;
- this.selector = selector;
- return this;
- }
-
- // HANDLE: $("TAG")
- } else if ( !context && /^\w+$/.test( selector ) ) {
- this.selector = selector;
- this.context = document;
- selector = document.getElementsByTagName( selector );
- return jQuery.merge( this, selector );
-
- // HANDLE: $(expr, $(...))
- } else if ( !context || context.jquery ) {
- return (context || rootjQuery).find( selector );
-
- // HANDLE: $(expr, context)
- // (which is just equivalent to: $(context).find(expr)
- } else {
- return jQuery( context ).find( selector );
- }
-
- // HANDLE: $(function)
- // Shortcut for document ready
- } else if ( jQuery.isFunction( selector ) ) {
- return rootjQuery.ready( selector );
- }
-
- if (selector.selector !== undefined) {
- this.selector = selector.selector;
- this.context = selector.context;
- }
-
- return jQuery.makeArray( selector, this );
- },
-
- // Start with an empty selector
- selector: "",
-
- // The current version of jQuery being used
- jquery: "1.4.2",
-
- // The default length of a jQuery object is 0
- length: 0,
-
- // The number of elements contained in the matched element set
- size: function() {
- return this.length;
- },
-
- toArray: function() {
- return slice.call( this, 0 );
- },
-
- // Get the Nth element in the matched element set OR
- // Get the whole matched element set as a clean array
- get: function( num ) {
- return num == null ?
-
- // Return a 'clean' array
- this.toArray() :
-
- // Return just the object
- ( num < 0 ? this.slice(num)[ 0 ] : this[ num ] );
- },
-
- // Take an array of elements and push it onto the stack
- // (returning the new matched element set)
- pushStack: function( elems, name, selector ) {
- // Build a new jQuery matched element set
- var ret = jQuery();
-
- if ( jQuery.isArray( elems ) ) {
- push.apply( ret, elems );
-
- } else {
- jQuery.merge( ret, elems );
- }
-
- // Add the old object onto the stack (as a reference)
- ret.prevObject = this;
-
- ret.context = this.context;
-
- if ( name === "find" ) {
- ret.selector = this.selector + (this.selector ? " " : "") + selector;
- } else if ( name ) {
- ret.selector = this.selector + "." + name + "(" + selector + ")";
- }
-
- // Return the newly-formed element set
- return ret;
- },
-
- // Execute a callback for every element in the matched set.
- // (You can seed the arguments with an array of args, but this is
- // only used internally.)
- each: function( callback, args ) {
- return jQuery.each( this, callback, args );
- },
-
- ready: function( fn ) {
- // Attach the listeners
- jQuery.bindReady();
-
- // If the DOM is already ready
- if ( jQuery.isReady ) {
- // Execute the function immediately
- fn.call( document, jQuery );
-
- // Otherwise, remember the function for later
- } else if ( readyList ) {
- // Add the function to the wait list
- readyList.push( fn );
- }
-
- return this;
- },
-
- eq: function( i ) {
- return i === -1 ?
- this.slice( i ) :
- this.slice( i, +i + 1 );
- },
-
- first: function() {
- return this.eq( 0 );
- },
-
- last: function() {
- return this.eq( -1 );
- },
-
- slice: function() {
- return this.pushStack( slice.apply( this, arguments ),
- "slice", slice.call(arguments).join(",") );
- },
-
- map: function( callback ) {
- return this.pushStack( jQuery.map(this, function( elem, i ) {
- return callback.call( elem, i, elem );
- }));
- },
-
- end: function() {
- return this.prevObject || jQuery(null);
- },
-
- // For internal use only.
- // Behaves like an Array's method, not like a jQuery method.
- push: push,
- sort: [].sort,
- splice: [].splice
-};
-
-// Give the init function the jQuery prototype for later instantiation
-jQuery.fn.init.prototype = jQuery.fn;
-
-jQuery.extend = jQuery.fn.extend = function() {
- // copy reference to target object
- var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options, name, src, copy;
-
- // Handle a deep copy situation
- if ( typeof target === "boolean" ) {
- deep = target;
- target = arguments[1] || {};
- // skip the boolean and the target
- i = 2;
- }
-
- // Handle case when target is a string or something (possible in deep copy)
- if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
- target = {};
- }
-
- // extend jQuery itself if only one argument is passed
- if ( length === i ) {
- target = this;
- --i;
- }
-
- for ( ; i < length; i++ ) {
- // Only deal with non-null/undefined values
- if ( (options = arguments[ i ]) != null ) {
- // Extend the base object
- for ( name in options ) {
- src = target[ name ];
- copy = options[ name ];
-
- // Prevent never-ending loop
- if ( target === copy ) {
- continue;
- }
-
- // Recurse if we're merging object literal values or arrays
- if ( deep && copy && ( jQuery.isPlainObject(copy) || jQuery.isArray(copy) ) ) {
- var clone = src && ( jQuery.isPlainObject(src) || jQuery.isArray(src) ) ? src
- : jQuery.isArray(copy) ? [] : {};
-
- // Never move original objects, clone them
- target[ name ] = jQuery.extend( deep, clone, copy );
-
- // Don't bring in undefined values
- } else if ( copy !== undefined ) {
- target[ name ] = copy;
- }
- }
- }
- }
-
- // Return the modified object
- return target;
-};
-
-jQuery.extend({
- noConflict: function( deep ) {
- window.$ = _$;
-
- if ( deep ) {
- window.jQuery = _jQuery;
- }
-
- return jQuery;
- },
-
- // Is the DOM ready to be used? Set to true once it occurs.
- isReady: false,
-
- // Handle when the DOM is ready
- ready: function() {
- // Make sure that the DOM is not already loaded
- if ( !jQuery.isReady ) {
- // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
- if ( !document.body ) {
- return setTimeout( jQuery.ready, 13 );
- }
-
- // Remember that the DOM is ready
- jQuery.isReady = true;
-
- // If there are functions bound, to execute
- if ( readyList ) {
- // Execute all of them
- var fn, i = 0;
- while ( (fn = readyList[ i++ ]) ) {
- fn.call( document, jQuery );
- }
-
- // Reset the list of functions
- readyList = null;
- }
-
- // Trigger any bound ready events
- if ( jQuery.fn.triggerHandler ) {
- jQuery( document ).triggerHandler( "ready" );
- }
- }
- },
-
- bindReady: function() {
- if ( readyBound ) {
- return;
- }
-
- readyBound = true;
-
- // Catch cases where $(document).ready() is called after the
- // browser event has already occurred.
- if ( document.readyState === "complete" ) {
- return jQuery.ready();
- }
-
- // Mozilla, Opera and webkit nightlies currently support this event
- if ( document.addEventListener ) {
- // Use the handy event callback
- document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );
-
- // A fallback to window.onload, that will always work
- window.addEventListener( "load", jQuery.ready, false );
-
- // If IE event model is used
- } else if ( document.attachEvent ) {
- // ensure firing before onload,
- // maybe late but safe also for iframes
- document.attachEvent("onreadystatechange", DOMContentLoaded);
-
- // A fallback to window.onload, that will always work
- window.attachEvent( "onload", jQuery.ready );
-
- // If IE and not a frame
- // continually check to see if the document is ready
- var toplevel = false;
-
- try {
- toplevel = window.frameElement == null;
- } catch(e) {}
-
- if ( document.documentElement.doScroll && toplevel ) {
- doScrollCheck();
- }
- }
- },
-
- // See test/unit/core.js for details concerning isFunction.
- // Since version 1.3, DOM methods and functions like alert
- // aren't supported. They return false on IE (#2968).
- isFunction: function( obj ) {
- return toString.call(obj) === "[object Function]";
- },
-
- isArray: function( obj ) {
- return toString.call(obj) === "[object Array]";
- },
-
- isPlainObject: function( obj ) {
- // Must be an Object.
- // Because of IE, we also have to check the presence of the constructor property.
- // Make sure that DOM nodes and window objects don't pass through, as well
- if ( !obj || toString.call(obj) !== "[object Object]" || obj.nodeType || obj.setInterval ) {
- return false;
- }
-
- // Not own constructor property must be Object
- if ( obj.constructor
- && !hasOwnProperty.call(obj, "constructor")
- && !hasOwnProperty.call(obj.constructor.prototype, "isPrototypeOf") ) {
- return false;
- }
-
- // Own properties are enumerated firstly, so to speed up,
- // if last one is own, then all properties are own.
-
- var key;
- for ( key in obj ) {}
-
- return key === undefined || hasOwnProperty.call( obj, key );
- },
-
- isEmptyObject: function( obj ) {
- for ( var name in obj ) {
- return false;
- }
- return true;
- },
-
- error: function( msg ) {
- throw msg;
- },
-
- parseJSON: function( data ) {
- if ( typeof data !== "string" || !data ) {
- return null;
- }
-
- // Make sure leading/trailing whitespace is removed (IE can't handle it)
- data = jQuery.trim( data );
-
- // Make sure the incoming data is actual JSON
- // Logic borrowed from http://json.org/json2.js
- if ( /^[\],:{}\s]*$/.test(data.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, "@")
- .replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, "]")
- .replace(/(?:^|:|,)(?:\s*\[)+/g, "")) ) {
-
- // Try to use the native JSON parser first
- return window.JSON && window.JSON.parse ?
- window.JSON.parse( data ) :
- (new Function("return " + data))();
-
- } else {
- jQuery.error( "Invalid JSON: " + data );
- }
- },
-
- noop: function() {},
-
- // Evalulates a script in a global context
- globalEval: function( data ) {
- if ( data && rnotwhite.test(data) ) {
- // Inspired by code by Andrea Giammarchi
- // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html
- var head = document.getElementsByTagName("head")[0] || document.documentElement,
- script = document.createElement("script");
-
- script.type = "text/javascript";
-
- if ( jQuery.support.scriptEval ) {
- script.appendChild( document.createTextNode( data ) );
- } else {
- script.text = data;
- }
-
- // Use insertBefore instead of appendChild to circumvent an IE6 bug.
- // This arises when a base node is used (#2709).
- head.insertBefore( script, head.firstChild );
- head.removeChild( script );
- }
- },
-
- nodeName: function( elem, name ) {
- return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();
- },
-
- // args is for internal usage only
- each: function( object, callback, args ) {
- var name, i = 0,
- length = object.length,
- isObj = length === undefined || jQuery.isFunction(object);
-
- if ( args ) {
- if ( isObj ) {
- for ( name in object ) {
- if ( callback.apply( object[ name ], args ) === false ) {
- break;
- }
- }
- } else {
- for ( ; i < length; ) {
- if ( callback.apply( object[ i++ ], args ) === false ) {
- break;
- }
- }
- }
-
- // A special, fast, case for the most common use of each
- } else {
- if ( isObj ) {
- for ( name in object ) {
- if ( callback.call( object[ name ], name, object[ name ] ) === false ) {
- break;
- }
- }
- } else {
- for ( var value = object[0];
- i < length && callback.call( value, i, value ) !== false; value = object[++i] ) {}
- }
- }
-
- return object;
- },
-
- trim: function( text ) {
- return (text || "").replace( rtrim, "" );
- },
-
- // results is for internal usage only
- makeArray: function( array, results ) {
- var ret = results || [];
-
- if ( array != null ) {
- // The window, strings (and functions) also have 'length'
- // The extra typeof function check is to prevent crashes
- // in Safari 2 (See: #3039)
- if ( array.length == null || typeof array === "string" || jQuery.isFunction(array) || (typeof array !== "function" && array.setInterval) ) {
- push.call( ret, array );
- } else {
- jQuery.merge( ret, array );
- }
- }
-
- return ret;
- },
-
- inArray: function( elem, array ) {
- if ( array.indexOf ) {
- return array.indexOf( elem );
- }
-
- for ( var i = 0, length = array.length; i < length; i++ ) {
- if ( array[ i ] === elem ) {
- return i;
- }
- }
-
- return -1;
- },
-
- merge: function( first, second ) {
- var i = first.length, j = 0;
-
- if ( typeof second.length === "number" ) {
- for ( var l = second.length; j < l; j++ ) {
- first[ i++ ] = second[ j ];
- }
-
- } else {
- while ( second[j] !== undefined ) {
- first[ i++ ] = second[ j++ ];
- }
- }
-
- first.length = i;
-
- return first;
- },
-
- grep: function( elems, callback, inv ) {
- var ret = [];
-
- // Go through the array, only saving the items
- // that pass the validator function
- for ( var i = 0, length = elems.length; i < length; i++ ) {
- if ( !inv !== !callback( elems[ i ], i ) ) {
- ret.push( elems[ i ] );
- }
- }
-
- return ret;
- },
-
- // arg is for internal usage only
- map: function( elems, callback, arg ) {
- var ret = [], value;
-
- // Go through the array, translating each of the items to their
- // new value (or values).
- for ( var i = 0, length = elems.length; i < length; i++ ) {
- value = callback( elems[ i ], i, arg );
-
- if ( value != null ) {
- ret[ ret.length ] = value;
- }
- }
-
- return ret.concat.apply( [], ret );
- },
-
- // A global GUID counter for objects
- guid: 1,
-
- proxy: function( fn, proxy, thisObject ) {
- if ( arguments.length === 2 ) {
- if ( typeof proxy === "string" ) {
- thisObject = fn;
- fn = thisObject[ proxy ];
- proxy = undefined;
-
- } else if ( proxy && !jQuery.isFunction( proxy ) ) {
- thisObject = proxy;
- proxy = undefined;
- }
- }
-
- if ( !proxy && fn ) {
- proxy = function() {
- return fn.apply( thisObject || this, arguments );
- };
- }
-
- // Set the guid of unique handler to the same of original handler, so it can be removed
- if ( fn ) {
- proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;
- }
-
- // So proxy can be declared as an argument
- return proxy;
- },
-
- // Use of jQuery.browser is frowned upon.
- // More details: http://docs.jquery.com/Utilities/jQuery.browser
- uaMatch: function( ua ) {
- ua = ua.toLowerCase();
-
- var match = /(webkit)[ \/]([\w.]+)/.exec( ua ) ||
- /(opera)(?:.*version)?[ \/]([\w.]+)/.exec( ua ) ||
- /(msie) ([\w.]+)/.exec( ua ) ||
- !/compatible/.test( ua ) && /(mozilla)(?:.*? rv:([\w.]+))?/.exec( ua ) ||
- [];
-
- return { browser: match[1] || "", version: match[2] || "0" };
- },
-
- browser: {}
-});
-
-browserMatch = jQuery.uaMatch( userAgent );
-if ( browserMatch.browser ) {
- jQuery.browser[ browserMatch.browser ] = true;
- jQuery.browser.version = browserMatch.version;
-}
-
-// Deprecated, use jQuery.browser.webkit instead
-if ( jQuery.browser.webkit ) {
- jQuery.browser.safari = true;
-}
-
-if ( indexOf ) {
- jQuery.inArray = function( elem, array ) {
- return indexOf.call( array, elem );
- };
-}
-
-// All jQuery objects should point back to these
-rootjQuery = jQuery(document);
-
-// Cleanup functions for the document ready method
-if ( document.addEventListener ) {
- DOMContentLoaded = function() {
- document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
- jQuery.ready();
- };
-
-} else if ( document.attachEvent ) {
- DOMContentLoaded = function() {
- // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
- if ( document.readyState === "complete" ) {
- document.detachEvent( "onreadystatechange", DOMContentLoaded );
- jQuery.ready();
- }
- };
-}
-
-// The DOM ready check for Internet Explorer
-function doScrollCheck() {
- if ( jQuery.isReady ) {
- return;
- }
-
- try {
- // If IE is used, use the trick by Diego Perini
- // http://javascript.nwbox.com/IEContentLoaded/
- document.documentElement.doScroll("left");
- } catch( error ) {
- setTimeout( doScrollCheck, 1 );
- return;
- }
-
- // and execute any waiting functions
- jQuery.ready();
-}
-
-function evalScript( i, elem ) {
- if ( elem.src ) {
- jQuery.ajax({
- url: elem.src,
- async: false,
- dataType: "script"
- });
- } else {
- jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" );
- }
-
- if ( elem.parentNode ) {
- elem.parentNode.removeChild( elem );
- }
-}
-
-// Mutifunctional method to get and set values to a collection
-// The value/s can be optionally by executed if its a function
-function access( elems, key, value, exec, fn, pass ) {
- var length = elems.length;
-
- // Setting many attributes
- if ( typeof key === "object" ) {
- for ( var k in key ) {
- access( elems, k, key[k], exec, fn, value );
- }
- return elems;
- }
-
- // Setting one attribute
- if ( value !== undefined ) {
- // Optionally, function values get executed if exec is true
- exec = !pass && exec && jQuery.isFunction(value);
-
- for ( var i = 0; i < length; i++ ) {
- fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );
- }
-
- return elems;
- }
-
- // Getting an attribute
- return length ? fn( elems[0], key ) : undefined;
-}
-
-function now() {
- return (new Date).getTime();
-}
-(function() {
-
- jQuery.support = {};
-
- var root = document.documentElement,
- script = document.createElement("script"),
- div = document.createElement("div"),
- id = "script" + now();
-
- div.style.display = "none";
- div.innerHTML = " a ";
-
- var all = div.getElementsByTagName("*"),
- a = div.getElementsByTagName("a")[0];
-
- // Can't get basic test support
- if ( !all || !all.length || !a ) {
- return;
- }
-
- jQuery.support = {
- // IE strips leading whitespace when .innerHTML is used
- leadingWhitespace: div.firstChild.nodeType === 3,
-
- // Make sure that tbody elements aren't automatically inserted
- // IE will insert them into empty tables
- tbody: !div.getElementsByTagName("tbody").length,
-
- // Make sure that link elements get serialized correctly by innerHTML
- // This requires a wrapper element in IE
- htmlSerialize: !!div.getElementsByTagName("link").length,
-
- // Get the style information from getAttribute
- // (IE uses .cssText insted)
- style: /red/.test( a.getAttribute("style") ),
-
- // Make sure that URLs aren't manipulated
- // (IE normalizes it by default)
- hrefNormalized: a.getAttribute("href") === "/a",
-
- // Make sure that element opacity exists
- // (IE uses filter instead)
- // Use a regex to work around a WebKit issue. See #5145
- opacity: /^0.55$/.test( a.style.opacity ),
-
- // Verify style float existence
- // (IE uses styleFloat instead of cssFloat)
- cssFloat: !!a.style.cssFloat,
-
- // Make sure that if no value is specified for a checkbox
- // that it defaults to "on".
- // (WebKit defaults to "" instead)
- checkOn: div.getElementsByTagName("input")[0].value === "on",
-
- // Make sure that a selected-by-default option has a working selected property.
- // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
- optSelected: document.createElement("select").appendChild( document.createElement("option") ).selected,
-
- parentNode: div.removeChild( div.appendChild( document.createElement("div") ) ).parentNode === null,
-
- // Will be defined later
- deleteExpando: true,
- checkClone: false,
- scriptEval: false,
- noCloneEvent: true,
- boxModel: null
- };
-
- script.type = "text/javascript";
- try {
- script.appendChild( document.createTextNode( "window." + id + "=1;" ) );
- } catch(e) {}
-
- root.insertBefore( script, root.firstChild );
-
- // Make sure that the execution of code works by injecting a script
- // tag with appendChild/createTextNode
- // (IE doesn't support this, fails, and uses .text instead)
- if ( window[ id ] ) {
- jQuery.support.scriptEval = true;
- delete window[ id ];
- }
-
- // Test to see if it's possible to delete an expando from an element
- // Fails in Internet Explorer
- try {
- delete script.test;
-
- } catch(e) {
- jQuery.support.deleteExpando = false;
- }
-
- root.removeChild( script );
-
- if ( div.attachEvent && div.fireEvent ) {
- div.attachEvent("onclick", function click() {
- // Cloning a node shouldn't copy over any
- // bound event handlers (IE does this)
- jQuery.support.noCloneEvent = false;
- div.detachEvent("onclick", click);
- });
- div.cloneNode(true).fireEvent("onclick");
- }
-
- div = document.createElement("div");
- div.innerHTML = " ";
-
- var fragment = document.createDocumentFragment();
- fragment.appendChild( div.firstChild );
-
- // WebKit doesn't clone checked state correctly in fragments
- jQuery.support.checkClone = fragment.cloneNode(true).cloneNode(true).lastChild.checked;
-
- // Figure out if the W3C box model works as expected
- // document.body must exist before we can do this
- jQuery(function() {
- var div = document.createElement("div");
- div.style.width = div.style.paddingLeft = "1px";
-
- document.body.appendChild( div );
- jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;
- document.body.removeChild( div ).style.display = 'none';
-
- div = null;
- });
-
- // Technique from Juriy Zaytsev
- // http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/
- var eventSupported = function( eventName ) {
- var el = document.createElement("div");
- eventName = "on" + eventName;
-
- var isSupported = (eventName in el);
- if ( !isSupported ) {
- el.setAttribute(eventName, "return;");
- isSupported = typeof el[eventName] === "function";
- }
- el = null;
-
- return isSupported;
- };
-
- jQuery.support.submitBubbles = eventSupported("submit");
- jQuery.support.changeBubbles = eventSupported("change");
-
- // release memory in IE
- root = script = div = all = a = null;
-})();
-
-jQuery.props = {
- "for": "htmlFor",
- "class": "className",
- readonly: "readOnly",
- maxlength: "maxLength",
- cellspacing: "cellSpacing",
- rowspan: "rowSpan",
- colspan: "colSpan",
- tabindex: "tabIndex",
- usemap: "useMap",
- frameborder: "frameBorder"
-};
-var expando = "jQuery" + now(), uuid = 0, windowData = {};
-
-jQuery.extend({
- cache: {},
-
- expando:expando,
-
- // The following elements throw uncatchable exceptions if you
- // attempt to add expando properties to them.
- noData: {
- "embed": true,
- "object": true,
- "applet": true
- },
-
- data: function( elem, name, data ) {
- if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {
- return;
- }
-
- elem = elem == window ?
- windowData :
- elem;
-
- var id = elem[ expando ], cache = jQuery.cache, thisCache;
-
- if ( !id && typeof name === "string" && data === undefined ) {
- return null;
- }
-
- // Compute a unique ID for the element
- if ( !id ) {
- id = ++uuid;
- }
-
- // Avoid generating a new cache unless none exists and we
- // want to manipulate it.
- if ( typeof name === "object" ) {
- elem[ expando ] = id;
- thisCache = cache[ id ] = jQuery.extend(true, {}, name);
-
- } else if ( !cache[ id ] ) {
- elem[ expando ] = id;
- cache[ id ] = {};
- }
-
- thisCache = cache[ id ];
-
- // Prevent overriding the named cache with undefined values
- if ( data !== undefined ) {
- thisCache[ name ] = data;
- }
-
- return typeof name === "string" ? thisCache[ name ] : thisCache;
- },
-
- removeData: function( elem, name ) {
- if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {
- return;
- }
-
- elem = elem == window ?
- windowData :
- elem;
-
- var id = elem[ expando ], cache = jQuery.cache, thisCache = cache[ id ];
-
- // If we want to remove a specific section of the element's data
- if ( name ) {
- if ( thisCache ) {
- // Remove the section of cache data
- delete thisCache[ name ];
-
- // If we've removed all the data, remove the element's cache
- if ( jQuery.isEmptyObject(thisCache) ) {
- jQuery.removeData( elem );
- }
- }
-
- // Otherwise, we want to remove all of the element's data
- } else {
- if ( jQuery.support.deleteExpando ) {
- delete elem[ jQuery.expando ];
-
- } else if ( elem.removeAttribute ) {
- elem.removeAttribute( jQuery.expando );
- }
-
- // Completely remove the data cache
- delete cache[ id ];
- }
- }
-});
-
-jQuery.fn.extend({
- data: function( key, value ) {
- if ( typeof key === "undefined" && this.length ) {
- return jQuery.data( this[0] );
-
- } else if ( typeof key === "object" ) {
- return this.each(function() {
- jQuery.data( this, key );
- });
- }
-
- var parts = key.split(".");
- parts[1] = parts[1] ? "." + parts[1] : "";
-
- if ( value === undefined ) {
- var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
-
- if ( data === undefined && this.length ) {
- data = jQuery.data( this[0], key );
- }
- return data === undefined && parts[1] ?
- this.data( parts[0] ) :
- data;
- } else {
- return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function() {
- jQuery.data( this, key, value );
- });
- }
- },
-
- removeData: function( key ) {
- return this.each(function() {
- jQuery.removeData( this, key );
- });
- }
-});
-jQuery.extend({
- queue: function( elem, type, data ) {
- if ( !elem ) {
- return;
- }
-
- type = (type || "fx") + "queue";
- var q = jQuery.data( elem, type );
-
- // Speed up dequeue by getting out quickly if this is just a lookup
- if ( !data ) {
- return q || [];
- }
-
- if ( !q || jQuery.isArray(data) ) {
- q = jQuery.data( elem, type, jQuery.makeArray(data) );
-
- } else {
- q.push( data );
- }
-
- return q;
- },
-
- dequeue: function( elem, type ) {
- type = type || "fx";
-
- var queue = jQuery.queue( elem, type ), fn = queue.shift();
-
- // If the fx queue is dequeued, always remove the progress sentinel
- if ( fn === "inprogress" ) {
- fn = queue.shift();
- }
-
- if ( fn ) {
- // Add a progress sentinel to prevent the fx queue from being
- // automatically dequeued
- if ( type === "fx" ) {
- queue.unshift("inprogress");
- }
-
- fn.call(elem, function() {
- jQuery.dequeue(elem, type);
- });
- }
- }
-});
-
-jQuery.fn.extend({
- queue: function( type, data ) {
- if ( typeof type !== "string" ) {
- data = type;
- type = "fx";
- }
-
- if ( data === undefined ) {
- return jQuery.queue( this[0], type );
- }
- return this.each(function( i, elem ) {
- var queue = jQuery.queue( this, type, data );
-
- if ( type === "fx" && queue[0] !== "inprogress" ) {
- jQuery.dequeue( this, type );
- }
- });
- },
- dequeue: function( type ) {
- return this.each(function() {
- jQuery.dequeue( this, type );
- });
- },
-
- // Based off of the plugin by Clint Helfers, with permission.
- // http://blindsignals.com/index.php/2009/07/jquery-delay/
- delay: function( time, type ) {
- time = jQuery.fx ? jQuery.fx.speeds[time] || time : time;
- type = type || "fx";
-
- return this.queue( type, function() {
- var elem = this;
- setTimeout(function() {
- jQuery.dequeue( elem, type );
- }, time );
- });
- },
-
- clearQueue: function( type ) {
- return this.queue( type || "fx", [] );
- }
-});
-var rclass = /[\n\t]/g,
- rspace = /\s+/,
- rreturn = /\r/g,
- rspecialurl = /href|src|style/,
- rtype = /(button|input)/i,
- rfocusable = /(button|input|object|select|textarea)/i,
- rclickable = /^(a|area)$/i,
- rradiocheck = /radio|checkbox/;
-
-jQuery.fn.extend({
- attr: function( name, value ) {
- return access( this, name, value, true, jQuery.attr );
- },
-
- removeAttr: function( name, fn ) {
- return this.each(function(){
- jQuery.attr( this, name, "" );
- if ( this.nodeType === 1 ) {
- this.removeAttribute( name );
- }
- });
- },
-
- addClass: function( value ) {
- if ( jQuery.isFunction(value) ) {
- return this.each(function(i) {
- var self = jQuery(this);
- self.addClass( value.call(this, i, self.attr("class")) );
- });
- }
-
- if ( value && typeof value === "string" ) {
- var classNames = (value || "").split( rspace );
-
- for ( var i = 0, l = this.length; i < l; i++ ) {
- var elem = this[i];
-
- if ( elem.nodeType === 1 ) {
- if ( !elem.className ) {
- elem.className = value;
-
- } else {
- var className = " " + elem.className + " ", setClass = elem.className;
- for ( var c = 0, cl = classNames.length; c < cl; c++ ) {
- if ( className.indexOf( " " + classNames[c] + " " ) < 0 ) {
- setClass += " " + classNames[c];
- }
- }
- elem.className = jQuery.trim( setClass );
- }
- }
- }
- }
-
- return this;
- },
-
- removeClass: function( value ) {
- if ( jQuery.isFunction(value) ) {
- return this.each(function(i) {
- var self = jQuery(this);
- self.removeClass( value.call(this, i, self.attr("class")) );
- });
- }
-
- if ( (value && typeof value === "string") || value === undefined ) {
- var classNames = (value || "").split(rspace);
-
- for ( var i = 0, l = this.length; i < l; i++ ) {
- var elem = this[i];
-
- if ( elem.nodeType === 1 && elem.className ) {
- if ( value ) {
- var className = (" " + elem.className + " ").replace(rclass, " ");
- for ( var c = 0, cl = classNames.length; c < cl; c++ ) {
- className = className.replace(" " + classNames[c] + " ", " ");
- }
- elem.className = jQuery.trim( className );
-
- } else {
- elem.className = "";
- }
- }
- }
- }
-
- return this;
- },
-
- toggleClass: function( value, stateVal ) {
- var type = typeof value, isBool = typeof stateVal === "boolean";
-
- if ( jQuery.isFunction( value ) ) {
- return this.each(function(i) {
- var self = jQuery(this);
- self.toggleClass( value.call(this, i, self.attr("class"), stateVal), stateVal );
- });
- }
-
- return this.each(function() {
- if ( type === "string" ) {
- // toggle individual class names
- var className, i = 0, self = jQuery(this),
- state = stateVal,
- classNames = value.split( rspace );
-
- while ( (className = classNames[ i++ ]) ) {
- // check each className given, space seperated list
- state = isBool ? state : !self.hasClass( className );
- self[ state ? "addClass" : "removeClass" ]( className );
- }
-
- } else if ( type === "undefined" || type === "boolean" ) {
- if ( this.className ) {
- // store className if set
- jQuery.data( this, "__className__", this.className );
- }
-
- // toggle whole className
- this.className = this.className || value === false ? "" : jQuery.data( this, "__className__" ) || "";
- }
- });
- },
-
- hasClass: function( selector ) {
- var className = " " + selector + " ";
- for ( var i = 0, l = this.length; i < l; i++ ) {
- if ( (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) {
- return true;
- }
- }
-
- return false;
- },
-
- val: function( value ) {
- if ( value === undefined ) {
- var elem = this[0];
-
- if ( elem ) {
- if ( jQuery.nodeName( elem, "option" ) ) {
- return (elem.attributes.value || {}).specified ? elem.value : elem.text;
- }
-
- // We need to handle select boxes special
- if ( jQuery.nodeName( elem, "select" ) ) {
- var index = elem.selectedIndex,
- values = [],
- options = elem.options,
- one = elem.type === "select-one";
-
- // Nothing was selected
- if ( index < 0 ) {
- return null;
- }
-
- // Loop through all the selected options
- for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) {
- var option = options[ i ];
-
- if ( option.selected ) {
- // Get the specifc value for the option
- value = jQuery(option).val();
-
- // We don't need an array for one selects
- if ( one ) {
- return value;
- }
-
- // Multi-Selects return an array
- values.push( value );
- }
- }
-
- return values;
- }
-
- // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
- if ( rradiocheck.test( elem.type ) && !jQuery.support.checkOn ) {
- return elem.getAttribute("value") === null ? "on" : elem.value;
- }
-
-
- // Everything else, we just grab the value
- return (elem.value || "").replace(rreturn, "");
-
- }
-
- return undefined;
- }
-
- var isFunction = jQuery.isFunction(value);
-
- return this.each(function(i) {
- var self = jQuery(this), val = value;
-
- if ( this.nodeType !== 1 ) {
- return;
- }
-
- if ( isFunction ) {
- val = value.call(this, i, self.val());
- }
-
- // Typecast each time if the value is a Function and the appended
- // value is therefore different each time.
- if ( typeof val === "number" ) {
- val += "";
- }
-
- if ( jQuery.isArray(val) && rradiocheck.test( this.type ) ) {
- this.checked = jQuery.inArray( self.val(), val ) >= 0;
-
- } else if ( jQuery.nodeName( this, "select" ) ) {
- var values = jQuery.makeArray(val);
-
- jQuery( "option", this ).each(function() {
- this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
- });
-
- if ( !values.length ) {
- this.selectedIndex = -1;
- }
-
- } else {
- this.value = val;
- }
- });
- }
-});
-
-jQuery.extend({
- attrFn: {
- val: true,
- css: true,
- html: true,
- text: true,
- data: true,
- width: true,
- height: true,
- offset: true
- },
-
- attr: function( elem, name, value, pass ) {
- // don't set attributes on text and comment nodes
- if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) {
- return undefined;
- }
-
- if ( pass && name in jQuery.attrFn ) {
- return jQuery(elem)[name](value);
- }
-
- var notxml = elem.nodeType !== 1 || !jQuery.isXMLDoc( elem ),
- // Whether we are setting (or getting)
- set = value !== undefined;
-
- // Try to normalize/fix the name
- name = notxml && jQuery.props[ name ] || name;
-
- // Only do all the following if this is a node (faster for style)
- if ( elem.nodeType === 1 ) {
- // These attributes require special treatment
- var special = rspecialurl.test( name );
-
- // Safari mis-reports the default selected property of an option
- // Accessing the parent's selectedIndex property fixes it
- if ( name === "selected" && !jQuery.support.optSelected ) {
- var parent = elem.parentNode;
- if ( parent ) {
- parent.selectedIndex;
-
- // Make sure that it also works with optgroups, see #5701
- if ( parent.parentNode ) {
- parent.parentNode.selectedIndex;
- }
- }
- }
-
- // If applicable, access the attribute via the DOM 0 way
- if ( name in elem && notxml && !special ) {
- if ( set ) {
- // We can't allow the type property to be changed (since it causes problems in IE)
- if ( name === "type" && rtype.test( elem.nodeName ) && elem.parentNode ) {
- jQuery.error( "type property can't be changed" );
- }
-
- elem[ name ] = value;
- }
-
- // browsers index elements by id/name on forms, give priority to attributes.
- if ( jQuery.nodeName( elem, "form" ) && elem.getAttributeNode(name) ) {
- return elem.getAttributeNode( name ).nodeValue;
- }
-
- // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
- // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
- if ( name === "tabIndex" ) {
- var attributeNode = elem.getAttributeNode( "tabIndex" );
-
- return attributeNode && attributeNode.specified ?
- attributeNode.value :
- rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
- 0 :
- undefined;
- }
-
- return elem[ name ];
- }
-
- if ( !jQuery.support.style && notxml && name === "style" ) {
- if ( set ) {
- elem.style.cssText = "" + value;
- }
-
- return elem.style.cssText;
- }
-
- if ( set ) {
- // convert the value to a string (all browsers do this but IE) see #1070
- elem.setAttribute( name, "" + value );
- }
-
- var attr = !jQuery.support.hrefNormalized && notxml && special ?
- // Some attributes require a special call on IE
- elem.getAttribute( name, 2 ) :
- elem.getAttribute( name );
-
- // Non-existent attributes return null, we normalize to undefined
- return attr === null ? undefined : attr;
- }
-
- // elem is actually elem.style ... set the style
- // Using attr for specific style information is now deprecated. Use style instead.
- return jQuery.style( elem, name, value );
- }
-});
-var rnamespaces = /\.(.*)$/,
- fcleanup = function( nm ) {
- return nm.replace(/[^\w\s\.\|`]/g, function( ch ) {
- return "\\" + ch;
- });
- };
-
-/*
- * A number of helper functions used for managing events.
- * Many of the ideas behind this code originated from
- * Dean Edwards' addEvent library.
- */
-jQuery.event = {
-
- // Bind an event to an element
- // Original by Dean Edwards
- add: function( elem, types, handler, data ) {
- if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
- return;
- }
-
- // For whatever reason, IE has trouble passing the window object
- // around, causing it to be cloned in the process
- if ( elem.setInterval && ( elem !== window && !elem.frameElement ) ) {
- elem = window;
- }
-
- var handleObjIn, handleObj;
-
- if ( handler.handler ) {
- handleObjIn = handler;
- handler = handleObjIn.handler;
- }
-
- // Make sure that the function being executed has a unique ID
- if ( !handler.guid ) {
- handler.guid = jQuery.guid++;
- }
-
- // Init the element's event structure
- var elemData = jQuery.data( elem );
-
- // If no elemData is found then we must be trying to bind to one of the
- // banned noData elements
- if ( !elemData ) {
- return;
- }
-
- var events = elemData.events = elemData.events || {},
- eventHandle = elemData.handle, eventHandle;
-
- if ( !eventHandle ) {
- elemData.handle = eventHandle = function() {
- // Handle the second event of a trigger and when
- // an event is called after a page has unloaded
- return typeof jQuery !== "undefined" && !jQuery.event.triggered ?
- jQuery.event.handle.apply( eventHandle.elem, arguments ) :
- undefined;
- };
- }
-
- // Add elem as a property of the handle function
- // This is to prevent a memory leak with non-native events in IE.
- eventHandle.elem = elem;
-
- // Handle multiple events separated by a space
- // jQuery(...).bind("mouseover mouseout", fn);
- types = types.split(" ");
-
- var type, i = 0, namespaces;
-
- while ( (type = types[ i++ ]) ) {
- handleObj = handleObjIn ?
- jQuery.extend({}, handleObjIn) :
- { handler: handler, data: data };
-
- // Namespaced event handlers
- if ( type.indexOf(".") > -1 ) {
- namespaces = type.split(".");
- type = namespaces.shift();
- handleObj.namespace = namespaces.slice(0).sort().join(".");
-
- } else {
- namespaces = [];
- handleObj.namespace = "";
- }
-
- handleObj.type = type;
- handleObj.guid = handler.guid;
-
- // Get the current list of functions bound to this event
- var handlers = events[ type ],
- special = jQuery.event.special[ type ] || {};
-
- // Init the event handler queue
- if ( !handlers ) {
- handlers = events[ type ] = [];
-
- // Check for a special event handler
- // Only use addEventListener/attachEvent if the special
- // events handler returns false
- if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
- // Bind the global event handler to the element
- if ( elem.addEventListener ) {
- elem.addEventListener( type, eventHandle, false );
-
- } else if ( elem.attachEvent ) {
- elem.attachEvent( "on" + type, eventHandle );
- }
- }
- }
-
- if ( special.add ) {
- special.add.call( elem, handleObj );
-
- if ( !handleObj.handler.guid ) {
- handleObj.handler.guid = handler.guid;
- }
- }
-
- // Add the function to the element's handler list
- handlers.push( handleObj );
-
- // Keep track of which events have been used, for global triggering
- jQuery.event.global[ type ] = true;
- }
-
- // Nullify elem to prevent memory leaks in IE
- elem = null;
- },
-
- global: {},
-
- // Detach an event or set of events from an element
- remove: function( elem, types, handler, pos ) {
- // don't do events on text and comment nodes
- if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
- return;
- }
-
- var ret, type, fn, i = 0, all, namespaces, namespace, special, eventType, handleObj, origType,
- elemData = jQuery.data( elem ),
- events = elemData && elemData.events;
-
- if ( !elemData || !events ) {
- return;
- }
-
- // types is actually an event object here
- if ( types && types.type ) {
- handler = types.handler;
- types = types.type;
- }
-
- // Unbind all events for the element
- if ( !types || typeof types === "string" && types.charAt(0) === "." ) {
- types = types || "";
-
- for ( type in events ) {
- jQuery.event.remove( elem, type + types );
- }
-
- return;
- }
-
- // Handle multiple events separated by a space
- // jQuery(...).unbind("mouseover mouseout", fn);
- types = types.split(" ");
-
- while ( (type = types[ i++ ]) ) {
- origType = type;
- handleObj = null;
- all = type.indexOf(".") < 0;
- namespaces = [];
-
- if ( !all ) {
- // Namespaced event handlers
- namespaces = type.split(".");
- type = namespaces.shift();
-
- namespace = new RegExp("(^|\\.)" +
- jQuery.map( namespaces.slice(0).sort(), fcleanup ).join("\\.(?:.*\\.)?") + "(\\.|$)")
- }
-
- eventType = events[ type ];
-
- if ( !eventType ) {
- continue;
- }
-
- if ( !handler ) {
- for ( var j = 0; j < eventType.length; j++ ) {
- handleObj = eventType[ j ];
-
- if ( all || namespace.test( handleObj.namespace ) ) {
- jQuery.event.remove( elem, origType, handleObj.handler, j );
- eventType.splice( j--, 1 );
- }
- }
-
- continue;
- }
-
- special = jQuery.event.special[ type ] || {};
-
- for ( var j = pos || 0; j < eventType.length; j++ ) {
- handleObj = eventType[ j ];
-
- if ( handler.guid === handleObj.guid ) {
- // remove the given handler for the given type
- if ( all || namespace.test( handleObj.namespace ) ) {
- if ( pos == null ) {
- eventType.splice( j--, 1 );
- }
-
- if ( special.remove ) {
- special.remove.call( elem, handleObj );
- }
- }
-
- if ( pos != null ) {
- break;
- }
- }
- }
-
- // remove generic event handler if no more handlers exist
- if ( eventType.length === 0 || pos != null && eventType.length === 1 ) {
- if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {
- removeEvent( elem, type, elemData.handle );
- }
-
- ret = null;
- delete events[ type ];
- }
- }
-
- // Remove the expando if it's no longer used
- if ( jQuery.isEmptyObject( events ) ) {
- var handle = elemData.handle;
- if ( handle ) {
- handle.elem = null;
- }
-
- delete elemData.events;
- delete elemData.handle;
-
- if ( jQuery.isEmptyObject( elemData ) ) {
- jQuery.removeData( elem );
- }
- }
- },
-
- // bubbling is internal
- trigger: function( event, data, elem /*, bubbling */ ) {
- // Event object or event type
- var type = event.type || event,
- bubbling = arguments[3];
-
- if ( !bubbling ) {
- event = typeof event === "object" ?
- // jQuery.Event object
- event[expando] ? event :
- // Object literal
- jQuery.extend( jQuery.Event(type), event ) :
- // Just the event type (string)
- jQuery.Event(type);
-
- if ( type.indexOf("!") >= 0 ) {
- event.type = type = type.slice(0, -1);
- event.exclusive = true;
- }
-
- // Handle a global trigger
- if ( !elem ) {
- // Don't bubble custom events when global (to avoid too much overhead)
- event.stopPropagation();
-
- // Only trigger if we've ever bound an event for it
- if ( jQuery.event.global[ type ] ) {
- jQuery.each( jQuery.cache, function() {
- if ( this.events && this.events[type] ) {
- jQuery.event.trigger( event, data, this.handle.elem );
- }
- });
- }
- }
-
- // Handle triggering a single element
-
- // don't do events on text and comment nodes
- if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) {
- return undefined;
- }
-
- // Clean up in case it is reused
- event.result = undefined;
- event.target = elem;
-
- // Clone the incoming data, if any
- data = jQuery.makeArray( data );
- data.unshift( event );
- }
-
- event.currentTarget = elem;
-
- // Trigger the event, it is assumed that "handle" is a function
- var handle = jQuery.data( elem, "handle" );
- if ( handle ) {
- handle.apply( elem, data );
- }
-
- var parent = elem.parentNode || elem.ownerDocument;
-
- // Trigger an inline bound script
- try {
- if ( !(elem && elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()]) ) {
- if ( elem[ "on" + type ] && elem[ "on" + type ].apply( elem, data ) === false ) {
- event.result = false;
- }
- }
-
- // prevent IE from throwing an error for some elements with some event types, see #3533
- } catch (e) {}
-
- if ( !event.isPropagationStopped() && parent ) {
- jQuery.event.trigger( event, data, parent, true );
-
- } else if ( !event.isDefaultPrevented() ) {
- var target = event.target, old,
- isClick = jQuery.nodeName(target, "a") && type === "click",
- special = jQuery.event.special[ type ] || {};
-
- if ( (!special._default || special._default.call( elem, event ) === false) &&
- !isClick && !(target && target.nodeName && jQuery.noData[target.nodeName.toLowerCase()]) ) {
-
- try {
- if ( target[ type ] ) {
- // Make sure that we don't accidentally re-trigger the onFOO events
- old = target[ "on" + type ];
-
- if ( old ) {
- target[ "on" + type ] = null;
- }
-
- jQuery.event.triggered = true;
- target[ type ]();
- }
-
- // prevent IE from throwing an error for some elements with some event types, see #3533
- } catch (e) {}
-
- if ( old ) {
- target[ "on" + type ] = old;
- }
-
- jQuery.event.triggered = false;
- }
- }
- },
-
- handle: function( event ) {
- var all, handlers, namespaces, namespace, events;
-
- event = arguments[0] = jQuery.event.fix( event || window.event );
- event.currentTarget = this;
-
- // Namespaced event handlers
- all = event.type.indexOf(".") < 0 && !event.exclusive;
-
- if ( !all ) {
- namespaces = event.type.split(".");
- event.type = namespaces.shift();
- namespace = new RegExp("(^|\\.)" + namespaces.slice(0).sort().join("\\.(?:.*\\.)?") + "(\\.|$)");
- }
-
- var events = jQuery.data(this, "events"), handlers = events[ event.type ];
-
- if ( events && handlers ) {
- // Clone the handlers to prevent manipulation
- handlers = handlers.slice(0);
-
- for ( var j = 0, l = handlers.length; j < l; j++ ) {
- var handleObj = handlers[ j ];
-
- // Filter the functions by class
- if ( all || namespace.test( handleObj.namespace ) ) {
- // Pass in a reference to the handler function itself
- // So that we can later remove it
- event.handler = handleObj.handler;
- event.data = handleObj.data;
- event.handleObj = handleObj;
-
- var ret = handleObj.handler.apply( this, arguments );
-
- if ( ret !== undefined ) {
- event.result = ret;
- if ( ret === false ) {
- event.preventDefault();
- event.stopPropagation();
- }
- }
-
- if ( event.isImmediatePropagationStopped() ) {
- break;
- }
- }
- }
- }
-
- return event.result;
- },
-
- props: "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
-
- fix: function( event ) {
- if ( event[ expando ] ) {
- return event;
- }
-
- // store a copy of the original event object
- // and "clone" to set read-only properties
- var originalEvent = event;
- event = jQuery.Event( originalEvent );
-
- for ( var i = this.props.length, prop; i; ) {
- prop = this.props[ --i ];
- event[ prop ] = originalEvent[ prop ];
- }
-
- // Fix target property, if necessary
- if ( !event.target ) {
- event.target = event.srcElement || document; // Fixes #1925 where srcElement might not be defined either
- }
-
- // check if target is a textnode (safari)
- if ( event.target.nodeType === 3 ) {
- event.target = event.target.parentNode;
- }
-
- // Add relatedTarget, if necessary
- if ( !event.relatedTarget && event.fromElement ) {
- event.relatedTarget = event.fromElement === event.target ? event.toElement : event.fromElement;
- }
-
- // Calculate pageX/Y if missing and clientX/Y available
- if ( event.pageX == null && event.clientX != null ) {
- var doc = document.documentElement, body = document.body;
- event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);
- event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc && doc.clientTop || body && body.clientTop || 0);
- }
-
- // Add which for key events
- if ( !event.which && ((event.charCode || event.charCode === 0) ? event.charCode : event.keyCode) ) {
- event.which = event.charCode || event.keyCode;
- }
-
- // Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs)
- if ( !event.metaKey && event.ctrlKey ) {
- event.metaKey = event.ctrlKey;
- }
-
- // Add which for click: 1 === left; 2 === middle; 3 === right
- // Note: button is not normalized, so don't use it
- if ( !event.which && event.button !== undefined ) {
- event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));
- }
-
- return event;
- },
-
- // Deprecated, use jQuery.guid instead
- guid: 1E8,
-
- // Deprecated, use jQuery.proxy instead
- proxy: jQuery.proxy,
-
- special: {
- ready: {
- // Make sure the ready event is setup
- setup: jQuery.bindReady,
- teardown: jQuery.noop
- },
-
- live: {
- add: function( handleObj ) {
- jQuery.event.add( this, handleObj.origType, jQuery.extend({}, handleObj, {handler: liveHandler}) );
- },
-
- remove: function( handleObj ) {
- var remove = true,
- type = handleObj.origType.replace(rnamespaces, "");
-
- jQuery.each( jQuery.data(this, "events").live || [], function() {
- if ( type === this.origType.replace(rnamespaces, "") ) {
- remove = false;
- return false;
- }
- });
-
- if ( remove ) {
- jQuery.event.remove( this, handleObj.origType, liveHandler );
- }
- }
-
- },
-
- beforeunload: {
- setup: function( data, namespaces, eventHandle ) {
- // We only want to do this special case on windows
- if ( this.setInterval ) {
- this.onbeforeunload = eventHandle;
- }
-
- return false;
- },
- teardown: function( namespaces, eventHandle ) {
- if ( this.onbeforeunload === eventHandle ) {
- this.onbeforeunload = null;
- }
- }
- }
- }
-};
-
-var removeEvent = document.removeEventListener ?
- function( elem, type, handle ) {
- elem.removeEventListener( type, handle, false );
- } :
- function( elem, type, handle ) {
- elem.detachEvent( "on" + type, handle );
- };
-
-jQuery.Event = function( src ) {
- // Allow instantiation without the 'new' keyword
- if ( !this.preventDefault ) {
- return new jQuery.Event( src );
- }
-
- // Event object
- if ( src && src.type ) {
- this.originalEvent = src;
- this.type = src.type;
- // Event type
- } else {
- this.type = src;
- }
-
- // timeStamp is buggy for some events on Firefox(#3843)
- // So we won't rely on the native value
- this.timeStamp = now();
-
- // Mark it as fixed
- this[ expando ] = true;
-};
-
-function returnFalse() {
- return false;
-}
-function returnTrue() {
- return true;
-}
-
-// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
-// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
-jQuery.Event.prototype = {
- preventDefault: function() {
- this.isDefaultPrevented = returnTrue;
-
- var e = this.originalEvent;
- if ( !e ) {
- return;
- }
-
- // if preventDefault exists run it on the original event
- if ( e.preventDefault ) {
- e.preventDefault();
- }
- // otherwise set the returnValue property of the original event to false (IE)
- e.returnValue = false;
- },
- stopPropagation: function() {
- this.isPropagationStopped = returnTrue;
-
- var e = this.originalEvent;
- if ( !e ) {
- return;
- }
- // if stopPropagation exists run it on the original event
- if ( e.stopPropagation ) {
- e.stopPropagation();
- }
- // otherwise set the cancelBubble property of the original event to true (IE)
- e.cancelBubble = true;
- },
- stopImmediatePropagation: function() {
- this.isImmediatePropagationStopped = returnTrue;
- this.stopPropagation();
- },
- isDefaultPrevented: returnFalse,
- isPropagationStopped: returnFalse,
- isImmediatePropagationStopped: returnFalse
-};
-
-// Checks if an event happened on an element within another element
-// Used in jQuery.event.special.mouseenter and mouseleave handlers
-var withinElement = function( event ) {
- // Check if mouse(over|out) are still within the same parent element
- var parent = event.relatedTarget;
-
- // Firefox sometimes assigns relatedTarget a XUL element
- // which we cannot access the parentNode property of
- try {
- // Traverse up the tree
- while ( parent && parent !== this ) {
- parent = parent.parentNode;
- }
-
- if ( parent !== this ) {
- // set the correct event type
- event.type = event.data;
-
- // handle event if we actually just moused on to a non sub-element
- jQuery.event.handle.apply( this, arguments );
- }
-
- // assuming we've left the element since we most likely mousedover a xul element
- } catch(e) { }
-},
-
-// In case of event delegation, we only need to rename the event.type,
-// liveHandler will take care of the rest.
-delegate = function( event ) {
- event.type = event.data;
- jQuery.event.handle.apply( this, arguments );
-};
-
-// Create mouseenter and mouseleave events
-jQuery.each({
- mouseenter: "mouseover",
- mouseleave: "mouseout"
-}, function( orig, fix ) {
- jQuery.event.special[ orig ] = {
- setup: function( data ) {
- jQuery.event.add( this, fix, data && data.selector ? delegate : withinElement, orig );
- },
- teardown: function( data ) {
- jQuery.event.remove( this, fix, data && data.selector ? delegate : withinElement );
- }
- };
-});
-
-// submit delegation
-if ( !jQuery.support.submitBubbles ) {
-
- jQuery.event.special.submit = {
- setup: function( data, namespaces ) {
- if ( this.nodeName.toLowerCase() !== "form" ) {
- jQuery.event.add(this, "click.specialSubmit", function( e ) {
- var elem = e.target, type = elem.type;
-
- if ( (type === "submit" || type === "image") && jQuery( elem ).closest("form").length ) {
- return trigger( "submit", this, arguments );
- }
- });
-
- jQuery.event.add(this, "keypress.specialSubmit", function( e ) {
- var elem = e.target, type = elem.type;
-
- if ( (type === "text" || type === "password") && jQuery( elem ).closest("form").length && e.keyCode === 13 ) {
- return trigger( "submit", this, arguments );
- }
- });
-
- } else {
- return false;
- }
- },
-
- teardown: function( namespaces ) {
- jQuery.event.remove( this, ".specialSubmit" );
- }
- };
-
-}
-
-// change delegation, happens here so we have bind.
-if ( !jQuery.support.changeBubbles ) {
-
- var formElems = /textarea|input|select/i,
-
- changeFilters,
-
- getVal = function( elem ) {
- var type = elem.type, val = elem.value;
-
- if ( type === "radio" || type === "checkbox" ) {
- val = elem.checked;
-
- } else if ( type === "select-multiple" ) {
- val = elem.selectedIndex > -1 ?
- jQuery.map( elem.options, function( elem ) {
- return elem.selected;
- }).join("-") :
- "";
-
- } else if ( elem.nodeName.toLowerCase() === "select" ) {
- val = elem.selectedIndex;
- }
-
- return val;
- },
-
- testChange = function testChange( e ) {
- var elem = e.target, data, val;
-
- if ( !formElems.test( elem.nodeName ) || elem.readOnly ) {
- return;
- }
-
- data = jQuery.data( elem, "_change_data" );
- val = getVal(elem);
-
- // the current data will be also retrieved by beforeactivate
- if ( e.type !== "focusout" || elem.type !== "radio" ) {
- jQuery.data( elem, "_change_data", val );
- }
-
- if ( data === undefined || val === data ) {
- return;
- }
-
- if ( data != null || val ) {
- e.type = "change";
- return jQuery.event.trigger( e, arguments[1], elem );
- }
- };
-
- jQuery.event.special.change = {
- filters: {
- focusout: testChange,
-
- click: function( e ) {
- var elem = e.target, type = elem.type;
-
- if ( type === "radio" || type === "checkbox" || elem.nodeName.toLowerCase() === "select" ) {
- return testChange.call( this, e );
- }
- },
-
- // Change has to be called before submit
- // Keydown will be called before keypress, which is used in submit-event delegation
- keydown: function( e ) {
- var elem = e.target, type = elem.type;
-
- if ( (e.keyCode === 13 && elem.nodeName.toLowerCase() !== "textarea") ||
- (e.keyCode === 32 && (type === "checkbox" || type === "radio")) ||
- type === "select-multiple" ) {
- return testChange.call( this, e );
- }
- },
-
- // Beforeactivate happens also before the previous element is blurred
- // with this event you can't trigger a change event, but you can store
- // information/focus[in] is not needed anymore
- beforeactivate: function( e ) {
- var elem = e.target;
- jQuery.data( elem, "_change_data", getVal(elem) );
- }
- },
-
- setup: function( data, namespaces ) {
- if ( this.type === "file" ) {
- return false;
- }
-
- for ( var type in changeFilters ) {
- jQuery.event.add( this, type + ".specialChange", changeFilters[type] );
- }
-
- return formElems.test( this.nodeName );
- },
-
- teardown: function( namespaces ) {
- jQuery.event.remove( this, ".specialChange" );
-
- return formElems.test( this.nodeName );
- }
- };
-
- changeFilters = jQuery.event.special.change.filters;
-}
-
-function trigger( type, elem, args ) {
- args[0].type = type;
- return jQuery.event.handle.apply( elem, args );
-}
-
-// Create "bubbling" focus and blur events
-if ( document.addEventListener ) {
- jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
- jQuery.event.special[ fix ] = {
- setup: function() {
- this.addEventListener( orig, handler, true );
- },
- teardown: function() {
- this.removeEventListener( orig, handler, true );
- }
- };
-
- function handler( e ) {
- e = jQuery.event.fix( e );
- e.type = fix;
- return jQuery.event.handle.call( this, e );
- }
- });
-}
-
-jQuery.each(["bind", "one"], function( i, name ) {
- jQuery.fn[ name ] = function( type, data, fn ) {
- // Handle object literals
- if ( typeof type === "object" ) {
- for ( var key in type ) {
- this[ name ](key, data, type[key], fn);
- }
- return this;
- }
-
- if ( jQuery.isFunction( data ) ) {
- fn = data;
- data = undefined;
- }
-
- var handler = name === "one" ? jQuery.proxy( fn, function( event ) {
- jQuery( this ).unbind( event, handler );
- return fn.apply( this, arguments );
- }) : fn;
-
- if ( type === "unload" && name !== "one" ) {
- this.one( type, data, fn );
-
- } else {
- for ( var i = 0, l = this.length; i < l; i++ ) {
- jQuery.event.add( this[i], type, handler, data );
- }
- }
-
- return this;
- };
-});
-
-jQuery.fn.extend({
- unbind: function( type, fn ) {
- // Handle object literals
- if ( typeof type === "object" && !type.preventDefault ) {
- for ( var key in type ) {
- this.unbind(key, type[key]);
- }
-
- } else {
- for ( var i = 0, l = this.length; i < l; i++ ) {
- jQuery.event.remove( this[i], type, fn );
- }
- }
-
- return this;
- },
-
- delegate: function( selector, types, data, fn ) {
- return this.live( types, data, fn, selector );
- },
-
- undelegate: function( selector, types, fn ) {
- if ( arguments.length === 0 ) {
- return this.unbind( "live" );
-
- } else {
- return this.die( types, null, fn, selector );
- }
- },
-
- trigger: function( type, data ) {
- return this.each(function() {
- jQuery.event.trigger( type, data, this );
- });
- },
-
- triggerHandler: function( type, data ) {
- if ( this[0] ) {
- var event = jQuery.Event( type );
- event.preventDefault();
- event.stopPropagation();
- jQuery.event.trigger( event, data, this[0] );
- return event.result;
- }
- },
-
- toggle: function( fn ) {
- // Save reference to arguments for access in closure
- var args = arguments, i = 1;
-
- // link all the functions, so any of them can unbind this click handler
- while ( i < args.length ) {
- jQuery.proxy( fn, args[ i++ ] );
- }
-
- return this.click( jQuery.proxy( fn, function( event ) {
- // Figure out which function to execute
- var lastToggle = ( jQuery.data( this, "lastToggle" + fn.guid ) || 0 ) % i;
- jQuery.data( this, "lastToggle" + fn.guid, lastToggle + 1 );
-
- // Make sure that clicks stop
- event.preventDefault();
-
- // and execute the function
- return args[ lastToggle ].apply( this, arguments ) || false;
- }));
- },
-
- hover: function( fnOver, fnOut ) {
- return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
- }
-});
-
-var liveMap = {
- focus: "focusin",
- blur: "focusout",
- mouseenter: "mouseover",
- mouseleave: "mouseout"
-};
-
-jQuery.each(["live", "die"], function( i, name ) {
- jQuery.fn[ name ] = function( types, data, fn, origSelector /* Internal Use Only */ ) {
- var type, i = 0, match, namespaces, preType,
- selector = origSelector || this.selector,
- context = origSelector ? this : jQuery( this.context );
-
- if ( jQuery.isFunction( data ) ) {
- fn = data;
- data = undefined;
- }
-
- types = (types || "").split(" ");
-
- while ( (type = types[ i++ ]) != null ) {
- match = rnamespaces.exec( type );
- namespaces = "";
-
- if ( match ) {
- namespaces = match[0];
- type = type.replace( rnamespaces, "" );
- }
-
- if ( type === "hover" ) {
- types.push( "mouseenter" + namespaces, "mouseleave" + namespaces );
- continue;
- }
-
- preType = type;
-
- if ( type === "focus" || type === "blur" ) {
- types.push( liveMap[ type ] + namespaces );
- type = type + namespaces;
-
- } else {
- type = (liveMap[ type ] || type) + namespaces;
- }
-
- if ( name === "live" ) {
- // bind live handler
- context.each(function(){
- jQuery.event.add( this, liveConvert( type, selector ),
- { data: data, selector: selector, handler: fn, origType: type, origHandler: fn, preType: preType } );
- });
-
- } else {
- // unbind live handler
- context.unbind( liveConvert( type, selector ), fn );
- }
- }
-
- return this;
- }
-});
-
-function liveHandler( event ) {
- var stop, elems = [], selectors = [], args = arguments,
- related, match, handleObj, elem, j, i, l, data,
- events = jQuery.data( this, "events" );
-
- // Make sure we avoid non-left-click bubbling in Firefox (#3861)
- if ( event.liveFired === this || !events || !events.live || event.button && event.type === "click" ) {
- return;
- }
-
- event.liveFired = this;
-
- var live = events.live.slice(0);
-
- for ( j = 0; j < live.length; j++ ) {
- handleObj = live[j];
-
- if ( handleObj.origType.replace( rnamespaces, "" ) === event.type ) {
- selectors.push( handleObj.selector );
-
- } else {
- live.splice( j--, 1 );
- }
- }
-
- match = jQuery( event.target ).closest( selectors, event.currentTarget );
-
- for ( i = 0, l = match.length; i < l; i++ ) {
- for ( j = 0; j < live.length; j++ ) {
- handleObj = live[j];
-
- if ( match[i].selector === handleObj.selector ) {
- elem = match[i].elem;
- related = null;
-
- // Those two events require additional checking
- if ( handleObj.preType === "mouseenter" || handleObj.preType === "mouseleave" ) {
- related = jQuery( event.relatedTarget ).closest( handleObj.selector )[0];
- }
-
- if ( !related || related !== elem ) {
- elems.push({ elem: elem, handleObj: handleObj });
- }
- }
- }
- }
-
- for ( i = 0, l = elems.length; i < l; i++ ) {
- match = elems[i];
- event.currentTarget = match.elem;
- event.data = match.handleObj.data;
- event.handleObj = match.handleObj;
-
- if ( match.handleObj.origHandler.apply( match.elem, args ) === false ) {
- stop = false;
- break;
- }
- }
-
- return stop;
-}
-
-function liveConvert( type, selector ) {
- return "live." + (type && type !== "*" ? type + "." : "") + selector.replace(/\./g, "`").replace(/ /g, "&");
-}
-
-jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
- "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
- "change select submit keydown keypress keyup error").split(" "), function( i, name ) {
-
- // Handle event binding
- jQuery.fn[ name ] = function( fn ) {
- return fn ? this.bind( name, fn ) : this.trigger( name );
- };
-
- if ( jQuery.attrFn ) {
- jQuery.attrFn[ name ] = true;
- }
-});
-
-// Prevent memory leaks in IE
-// Window isn't included so as not to unbind existing unload events
-// More info:
-// - http://isaacschlueter.com/2006/10/msie-memory-leaks/
-if ( window.attachEvent && !window.addEventListener ) {
- window.attachEvent("onunload", function() {
- for ( var id in jQuery.cache ) {
- if ( jQuery.cache[ id ].handle ) {
- // Try/Catch is to handle iframes being unloaded, see #4280
- try {
- jQuery.event.remove( jQuery.cache[ id ].handle.elem );
- } catch(e) {}
- }
- }
- });
-}
-/*!
- * Sizzle CSS Selector Engine - v1.0
- * Copyright 2009, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- * More information: http://sizzlejs.com/
- */
-(function(){
-
-var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
- done = 0,
- toString = Object.prototype.toString,
- hasDuplicate = false,
- baseHasDuplicate = true;
-
-// Here we check if the JavaScript engine is using some sort of
-// optimization where it does not always call our comparision
-// function. If that is the case, discard the hasDuplicate value.
-// Thus far that includes Google Chrome.
-[0, 0].sort(function(){
- baseHasDuplicate = false;
- return 0;
-});
-
-var Sizzle = function(selector, context, results, seed) {
- results = results || [];
- var origContext = context = context || document;
-
- if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
- return [];
- }
-
- if ( !selector || typeof selector !== "string" ) {
- return results;
- }
-
- var parts = [], m, set, checkSet, extra, prune = true, contextXML = isXML(context),
- soFar = selector;
-
- // Reset the position of the chunker regexp (start from head)
- while ( (chunker.exec(""), m = chunker.exec(soFar)) !== null ) {
- soFar = m[3];
-
- parts.push( m[1] );
-
- if ( m[2] ) {
- extra = m[3];
- break;
- }
- }
-
- if ( parts.length > 1 && origPOS.exec( selector ) ) {
- if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
- set = posProcess( parts[0] + parts[1], context );
- } else {
- set = Expr.relative[ parts[0] ] ?
- [ context ] :
- Sizzle( parts.shift(), context );
-
- while ( parts.length ) {
- selector = parts.shift();
-
- if ( Expr.relative[ selector ] ) {
- selector += parts.shift();
- }
-
- set = posProcess( selector, set );
- }
- }
- } else {
- // Take a shortcut and set the context if the root selector is an ID
- // (but not if it'll be faster if the inner selector is an ID)
- if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
- Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
- var ret = Sizzle.find( parts.shift(), context, contextXML );
- context = ret.expr ? Sizzle.filter( ret.expr, ret.set )[0] : ret.set[0];
- }
-
- if ( context ) {
- var ret = seed ?
- { expr: parts.pop(), set: makeArray(seed) } :
- Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML );
- set = ret.expr ? Sizzle.filter( ret.expr, ret.set ) : ret.set;
-
- if ( parts.length > 0 ) {
- checkSet = makeArray(set);
- } else {
- prune = false;
- }
-
- while ( parts.length ) {
- var cur = parts.pop(), pop = cur;
-
- if ( !Expr.relative[ cur ] ) {
- cur = "";
- } else {
- pop = parts.pop();
- }
-
- if ( pop == null ) {
- pop = context;
- }
-
- Expr.relative[ cur ]( checkSet, pop, contextXML );
- }
- } else {
- checkSet = parts = [];
- }
- }
-
- if ( !checkSet ) {
- checkSet = set;
- }
-
- if ( !checkSet ) {
- Sizzle.error( cur || selector );
- }
-
- if ( toString.call(checkSet) === "[object Array]" ) {
- if ( !prune ) {
- results.push.apply( results, checkSet );
- } else if ( context && context.nodeType === 1 ) {
- for ( var i = 0; checkSet[i] != null; i++ ) {
- if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && contains(context, checkSet[i])) ) {
- results.push( set[i] );
- }
- }
- } else {
- for ( var i = 0; checkSet[i] != null; i++ ) {
- if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
- results.push( set[i] );
- }
- }
- }
- } else {
- makeArray( checkSet, results );
- }
-
- if ( extra ) {
- Sizzle( extra, origContext, results, seed );
- Sizzle.uniqueSort( results );
- }
-
- return results;
-};
-
-Sizzle.uniqueSort = function(results){
- if ( sortOrder ) {
- hasDuplicate = baseHasDuplicate;
- results.sort(sortOrder);
-
- if ( hasDuplicate ) {
- for ( var i = 1; i < results.length; i++ ) {
- if ( results[i] === results[i-1] ) {
- results.splice(i--, 1);
- }
- }
- }
- }
-
- return results;
-};
-
-Sizzle.matches = function(expr, set){
- return Sizzle(expr, null, null, set);
-};
-
-Sizzle.find = function(expr, context, isXML){
- var set, match;
-
- if ( !expr ) {
- return [];
- }
-
- for ( var i = 0, l = Expr.order.length; i < l; i++ ) {
- var type = Expr.order[i], match;
-
- if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
- var left = match[1];
- match.splice(1,1);
-
- if ( left.substr( left.length - 1 ) !== "\\" ) {
- match[1] = (match[1] || "").replace(/\\/g, "");
- set = Expr.find[ type ]( match, context, isXML );
- if ( set != null ) {
- expr = expr.replace( Expr.match[ type ], "" );
- break;
- }
- }
- }
- }
-
- if ( !set ) {
- set = context.getElementsByTagName("*");
- }
-
- return {set: set, expr: expr};
-};
-
-Sizzle.filter = function(expr, set, inplace, not){
- var old = expr, result = [], curLoop = set, match, anyFound,
- isXMLFilter = set && set[0] && isXML(set[0]);
-
- while ( expr && set.length ) {
- for ( var type in Expr.filter ) {
- if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {
- var filter = Expr.filter[ type ], found, item, left = match[1];
- anyFound = false;
-
- match.splice(1,1);
-
- if ( left.substr( left.length - 1 ) === "\\" ) {
- continue;
- }
-
- if ( curLoop === result ) {
- result = [];
- }
-
- if ( Expr.preFilter[ type ] ) {
- match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
-
- if ( !match ) {
- anyFound = found = true;
- } else if ( match === true ) {
- continue;
- }
- }
-
- if ( match ) {
- for ( var i = 0; (item = curLoop[i]) != null; i++ ) {
- if ( item ) {
- found = filter( item, match, i, curLoop );
- var pass = not ^ !!found;
-
- if ( inplace && found != null ) {
- if ( pass ) {
- anyFound = true;
- } else {
- curLoop[i] = false;
- }
- } else if ( pass ) {
- result.push( item );
- anyFound = true;
- }
- }
- }
- }
-
- if ( found !== undefined ) {
- if ( !inplace ) {
- curLoop = result;
- }
-
- expr = expr.replace( Expr.match[ type ], "" );
-
- if ( !anyFound ) {
- return [];
- }
-
- break;
- }
- }
- }
-
- // Improper expression
- if ( expr === old ) {
- if ( anyFound == null ) {
- Sizzle.error( expr );
- } else {
- break;
- }
- }
-
- old = expr;
- }
-
- return curLoop;
-};
-
-Sizzle.error = function( msg ) {
- throw "Syntax error, unrecognized expression: " + msg;
-};
-
-var Expr = Sizzle.selectors = {
- order: [ "ID", "NAME", "TAG" ],
- match: {
- ID: /#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,
- CLASS: /\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,
- NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,
- ATTR: /\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,
- TAG: /^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,
- CHILD: /:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,
- POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,
- PSEUDO: /:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/
- },
- leftMatch: {},
- attrMap: {
- "class": "className",
- "for": "htmlFor"
- },
- attrHandle: {
- href: function(elem){
- return elem.getAttribute("href");
- }
- },
- relative: {
- "+": function(checkSet, part){
- var isPartStr = typeof part === "string",
- isTag = isPartStr && !/\W/.test(part),
- isPartStrNotTag = isPartStr && !isTag;
-
- if ( isTag ) {
- part = part.toLowerCase();
- }
-
- for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
- if ( (elem = checkSet[i]) ) {
- while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
-
- checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?
- elem || false :
- elem === part;
- }
- }
-
- if ( isPartStrNotTag ) {
- Sizzle.filter( part, checkSet, true );
- }
- },
- ">": function(checkSet, part){
- var isPartStr = typeof part === "string";
-
- if ( isPartStr && !/\W/.test(part) ) {
- part = part.toLowerCase();
-
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
- var elem = checkSet[i];
- if ( elem ) {
- var parent = elem.parentNode;
- checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;
- }
- }
- } else {
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
- var elem = checkSet[i];
- if ( elem ) {
- checkSet[i] = isPartStr ?
- elem.parentNode :
- elem.parentNode === part;
- }
- }
-
- if ( isPartStr ) {
- Sizzle.filter( part, checkSet, true );
- }
- }
- },
- "": function(checkSet, part, isXML){
- var doneName = done++, checkFn = dirCheck;
-
- if ( typeof part === "string" && !/\W/.test(part) ) {
- var nodeCheck = part = part.toLowerCase();
- checkFn = dirNodeCheck;
- }
-
- checkFn("parentNode", part, doneName, checkSet, nodeCheck, isXML);
- },
- "~": function(checkSet, part, isXML){
- var doneName = done++, checkFn = dirCheck;
-
- if ( typeof part === "string" && !/\W/.test(part) ) {
- var nodeCheck = part = part.toLowerCase();
- checkFn = dirNodeCheck;
- }
-
- checkFn("previousSibling", part, doneName, checkSet, nodeCheck, isXML);
- }
- },
- find: {
- ID: function(match, context, isXML){
- if ( typeof context.getElementById !== "undefined" && !isXML ) {
- var m = context.getElementById(match[1]);
- return m ? [m] : [];
- }
- },
- NAME: function(match, context){
- if ( typeof context.getElementsByName !== "undefined" ) {
- var ret = [], results = context.getElementsByName(match[1]);
-
- for ( var i = 0, l = results.length; i < l; i++ ) {
- if ( results[i].getAttribute("name") === match[1] ) {
- ret.push( results[i] );
- }
- }
-
- return ret.length === 0 ? null : ret;
- }
- },
- TAG: function(match, context){
- return context.getElementsByTagName(match[1]);
- }
- },
- preFilter: {
- CLASS: function(match, curLoop, inplace, result, not, isXML){
- match = " " + match[1].replace(/\\/g, "") + " ";
-
- if ( isXML ) {
- return match;
- }
-
- for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
- if ( elem ) {
- if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n]/g, " ").indexOf(match) >= 0) ) {
- if ( !inplace ) {
- result.push( elem );
- }
- } else if ( inplace ) {
- curLoop[i] = false;
- }
- }
- }
-
- return false;
- },
- ID: function(match){
- return match[1].replace(/\\/g, "");
- },
- TAG: function(match, curLoop){
- return match[1].toLowerCase();
- },
- CHILD: function(match){
- if ( match[1] === "nth" ) {
- // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
- var test = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(
- match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||
- !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
-
- // calculate the numbers (first)n+(last) including if they are negative
- match[2] = (test[1] + (test[2] || 1)) - 0;
- match[3] = test[3] - 0;
- }
-
- // TODO: Move to normal caching system
- match[0] = done++;
-
- return match;
- },
- ATTR: function(match, curLoop, inplace, result, not, isXML){
- var name = match[1].replace(/\\/g, "");
-
- if ( !isXML && Expr.attrMap[name] ) {
- match[1] = Expr.attrMap[name];
- }
-
- if ( match[2] === "~=" ) {
- match[4] = " " + match[4] + " ";
- }
-
- return match;
- },
- PSEUDO: function(match, curLoop, inplace, result, not){
- if ( match[1] === "not" ) {
- // If we're dealing with a complex expression, or a simple one
- if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
- match[3] = Sizzle(match[3], null, null, curLoop);
- } else {
- var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
- if ( !inplace ) {
- result.push.apply( result, ret );
- }
- return false;
- }
- } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
- return true;
- }
-
- return match;
- },
- POS: function(match){
- match.unshift( true );
- return match;
- }
- },
- filters: {
- enabled: function(elem){
- return elem.disabled === false && elem.type !== "hidden";
- },
- disabled: function(elem){
- return elem.disabled === true;
- },
- checked: function(elem){
- return elem.checked === true;
- },
- selected: function(elem){
- // Accessing this property makes selected-by-default
- // options in Safari work properly
- elem.parentNode.selectedIndex;
- return elem.selected === true;
- },
- parent: function(elem){
- return !!elem.firstChild;
- },
- empty: function(elem){
- return !elem.firstChild;
- },
- has: function(elem, i, match){
- return !!Sizzle( match[3], elem ).length;
- },
- header: function(elem){
- return /h\d/i.test( elem.nodeName );
- },
- text: function(elem){
- return "text" === elem.type;
- },
- radio: function(elem){
- return "radio" === elem.type;
- },
- checkbox: function(elem){
- return "checkbox" === elem.type;
- },
- file: function(elem){
- return "file" === elem.type;
- },
- password: function(elem){
- return "password" === elem.type;
- },
- submit: function(elem){
- return "submit" === elem.type;
- },
- image: function(elem){
- return "image" === elem.type;
- },
- reset: function(elem){
- return "reset" === elem.type;
- },
- button: function(elem){
- return "button" === elem.type || elem.nodeName.toLowerCase() === "button";
- },
- input: function(elem){
- return /input|select|textarea|button/i.test(elem.nodeName);
- }
- },
- setFilters: {
- first: function(elem, i){
- return i === 0;
- },
- last: function(elem, i, match, array){
- return i === array.length - 1;
- },
- even: function(elem, i){
- return i % 2 === 0;
- },
- odd: function(elem, i){
- return i % 2 === 1;
- },
- lt: function(elem, i, match){
- return i < match[3] - 0;
- },
- gt: function(elem, i, match){
- return i > match[3] - 0;
- },
- nth: function(elem, i, match){
- return match[3] - 0 === i;
- },
- eq: function(elem, i, match){
- return match[3] - 0 === i;
- }
- },
- filter: {
- PSEUDO: function(elem, match, i, array){
- var name = match[1], filter = Expr.filters[ name ];
-
- if ( filter ) {
- return filter( elem, i, match, array );
- } else if ( name === "contains" ) {
- return (elem.textContent || elem.innerText || getText([ elem ]) || "").indexOf(match[3]) >= 0;
- } else if ( name === "not" ) {
- var not = match[3];
-
- for ( var i = 0, l = not.length; i < l; i++ ) {
- if ( not[i] === elem ) {
- return false;
- }
- }
-
- return true;
- } else {
- Sizzle.error( "Syntax error, unrecognized expression: " + name );
- }
- },
- CHILD: function(elem, match){
- var type = match[1], node = elem;
- switch (type) {
- case 'only':
- case 'first':
- while ( (node = node.previousSibling) ) {
- if ( node.nodeType === 1 ) {
- return false;
- }
- }
- if ( type === "first" ) {
- return true;
- }
- node = elem;
- case 'last':
- while ( (node = node.nextSibling) ) {
- if ( node.nodeType === 1 ) {
- return false;
- }
- }
- return true;
- case 'nth':
- var first = match[2], last = match[3];
-
- if ( first === 1 && last === 0 ) {
- return true;
- }
-
- var doneName = match[0],
- parent = elem.parentNode;
-
- if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) {
- var count = 0;
- for ( node = parent.firstChild; node; node = node.nextSibling ) {
- if ( node.nodeType === 1 ) {
- node.nodeIndex = ++count;
- }
- }
- parent.sizcache = doneName;
- }
-
- var diff = elem.nodeIndex - last;
- if ( first === 0 ) {
- return diff === 0;
- } else {
- return ( diff % first === 0 && diff / first >= 0 );
- }
- }
- },
- ID: function(elem, match){
- return elem.nodeType === 1 && elem.getAttribute("id") === match;
- },
- TAG: function(elem, match){
- return (match === "*" && elem.nodeType === 1) || elem.nodeName.toLowerCase() === match;
- },
- CLASS: function(elem, match){
- return (" " + (elem.className || elem.getAttribute("class")) + " ")
- .indexOf( match ) > -1;
- },
- ATTR: function(elem, match){
- var name = match[1],
- result = Expr.attrHandle[ name ] ?
- Expr.attrHandle[ name ]( elem ) :
- elem[ name ] != null ?
- elem[ name ] :
- elem.getAttribute( name ),
- value = result + "",
- type = match[2],
- check = match[4];
-
- return result == null ?
- type === "!=" :
- type === "=" ?
- value === check :
- type === "*=" ?
- value.indexOf(check) >= 0 :
- type === "~=" ?
- (" " + value + " ").indexOf(check) >= 0 :
- !check ?
- value && result !== false :
- type === "!=" ?
- value !== check :
- type === "^=" ?
- value.indexOf(check) === 0 :
- type === "$=" ?
- value.substr(value.length - check.length) === check :
- type === "|=" ?
- value === check || value.substr(0, check.length + 1) === check + "-" :
- false;
- },
- POS: function(elem, match, i, array){
- var name = match[2], filter = Expr.setFilters[ name ];
-
- if ( filter ) {
- return filter( elem, i, match, array );
- }
- }
- }
-};
-
-var origPOS = Expr.match.POS;
-
-for ( var type in Expr.match ) {
- Expr.match[ type ] = new RegExp( Expr.match[ type ].source + /(?![^\[]*\])(?![^\(]*\))/.source );
- Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, function(all, num){
- return "\\" + (num - 0 + 1);
- }));
-}
-
-var makeArray = function(array, results) {
- array = Array.prototype.slice.call( array, 0 );
-
- if ( results ) {
- results.push.apply( results, array );
- return results;
- }
-
- return array;
-};
-
-// Perform a simple check to determine if the browser is capable of
-// converting a NodeList to an array using builtin methods.
-// Also verifies that the returned array holds DOM nodes
-// (which is not the case in the Blackberry browser)
-try {
- Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;
-
-// Provide a fallback method if it does not work
-} catch(e){
- makeArray = function(array, results) {
- var ret = results || [];
-
- if ( toString.call(array) === "[object Array]" ) {
- Array.prototype.push.apply( ret, array );
- } else {
- if ( typeof array.length === "number" ) {
- for ( var i = 0, l = array.length; i < l; i++ ) {
- ret.push( array[i] );
- }
- } else {
- for ( var i = 0; array[i]; i++ ) {
- ret.push( array[i] );
- }
- }
- }
-
- return ret;
- };
-}
-
-var sortOrder;
-
-if ( document.documentElement.compareDocumentPosition ) {
- sortOrder = function( a, b ) {
- if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {
- if ( a == b ) {
- hasDuplicate = true;
- }
- return a.compareDocumentPosition ? -1 : 1;
- }
-
- var ret = a.compareDocumentPosition(b) & 4 ? -1 : a === b ? 0 : 1;
- if ( ret === 0 ) {
- hasDuplicate = true;
- }
- return ret;
- };
-} else if ( "sourceIndex" in document.documentElement ) {
- sortOrder = function( a, b ) {
- if ( !a.sourceIndex || !b.sourceIndex ) {
- if ( a == b ) {
- hasDuplicate = true;
- }
- return a.sourceIndex ? -1 : 1;
- }
-
- var ret = a.sourceIndex - b.sourceIndex;
- if ( ret === 0 ) {
- hasDuplicate = true;
- }
- return ret;
- };
-} else if ( document.createRange ) {
- sortOrder = function( a, b ) {
- if ( !a.ownerDocument || !b.ownerDocument ) {
- if ( a == b ) {
- hasDuplicate = true;
- }
- return a.ownerDocument ? -1 : 1;
- }
-
- var aRange = a.ownerDocument.createRange(), bRange = b.ownerDocument.createRange();
- aRange.setStart(a, 0);
- aRange.setEnd(a, 0);
- bRange.setStart(b, 0);
- bRange.setEnd(b, 0);
- var ret = aRange.compareBoundaryPoints(Range.START_TO_END, bRange);
- if ( ret === 0 ) {
- hasDuplicate = true;
- }
- return ret;
- };
-}
-
-// Utility function for retreiving the text value of an array of DOM nodes
-function getText( elems ) {
- var ret = "", elem;
-
- for ( var i = 0; elems[i]; i++ ) {
- elem = elems[i];
-
- // Get the text from text nodes and CDATA nodes
- if ( elem.nodeType === 3 || elem.nodeType === 4 ) {
- ret += elem.nodeValue;
-
- // Traverse everything else, except comment nodes
- } else if ( elem.nodeType !== 8 ) {
- ret += getText( elem.childNodes );
- }
- }
-
- return ret;
-}
-
-// Check to see if the browser returns elements by name when
-// querying by getElementById (and provide a workaround)
-(function(){
- // We're going to inject a fake input element with a specified name
- var form = document.createElement("div"),
- id = "script" + (new Date).getTime();
- form.innerHTML = " ";
-
- // Inject it into the root element, check its status, and remove it quickly
- var root = document.documentElement;
- root.insertBefore( form, root.firstChild );
-
- // The workaround has to do additional checks after a getElementById
- // Which slows things down for other browsers (hence the branching)
- if ( document.getElementById( id ) ) {
- Expr.find.ID = function(match, context, isXML){
- if ( typeof context.getElementById !== "undefined" && !isXML ) {
- var m = context.getElementById(match[1]);
- return m ? m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ? [m] : undefined : [];
- }
- };
-
- Expr.filter.ID = function(elem, match){
- var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
- return elem.nodeType === 1 && node && node.nodeValue === match;
- };
- }
-
- root.removeChild( form );
- root = form = null; // release memory in IE
-})();
-
-(function(){
- // Check to see if the browser returns only elements
- // when doing getElementsByTagName("*")
-
- // Create a fake element
- var div = document.createElement("div");
- div.appendChild( document.createComment("") );
-
- // Make sure no comments are found
- if ( div.getElementsByTagName("*").length > 0 ) {
- Expr.find.TAG = function(match, context){
- var results = context.getElementsByTagName(match[1]);
-
- // Filter out possible comments
- if ( match[1] === "*" ) {
- var tmp = [];
-
- for ( var i = 0; results[i]; i++ ) {
- if ( results[i].nodeType === 1 ) {
- tmp.push( results[i] );
- }
- }
-
- results = tmp;
- }
-
- return results;
- };
- }
-
- // Check to see if an attribute returns normalized href attributes
- div.innerHTML = " ";
- if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
- div.firstChild.getAttribute("href") !== "#" ) {
- Expr.attrHandle.href = function(elem){
- return elem.getAttribute("href", 2);
- };
- }
-
- div = null; // release memory in IE
-})();
-
-if ( document.querySelectorAll ) {
- (function(){
- var oldSizzle = Sizzle, div = document.createElement("div");
- div.innerHTML = "
";
-
- // Safari can't handle uppercase or unicode characters when
- // in quirks mode.
- if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
- return;
- }
-
- Sizzle = function(query, context, extra, seed){
- context = context || document;
-
- // Only use querySelectorAll on non-XML documents
- // (ID selectors don't work in non-HTML documents)
- if ( !seed && context.nodeType === 9 && !isXML(context) ) {
- try {
- return makeArray( context.querySelectorAll(query), extra );
- } catch(e){}
- }
-
- return oldSizzle(query, context, extra, seed);
- };
-
- for ( var prop in oldSizzle ) {
- Sizzle[ prop ] = oldSizzle[ prop ];
- }
-
- div = null; // release memory in IE
- })();
-}
-
-(function(){
- var div = document.createElement("div");
-
- div.innerHTML = "
";
-
- // Opera can't find a second classname (in 9.6)
- // Also, make sure that getElementsByClassName actually exists
- if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) {
- return;
- }
-
- // Safari caches class attributes, doesn't catch changes (in 3.2)
- div.lastChild.className = "e";
-
- if ( div.getElementsByClassName("e").length === 1 ) {
- return;
- }
-
- Expr.order.splice(1, 0, "CLASS");
- Expr.find.CLASS = function(match, context, isXML) {
- if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
- return context.getElementsByClassName(match[1]);
- }
- };
-
- div = null; // release memory in IE
-})();
-
-function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
- var elem = checkSet[i];
- if ( elem ) {
- elem = elem[dir];
- var match = false;
-
- while ( elem ) {
- if ( elem.sizcache === doneName ) {
- match = checkSet[elem.sizset];
- break;
- }
-
- if ( elem.nodeType === 1 && !isXML ){
- elem.sizcache = doneName;
- elem.sizset = i;
- }
-
- if ( elem.nodeName.toLowerCase() === cur ) {
- match = elem;
- break;
- }
-
- elem = elem[dir];
- }
-
- checkSet[i] = match;
- }
- }
-}
-
-function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
- var elem = checkSet[i];
- if ( elem ) {
- elem = elem[dir];
- var match = false;
-
- while ( elem ) {
- if ( elem.sizcache === doneName ) {
- match = checkSet[elem.sizset];
- break;
- }
-
- if ( elem.nodeType === 1 ) {
- if ( !isXML ) {
- elem.sizcache = doneName;
- elem.sizset = i;
- }
- if ( typeof cur !== "string" ) {
- if ( elem === cur ) {
- match = true;
- break;
- }
-
- } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
- match = elem;
- break;
- }
- }
-
- elem = elem[dir];
- }
-
- checkSet[i] = match;
- }
- }
-}
-
-var contains = document.compareDocumentPosition ? function(a, b){
- return !!(a.compareDocumentPosition(b) & 16);
-} : function(a, b){
- return a !== b && (a.contains ? a.contains(b) : true);
-};
-
-var isXML = function(elem){
- // documentElement is verified for cases where it doesn't yet exist
- // (such as loading iframes in IE - #4833)
- var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;
- return documentElement ? documentElement.nodeName !== "HTML" : false;
-};
-
-var posProcess = function(selector, context){
- var tmpSet = [], later = "", match,
- root = context.nodeType ? [context] : context;
-
- // Position selectors must be done after the filter
- // And so must :not(positional) so we move all PSEUDOs to the end
- while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
- later += match[0];
- selector = selector.replace( Expr.match.PSEUDO, "" );
- }
-
- selector = Expr.relative[selector] ? selector + "*" : selector;
-
- for ( var i = 0, l = root.length; i < l; i++ ) {
- Sizzle( selector, root[i], tmpSet );
- }
-
- return Sizzle.filter( later, tmpSet );
-};
-
-// EXPOSE
-jQuery.find = Sizzle;
-jQuery.expr = Sizzle.selectors;
-jQuery.expr[":"] = jQuery.expr.filters;
-jQuery.unique = Sizzle.uniqueSort;
-jQuery.text = getText;
-jQuery.isXMLDoc = isXML;
-jQuery.contains = contains;
-
-return;
-
-window.Sizzle = Sizzle;
-
-})();
-var runtil = /Until$/,
- rparentsprev = /^(?:parents|prevUntil|prevAll)/,
- // Note: This RegExp should be improved, or likely pulled from Sizzle
- rmultiselector = /,/,
- slice = Array.prototype.slice;
-
-// Implement the identical functionality for filter and not
-var winnow = function( elements, qualifier, keep ) {
- if ( jQuery.isFunction( qualifier ) ) {
- return jQuery.grep(elements, function( elem, i ) {
- return !!qualifier.call( elem, i, elem ) === keep;
- });
-
- } else if ( qualifier.nodeType ) {
- return jQuery.grep(elements, function( elem, i ) {
- return (elem === qualifier) === keep;
- });
-
- } else if ( typeof qualifier === "string" ) {
- var filtered = jQuery.grep(elements, function( elem ) {
- return elem.nodeType === 1;
- });
-
- if ( isSimple.test( qualifier ) ) {
- return jQuery.filter(qualifier, filtered, !keep);
- } else {
- qualifier = jQuery.filter( qualifier, filtered );
- }
- }
-
- return jQuery.grep(elements, function( elem, i ) {
- return (jQuery.inArray( elem, qualifier ) >= 0) === keep;
- });
-};
-
-jQuery.fn.extend({
- find: function( selector ) {
- var ret = this.pushStack( "", "find", selector ), length = 0;
-
- for ( var i = 0, l = this.length; i < l; i++ ) {
- length = ret.length;
- jQuery.find( selector, this[i], ret );
-
- if ( i > 0 ) {
- // Make sure that the results are unique
- for ( var n = length; n < ret.length; n++ ) {
- for ( var r = 0; r < length; r++ ) {
- if ( ret[r] === ret[n] ) {
- ret.splice(n--, 1);
- break;
- }
- }
- }
- }
- }
-
- return ret;
- },
-
- has: function( target ) {
- var targets = jQuery( target );
- return this.filter(function() {
- for ( var i = 0, l = targets.length; i < l; i++ ) {
- if ( jQuery.contains( this, targets[i] ) ) {
- return true;
- }
- }
- });
- },
-
- not: function( selector ) {
- return this.pushStack( winnow(this, selector, false), "not", selector);
- },
-
- filter: function( selector ) {
- return this.pushStack( winnow(this, selector, true), "filter", selector );
- },
-
- is: function( selector ) {
- return !!selector && jQuery.filter( selector, this ).length > 0;
- },
-
- closest: function( selectors, context ) {
- if ( jQuery.isArray( selectors ) ) {
- var ret = [], cur = this[0], match, matches = {}, selector;
-
- if ( cur && selectors.length ) {
- for ( var i = 0, l = selectors.length; i < l; i++ ) {
- selector = selectors[i];
-
- if ( !matches[selector] ) {
- matches[selector] = jQuery.expr.match.POS.test( selector ) ?
- jQuery( selector, context || this.context ) :
- selector;
- }
- }
-
- while ( cur && cur.ownerDocument && cur !== context ) {
- for ( selector in matches ) {
- match = matches[selector];
-
- if ( match.jquery ? match.index(cur) > -1 : jQuery(cur).is(match) ) {
- ret.push({ selector: selector, elem: cur });
- delete matches[selector];
- }
- }
- cur = cur.parentNode;
- }
- }
-
- return ret;
- }
-
- var pos = jQuery.expr.match.POS.test( selectors ) ?
- jQuery( selectors, context || this.context ) : null;
-
- return this.map(function( i, cur ) {
- while ( cur && cur.ownerDocument && cur !== context ) {
- if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selectors) ) {
- return cur;
- }
- cur = cur.parentNode;
- }
- return null;
- });
- },
-
- // Determine the position of an element within
- // the matched set of elements
- index: function( elem ) {
- if ( !elem || typeof elem === "string" ) {
- return jQuery.inArray( this[0],
- // If it receives a string, the selector is used
- // If it receives nothing, the siblings are used
- elem ? jQuery( elem ) : this.parent().children() );
- }
- // Locate the position of the desired element
- return jQuery.inArray(
- // If it receives a jQuery object, the first element is used
- elem.jquery ? elem[0] : elem, this );
- },
-
- add: function( selector, context ) {
- var set = typeof selector === "string" ?
- jQuery( selector, context || this.context ) :
- jQuery.makeArray( selector ),
- all = jQuery.merge( this.get(), set );
-
- return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?
- all :
- jQuery.unique( all ) );
- },
-
- andSelf: function() {
- return this.add( this.prevObject );
- }
-});
-
-// A painfully simple check to see if an element is disconnected
-// from a document (should be improved, where feasible).
-function isDisconnected( node ) {
- return !node || !node.parentNode || node.parentNode.nodeType === 11;
-}
-
-jQuery.each({
- parent: function( elem ) {
- var parent = elem.parentNode;
- return parent && parent.nodeType !== 11 ? parent : null;
- },
- parents: function( elem ) {
- return jQuery.dir( elem, "parentNode" );
- },
- parentsUntil: function( elem, i, until ) {
- return jQuery.dir( elem, "parentNode", until );
- },
- next: function( elem ) {
- return jQuery.nth( elem, 2, "nextSibling" );
- },
- prev: function( elem ) {
- return jQuery.nth( elem, 2, "previousSibling" );
- },
- nextAll: function( elem ) {
- return jQuery.dir( elem, "nextSibling" );
- },
- prevAll: function( elem ) {
- return jQuery.dir( elem, "previousSibling" );
- },
- nextUntil: function( elem, i, until ) {
- return jQuery.dir( elem, "nextSibling", until );
- },
- prevUntil: function( elem, i, until ) {
- return jQuery.dir( elem, "previousSibling", until );
- },
- siblings: function( elem ) {
- return jQuery.sibling( elem.parentNode.firstChild, elem );
- },
- children: function( elem ) {
- return jQuery.sibling( elem.firstChild );
- },
- contents: function( elem ) {
- return jQuery.nodeName( elem, "iframe" ) ?
- elem.contentDocument || elem.contentWindow.document :
- jQuery.makeArray( elem.childNodes );
- }
-}, function( name, fn ) {
- jQuery.fn[ name ] = function( until, selector ) {
- var ret = jQuery.map( this, fn, until );
-
- if ( !runtil.test( name ) ) {
- selector = until;
- }
-
- if ( selector && typeof selector === "string" ) {
- ret = jQuery.filter( selector, ret );
- }
-
- ret = this.length > 1 ? jQuery.unique( ret ) : ret;
-
- if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) {
- ret = ret.reverse();
- }
-
- return this.pushStack( ret, name, slice.call(arguments).join(",") );
- };
-});
-
-jQuery.extend({
- filter: function( expr, elems, not ) {
- if ( not ) {
- expr = ":not(" + expr + ")";
- }
-
- return jQuery.find.matches(expr, elems);
- },
-
- dir: function( elem, dir, until ) {
- var matched = [], cur = elem[dir];
- while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
- if ( cur.nodeType === 1 ) {
- matched.push( cur );
- }
- cur = cur[dir];
- }
- return matched;
- },
-
- nth: function( cur, result, dir, elem ) {
- result = result || 1;
- var num = 0;
-
- for ( ; cur; cur = cur[dir] ) {
- if ( cur.nodeType === 1 && ++num === result ) {
- break;
- }
- }
-
- return cur;
- },
-
- sibling: function( n, elem ) {
- var r = [];
-
- for ( ; n; n = n.nextSibling ) {
- if ( n.nodeType === 1 && n !== elem ) {
- r.push( n );
- }
- }
-
- return r;
- }
-});
-var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
- rleadingWhitespace = /^\s+/,
- rxhtmlTag = /(<([\w:]+)[^>]*?)\/>/g,
- rselfClosing = /^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,
- rtagName = /<([\w:]+)/,
- rtbody = /" + tag + ">";
- },
- wrapMap = {
- option: [ 1, "", " " ],
- legend: [ 1, "", " " ],
- thead: [ 1, "" ],
- tr: [ 2, "" ],
- td: [ 3, "" ],
- col: [ 2, "" ],
- area: [ 1, "", " " ],
- _default: [ 0, "", "" ]
- };
-
-wrapMap.optgroup = wrapMap.option;
-wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
-wrapMap.th = wrapMap.td;
-
-// IE can't serialize and
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-