compass-jquery-plugin 0.3.0.beta.5 → 0.3.0.beta.10
Sign up to get free protection for your applications and to get access to all the features.
- data/.loadpath +5 -5
- data/.project +17 -17
- data/{MIT-LICENSE → LICENSE} +0 -0
- data/README.textile +192 -166
- data/Rakefile +27 -3
- data/VERSION.yml +1 -1
- data/compass-jquery-plugin.gemspec +614 -1082
- data/gem_tasks/dynatree.rake +1 -1
- data/gem_tasks/jqgrid.rake +6 -6
- data/gem_tasks/jqical.rake +86 -0
- data/gem_tasks/jqtouch.rake +8 -3
- data/gem_tasks/jrails.rake +296 -0
- data/gem_tasks/ribbon.rake +1 -1
- data/gem_tasks/rubygems.rake +1 -1
- data/gem_tasks/secret_sauce.rake +4 -4
- data/lib/compiler.jar +0 -0
- data/lib/jquery/flash_messages.rb +45 -0
- data/lib/jquery/gridify/grid_column.rb +4 -2
- data/lib/jquery/gridify/grid_options.rb +5 -1
- data/lib/jquery/gridify/grid_view.rb +33 -2
- data/lib/jquery/jqical/calendar.rb +5 -0
- data/lib/jquery/jqical/event.rb +118 -0
- data/lib/jquery/jqical/helpers/ui_event_helper.rb +13 -0
- data/lib/jquery/jqical.rb +7 -0
- data/lib/jquery/secret_sauce/model/find_for_grid.rb +37 -40
- data/lib/jquery.rb +10 -10
- data/spec/compass-jquery-plugin_spec.rb +7 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +9 -0
- data/templates/dynatree/config/initializers/dynatree.rb +5 -0
- data/templates/dynatree/manifest.rb +1 -1
- data/templates/jqgrid/config/initializers/jqgrid.rb +2 -0
- data/templates/jqgrid/i18n/jqgrid/locale-fi.js +18 -16
- data/templates/jqgrid/i18n/jqgrid/locale-fi.min.js +6 -6
- data/templates/jqgrid/i18n/jqgrid/locale-hu.js +129 -0
- data/templates/jqgrid/i18n/jqgrid/locale-hu.min.js +8 -0
- data/templates/jqgrid/jquery.jqGrid.js +10792 -10085
- data/templates/jqgrid/jquery.jqGrid.min.js +389 -361
- data/templates/jqgrid/manifest.rb +3 -1
- data/templates/jqical/app/views/ui/_ui_event_for.js.haml +174 -0
- data/templates/jqical/config/initializers/jqical.rb +7 -0
- data/templates/jqical/jquery.jqical.js +7322 -0
- data/templates/jqical/jquery.jqical.min.js +186 -0
- data/templates/jqical/jquery.ui/jqical/calendar.png +0 -0
- data/templates/jqical/jquery.ui/jqical/clock.png +0 -0
- data/templates/jqical/jquery.ui/jqical.scss +941 -0
- data/templates/jqical/manifest.rb +10 -0
- data/templates/jqtouch/config/initializers/jqtouch.rb +5 -0
- data/templates/jqtouch/jqtouch/jqtouch.scss +1 -1
- data/templates/jqtouch/jquery.jqtouch.js +836 -0
- data/templates/jqtouch/jquery.jqtouch.min.js +1 -1
- data/templates/jqtouch/manifest.rb +1 -1
- data/templates/{jrails-1.4 → jrails}/config/initializers/jrails.rb +10 -5
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-af.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-af.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-ar.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-ar.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-az.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-az.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-bg.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-bg.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-bs.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-bs.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-ca.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-ca.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-cs.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-cs.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-da.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-da.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-de.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-de.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-el.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-el.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-en-GB.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-en-GB.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-eo.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-eo.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-es.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-es.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-et.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-et.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-eu.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-eu.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-fa.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-fa.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-fi.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-fi.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-fo.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-fo.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-fr-CH.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-fr-CH.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-fr.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-fr.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-he.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-he.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-hr.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-hr.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-hu.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-hu.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-hy.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-hy.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-id.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-id.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-is.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-is.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-it.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-it.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-ja.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-ja.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-ko.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-ko.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-lt.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-lt.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-lv.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-lv.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-ms.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-ms.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-nl.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-nl.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-no.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-no.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-pl.js +1 -1
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-pl.min.js +1 -1
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-pt-BR.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-pt-BR.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-ro.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-ro.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-ru.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-ru.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-sk.js +1 -1
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-sk.min.js +1 -1
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-sl.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-sl.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-sq.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-sq.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-sr-SR.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-sr-SR.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-sr.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-sr.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-sv.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-sv.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-ta.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-ta.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-th.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-th.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-tr.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-tr.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-uk.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-uk.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-vi.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-vi.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-zh-CN.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-zh-CN.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-zh-HK.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-zh-HK.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-zh-TW.js +0 -0
- data/templates/{jrails-1.4 → jrails}/i18n/jquery.ui/datepicker-zh-TW.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery-1.4.2.js +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery-1.4.2.min.js +64 -64
- data/templates/{jrails-1.4/jquery-ui-1.8.1.js → jrails/jquery-ui-1.8.2.js} +254 -166
- data/templates/jrails/jquery-ui-1.8.2.min.js +767 -0
- data/templates/{jrails-1.4 → jrails}/jquery.bgiframe.js +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.bgiframe.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.compat-1.3.js +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.compat-1.3.min.js +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.contextMenu.js +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.contextMenu.min.js +3 -3
- data/templates/jrails/jquery.farbtastic.js +345 -0
- data/templates/jrails/jquery.farbtastic.min.js +10 -0
- data/templates/{jrails-1.3 → jrails}/jquery.haml.js +0 -0
- data/templates/jrails/jquery.haml.min.js +5 -0
- data/templates/{jrails-1.4 → jrails}/jquery.metadata.js +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.metadata.min.js +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.pngFix.js +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.pngFix.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.themeswitchertool.js +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.themeswitchertool.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/_theme.scss +25 -17
- data/templates/{jrails-1.4 → jrails}/jquery.ui/base/ui-anim_basic_16x16.gif +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/base/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/base/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/base/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/base/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/base/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/base/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/base/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/base/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/base/ui-icons_222222_256x240.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/base/ui-icons_2e83ff_256x240.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/base/ui-icons_454545_256x240.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/base/ui-icons_888888_256x240.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/base/ui-icons_cd0a0a_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/base.scss +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/black-tie/ui-anim_basic_16x16.gif +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/black-tie/ui-bg_diagonals-thick_8_333333_40x40.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/black-tie/ui-bg_flat_65_ffffff_40x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/black-tie/ui-bg_glass_40_111111_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/black-tie/ui-bg_glass_55_1c1c1c_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/black-tie/ui-bg_highlight-hard_100_f9f9f9_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/black-tie/ui-bg_highlight-hard_40_aaaaaa_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/black-tie/ui-bg_highlight-soft_50_aaaaaa_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/black-tie/ui-bg_inset-hard_45_cd0a0a_1x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/black-tie/ui-bg_inset-hard_55_ffeb80_1x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/black-tie/ui-icons_222222_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/black-tie/ui-icons_4ca300_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/black-tie/ui-icons_bbbbbb_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/black-tie/ui-icons_ededed_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/black-tie/ui-icons_ffcf29_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/black-tie/ui-icons_ffffff_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/black-tie.scss +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/blitzer/ui-anim_basic_16x16.gif +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/blitzer/ui-bg_diagonals-thick_75_f3d8d8_40x40.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/blitzer/ui-bg_dots-small_65_a6a6a6_2x2.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/blitzer/ui-bg_flat_0_333333_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/blitzer/ui-bg_flat_65_ffffff_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/blitzer/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/blitzer/ui-bg_glass_55_fbf8ee_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/blitzer/ui-bg_highlight-hard_100_eeeeee_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/blitzer/ui-bg_highlight-hard_100_f6f6f6_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/blitzer/ui-bg_highlight-soft_15_cc0000_1x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/blitzer/ui-icons_004276_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/blitzer/ui-icons_cc0000_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/blitzer/ui-icons_ffffff_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/blitzer.scss +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/contextMenu/cut.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/contextMenu/door.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/contextMenu/page_white_copy.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/contextMenu/page_white_delete.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/contextMenu/page_white_edit.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/contextMenu/page_white_paste.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/contextMenu.scss +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/cupertino/ui-anim_basic_16x16.gif +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/cupertino/ui-bg_diagonals-thick_90_eeeeee_40x40.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/cupertino/ui-bg_flat_15_cd0a0a_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/cupertino/ui-bg_glass_100_e4f1fb_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/cupertino/ui-bg_glass_50_3baae3_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/cupertino/ui-bg_glass_80_d7ebf9_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/cupertino/ui-bg_highlight-hard_100_f2f5f7_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/cupertino/ui-bg_highlight-hard_70_000000_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/cupertino/ui-bg_highlight-soft_100_deedf7_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/cupertino/ui-bg_highlight-soft_25_ffef8f_1x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/cupertino/ui-icons_2694e8_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/cupertino/ui-icons_2e83ff_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/cupertino/ui-icons_3d80b3_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/cupertino/ui-icons_72a7cf_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/cupertino/ui-icons_ffffff_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/cupertino.scss +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/dark-hive/ui-anim_basic_16x16.gif +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/dark-hive/ui-bg_flat_30_cccccc_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/dark-hive/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/dark-hive/ui-bg_glass_40_ffc73d_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/dark-hive/ui-bg_highlight-hard_20_0972a5_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/dark-hive/ui-bg_highlight-soft_33_003147_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/dark-hive/ui-bg_highlight-soft_35_222222_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/dark-hive/ui-bg_highlight-soft_44_444444_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/dark-hive/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/dark-hive/ui-bg_loop_25_000000_21x21.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/dark-hive/ui-icons_222222_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/dark-hive/ui-icons_4b8e0b_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/dark-hive/ui-icons_a83300_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/dark-hive/ui-icons_cccccc_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/dark-hive/ui-icons_ffffff_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/dark-hive.scss +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/dot-luv/ui-anim_basic_16x16.gif +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/dot-luv/ui-bg_diagonals-thick_15_0b3e6f_40x40.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/dot-luv/ui-bg_dots-medium_30_0b58a2_4x4.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/dot-luv/ui-bg_dots-small_20_333333_2x2.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/dot-luv/ui-bg_dots-small_30_a32d00_2x2.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/dot-luv/ui-bg_dots-small_40_00498f_2x2.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/dot-luv/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/dot-luv/ui-bg_flat_40_292929_40x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/dot-luv/ui-bg_gloss-wave_20_111111_500x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/dot-luv/ui-icons_00498f_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/dot-luv/ui-icons_98d2fb_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/dot-luv/ui-icons_9ccdfc_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/dot-luv/ui-icons_ffffff_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/dot-luv.scss +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/eggplant/ui-anim_basic_16x16.gif +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/eggplant/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/eggplant/ui-bg_flat_0_eeeeee_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/eggplant/ui-bg_flat_55_994d53_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/eggplant/ui-bg_flat_55_fafafa_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/eggplant/ui-bg_gloss-wave_30_3d3644_500x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/eggplant/ui-bg_highlight-soft_100_dcd9de_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/eggplant/ui-bg_highlight-soft_100_eae6ea_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/eggplant/ui-bg_highlight-soft_25_30273a_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/eggplant/ui-bg_highlight-soft_45_5f5964_1x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/eggplant/ui-icons_454545_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/eggplant/ui-icons_734d99_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/eggplant/ui-icons_8d78a5_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/eggplant/ui-icons_a8a3ae_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/eggplant/ui-icons_ebccce_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/eggplant/ui-icons_ffffff_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/eggplant.scss +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/excite-bike/ui-anim_basic_16x16.gif +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/excite-bike/ui-bg_diagonals-small_25_c5ddfc_40x40.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/excite-bike/ui-bg_diagonals-thick_20_e69700_40x40.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/excite-bike/ui-bg_diagonals-thick_22_1484e6_40x40.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/excite-bike/ui-bg_diagonals-thick_26_2293f7_40x40.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/excite-bike/ui-bg_flat_0_e69700_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/excite-bike/ui-bg_flat_0_e6b900_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/excite-bike/ui-bg_highlight-soft_100_f9f9f9_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/excite-bike/ui-bg_inset-hard_100_eeeeee_1x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/excite-bike/ui-icons_0a82eb_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/excite-bike/ui-icons_0b54d5_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/excite-bike/ui-icons_5fa5e3_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/excite-bike/ui-icons_fcdd4a_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/excite-bike/ui-icons_ffffff_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/excite-bike.scss +0 -0
- data/templates/jrails/jquery.ui/farbtastic/marker.png +0 -0
- data/templates/jrails/jquery.ui/farbtastic/mask.png +0 -0
- data/templates/jrails/jquery.ui/farbtastic/wheel.png +0 -0
- data/templates/jrails/jquery.ui/farbtastic.scss +46 -0
- data/templates/jrails/jquery.ui/flash_messages/flash-check.png +0 -0
- data/templates/jrails/jquery.ui/flash_messages/flash-error-bg.png +0 -0
- data/templates/jrails/jquery.ui/flash_messages/flash-error.png +0 -0
- data/templates/jrails/jquery.ui/flash_messages/flash-notice-bg.png +0 -0
- data/templates/jrails/jquery.ui/flash_messages/flash-warning-bg.png +0 -0
- data/templates/jrails/jquery.ui/flash_messages/flash-warning.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/flick/ui-anim_basic_16x16.gif +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/flick/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/flick/ui-bg_flat_0_eeeeee_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/flick/ui-bg_flat_55_ffffff_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/flick/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/flick/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/flick/ui-bg_highlight-soft_100_f6f6f6_1x100.png +0 -0
- data/templates/jrails/jquery.ui/flick/ui-bg_highlight-soft_25_0073ea_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/flick/ui-bg_highlight-soft_50_dddddd_1x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/flick/ui-icons_0073ea_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/flick/ui-icons_454545_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/flick/ui-icons_666666_256x240.png +0 -0
- data/templates/{jrails-1.3/jquery.ui/black-tie/ui-icons_ededed_256x240.png → jrails/jquery.ui/flick/ui-icons_ff0084_256x240.png} +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/flick/ui-icons_ffffff_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/flick.scss +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/hot-sneaks/ui-anim_basic_16x16.gif +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/hot-sneaks/ui-bg_diagonals-small_40_db4865_40x40.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/hot-sneaks/ui-bg_diagonals-small_50_93c3cd_40x40.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/hot-sneaks/ui-bg_diagonals-small_50_ff3853_40x40.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/hot-sneaks/ui-bg_diagonals-small_75_ccd232_40x40.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/hot-sneaks/ui-bg_dots-medium_80_ffff38_4x4.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/hot-sneaks/ui-bg_dots-small_35_35414f_2x2.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/hot-sneaks/ui-bg_flat_75_ba9217_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/hot-sneaks/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/hot-sneaks/ui-bg_white-lines_85_f7f7ba_40x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/hot-sneaks/ui-icons_454545_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/hot-sneaks/ui-icons_88a206_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/hot-sneaks/ui-icons_c02669_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/hot-sneaks/ui-icons_e1e463_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/hot-sneaks/ui-icons_ffeb33_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/hot-sneaks/ui-icons_ffffff_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/hot-sneaks.scss +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/humanity/ui-anim_basic_16x16.gif +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/humanity/ui-bg_flat_75_aaaaaa_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/humanity/ui-bg_glass_100_f5f0e5_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/humanity/ui-bg_glass_25_cb842e_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/humanity/ui-bg_glass_70_ede4d4_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/humanity/ui-bg_highlight-hard_100_f4f0ec_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/humanity/ui-bg_highlight-hard_65_fee4bd_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/humanity/ui-bg_highlight-hard_75_f5f5b5_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/humanity/ui-bg_inset-soft_100_f4f0ec_1x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/humanity/ui-icons_c47a23_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/humanity/ui-icons_cb672b_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/humanity/ui-icons_f08000_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/humanity/ui-icons_f35f07_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/humanity/ui-icons_ff7519_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/humanity/ui-icons_ffffff_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/humanity.scss +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/le-frog/ui-anim_basic_16x16.gif +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/le-frog/ui-bg_diagonals-small_0_aaaaaa_40x40.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/le-frog/ui-bg_diagonals-thick_15_444444_40x40.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/le-frog/ui-bg_diagonals-thick_95_ffdc2e_40x40.png +0 -0
- data/templates/jrails/jquery.ui/le-frog/ui-bg_glass_55_fbf5d0_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/le-frog/ui-bg_highlight-hard_30_285c00_1x100.png +0 -0
- data/templates/jrails/jquery.ui/le-frog/ui-bg_highlight-soft_33_3a8104_1x100.png +0 -0
- data/templates/jrails/jquery.ui/le-frog/ui-bg_highlight-soft_50_4eb305_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/le-frog/ui-bg_highlight-soft_60_4ca20b_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/le-frog/ui-bg_inset-soft_10_285c00_1x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/le-frog/ui-icons_4eb305_256x240.png +0 -0
- data/templates/{jrails-1.3/jquery.ui/dot-luv/ui-icons_9ccdfc_256x240.png → jrails/jquery.ui/le-frog/ui-icons_72b42d_256x240.png} +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/le-frog/ui-icons_cd0a0a_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/le-frog/ui-icons_ffffff_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/le-frog.scss +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/mint-choc/ui-anim_basic_16x16.gif +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/mint-choc/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/mint-choc/ui-bg_glass_15_5f391b_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/mint-choc/ui-bg_gloss-wave_20_1c160d_500x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/mint-choc/ui-bg_gloss-wave_25_453326_500x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/mint-choc/ui-bg_gloss-wave_30_44372c_500x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/mint-choc/ui-bg_highlight-soft_20_201913_1x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/mint-choc/ui-bg_highlight-soft_20_619226_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/mint-choc/ui-bg_inset-soft_10_201913_1x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/mint-choc/ui-icons_222222_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/mint-choc/ui-icons_9bcc60_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/mint-choc/ui-icons_add978_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/mint-choc/ui-icons_e3ddc9_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/mint-choc/ui-icons_f1fd86_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/mint-choc/ui-icons_ffffff_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/mint-choc.scss +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/overcast/ui-anim_basic_16x16.gif +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/overcast/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/overcast/ui-bg_flat_0_eeeeee_40x100.png +0 -0
- data/templates/jrails/jquery.ui/overcast/ui-bg_flat_55_c0402a_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/overcast/ui-bg_flat_55_eeeeee_40x100.png +0 -0
- data/templates/jrails/jquery.ui/overcast/ui-bg_glass_100_f8f8f8_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/overcast/ui-bg_glass_35_dddddd_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/overcast/ui-bg_glass_60_eeeeee_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/overcast/ui-bg_inset-hard_75_999999_1x100.png +0 -0
- data/templates/jrails/jquery.ui/overcast/ui-bg_inset-soft_50_c9c9c9_1x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/overcast/ui-icons_3383bb_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/overcast/ui-icons_454545_256x240.png +0 -0
- data/templates/{jrails-1.3/jquery.ui/black-tie/ui-icons_ffcf29_256x240.png → jrails/jquery.ui/overcast/ui-icons_70b2e1_256x240.png} +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/overcast/ui-icons_999999_256x240.png +0 -0
- data/templates/{jrails-1.3/jquery.ui/dot-luv/ui-icons_00498f_256x240.png → jrails/jquery.ui/overcast/ui-icons_fbc856_256x240.png} +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/overcast.scss +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/pepper-grinder/ui-anim_basic_16x16.gif +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/pepper-grinder/ui-bg_diagonal-maze_20_6e4f1c_10x10.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/pepper-grinder/ui-bg_diagonal-maze_40_000000_10x10.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/pepper-grinder/ui-bg_fine-grain_10_eceadf_60x60.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/pepper-grinder/ui-bg_fine-grain_10_f8f7f6_60x60.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/pepper-grinder/ui-bg_fine-grain_15_eceadf_60x60.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/pepper-grinder/ui-bg_fine-grain_15_f7f3de_60x60.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/pepper-grinder/ui-bg_fine-grain_15_ffffff_60x60.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/pepper-grinder/ui-bg_fine-grain_65_654b24_60x60.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/pepper-grinder/ui-bg_fine-grain_68_b83400_60x60.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/pepper-grinder/ui-icons_222222_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/pepper-grinder/ui-icons_3572ac_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/pepper-grinder/ui-icons_8c291d_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/pepper-grinder/ui-icons_b83400_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/pepper-grinder/ui-icons_fbdb93_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/pepper-grinder/ui-icons_ffffff_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/pepper-grinder.scss +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/redmond/ui-anim_basic_16x16.gif +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/redmond/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/jrails/jquery.ui/redmond/ui-bg_flat_55_fbec88_40x100.png +0 -0
- data/templates/jrails/jquery.ui/redmond/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/redmond/ui-bg_glass_85_dfeffc_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/redmond/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/templates/jrails/jquery.ui/redmond/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/redmond/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/redmond/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
- data/templates/jrails/jquery.ui/redmond/ui-icons_217bc0_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/redmond/ui-icons_2e83ff_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/redmond/ui-icons_469bdd_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/redmond/ui-icons_6da8d5_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/redmond/ui-icons_cd0a0a_256x240.png +0 -0
- data/templates/jrails/jquery.ui/redmond/ui-icons_d8e7f3_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/redmond/ui-icons_f9bd01_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/redmond.scss +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/smoothness/ui-anim_basic_16x16.gif +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/smoothness/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/smoothness/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/templates/jrails/jquery.ui/smoothness/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/smoothness/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/smoothness/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/templates/jrails/jquery.ui/smoothness/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/smoothness/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/smoothness/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/smoothness/ui-icons_222222_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/smoothness/ui-icons_2e83ff_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/smoothness/ui-icons_454545_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/smoothness/ui-icons_888888_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/smoothness/ui-icons_cd0a0a_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/smoothness.scss +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/south-street/ui-anim_basic_16x16.gif +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/south-street/ui-bg_glass_55_fcf0ba_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/south-street/ui-bg_gloss-wave_100_ece8da_500x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/south-street/ui-bg_highlight-hard_100_f5f3e5_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/south-street/ui-bg_highlight-hard_100_fafaf4_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/south-street/ui-bg_highlight-hard_15_459e00_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/south-street/ui-bg_highlight-hard_95_cccccc_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/south-street/ui-bg_highlight-soft_25_67b021_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/south-street/ui-bg_highlight-soft_95_ffedad_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/south-street/ui-bg_inset-soft_15_2b2922_1x100.png +0 -0
- data/templates/jrails/jquery.ui/south-street/ui-icons_808080_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/south-street/ui-icons_847e71_256x240.png +0 -0
- data/templates/jrails/jquery.ui/south-street/ui-icons_8dc262_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/south-street/ui-icons_cd0a0a_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/south-street/ui-icons_eeeeee_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/south-street/ui-icons_ffffff_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/south-street.scss +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/start/ui-anim_basic_16x16.gif +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/start/ui-bg_flat_55_999999_40x100.png +0 -0
- data/templates/{jrails-1.4/jquery.ui/humanity → jrails/jquery.ui/start}/ui-bg_flat_75_aaaaaa_40x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/start/ui-bg_glass_45_0078ae_1x400.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/start/ui-bg_glass_55_f8da4e_1x400.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/start/ui-bg_glass_75_79c9ec_1x400.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/start/ui-bg_gloss-wave_45_e14f1c_500x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/start/ui-bg_gloss-wave_50_6eac2c_500x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/start/ui-bg_gloss-wave_75_2191c0_500x100.png +0 -0
- data/templates/{jrails-1.4/jquery.ui/redmond → jrails/jquery.ui/start}/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/start/ui-icons_0078ae_256x240.png +0 -0
- data/templates/jrails/jquery.ui/start/ui-icons_056b93_256x240.png +0 -0
- data/templates/jrails/jquery.ui/start/ui-icons_d8e7f3_256x240.png +0 -0
- data/templates/jrails/jquery.ui/start/ui-icons_e0fdff_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/start/ui-icons_f5e175_256x240.png +0 -0
- data/templates/jrails/jquery.ui/start/ui-icons_f7a50d_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/start/ui-icons_fcd113_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/start.scss +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/sunny/ui-anim_basic_16x16.gif +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/sunny/ui-bg_diagonals-medium_20_d34d17_40x40.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/sunny/ui-bg_flat_30_cccccc_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/sunny/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/sunny/ui-bg_gloss-wave_45_817865_500x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/sunny/ui-bg_gloss-wave_60_fece2f_500x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/sunny/ui-bg_gloss-wave_70_ffdd57_500x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/sunny/ui-bg_gloss-wave_90_fff9e5_500x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/sunny/ui-bg_highlight-soft_100_feeebd_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/sunny/ui-bg_inset-soft_30_ffffff_1x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/sunny/ui-icons_3d3d3d_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/sunny/ui-icons_bd7b00_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/sunny/ui-icons_d19405_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/sunny/ui-icons_eb990f_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/sunny/ui-icons_ed9f26_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/sunny/ui-icons_fadc7a_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/sunny/ui-icons_ffe180_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/sunny.scss +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/swanky-purse/ui-anim_basic_16x16.gif +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/swanky-purse/ui-bg_diamond_10_4f4221_10x8.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/swanky-purse/ui-bg_diamond_20_372806_10x8.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/swanky-purse/ui-bg_diamond_25_675423_10x8.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/swanky-purse/ui-bg_diamond_25_d5ac5d_10x8.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/swanky-purse/ui-bg_diamond_8_261803_10x8.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/swanky-purse/ui-bg_diamond_8_443113_10x8.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/swanky-purse/ui-bg_flat_75_ddd4b0_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/swanky-purse/ui-bg_highlight-hard_65_fee4bd_1x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/swanky-purse/ui-icons_070603_256x240.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/swanky-purse/ui-icons_e8e2b5_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/swanky-purse/ui-icons_e9cd86_256x240.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/swanky-purse/ui-icons_efec9f_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/swanky-purse/ui-icons_f2ec64_256x240.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/swanky-purse/ui-icons_f9f2bd_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/swanky-purse/ui-icons_ff7519_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/swanky-purse.scss +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/themeSwitcher/buttonbg.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/themeSwitcher/icon_color_arrow.gif +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/themeSwitcher/menuhoverbg.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/themeSwitcher/theme_90_black_matte.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/themeSwitcher/theme_90_black_tie.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/themeSwitcher/theme_90_blitzer.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/themeSwitcher/theme_90_cupertino.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/themeSwitcher/theme_90_dark_hive.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/themeSwitcher/theme_90_dot_luv.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/themeSwitcher/theme_90_eggplant.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/themeSwitcher/theme_90_excite_bike.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/themeSwitcher/theme_90_flick.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/themeSwitcher/theme_90_hot_sneaks.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/themeSwitcher/theme_90_humanity.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/themeSwitcher/theme_90_le_frog.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/themeSwitcher/theme_90_mint_choco.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/themeSwitcher/theme_90_overcast.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/themeSwitcher/theme_90_pepper_grinder.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/themeSwitcher/theme_90_smoothness.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/themeSwitcher/theme_90_south_street.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/themeSwitcher/theme_90_start_menu.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/themeSwitcher/theme_90_sunny.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/themeSwitcher/theme_90_swanky_purse.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/themeSwitcher/theme_90_trontastic.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/themeSwitcher/theme_90_ui_dark.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/themeSwitcher/theme_90_ui_light.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/themeSwitcher/theme_90_windoze.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/trontastic/ui-anim_basic_16x16.gif +0 -0
- data/templates/jrails/jquery.ui/trontastic/ui-bg_diagonals-small_50_262626_40x40.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/trontastic/ui-bg_flat_0_303030_40x100.png +0 -0
- data/templates/jrails/jquery.ui/trontastic/ui-bg_flat_0_4c4c4c_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/trontastic/ui-bg_glass_40_0a0a0a_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/trontastic/ui-bg_glass_55_f1fbe5_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/trontastic/ui-bg_glass_60_000000_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/trontastic/ui-bg_gloss-wave_55_000000_500x100.png +0 -0
- data/templates/jrails/jquery.ui/trontastic/ui-bg_gloss-wave_85_9fda58_500x100.png +0 -0
- data/templates/jrails/jquery.ui/trontastic/ui-bg_gloss-wave_95_f6ecd5_500x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/trontastic/ui-icons_000000_256x240.png +0 -0
- data/templates/jrails/jquery.ui/trontastic/ui-icons_1f1f1f_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/trontastic/ui-icons_9fda58_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/trontastic/ui-icons_b8ec79_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/trontastic/ui-icons_cd0a0a_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/trontastic/ui-icons_ffffff_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/trontastic.scss +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/ui-darkness/ui-anim_basic_16x16.gif +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/ui-darkness/ui-bg_flat_30_cccccc_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/ui-darkness/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/ui-darkness/ui-bg_glass_20_555555_1x400.png +0 -0
- data/templates/jrails/jquery.ui/ui-darkness/ui-bg_glass_40_0078a3_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/ui-darkness/ui-bg_glass_40_ffc73d_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/ui-darkness/ui-bg_gloss-wave_25_333333_500x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/ui-darkness/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/ui-darkness/ui-bg_inset-soft_25_000000_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/ui-darkness/ui-bg_inset-soft_30_f58400_1x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/ui-darkness/ui-icons_222222_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/ui-darkness/ui-icons_4b8e0b_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/ui-darkness/ui-icons_a83300_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/ui-darkness/ui-icons_cccccc_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/ui-darkness/ui-icons_ffffff_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/ui-darkness.scss +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/ui-lightness/ui-anim_basic_16x16.gif +0 -0
- data/templates/jrails/jquery.ui/ui-lightness/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/ui-lightness/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/ui-lightness/ui-bg_flat_10_000000_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/ui-lightness/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/ui-lightness/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/ui-lightness/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/ui-lightness/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/ui-lightness/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/ui-lightness/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/ui-lightness/ui-icons_222222_256x240.png +0 -0
- data/templates/jrails/jquery.ui/ui-lightness/ui-icons_228ef1_256x240.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/ui-lightness/ui-icons_ef8c08_256x240.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/ui-lightness/ui-icons_ffd27a_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/ui-lightness/ui-icons_ffffff_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/ui-lightness.scss +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/vader/ui-anim_basic_16x16.gif +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/vader/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/vader/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/vader/ui-bg_gloss-wave_16_121212_500x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/vader/ui-bg_highlight-hard_15_888888_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/vader/ui-bg_highlight-hard_55_555555_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/vader/ui-bg_highlight-soft_35_adadad_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/vader/ui-bg_highlight-soft_60_dddddd_1x100.png +0 -0
- data/templates/{jrails-1.3 → jrails}/jquery.ui/vader/ui-bg_inset-soft_15_121212_1x100.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/vader/ui-icons_666666_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/vader/ui-icons_aaaaaa_256x240.png +0 -0
- data/templates/jrails/jquery.ui/vader/ui-icons_bbbbbb_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/vader/ui-icons_c98000_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/vader/ui-icons_cccccc_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/vader/ui-icons_cd0a0a_256x240.png +0 -0
- data/templates/jrails/jquery.ui/vader/ui-icons_f29a00_256x240.png +0 -0
- data/templates/{jrails-1.4 → jrails}/jquery.ui/vader.scss +0 -0
- data/templates/{jrails-1.3 → jrails}/jrails.js +0 -0
- data/templates/{jrails-1.3 → jrails}/jrails.min.js +0 -0
- data/templates/{jrails-1.4 → jrails}/manifest.rb +15 -2
- data/templates/jrails/partials/_flash_messages.scss +32 -0
- data/templates/ribbon/config/initializers/ribbon.rb +3 -0
- data/templates/ribbon/manifest.rb +1 -1
- data/templates/secret_sauce/config/initializers/secret_sauce.rb +1 -0
- data/templates/secret_sauce/manifest.rb +1 -1
- metadata +621 -1081
- data/gem_tasks/calendar.rake +0 -78
- data/gem_tasks/jrails13.rake +0 -233
- data/gem_tasks/jrails14.rake +0 -267
- data/lib/eventually/event.rb +0 -84
- data/lib/eventually.rb +0 -4
- data/lib/jquery/calendar.rb +0 -5
- data/templates/calendar/config/initializers/calendar.rb +0 -3
- data/templates/calendar/jquery.calendar.js +0 -5621
- data/templates/calendar/jquery.calendar.min.js +0 -198
- data/templates/calendar/jquery.ui/calendar.scss +0 -693
- data/templates/calendar/manifest.rb +0 -7
- data/templates/jrails-1.3/config/initializers/jrails.rb +0 -29
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-ar.js +0 -20
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-ar.min.js +0 -4
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-bg.js +0 -20
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-bg.min.js +0 -4
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-ca.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-ca.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-cs.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-cs.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-da.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-da.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-de.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-de.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-el.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-el.min.js +0 -4
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-eo.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-eo.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-es.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-es.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-fa.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-fa.min.js +0 -3
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-fi.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-fi.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-fr.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-fr.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-he.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-he.min.js +0 -3
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-hr.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-hr.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-hu.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-hu.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-hy.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-hy.min.js +0 -4
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-id.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-id.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-is.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-is.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-it.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-it.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-ja.js +0 -20
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-ja.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-ko.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-ko.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-lt.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-lt.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-lv.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-lv.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-ms.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-ms.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-nl.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-nl.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-no.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-no.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-pl.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-pl.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-pt-BR.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-pt-BR.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-ro.js +0 -22
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-ro.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-ru.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-ru.min.js +0 -4
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-sk.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-sk.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-sl.js +0 -20
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-sl.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-sq.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-sq.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-sr-SR.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-sr-SR.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-sr.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-sr.min.js +0 -3
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-sv.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-sv.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-th.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-th.min.js +0 -4
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-tr.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-tr.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-uk.js +0 -25
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-uk.min.js +0 -4
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-zh-CN.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-zh-CN.min.js +0 -2
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-zh-TW.js +0 -19
- data/templates/jrails-1.3/i18n/jquery.ui/datepicker-zh-TW.min.js +0 -2
- data/templates/jrails-1.3/jquery-1.3.2.js +0 -7638
- data/templates/jrails-1.3/jquery-1.3.2.min.js +0 -178
- data/templates/jrails-1.3/jquery-ui-1.7.3.js +0 -18330
- data/templates/jrails-1.3/jquery-ui-1.7.3.min.js +0 -690
- data/templates/jrails-1.3/jquery.haml.min.js +0 -5
- data/templates/jrails-1.3/jquery.themeswitchertool.js +0 -190
- data/templates/jrails-1.3/jquery.themeswitchertool.min.js +0 -8
- data/templates/jrails-1.3/jquery.ui/_theme.scss +0 -1283
- data/templates/jrails-1.3/jquery.ui/base.scss +0 -87
- data/templates/jrails-1.3/jquery.ui/black-tie/ui-bg_glass_40_111111_1x400.png +0 -0
- data/templates/jrails-1.3/jquery.ui/black-tie/ui-bg_inset-hard_55_ffeb80_1x100.png +0 -0
- data/templates/jrails-1.3/jquery.ui/black-tie/ui-icons_222222_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/black-tie/ui-icons_4ca300_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/black-tie/ui-icons_bbbbbb_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/black-tie/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/black-tie.scss +0 -87
- data/templates/jrails-1.3/jquery.ui/blitzer/ui-icons_004276_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/blitzer/ui-icons_cc0000_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/blitzer/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/blitzer.scss +0 -87
- data/templates/jrails-1.3/jquery.ui/cupertino/ui-icons_2694e8_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/cupertino/ui-icons_2e83ff_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/cupertino/ui-icons_3d80b3_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/cupertino/ui-icons_72a7cf_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/cupertino/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/cupertino.scss +0 -87
- data/templates/jrails-1.3/jquery.ui/dark-hive/ui-icons_222222_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/dark-hive/ui-icons_4b8e0b_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/dark-hive/ui-icons_a83300_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/dark-hive/ui-icons_cccccc_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/dark-hive/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/dark-hive.scss +0 -87
- data/templates/jrails-1.3/jquery.ui/dot-luv/ui-bg_dots-medium_30_0b58a2_4x4.png +0 -0
- data/templates/jrails-1.3/jquery.ui/dot-luv/ui-bg_dots-small_40_00498f_2x2.png +0 -0
- data/templates/jrails-1.3/jquery.ui/dot-luv/ui-bg_gloss-wave_20_111111_500x100.png +0 -0
- data/templates/jrails-1.3/jquery.ui/dot-luv/ui-icons_98d2fb_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/dot-luv/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/dot-luv.scss +0 -87
- data/templates/jrails-1.3/jquery.ui/eggplant/ui-icons_454545_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/eggplant/ui-icons_734d99_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/eggplant/ui-icons_8d78a5_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/eggplant/ui-icons_a8a3ae_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/eggplant/ui-icons_ebccce_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/eggplant/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/eggplant.scss +0 -87
- data/templates/jrails-1.3/jquery.ui/excite-bike/ui-icons_0a82eb_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/excite-bike/ui-icons_0b54d5_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/excite-bike/ui-icons_5fa5e3_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/excite-bike/ui-icons_fcdd4a_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/excite-bike/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/excite-bike.scss +0 -87
- data/templates/jrails-1.3/jquery.ui/flick/ui-bg_highlight-soft_25_0073ea_1x100.png +0 -0
- data/templates/jrails-1.3/jquery.ui/flick/ui-icons_0073ea_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/flick/ui-icons_454545_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/flick/ui-icons_666666_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/flick/ui-icons_ff0084_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/flick/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/flick.scss +0 -87
- data/templates/jrails-1.3/jquery.ui/hot-sneaks/ui-icons_454545_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/hot-sneaks/ui-icons_88a206_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/hot-sneaks/ui-icons_c02669_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/hot-sneaks/ui-icons_e1e463_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/hot-sneaks/ui-icons_ffeb33_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/hot-sneaks/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/hot-sneaks.scss +0 -87
- data/templates/jrails-1.3/jquery.ui/humanity/ui-icons_c47a23_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/humanity/ui-icons_cb672b_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/humanity/ui-icons_f08000_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/humanity/ui-icons_f35f07_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/humanity/ui-icons_ff7519_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/humanity/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/humanity.scss +0 -87
- data/templates/jrails-1.3/jquery.ui/le-frog/ui-bg_glass_55_fbf5d0_1x400.png +0 -0
- data/templates/jrails-1.3/jquery.ui/le-frog/ui-bg_highlight-soft_33_3a8104_1x100.png +0 -0
- data/templates/jrails-1.3/jquery.ui/le-frog/ui-bg_highlight-soft_50_4eb305_1x100.png +0 -0
- data/templates/jrails-1.3/jquery.ui/le-frog/ui-icons_4eb305_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/le-frog/ui-icons_72b42d_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/le-frog/ui-icons_cd0a0a_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/le-frog/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/le-frog.scss +0 -87
- data/templates/jrails-1.3/jquery.ui/mint-choc/ui-bg_gloss-wave_25_453326_500x100.png +0 -0
- data/templates/jrails-1.3/jquery.ui/mint-choc/ui-bg_gloss-wave_30_44372c_500x100.png +0 -0
- data/templates/jrails-1.3/jquery.ui/mint-choc/ui-bg_highlight-soft_20_619226_1x100.png +0 -0
- data/templates/jrails-1.3/jquery.ui/mint-choc/ui-icons_222222_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/mint-choc/ui-icons_9bcc60_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/mint-choc/ui-icons_add978_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/mint-choc/ui-icons_e3ddc9_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/mint-choc/ui-icons_f1fd86_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/mint-choc/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/mint-choc.scss +0 -87
- data/templates/jrails-1.3/jquery.ui/overcast/ui-bg_flat_55_c0402a_40x100.png +0 -0
- data/templates/jrails-1.3/jquery.ui/overcast/ui-bg_glass_100_f8f8f8_1x400.png +0 -0
- data/templates/jrails-1.3/jquery.ui/overcast/ui-bg_inset-soft_50_c9c9c9_1x100.png +0 -0
- data/templates/jrails-1.3/jquery.ui/overcast/ui-icons_3383bb_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/overcast/ui-icons_454545_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/overcast/ui-icons_70b2e1_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/overcast/ui-icons_999999_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/overcast/ui-icons_fbc856_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/overcast.scss +0 -87
- data/templates/jrails-1.3/jquery.ui/pepper-grinder/ui-icons_222222_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/pepper-grinder/ui-icons_3572ac_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/pepper-grinder/ui-icons_8c291d_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/pepper-grinder/ui-icons_b83400_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/pepper-grinder/ui-icons_fbdb93_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/pepper-grinder/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/pepper-grinder.scss +0 -87
- data/templates/jrails-1.3/jquery.ui/redmond/ui-bg_flat_55_fbec88_40x100.png +0 -0
- data/templates/jrails-1.3/jquery.ui/redmond/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
- data/templates/jrails-1.3/jquery.ui/redmond/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
- data/templates/jrails-1.3/jquery.ui/redmond/ui-icons_217bc0_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/redmond/ui-icons_2e83ff_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/redmond/ui-icons_469bdd_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/redmond/ui-icons_6da8d5_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/redmond/ui-icons_cd0a0a_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/redmond/ui-icons_d8e7f3_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/redmond/ui-icons_f9bd01_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/redmond.scss +0 -87
- data/templates/jrails-1.3/jquery.ui/smoothness/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/templates/jrails-1.3/jquery.ui/smoothness/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/templates/jrails-1.3/jquery.ui/smoothness/ui-icons_222222_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/smoothness/ui-icons_2e83ff_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/smoothness/ui-icons_454545_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/smoothness/ui-icons_888888_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/smoothness/ui-icons_cd0a0a_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/smoothness.scss +0 -87
- data/templates/jrails-1.3/jquery.ui/south-street/ui-icons_808080_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/south-street/ui-icons_847e71_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/south-street/ui-icons_8DC262_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/south-street/ui-icons_cd0a0a_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/south-street/ui-icons_eeeeee_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/south-street/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/south-street.scss +0 -87
- data/templates/jrails-1.3/jquery.ui/sunny/ui-bg_gloss-wave_60_fece2f_500x100.png +0 -0
- data/templates/jrails-1.3/jquery.ui/sunny/ui-bg_gloss-wave_90_fff9e5_500x100.png +0 -0
- data/templates/jrails-1.3/jquery.ui/sunny/ui-bg_highlight-soft_100_feeebd_1x100.png +0 -0
- data/templates/jrails-1.3/jquery.ui/sunny/ui-icons_3d3d3d_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/sunny/ui-icons_bd7b00_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/sunny/ui-icons_d19405_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/sunny/ui-icons_eb990f_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/sunny/ui-icons_ed9f26_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/sunny/ui-icons_fadc7a_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/sunny/ui-icons_ffe180_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/sunny.scss +0 -87
- data/templates/jrails-1.3/jquery.ui/swanky-purse/ui-bg_diamond_10_4f4221_10x8.png +0 -0
- data/templates/jrails-1.3/jquery.ui/swanky-purse/ui-bg_diamond_25_d5ac5d_10x8.png +0 -0
- data/templates/jrails-1.3/jquery.ui/swanky-purse/ui-bg_diamond_8_443113_10x8.png +0 -0
- data/templates/jrails-1.3/jquery.ui/swanky-purse/ui-bg_flat_75_ddd4b0_40x100.png +0 -0
- data/templates/jrails-1.3/jquery.ui/swanky-purse/ui-icons_070603_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/swanky-purse/ui-icons_e9cd86_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/swanky-purse/ui-icons_f2ec64_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/swanky-purse/ui-icons_ff7519_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/swanky-purse.scss +0 -87
- data/templates/jrails-1.3/jquery.ui/trontastic/ui-bg_diagonals-small_50_262626_40x40.png +0 -0
- data/templates/jrails-1.3/jquery.ui/trontastic/ui-bg_flat_0_4c4c4c_40x100.png +0 -0
- data/templates/jrails-1.3/jquery.ui/trontastic/ui-bg_gloss-wave_85_9fda58_500x100.png +0 -0
- data/templates/jrails-1.3/jquery.ui/trontastic/ui-bg_gloss-wave_95_f6ecd5_500x100.png +0 -0
- data/templates/jrails-1.3/jquery.ui/trontastic/ui-icons_000000_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/trontastic/ui-icons_1f1f1f_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/trontastic/ui-icons_9fda58_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/trontastic/ui-icons_b8ec79_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/trontastic/ui-icons_cd0a0a_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/trontastic/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/trontastic.scss +0 -87
- data/templates/jrails-1.3/jquery.ui/ui-darkness/ui-bg_glass_40_0078a3_1x400.png +0 -0
- data/templates/jrails-1.3/jquery.ui/ui-darkness/ui-icons_222222_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/ui-darkness/ui-icons_4b8e0b_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/ui-darkness/ui-icons_a83300_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/ui-darkness/ui-icons_cccccc_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/ui-darkness/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/ui-darkness.scss +0 -87
- data/templates/jrails-1.3/jquery.ui/ui-lightness/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/templates/jrails-1.3/jquery.ui/ui-lightness/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/templates/jrails-1.3/jquery.ui/ui-lightness/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/templates/jrails-1.3/jquery.ui/ui-lightness/ui-icons_222222_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/ui-lightness/ui-icons_228ef1_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/ui-lightness/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/ui-lightness.scss +0 -87
- data/templates/jrails-1.3/jquery.ui/vader/ui-icons_666666_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/vader/ui-icons_aaaaaa_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/vader/ui-icons_bbbbbb_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/vader/ui-icons_c98000_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/vader/ui-icons_cccccc_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/vader/ui-icons_cd0a0a_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/vader/ui-icons_f29a00_256x240.png +0 -0
- data/templates/jrails-1.3/jquery.ui/vader.scss +0 -87
- data/templates/jrails-1.3/manifest.rb +0 -496
- data/templates/jrails-1.4/jquery-ui-1.8.1.min.js +0 -765
- data/templates/jrails-1.4/jquery.contextMenu.js +0 -211
- data/templates/jrails-1.4/jquery.contextMenu.min.js +0 -8
- data/templates/jrails-1.4/jquery.haml.js +0 -293
- data/templates/jrails-1.4/jquery.haml.min.js +0 -5
- data/templates/jrails-1.4/jquery.pngFix.js +0 -11
- data/templates/jrails-1.4/jquery.pngFix.min.js +0 -2
- data/templates/jrails-1.4/jquery.ui/base/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/base/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/base/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/base/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/base/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/base/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/base/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/base/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/base/ui-icons_222222_256x240.png +0 -0
- data/templates/jrails-1.4/jquery.ui/base/ui-icons_2e83ff_256x240.png +0 -0
- data/templates/jrails-1.4/jquery.ui/base/ui-icons_454545_256x240.png +0 -0
- data/templates/jrails-1.4/jquery.ui/base/ui-icons_888888_256x240.png +0 -0
- data/templates/jrails-1.4/jquery.ui/base/ui-icons_cd0a0a_256x240.png +0 -0
- data/templates/jrails-1.4/jquery.ui/black-tie/ui-bg_diagonals-thick_8_333333_40x40.png +0 -0
- data/templates/jrails-1.4/jquery.ui/black-tie/ui-bg_flat_65_ffffff_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/black-tie/ui-bg_glass_55_1c1c1c_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/black-tie/ui-bg_highlight-hard_100_f9f9f9_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/black-tie/ui-bg_highlight-hard_40_aaaaaa_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/black-tie/ui-bg_highlight-soft_50_aaaaaa_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/black-tie/ui-bg_inset-hard_45_cd0a0a_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/blitzer/ui-bg_diagonals-thick_75_f3d8d8_40x40.png +0 -0
- data/templates/jrails-1.4/jquery.ui/blitzer/ui-bg_dots-small_65_a6a6a6_2x2.png +0 -0
- data/templates/jrails-1.4/jquery.ui/blitzer/ui-bg_flat_0_333333_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/blitzer/ui-bg_flat_65_ffffff_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/blitzer/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/blitzer/ui-bg_glass_55_fbf8ee_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/blitzer/ui-bg_highlight-hard_100_eeeeee_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/blitzer/ui-bg_highlight-hard_100_f6f6f6_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/blitzer/ui-bg_highlight-soft_15_cc0000_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/contextMenu/cut.png +0 -0
- data/templates/jrails-1.4/jquery.ui/contextMenu/door.png +0 -0
- data/templates/jrails-1.4/jquery.ui/contextMenu/page_white_copy.png +0 -0
- data/templates/jrails-1.4/jquery.ui/contextMenu/page_white_delete.png +0 -0
- data/templates/jrails-1.4/jquery.ui/contextMenu/page_white_edit.png +0 -0
- data/templates/jrails-1.4/jquery.ui/contextMenu/page_white_paste.png +0 -0
- data/templates/jrails-1.4/jquery.ui/contextMenu.scss +0 -49
- data/templates/jrails-1.4/jquery.ui/cupertino/ui-bg_diagonals-thick_90_eeeeee_40x40.png +0 -0
- data/templates/jrails-1.4/jquery.ui/cupertino/ui-bg_flat_15_cd0a0a_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/cupertino/ui-bg_glass_100_e4f1fb_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/cupertino/ui-bg_glass_50_3baae3_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/cupertino/ui-bg_glass_80_d7ebf9_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/cupertino/ui-bg_highlight-hard_100_f2f5f7_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/cupertino/ui-bg_highlight-hard_70_000000_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/cupertino/ui-bg_highlight-soft_100_deedf7_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/cupertino/ui-bg_highlight-soft_25_ffef8f_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/dark-hive/ui-bg_flat_30_cccccc_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/dark-hive/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/dark-hive/ui-bg_glass_40_ffc73d_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/dark-hive/ui-bg_highlight-hard_20_0972a5_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/dark-hive/ui-bg_highlight-soft_33_003147_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/dark-hive/ui-bg_highlight-soft_35_222222_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/dark-hive/ui-bg_highlight-soft_44_444444_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/dark-hive/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/dark-hive/ui-bg_loop_25_000000_21x21.png +0 -0
- data/templates/jrails-1.4/jquery.ui/dot-luv/ui-bg_diagonals-thick_15_0b3e6f_40x40.png +0 -0
- data/templates/jrails-1.4/jquery.ui/dot-luv/ui-bg_dots-small_20_333333_2x2.png +0 -0
- data/templates/jrails-1.4/jquery.ui/dot-luv/ui-bg_dots-small_30_a32d00_2x2.png +0 -0
- data/templates/jrails-1.4/jquery.ui/dot-luv/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/dot-luv/ui-bg_flat_40_292929_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/eggplant/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/eggplant/ui-bg_flat_0_eeeeee_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/eggplant/ui-bg_flat_55_994d53_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/eggplant/ui-bg_flat_55_fafafa_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/eggplant/ui-bg_gloss-wave_30_3d3644_500x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/eggplant/ui-bg_highlight-soft_100_dcd9de_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/eggplant/ui-bg_highlight-soft_100_eae6ea_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/eggplant/ui-bg_highlight-soft_25_30273a_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/eggplant/ui-bg_highlight-soft_45_5f5964_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/excite-bike/ui-bg_diagonals-small_25_c5ddfc_40x40.png +0 -0
- data/templates/jrails-1.4/jquery.ui/excite-bike/ui-bg_diagonals-thick_20_e69700_40x40.png +0 -0
- data/templates/jrails-1.4/jquery.ui/excite-bike/ui-bg_diagonals-thick_22_1484e6_40x40.png +0 -0
- data/templates/jrails-1.4/jquery.ui/excite-bike/ui-bg_diagonals-thick_26_2293f7_40x40.png +0 -0
- data/templates/jrails-1.4/jquery.ui/excite-bike/ui-bg_flat_0_e69700_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/excite-bike/ui-bg_flat_0_e6b900_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/excite-bike/ui-bg_highlight-soft_100_f9f9f9_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/excite-bike/ui-bg_inset-hard_100_eeeeee_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/flick/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/flick/ui-bg_flat_0_eeeeee_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/flick/ui-bg_flat_55_ffffff_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/flick/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/flick/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/flick/ui-bg_highlight-soft_100_f6f6f6_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/flick/ui-bg_highlight-soft_25_0073ea_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/flick/ui-bg_highlight-soft_50_dddddd_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/flick/ui-icons_ff0084_256x240.png +0 -0
- data/templates/jrails-1.4/jquery.ui/hot-sneaks/ui-bg_diagonals-small_40_db4865_40x40.png +0 -0
- data/templates/jrails-1.4/jquery.ui/hot-sneaks/ui-bg_diagonals-small_50_93c3cd_40x40.png +0 -0
- data/templates/jrails-1.4/jquery.ui/hot-sneaks/ui-bg_diagonals-small_50_ff3853_40x40.png +0 -0
- data/templates/jrails-1.4/jquery.ui/hot-sneaks/ui-bg_diagonals-small_75_ccd232_40x40.png +0 -0
- data/templates/jrails-1.4/jquery.ui/hot-sneaks/ui-bg_dots-medium_80_ffff38_4x4.png +0 -0
- data/templates/jrails-1.4/jquery.ui/hot-sneaks/ui-bg_dots-small_35_35414f_2x2.png +0 -0
- data/templates/jrails-1.4/jquery.ui/hot-sneaks/ui-bg_flat_75_ba9217_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/hot-sneaks/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/hot-sneaks/ui-bg_white-lines_85_f7f7ba_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/humanity/ui-bg_glass_100_f5f0e5_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/humanity/ui-bg_glass_25_cb842e_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/humanity/ui-bg_glass_70_ede4d4_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/humanity/ui-bg_highlight-hard_100_f4f0ec_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/humanity/ui-bg_highlight-hard_65_fee4bd_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/humanity/ui-bg_highlight-hard_75_f5f5b5_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/humanity/ui-bg_inset-soft_100_f4f0ec_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/le-frog/ui-bg_diagonals-small_0_aaaaaa_40x40.png +0 -0
- data/templates/jrails-1.4/jquery.ui/le-frog/ui-bg_diagonals-thick_15_444444_40x40.png +0 -0
- data/templates/jrails-1.4/jquery.ui/le-frog/ui-bg_diagonals-thick_95_ffdc2e_40x40.png +0 -0
- data/templates/jrails-1.4/jquery.ui/le-frog/ui-bg_glass_55_fbf5d0_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/le-frog/ui-bg_highlight-hard_30_285c00_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/le-frog/ui-bg_highlight-soft_33_3a8104_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/le-frog/ui-bg_highlight-soft_50_4eb305_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/le-frog/ui-bg_highlight-soft_60_4ca20b_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/le-frog/ui-bg_inset-soft_10_285c00_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/le-frog/ui-icons_72b42d_256x240.png +0 -0
- data/templates/jrails-1.4/jquery.ui/mint-choc/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/mint-choc/ui-bg_glass_15_5f391b_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/mint-choc/ui-bg_gloss-wave_20_1c160d_500x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/mint-choc/ui-bg_highlight-soft_20_201913_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/mint-choc/ui-bg_inset-soft_10_201913_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/overcast/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/overcast/ui-bg_flat_0_eeeeee_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/overcast/ui-bg_flat_55_c0402a_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/overcast/ui-bg_flat_55_eeeeee_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/overcast/ui-bg_glass_100_f8f8f8_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/overcast/ui-bg_glass_35_dddddd_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/overcast/ui-bg_glass_60_eeeeee_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/overcast/ui-bg_inset-hard_75_999999_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/overcast/ui-bg_inset-soft_50_c9c9c9_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/overcast/ui-icons_70b2e1_256x240.png +0 -0
- data/templates/jrails-1.4/jquery.ui/overcast/ui-icons_fbc856_256x240.png +0 -0
- data/templates/jrails-1.4/jquery.ui/pepper-grinder/ui-bg_diagonal-maze_20_6e4f1c_10x10.png +0 -0
- data/templates/jrails-1.4/jquery.ui/pepper-grinder/ui-bg_diagonal-maze_40_000000_10x10.png +0 -0
- data/templates/jrails-1.4/jquery.ui/pepper-grinder/ui-bg_fine-grain_10_eceadf_60x60.png +0 -0
- data/templates/jrails-1.4/jquery.ui/pepper-grinder/ui-bg_fine-grain_10_f8f7f6_60x60.png +0 -0
- data/templates/jrails-1.4/jquery.ui/pepper-grinder/ui-bg_fine-grain_15_eceadf_60x60.png +0 -0
- data/templates/jrails-1.4/jquery.ui/pepper-grinder/ui-bg_fine-grain_15_f7f3de_60x60.png +0 -0
- data/templates/jrails-1.4/jquery.ui/pepper-grinder/ui-bg_fine-grain_15_ffffff_60x60.png +0 -0
- data/templates/jrails-1.4/jquery.ui/pepper-grinder/ui-bg_fine-grain_65_654b24_60x60.png +0 -0
- data/templates/jrails-1.4/jquery.ui/pepper-grinder/ui-bg_fine-grain_68_b83400_60x60.png +0 -0
- data/templates/jrails-1.4/jquery.ui/redmond/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/redmond/ui-bg_flat_55_fbec88_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/redmond/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/redmond/ui-bg_glass_85_dfeffc_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/redmond/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/redmond/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/redmond/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/redmond/ui-icons_217bc0_256x240.png +0 -0
- data/templates/jrails-1.4/jquery.ui/redmond/ui-icons_d8e7f3_256x240.png +0 -0
- data/templates/jrails-1.4/jquery.ui/smoothness/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/smoothness/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/smoothness/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/smoothness/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/smoothness/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/smoothness/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/smoothness/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/smoothness/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/south-street/ui-bg_glass_55_fcf0ba_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/south-street/ui-bg_gloss-wave_100_ece8da_500x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/south-street/ui-bg_highlight-hard_100_f5f3e5_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/south-street/ui-bg_highlight-hard_100_fafaf4_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/south-street/ui-bg_highlight-hard_15_459e00_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/south-street/ui-bg_highlight-hard_95_cccccc_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/south-street/ui-bg_highlight-soft_25_67b021_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/south-street/ui-bg_highlight-soft_95_ffedad_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/south-street/ui-bg_inset-soft_15_2b2922_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/south-street/ui-icons_808080_256x240.png +0 -0
- data/templates/jrails-1.4/jquery.ui/south-street/ui-icons_8dc262_256x240.png +0 -0
- data/templates/jrails-1.4/jquery.ui/start/ui-bg_flat_75_aaaaaa_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/start/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/start/ui-icons_056b93_256x240.png +0 -0
- data/templates/jrails-1.4/jquery.ui/start/ui-icons_d8e7f3_256x240.png +0 -0
- data/templates/jrails-1.4/jquery.ui/start/ui-icons_e0fdff_256x240.png +0 -0
- data/templates/jrails-1.4/jquery.ui/start/ui-icons_f7a50d_256x240.png +0 -0
- data/templates/jrails-1.4/jquery.ui/sunny/ui-bg_diagonals-medium_20_d34d17_40x40.png +0 -0
- data/templates/jrails-1.4/jquery.ui/sunny/ui-bg_flat_30_cccccc_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/sunny/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/sunny/ui-bg_gloss-wave_45_817865_500x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/sunny/ui-bg_gloss-wave_70_ffdd57_500x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/sunny/ui-bg_inset-soft_30_ffffff_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/swanky-purse/ui-bg_diamond_20_372806_10x8.png +0 -0
- data/templates/jrails-1.4/jquery.ui/swanky-purse/ui-bg_diamond_25_675423_10x8.png +0 -0
- data/templates/jrails-1.4/jquery.ui/swanky-purse/ui-bg_diamond_8_261803_10x8.png +0 -0
- data/templates/jrails-1.4/jquery.ui/swanky-purse/ui-bg_highlight-hard_65_fee4bd_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/swanky-purse/ui-icons_e8e2b5_256x240.png +0 -0
- data/templates/jrails-1.4/jquery.ui/swanky-purse/ui-icons_efec9f_256x240.png +0 -0
- data/templates/jrails-1.4/jquery.ui/swanky-purse/ui-icons_f9f2bd_256x240.png +0 -0
- data/templates/jrails-1.4/jquery.ui/themeSwitcher/buttonbg.png +0 -0
- data/templates/jrails-1.4/jquery.ui/themeSwitcher/icon_color_arrow.gif +0 -0
- data/templates/jrails-1.4/jquery.ui/themeSwitcher/menuhoverbg.png +0 -0
- data/templates/jrails-1.4/jquery.ui/themeSwitcher/theme_90_black_matte.png +0 -0
- data/templates/jrails-1.4/jquery.ui/themeSwitcher/theme_90_black_tie.png +0 -0
- data/templates/jrails-1.4/jquery.ui/themeSwitcher/theme_90_blitzer.png +0 -0
- data/templates/jrails-1.4/jquery.ui/themeSwitcher/theme_90_cupertino.png +0 -0
- data/templates/jrails-1.4/jquery.ui/themeSwitcher/theme_90_dark_hive.png +0 -0
- data/templates/jrails-1.4/jquery.ui/themeSwitcher/theme_90_dot_luv.png +0 -0
- data/templates/jrails-1.4/jquery.ui/themeSwitcher/theme_90_eggplant.png +0 -0
- data/templates/jrails-1.4/jquery.ui/themeSwitcher/theme_90_excite_bike.png +0 -0
- data/templates/jrails-1.4/jquery.ui/themeSwitcher/theme_90_flick.png +0 -0
- data/templates/jrails-1.4/jquery.ui/themeSwitcher/theme_90_hot_sneaks.png +0 -0
- data/templates/jrails-1.4/jquery.ui/themeSwitcher/theme_90_humanity.png +0 -0
- data/templates/jrails-1.4/jquery.ui/themeSwitcher/theme_90_le_frog.png +0 -0
- data/templates/jrails-1.4/jquery.ui/themeSwitcher/theme_90_mint_choco.png +0 -0
- data/templates/jrails-1.4/jquery.ui/themeSwitcher/theme_90_overcast.png +0 -0
- data/templates/jrails-1.4/jquery.ui/themeSwitcher/theme_90_pepper_grinder.png +0 -0
- data/templates/jrails-1.4/jquery.ui/themeSwitcher/theme_90_smoothness.png +0 -0
- data/templates/jrails-1.4/jquery.ui/themeSwitcher/theme_90_south_street.png +0 -0
- data/templates/jrails-1.4/jquery.ui/themeSwitcher/theme_90_sunny.png +0 -0
- data/templates/jrails-1.4/jquery.ui/themeSwitcher/theme_90_swanky_purse.png +0 -0
- data/templates/jrails-1.4/jquery.ui/themeSwitcher/theme_90_trontastic.png +0 -0
- data/templates/jrails-1.4/jquery.ui/themeSwitcher/theme_90_ui_dark.png +0 -0
- data/templates/jrails-1.4/jquery.ui/themeSwitcher/theme_90_ui_light.png +0 -0
- data/templates/jrails-1.4/jquery.ui/themeSwitcher/theme_90_windoze.png +0 -0
- data/templates/jrails-1.4/jquery.ui/trontastic/ui-bg_diagonals-small_50_262626_40x40.png +0 -0
- data/templates/jrails-1.4/jquery.ui/trontastic/ui-bg_flat_0_303030_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/trontastic/ui-bg_flat_0_4c4c4c_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/trontastic/ui-bg_glass_40_0a0a0a_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/trontastic/ui-bg_glass_55_f1fbe5_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/trontastic/ui-bg_glass_60_000000_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/trontastic/ui-bg_gloss-wave_55_000000_500x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/trontastic/ui-bg_gloss-wave_85_9fda58_500x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/trontastic/ui-bg_gloss-wave_95_f6ecd5_500x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/trontastic/ui-icons_1f1f1f_256x240.png +0 -0
- data/templates/jrails-1.4/jquery.ui/ui-darkness/ui-bg_flat_30_cccccc_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/ui-darkness/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/ui-darkness/ui-bg_glass_20_555555_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/ui-darkness/ui-bg_glass_40_0078a3_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/ui-darkness/ui-bg_glass_40_ffc73d_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/ui-darkness/ui-bg_gloss-wave_25_333333_500x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/ui-darkness/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/ui-darkness/ui-bg_inset-soft_25_000000_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/ui-darkness/ui-bg_inset-soft_30_f58400_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/ui-lightness/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/templates/jrails-1.4/jquery.ui/ui-lightness/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/templates/jrails-1.4/jquery.ui/ui-lightness/ui-bg_flat_10_000000_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/ui-lightness/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/ui-lightness/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/ui-lightness/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/ui-lightness/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/ui-lightness/ui-icons_228ef1_256x240.png +0 -0
- data/templates/jrails-1.4/jquery.ui/ui-lightness/ui-icons_ef8c08_256x240.png +0 -0
- data/templates/jrails-1.4/jquery.ui/ui-lightness/ui-icons_ffd27a_256x240.png +0 -0
- data/templates/jrails-1.4/jquery.ui/vader/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/vader/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/templates/jrails-1.4/jquery.ui/vader/ui-bg_gloss-wave_16_121212_500x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/vader/ui-bg_highlight-hard_15_888888_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/vader/ui-bg_highlight-hard_55_555555_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/vader/ui-bg_highlight-soft_35_adadad_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/vader/ui-bg_highlight-soft_60_dddddd_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/vader/ui-bg_inset-soft_15_121212_1x100.png +0 -0
- data/templates/jrails-1.4/jquery.ui/vader/ui-icons_bbbbbb_256x240.png +0 -0
- data/templates/jrails-1.4/jquery.ui/vader/ui-icons_f29a00_256x240.png +0 -0
- data/templates/jrails-1.4/jrails.js +0 -197
- data/templates/jrails-1.4/jrails.min.js +0 -8
@@ -1,310 +1,356 @@
|
|
1
|
+
jQuery.tableDnD={currentTable:null,dragObject:null,mouseOffset:null,oldY:0,build:function(a){this.each(function(){this.tableDnDConfig=jQuery.extend({onDragStyle:null,onDropStyle:null,onDragClass:"tDnD_whileDrag",onDrop:null,onDragStart:null,scrollAmount:5,serializeRegexp:/[^\-]*$/,serializeParamName:null,dragHandle:null},a||{});jQuery.tableDnD.makeDraggable(this)});jQuery(document).bind("mousemove",jQuery.tableDnD.mousemove).bind("mouseup",jQuery.tableDnD.mouseup);return this},makeDraggable:function(a){var d=
|
2
|
+
a.tableDnDConfig;a.tableDnDConfig.dragHandle?jQuery("td."+a.tableDnDConfig.dragHandle,a).each(function(){jQuery(this).mousedown(function(e){jQuery.tableDnD.dragObject=this.parentNode;jQuery.tableDnD.currentTable=a;jQuery.tableDnD.mouseOffset=jQuery.tableDnD.getMouseOffset(this,e);d.onDragStart&&d.onDragStart(a,this);return false})}):jQuery("tr",a).each(function(){var e=jQuery(this);e.hasClass("nodrag")||e.mousedown(function(b){if(b.target.tagName=="TD"){jQuery.tableDnD.dragObject=this;jQuery.tableDnD.currentTable=
|
3
|
+
a;jQuery.tableDnD.mouseOffset=jQuery.tableDnD.getMouseOffset(this,b);d.onDragStart&&d.onDragStart(a,this);return false}}).css("cursor","move")})},updateTables:function(){this.each(function(){this.tableDnDConfig&&jQuery.tableDnD.makeDraggable(this)})},mouseCoords:function(a){if(a.pageX||a.pageY)return{x:a.pageX,y:a.pageY};return{x:a.clientX+document.body.scrollLeft-document.body.clientLeft,y:a.clientY+document.body.scrollTop-document.body.clientTop}},getMouseOffset:function(a,d){d=d||window.event;
|
4
|
+
a=this.getPosition(a);d=this.mouseCoords(d);return{x:d.x-a.x,y:d.y-a.y}},getPosition:function(a){var d=0,e=0;if(a.offsetHeight==0)a=a.firstChild;if(a&&a.offsetParent){for(;a.offsetParent;){d+=a.offsetLeft;e+=a.offsetTop;a=a.offsetParent}d+=a.offsetLeft;e+=a.offsetTop}return{x:d,y:e}},mousemove:function(a){if(jQuery.tableDnD.dragObject!=null){var d=jQuery(jQuery.tableDnD.dragObject),e=jQuery.tableDnD.currentTable.tableDnDConfig,b=jQuery.tableDnD.mouseCoords(a);a=b.y-jQuery.tableDnD.mouseOffset.y;var f=
|
5
|
+
window.pageYOffset;if(document.all)if(typeof document.compatMode!="undefined"&&document.compatMode!="BackCompat")f=document.documentElement.scrollTop;else if(typeof document.body!="undefined")f=document.body.scrollTop;if(b.y-f<e.scrollAmount)window.scrollBy(0,-e.scrollAmount);else(window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight)-(b.y-f)<e.scrollAmount&&window.scrollBy(0,e.scrollAmount);if(a!=jQuery.tableDnD.oldY){b=
|
6
|
+
a>jQuery.tableDnD.oldY;jQuery.tableDnD.oldY=a;e.onDragClass?d.addClass(e.onDragClass):d.css(e.onDragStyle);if(d=jQuery.tableDnD.findDropTargetRow(d,a))if(b&&jQuery.tableDnD.dragObject!=d)jQuery.tableDnD.dragObject.parentNode.insertBefore(jQuery.tableDnD.dragObject,d.nextSibling);else!b&&jQuery.tableDnD.dragObject!=d&&jQuery.tableDnD.dragObject.parentNode.insertBefore(jQuery.tableDnD.dragObject,d)}return false}},findDropTargetRow:function(a,d){for(var e=jQuery.tableDnD.currentTable.rows,b=0;b<e.length;b++){var f=
|
7
|
+
e[b],g=this.getPosition(f).y,h=parseInt(f.offsetHeight)/2;if(f.offsetHeight==0){g=this.getPosition(f.firstChild).y;h=parseInt(f.firstChild.offsetHeight)/2}if(d>g-h&&d<g+h){if(f==a)return null;d=jQuery.tableDnD.currentTable.tableDnDConfig;return d.onAllowDrop?d.onAllowDrop(a,f)?f:null:jQuery(f).hasClass("nodrop")?null:f}}return null},mouseup:function(){if(jQuery.tableDnD.currentTable&&jQuery.tableDnD.dragObject){var a=jQuery.tableDnD.dragObject,d=jQuery.tableDnD.currentTable.tableDnDConfig;d.onDragClass?
|
8
|
+
jQuery(a).removeClass(d.onDragClass):jQuery(a).css(d.onDropStyle);jQuery.tableDnD.dragObject=null;d.onDrop&&d.onDrop(jQuery.tableDnD.currentTable,a);jQuery.tableDnD.currentTable=null}},serialize:function(){return jQuery.tableDnD.currentTable?jQuery.tableDnD.serializeTable(jQuery.tableDnD.currentTable):"Error: No Table id set, you need to set an id on your table and every row"},serializeTable:function(a){for(var d="",e=a.id,b=a.rows,f=0;f<b.length;f++){if(d.length>0)d+="&";var g=b[f].id;if(g&&g&&a.tableDnDConfig&&
|
9
|
+
a.tableDnDConfig.serializeRegexp)g=g.match(a.tableDnDConfig.serializeRegexp)[0];d+=e+"[]="+g}return d},serializeTables:function(){var a="";this.each(function(){a+=jQuery.tableDnD.serializeTable(this)});return a}};jQuery.fn.extend({tableDnD:jQuery.tableDnD.build,tableDnDUpdate:jQuery.tableDnD.updateTables,tableDnDSerialize:jQuery.tableDnD.serializeTables});
|
10
|
+
(function(a){a.widget("ui.multiselect",{_init:function(){this.element.hide();this.id=this.element.attr("id");this.container=a('<div class="ui-multiselect ui-helper-clearfix ui-widget"></div>').insertAfter(this.element);this.count=0;this.selectedContainer=a('<div class="selected"></div>').appendTo(this.container);this.availableContainer=a('<div class="available"></div>').appendTo(this.container);this.selectedActions=a('<div class="actions ui-widget-header ui-helper-clearfix"><span class="count">0 '+
|
11
|
+
a.ui.multiselect.locale.itemsCount+'</span><a href="#" class="remove-all">'+a.ui.multiselect.locale.removeAll+"</a></div>").appendTo(this.selectedContainer);this.availableActions=a('<div class="actions ui-widget-header ui-helper-clearfix"><input type="text" class="search empty ui-widget-content ui-corner-all"/><a href="#" class="add-all">'+a.ui.multiselect.locale.addAll+"</a></div>").appendTo(this.availableContainer);this.selectedList=a('<ul class="selected connected-list"><li class="ui-helper-hidden-accessible"></li></ul>').bind("selectstart",
|
12
|
+
function(){return false}).appendTo(this.selectedContainer);this.availableList=a('<ul class="available connected-list"><li class="ui-helper-hidden-accessible"></li></ul>').bind("selectstart",function(){return false}).appendTo(this.availableContainer);var d=this;this.container.width(this.element.width()+1);this.selectedContainer.width(Math.floor(this.element.width()*this.options.dividerLocation));this.availableContainer.width(Math.floor(this.element.width()*(1-this.options.dividerLocation)));this.selectedList.height(Math.max(this.element.height()-
|
13
|
+
this.selectedActions.height(),1));this.availableList.height(Math.max(this.element.height()-this.availableActions.height(),1));if(!this.options.animated){this.options.show="show";this.options.hide="hide"}this._populateLists(this.element.find("option"));this.options.sortable&&a("ul.selected").sortable({placeholder:"ui-state-highlight",axis:"y",update:function(){d.selectedList.find("li").each(function(){a(this).data("optionLink")&&a(this).data("optionLink").remove().appendTo(d.element)})},receive:function(e,
|
14
|
+
b){b.item.data("optionLink").attr("selected",true);d.count+=1;d._updateCount();d.selectedList.children(".ui-draggable").each(function(){a(this).removeClass("ui-draggable");a(this).data("optionLink",b.item.data("optionLink"));a(this).data("idx",b.item.data("idx"));d._applyItemState(a(this),true)});setTimeout(function(){b.item.remove()},1)}});this.options.searchable?this._registerSearchEvents(this.availableContainer.find("input.search")):a(".search").hide();a(".remove-all").click(function(){d._populateLists(d.element.find("option").removeAttr("selected"));
|
15
|
+
return false});a(".add-all").click(function(){d._populateLists(d.element.find("option").attr("selected","selected"));return false})},destroy:function(){this.element.show();this.container.remove();a.widget.prototype.destroy.apply(this,arguments)},_populateLists:function(d){this.selectedList.children(".ui-element").remove();this.availableList.children(".ui-element").remove();this.count=0;var e=this;a(d.map(function(b){var f=e._getOptionNode(this).appendTo(this.selected?e.selectedList:e.availableList).show();
|
16
|
+
if(this.selected)e.count+=1;e._applyItemState(f,this.selected);f.data("idx",b);return f[0]}));this._updateCount()},_updateCount:function(){this.selectedContainer.find("span.count").text(this.count+" "+a.ui.multiselect.locale.itemsCount)},_getOptionNode:function(d){d=a(d);var e=a('<li class="ui-state-default ui-element" title="'+d.text()+'"><span class="ui-icon"/>'+d.text()+'<a href="#" class="action"><span class="ui-corner-all ui-icon"/></a></li>').hide();e.data("optionLink",d);return e},_cloneWithData:function(d){var e=
|
17
|
+
d.clone();e.data("optionLink",d.data("optionLink"));e.data("idx",d.data("idx"));return e},_setSelected:function(d,e){d.data("optionLink").attr("selected",e);if(e){e=this._cloneWithData(d);d[this.options.hide](this.options.animated,function(){a(this).remove()});e.appendTo(this.selectedList).hide()[this.options.show](this.options.animated);this._applyItemState(e,true);return e}else{var b=this.availableList.find("li"),f=this.options.nodeComparator;e=null;var g=d.data("idx"),h=f(d,a(b[g]));if(h)for(;g>=
|
18
|
+
0&&g<b.length;){h>0?g++:g--;if(h!=f(d,a(b[g]))){e=b[h>0?g:g+1];break}}else e=b[g];b=this._cloneWithData(d);e?b.insertBefore(a(e)):b.appendTo(this.availableList);d[this.options.hide](this.options.animated,function(){a(this).remove()});b.hide()[this.options.show](this.options.animated);this._applyItemState(b,false);return b}},_applyItemState:function(d,e){if(e){this.options.sortable?d.children("span").addClass("ui-icon-arrowthick-2-n-s").removeClass("ui-helper-hidden").addClass("ui-icon"):d.children("span").removeClass("ui-icon-arrowthick-2-n-s").addClass("ui-helper-hidden").removeClass("ui-icon");
|
19
|
+
d.find("a.action span").addClass("ui-icon-minus").removeClass("ui-icon-plus");this._registerRemoveEvents(d.find("a.action"))}else{d.children("span").removeClass("ui-icon-arrowthick-2-n-s").addClass("ui-helper-hidden").removeClass("ui-icon");d.find("a.action span").addClass("ui-icon-plus").removeClass("ui-icon-minus");this._registerAddEvents(d.find("a.action"))}this._registerHoverEvents(d)},_filter:function(d){var e=a(this),b=d.children("li");d=b.map(function(){return a(this).text().toLowerCase()});
|
20
|
+
var f=a.trim(e.val().toLowerCase()),g=[];if(f){b.hide();d.each(function(h){this.indexOf(f)>-1&&g.push(h)});a.each(g,function(){a(b[this]).show()})}else b.show()},_registerHoverEvents:function(d){d.removeClass("ui-state-hover");d.mouseover(function(){a(this).addClass("ui-state-hover")});d.mouseout(function(){a(this).removeClass("ui-state-hover")})},_registerAddEvents:function(d){var e=this;d.click(function(){e._setSelected(a(this).parent(),true);e.count+=1;e._updateCount();return false}).each(function(){a(this).parent().draggable({connectToSortable:"ul.selected",
|
21
|
+
helper:function(){var b=e._cloneWithData(a(this)).width(a(this).width()-50);b.width(a(this).width());return b},appendTo:".ui-multiselect",containment:".ui-multiselect",revert:"invalid"})})},_registerRemoveEvents:function(d){var e=this;d.click(function(){e._setSelected(a(this).parent(),false);e.count-=1;e._updateCount();return false})},_registerSearchEvents:function(d){var e=this;d.focus(function(){a(this).addClass("ui-state-active")}).blur(function(){a(this).removeClass("ui-state-active")}).keypress(function(b){if(b.keyCode==
|
22
|
+
13)return false}).keyup(function(){e._filter.apply(this,[e.availableList])})}});a.extend(a.ui.multiselect,{defaults:{sortable:true,searchable:true,animated:"fast",show:"slideDown",hide:"slideUp",dividerLocation:0.6,nodeComparator:function(d,e){d=d.text();e=e.text();return d==e?0:d<e?-1:1}},locale:{addAll:"Add all",removeAll:"Remove all",itemsCount:"items selected"}})})(jQuery);
|
1
23
|
(function(a){a.jgrid=a.jgrid||{};a.extend(a.jgrid,{htmlDecode:function(d){if(d==" "||d==" "||d.length==1&&d.charCodeAt(0)==160)return"";return!d?d:String(d).replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<").replace(/"/g,'"')},htmlEncode:function(d){return!d?d:String(d).replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<").replace(/\"/g,""")},format:function(d){var e=a.makeArray(arguments).slice(1);if(d===undefined)d="";return d.replace(/\{(\d+)\}/g,function(b,
|
2
24
|
f){return e[f]})},getCellIndex:function(d){var e=a(d);if(e.is("tr"))return-1;e=(!e.is("td")&&!e.is("th")?e.closest("td,th"):e)[0];if(a.browser.msie)return a.inArray(e,e.parentNode.cells);return d.cellIndex},stripHtml:function(d){d+="";var e=/<("[^"]*"|'[^']*'|[^'">])*>/gi;if(d)return(d=d.replace(e,""))&&d!==" "&&d!==" "?d.replace(/\"/g,"'"):"";else return d},stringToDoc:function(d){var e;if(typeof d!=="string")return d;try{e=(new DOMParser).parseFromString(d,"text/xml")}catch(b){e=new ActiveXObject("Microsoft.XMLDOM");
|
3
|
-
e.async=false;e.loadXML(d)}return e&&e.documentElement&&e.documentElement.tagName!="parsererror"?e:null},parse:function(d){d=d;if(d.substr(0,9)=="while(1);")d=d.substr(9);if(d.substr(0,2)=="/*")d=d.substr(2,d.length-4);d||(d="{}");return a.jgrid.useJSON===true&&typeof JSON==="object"&&typeof JSON.parse==="function"?JSON.parse(d):eval("("+d+")")},
|
4
|
-
a.
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
""
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
c.p.
|
37
|
-
|
38
|
-
|
39
|
-
c.p.
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
c.p.
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
"
|
54
|
-
|
55
|
-
|
56
|
-
this.
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
c.p.
|
73
|
-
if(
|
74
|
-
a(
|
75
|
-
|
76
|
-
|
77
|
-
"
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
"")
|
86
|
-
"
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
"
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
function(
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
else
|
109
|
-
false)}})},
|
25
|
+
e.async=false;e.loadXML(d)}return e&&e.documentElement&&e.documentElement.tagName!="parsererror"?e:null},parse:function(d){d=d;if(d.substr(0,9)=="while(1);")d=d.substr(9);if(d.substr(0,2)=="/*")d=d.substr(2,d.length-4);d||(d="{}");return a.jgrid.useJSON===true&&typeof JSON==="object"&&typeof JSON.parse==="function"?JSON.parse(d):eval("("+d+")")},parseDate:function(d,e){var b={m:1,d:1,y:1970,h:0,i:0,s:0},f,g,h;if(e&&e!==null&&e!==undefined){e=a.trim(e);e=e.split(/[\\\/:_;.\t\T\s-]/);d=d.split(/[\\\/:_;.\t\T\s-]/);
|
26
|
+
var j=a.jgrid.formatter.date.monthNames,c=a.jgrid.formatter.date.AmPm,k=function(l,p){if(l===0){if(p==12)p=0}else if(p!=12)p+=12;return p};f=0;for(g=d.length;f<g;f++){if(d[f]=="M"){h=a.inArray(e[f],j);if(h!==-1&&h<12)e[f]=h+1}if(d[f]=="F"){h=a.inArray(e[f],j);if(h!==-1&&h>11)e[f]=h+1-12}if(d[f]=="a"){h=a.inArray(e[f],c);if(h!==-1&&h<2&&e[f]==c[h]){e[f]=h;b.h=k(e[f],b.h)}}if(d[f]=="A"){h=a.inArray(e[f],c);if(h!==-1&&h>1&&e[f]==c[h]){e[f]=h-2;b.h=k(e[f],b.h)}}if(e[f]!==undefined)b[d[f].toLowerCase()]=
|
27
|
+
parseInt(e[f],10)}b.m=parseInt(b.m,10)-1;d=b.y;if(d>=70&&d<=99)b.y=1900+b.y;else if(d>=0&&d<=69)b.y=2E3+b.y}return new Date(b.y,b.m,b.d,b.h,b.i,b.s,0)},jqID:function(d){d+="";return d.replace(/([\.\:\[\]])/g,"\\$1")},getAccessor:function(d,e){var b,f,g,h;if(typeof e==="function")return e(d);b=d[e];if(b===undefined)try{if(typeof e==="string")g=e.split(".");if(h=g.length)for(b=d;b&&h--;){f=g.shift();b=b[f]}}catch(j){}return b},ajaxOptions:{},from:function(d){return new (function(e,b){if(typeof e=="string")e=
|
28
|
+
a.data(e);var f=this,g=e,h=true,j=false,c=b,k=/[\$,%]/g,l=null,p=null,n=false,r="",q=[],t=true;if(typeof e=="object"&&e.push){if(e.length>0)t=typeof e[0]!="object"?false:true}else throw"data provides is not an array";this._hasData=function(){return g===null?false:g.length===0?false:true};this._getStr=function(m){var o=[];j&&o.push("jQuery.trim(");o.push("String("+m+")");j&&o.push(")");h||o.push(".toLowerCase()");return o.join("")};this._strComp=function(m){return typeof m=="string"?".toString()":
|
29
|
+
""};this._group=function(m,o){return{field:m.toString(),unique:o,items:[]}};this._toStr=function(m){if(j)m=a.trim(m);h||(m=m.toLowerCase());return m=m.toString().replace(new RegExp('\\"',"g"),'\\"')};this._funcLoop=function(m){var o=[];a.each(g,function(u,y){o.push(m(y))});return o};this._append=function(m){if(c===null)c="";else c+=r==""?" && ":r;if(n)c+="!";c+="("+m+")";n=false;r=""};this._setCommand=function(m,o){l=m;p=o};this._resetNegate=function(){n=false};this._repeatCommand=function(m,o){if(l===
|
30
|
+
null)return f;if(m!=null&&o!=null)return l(m,o);if(p===null)return l(m);if(!t)return l(m);return l(p,m)};this._equals=function(m,o){return f._compare(m,o,1)===0};this._compare=function(m,o,u){if(u===undefined)u=1;if(m===undefined)m=null;if(o===undefined)o=null;if(m===null&&o===null)return 0;if(m===null&&o!==null)return 1;if(m!==null&&o===null)return-1;if(!h){m=m.toLowerCase();o=o.toLowerCase()}if(m<o)return-u;if(m>o)return u;return 0};this._performSort=function(){if(q.length!==0)g=f._doSort(g,0)};
|
31
|
+
this._doSort=function(m,o){var u=q[o].by,y=q[o].dir,A=q[o].type,B=q[o].datefmt;if(o==q.length-1)return f._getOrder(m,u,y,A,B);o++;m=f._getGroup(m,u,y,A,B);u=[];for(y=0;y<m.length;y++){A=f._doSort(m[y].items,o);for(B=0;B<A.length;B++)u.push(A[B])}return u};this._getOrder=function(m,o,u,y,A){var B=[],I=[],v=u=="a"?1:-1,z,H;if(y===undefined)y="text";H=y=="float"||y=="number"||y=="currency"||y=="numeric"?function(Q){Q=parseFloat(String(Q).replace(k,""));return isNaN(Q)?0:Q}:y=="int"||y=="integer"?function(Q){return Q?
|
32
|
+
parseFloat(String(Q).replace(k,"")):0}:y=="date"||y=="datetime"?function(Q){return a.jgrid.parseDate(A,Q).getTime()}:function(Q){Q||(Q="");return a.trim(Q.toUpperCase())};a.each(m,function(Q,O){z=a.jgrid.getAccessor(O,o);if(z===undefined)z="";z=H(z);I.push({vSort:z,index:Q})});I.sort(function(Q,O){Q=Q.vSort;O=O.vSort;return f._compare(Q,O,v)});y=0;for(var K=m.length;y<K;){u=I[y].index;B.push(m[u]);y++}return B};this._getGroup=function(m,o,u,y,A){var B=[],I=null,v=null,z;a.each(f._getOrder(m,o,u,y,
|
33
|
+
A),function(H,K){z=a.jgrid.getAccessor(K,o);if(z===undefined)z="";if(!f._equals(v,z)){v=z;I!=null&&B.push(I);I=f._group(o,z)}I.items.push(K)});I!=null&&B.push(I);return B};this.ignoreCase=function(){h=false;return f};this.useCase=function(){h=true;return f};this.trim=function(){j=true;return f};this.noTrim=function(){j=false;return f};this.combine=function(m){var o=a.from(g);h||o.ignoreCase();j&&o.trim();result=m(o).showQuery();f._append(result);return f};this.execute=function(){var m=c,o=[];if(m===
|
34
|
+
null)return f;a.each(g,function(u,y){eval(m)&&o.push(y)});g=o;return f};this.data=function(){return g};this.select=function(m){f._performSort();if(!f._hasData())return[];f.execute();if(a.isFunction(m)){var o=[];a.each(g,function(u,y){o.push(m(y))});return o}return g};this.hasMatch=function(){if(!f._hasData())return false;f.execute();return g.length>0};this.showQuery=function(m){var o=c;if(o===null)o="no query found";if(a.isFunction(m)){m(o);return f}return o};this.andNot=function(m,o,u){n=!n;return f.and(m,
|
35
|
+
o,u)};this.orNot=function(m,o,u){n=!n;return f.or(m,o,u)};this.not=function(m,o,u){return f.andNot(m,o,u)};this.and=function(m,o,u){r=" && ";if(m===undefined)return f;return f._repeatCommand(m,o,u)};this.or=function(m,o,u){r=" || ";if(m===undefined)return f;return f._repeatCommand(m,o,u)};this.isNot=function(m){n=!n;return f.is(m)};this.is=function(m){f._append("rec."+m);f._resetNegate();return f};this._compareValues=function(m,o,u,y,A){var B;B=t?"rec."+o:"rec";if(u===undefined)u=null;u=u===null?
|
36
|
+
o:u;switch(A.stype===undefined?"text":A.stype){case "int":case "integer":u=isNaN(Number(u))?"0":u;B="parseInt("+B+",10)";u="parseInt("+u+",10)";break;case "float":case "number":case "numeric":u=String(u).replace(k,"");u=isNaN(Number(u))?"0":u;B="parseFloat("+B+")";u="parseFloat("+u+")";break;case "date":case "datetime":u=String(a.jgrid.parseDate(A.newfmt||"Y-m-d",u).getTime());B='jQuery.jgrid.parseDate("'+A.srcfmt+'",'+B+").getTime()";break;default:B=f._getStr(B);u=f._getStr('"'+f._toStr(u)+'"')}f._append(B+
|
37
|
+
" "+y+" "+u);f._setCommand(m,o);f._resetNegate();return f};this.equals=function(m,o,u){return f._compareValues(f.equals,m,o,"==",u)};this.greater=function(m,o,u){return f._compareValues(f.greater,m,o,">",u)};this.less=function(m,o,u){return f._compareValues(f.less,m,o,"<",u)};this.greaterOrEquals=function(m,o,u){return f._compareValues(f.greaterOrEquals,m,o,">=",u)};this.lessOrEquals=function(m,o,u){return f._compareValues(f.lessOrEquals,m,o,"<=",u)};this.startsWith=function(m,o){var u=o===undefined||
|
38
|
+
o===null?m:o;u=j?a.trim(u.toString()).length:u.toString().length;if(t)f._append(f._getStr("rec."+m)+".substr(0,"+u+") == "+f._getStr('"'+f._toStr(o)+'"'));else{u=j?a.trim(o.toString()).length:o.toString().length;f._append(f._getStr("rec")+".substr(0,"+u+") == "+f._getStr('"'+f._toStr(m)+'"'))}f._setCommand(f.startsWith,m);f._resetNegate();return f};this.endsWith=function(m,o){var u=o===undefined||o===null?m:o;u=j?a.trim(u.toString()).length:u.toString().length;t?f._append(f._getStr("rec."+m)+".substr("+
|
39
|
+
f._getStr("rec."+m)+".length-"+u+","+u+') == "'+f._toStr(o)+'"'):f._append(f._getStr("rec")+".substr("+f._getStr("rec")+'.length-"'+f._toStr(m)+'".length,"'+f._toStr(m)+'".length) == "'+f._toStr(m)+'"');f._setCommand(f.endsWith,m);f._resetNegate();return f};this.contains=function(m,o){t?f._append(f._getStr("rec."+m)+'.indexOf("'+f._toStr(o)+'",0) > -1'):f._append(f._getStr("rec")+'.indexOf("'+f._toStr(m)+'",0) > -1');f._setCommand(f.contains,m);f._resetNegate();return f};this.where=function(m){if(a.isFunction(m)){f.execute();
|
40
|
+
var o=[];a.each(g,function(u,y){m(y)&&o.push(y)});return a.from(o,f.showQuery())}f._append(m);f._setCommand(this.where,null);f._resetNegate();return f};this.groupBy=function(m,o,u,y){if(!f._hasData())return null;return f._getGroup(g,m,o,u,y)};this.distinct=function(m,o){m=f.groupBy(m,o);var u=[];a.each(m,function(y,A){u.push(A.unique)});return u};this.orderBy=function(m,o,u,y){o=o===undefined||o===null?"a":a.trim(o.toString().toLowerCase());if(u===null||u===undefined)u="text";if(y===null||y===undefined)y=
|
41
|
+
"Y-m-d";if(o=="desc"||o=="descending")o="d";if(o=="asc"||o=="ascending")o="a";q.push({by:m,dir:o,type:u,datefmt:y});return f};return f})(d,null)},extend:function(d){a.extend(a.fn.jqGrid,d);this.no_legacy_api||a.fn.extend(d)}});a.fn.jqGrid=function(d){if(typeof d=="string"){var e=a.fn.jqGrid[d];if(!e)throw"jqGrid - No such method: "+d;var b=a.makeArray(arguments).slice(1);return e.apply(this,b)}return this.each(function(){if(!this.grid){var f=a.extend(true,{url:"",height:150,page:1,rowNum:20,rowTotal:null,
|
42
|
+
records:0,pager:"",pgbuttons:true,pginput:true,colModel:[],rowList:[],colNames:[],sortorder:"asc",sortname:"",datatype:"xml",mtype:"GET",altRows:false,selarrrow:[],savedRow:[],shrinkToFit:true,xmlReader:{},jsonReader:{},subGrid:false,subGridModel:[],reccount:0,lastpage:0,lastsort:0,selrow:null,beforeSelectRow:null,onSelectRow:null,onSortCol:null,ondblClickRow:null,onRightClickRow:null,onPaging:null,onSelectAll:null,loadComplete:null,gridComplete:null,loadError:null,loadBeforeSend:null,afterInsertRow:null,
|
43
|
+
beforeRequest:null,onHeaderClick:null,viewrecords:false,loadonce:false,multiselect:false,multikey:false,editurl:null,search:false,caption:"",hidegrid:true,hiddengrid:false,postData:{},userData:{},treeGrid:false,treeGridModel:"nested",treeReader:{},treeANode:-1,ExpandColumn:null,tree_root_level:0,prmNames:{page:"page",rows:"rows",sort:"sidx",order:"sord",search:"_search",nd:"nd",id:"id",oper:"oper",editoper:"edit",addoper:"add",deloper:"del",subgridid:"id",npage:null,totalrows:"totalrows"},forceFit:false,
|
44
|
+
gridstate:"visible",cellEdit:false,cellsubmit:"remote",nv:0,loadui:"enable",toolbar:[false,""],scroll:false,multiboxonly:false,deselectAfterSort:true,scrollrows:false,autowidth:false,scrollOffset:18,cellLayout:5,subGridWidth:20,multiselectWidth:20,gridview:false,rownumWidth:25,rownumbers:false,pagerpos:"center",recordpos:"right",footerrow:false,userDataOnFooter:false,hoverrows:true,altclass:"ui-priority-secondary",viewsortcols:[false,"vertical",true],resizeclass:"",autoencode:false,remapColumns:[],
|
45
|
+
ajaxGridOptions:{},direction:"ltr",toppager:false,headertitles:false,scrollTimeout:200,data:[],_index:{}},a.jgrid.defaults,d||{}),g={headers:[],cols:[],footers:[],dragStart:function(s,w,x){this.resizing={idx:s,startX:w.clientX,sOL:x[0]};this.hDiv.style.cursor="col-resize";this.curGbox=a("#rs_m"+f.id,"#gbox_"+f.id);this.curGbox.css({display:"block",left:x[0],top:x[1],height:x[2]});a.isFunction(f.resizeStart)&&f.resizeStart.call(this,w,s);document.onselectstart=function(){return false}},dragMove:function(s){if(this.resizing){var w=
|
46
|
+
s.clientX-this.resizing.startX;s=this.headers[this.resizing.idx];var x=f.direction==="ltr"?s.width+w:s.width-w,D;if(x>33){this.curGbox.css({left:this.resizing.sOL+w});if(f.forceFit===true){D=this.headers[this.resizing.idx+f.nv];w=f.direction==="ltr"?D.width-w:D.width+w;if(w>33){s.newWidth=x;D.newWidth=w}}else{this.newWidth=f.direction==="ltr"?f.tblwidth+w:f.tblwidth-w;s.newWidth=x}}}},dragEnd:function(){this.hDiv.style.cursor="default";if(this.resizing){var s=this.resizing.idx,w=this.headers[s].newWidth||
|
47
|
+
this.headers[s].width;w=parseInt(w,10);this.resizing=false;a("#rs_m"+f.id).css("display","none");f.colModel[s].width=w;this.headers[s].width=w;this.headers[s].el.style.width=w+"px";if(this.cols.length>0)this.cols[s].style.width=w+"px";if(this.footers.length>0)this.footers[s].style.width=w+"px";if(f.forceFit===true){w=this.headers[s+f.nv].newWidth||this.headers[s+f.nv].width;this.headers[s+f.nv].width=w;this.headers[s+f.nv].el.style.width=w+"px";if(this.cols.length>0)this.cols[s+f.nv].style.width=
|
48
|
+
w+"px";if(this.footers.length>0)this.footers[s+f.nv].style.width=w+"px";f.colModel[s+f.nv].width=w}else{f.tblwidth=this.newWidth||f.tblwidth;a("table:first",this.bDiv).css("width",f.tblwidth+"px");a("table:first",this.hDiv).css("width",f.tblwidth+"px");this.hDiv.scrollLeft=this.bDiv.scrollLeft;if(f.footerrow){a("table:first",this.sDiv).css("width",f.tblwidth+"px");this.sDiv.scrollLeft=this.bDiv.scrollLeft}}a.isFunction(f.resizeStop)&&f.resizeStop.call(this,w,s)}this.curGbox=null;document.onselectstart=
|
49
|
+
function(){return true}},populateVisible:function(){g.timer&&clearTimeout(g.timer);g.timer=null;var s=a(g.bDiv).height();if(s){var w=a("table:first",g.bDiv),x=a("> tbody > tr:visible:first",w).outerHeight()||g.prevRowHeight;if(x){g.prevRowHeight=x;var D=f.rowNum,C=g.scrollTop=g.bDiv.scrollTop,L=Math.round(w.position().top)-C,G=L+w.height();x=x*D;var U,R,P;if(G<s&&L<=0&&(f.lastpage===undefined||parseInt((G+C+x-1)/x,10)<=f.lastpage)){R=parseInt((s-G+x-1)/x,10);if(G>=0||R<2||f.scroll===true){U=Math.round((G+
|
50
|
+
C)/x)+1;L=-1}else L=1}if(L>0){U=parseInt(C/x,10)+1;R=parseInt((C+s)/x,10)+2-U;P=true}if(R)if(!(f.lastpage&&U>f.lastpage))if(g.hDiv.loading)g.timer=setTimeout(g.populateVisible,f.scrollTimeout);else{f.page=U;if(P){g.selectionPreserver(w[0]);g.emptyRows(g.bDiv,false)}g.populate(R)}}}},scrollGrid:function(){if(f.scroll){var s=g.bDiv.scrollTop;if(g.scrollTop===undefined)g.scrollTop=0;if(s!=g.scrollTop){g.scrollTop=s;g.timer&&clearTimeout(g.timer);g.timer=setTimeout(g.populateVisible,f.scrollTimeout)}}g.hDiv.scrollLeft=
|
51
|
+
g.bDiv.scrollLeft;if(f.footerrow)g.sDiv.scrollLeft=g.bDiv.scrollLeft},selectionPreserver:function(s){var w=s.p,x=w.selrow,D=w.selarrrow?a.makeArray(w.selarrrow):null,C=s.grid.bDiv.scrollLeft,L=w.gridComplete;w.gridComplete=function(){w.selrow=null;w.selarrrow=[];if(w.multiselect&&D&&D.length>0)for(var G=0;G<D.length;G++)D[G]!=x&&a(s).jqGrid("setSelection",D[G],false);x&&a(s).jqGrid("setSelection",x,false);s.grid.bDiv.scrollLeft=C;w.gridComplete=L;w.gridComplete&&L()}}};this.p=f;var h,j,c;if(this.p.colNames.length===
|
52
|
+
0)for(h=0;h<this.p.colModel.length;h++)this.p.colNames[h]=this.p.colModel[h].label||this.p.colModel[h].name;if(this.p.colNames.length!==this.p.colModel.length)alert(a.jgrid.errors.model);else{var k=a("<div class='ui-jqgrid-view'></div>"),l,p=a.browser.msie?true:false,n=a.browser.safari?true:false;c=this;c.p.direction=a.trim(c.p.direction.toLowerCase());if(a.inArray(c.p.direction,["ltr","rtl"])==-1)c.p.direction="ltr";j=c.p.direction;a(k).insertBefore(this);a(this).appendTo(k).removeClass("scroll");
|
53
|
+
var r=a("<div class='ui-jqgrid ui-widget ui-widget-content ui-corner-all'></div>");a(r).insertBefore(k).attr({id:"gbox_"+this.id,dir:j});a(k).appendTo(r).attr("id","gview_"+this.id);l=p&&a.browser.version<=6?'<iframe style="display:block;position:absolute;z-index:-1;filter:Alpha(Opacity=\'0\');" src="javascript:false;"></iframe>':"";a("<div class='ui-widget-overlay jqgrid-overlay' id='lui_"+this.id+"'></div>").append(l).insertBefore(k);a("<div class='loading ui-state-default ui-state-active' id='load_"+
|
54
|
+
this.id+"'>"+this.p.loadtext+"</div>").insertBefore(k);a(this).attr({cellSpacing:"0",cellPadding:"0",border:"0",role:"grid","aria-multiselectable":!!this.p.multiselect,"aria-labelledby":"gbox_"+this.id});var q=function(s,w){s=parseInt(s,10);return isNaN(s)?w?w:0:s},t=function(s,w,x){var D=c.p.colModel[s],C=D.align,L='style="',G=D.classes,U=D.name;if(C)L+="text-align:"+C+";";if(D.hidden===true)L+="display:none;";if(w===0)L+="width: "+g.headers[s].width+"px;";L+='"'+(G!==undefined?' class="'+G+'"':
|
55
|
+
"")+(D.title&&x?' title="'+a.jgrid.stripHtml(x)+'"':"");L+=' aria-describedby="'+c.p.id+"_"+U+'"';return L},m=function(s){return s===undefined||s===null||s===""?" ":c.p.autoencode?a.jgrid.htmlEncode(s):s+""},o=function(s,w,x,D,C){x=c.p.colModel[x];if(typeof x.formatter!=="undefined"){s={rowId:s,colModel:x,gid:c.p.id};w=a.isFunction(x.formatter)?x.formatter.call(c,w,s,D,C):a.fmatter?a.fn.fmatter(x.formatter,w,s,D,C):m(w)}else w=m(w);return w},u=function(s,w,x,D,C){s=o(s,w,x,C,"add");return'<td role="gridcell" '+
|
56
|
+
t(x,D,s)+">"+s+"</td>"},y=function(s,w,x){s='<input role="checkbox" type="checkbox" id="jqg_'+s+'" class="cbox" name="jqg_'+s+'"/>';w=t(w,x,"");return'<td role="gridcell" aria-describedby="'+c.p.id+'_cb" '+w+">"+s+"</td>"},A=function(s,w,x,D){x=(parseInt(x,10)-1)*parseInt(D,10)+1+w;s=t(s,w,"");return'<td role="gridcell" aria-describedby="'+c.p.id+'_rn" class="ui-state-default jqgrid-rownum" '+s+">"+x+"</td>"},B=function(s){var w,x=[],D=0,C;for(C=0;C<c.p.colModel.length;C++){w=c.p.colModel[C];if(w.name!==
|
57
|
+
"cb"&&w.name!=="subgrid"&&w.name!=="rn"){x[D]=s=="xml"?w.xmlmap||w.name:w.jsonmap||w.name;D++}}return x},I=function(s){var w=c.p.remapColumns;if(!w||!w.length)w=a.map(c.p.colModel,function(x,D){return D});if(s)w=a.map(w,function(x){return x<s?null:x-s});return w},v=function(s,w){c.p.deepempty?a("tbody:first tr",s).remove():a("tbody:first",s).empty();if(w&&c.p.scroll){a(">div:first",s).css({height:"auto"}).children("div:first").css({height:0,display:"none"});s.scrollTop=0}},z=function(s,w,x,D,C){var L=
|
58
|
+
new Date,G=c.p.datatype!="local"&&c.p.loadonce,U;if(G){c.p.data=[];c.p._index={};c.p.localReader.id=U="_id_"}c.p.reccount=0;if(a.isXMLDoc(s)){if(c.p.treeANode===-1&&!c.p.scroll){v(w,false);x=0}else x=x>0?x:0;var R,P=0,J,V,Z=0,S=0,ga=0,ia,ra,na=[],wa,pa={},sa=c.rows.length,la,ma,ua=[],ha=0,Ja=c.p.altRows===true?" "+c.p.altclass:"";c.p.xmlReader.repeatitems||(na=B("xml"));ia=c.p.keyIndex===false?c.p.xmlReader.id:c.p.keyIndex;if(na.length>0&&!isNaN(ia)){if(c.p.remapColumns&&c.p.remapColumns.length)ia=
|
59
|
+
a.inArray(ia,c.p.remapColumns);ia=na[ia]}ra=(ia+"").indexOf("[")===-1?na.length?function(Da,xa){return a(ia,Da).text()||xa}:function(Da,xa){return a(c.p.xmlReader.cell,Da).eq(ia).text()||xa}:function(Da,xa){return Da.getAttribute(ia.replace(/[\[\]]/g,""))||xa};c.p.userData={};a(c.p.xmlReader.page,s).each(function(){c.p.page=this.textContent||this.text||0});a(c.p.xmlReader.total,s).each(function(){c.p.lastpage=this.textContent||this.text;if(c.p.lastpage===undefined)c.p.lastpage=1});a(c.p.xmlReader.records,
|
60
|
+
s).each(function(){c.p.records=this.textContent||this.text||0});a(c.p.xmlReader.userdata,s).each(function(){c.p.userData[this.getAttribute("name")]=this.textContent||this.text});s=a(c.p.xmlReader.root+" "+c.p.xmlReader.row,s);var Ba=s.length,va=0;if(s&&Ba){var Ha=parseInt(c.p.rowNum,10),Ka=c.p.scroll?(parseInt(c.p.page,10)-1)*Ha+1:1;if(C)Ha*=C+1;for(C=a.isFunction(c.p.afterInsertRow);va<Ba;){la=s[va];ma=ra(la,Ka+va);R=x===0?0:x+1;R=(R+va)%2==1?Ja:"";ua[ha++]='<tr id="'+ma+'" role="row" class ="ui-widget-content jqgrow ui-row-'+
|
61
|
+
c.p.direction+""+R+'">';if(c.p.rownumbers===true){ua[ha++]=A(0,va,c.p.page,c.p.rowNum);ga=1}if(c.p.multiselect===true){ua[ha++]=y(ma,ga,va);Z=1}if(c.p.subGrid===true){ua[ha++]=a(c).jqGrid("addSubGridCell",Z+ga,va+x);S=1}if(c.p.xmlReader.repeatitems){wa||(wa=I(Z+S+ga));var Ia=a(c.p.xmlReader.cell,la);a.each(wa,function(Da){var xa=Ia[this];if(!xa)return false;J=xa.textContent||xa.text;pa[c.p.colModel[Da+Z+S+ga].name]=J;ua[ha++]=u(ma,J,Da+Z+S+ga,va+x,la)})}else for(R=0;R<na.length;R++){J=a(na[R],la).text();
|
62
|
+
pa[c.p.colModel[R+Z+S+ga].name]=J;ua[ha++]=u(ma,J,R+Z+S+ga,va+x,la)}ua[ha++]="</tr>";if(G){pa[U]=ma;c.p.data.push(pa)}if(c.p.gridview===false){if(c.p.treeGrid===true){R=c.p.treeANode>=-1?c.p.treeANode:0;V=a(ua.join(""))[0];sa===0?a("tbody:first",w).append(V):a(c.rows[va+R+x]).after(V);try{a(c).jqGrid("setTreeNode",pa,V)}catch(La){}}else a("tbody:first",w).append(ua.join(""));if(c.p.subGrid===true)try{a(c).jqGrid("addSubGrid",c.rows[c.rows.length-1],Z+ga)}catch(Ma){}C&&c.p.afterInsertRow.call(c,ma,
|
63
|
+
pa,la);ua=[];ha=0}pa={};P++;va++;if(P==Ha)break}}c.p.gridview===true&&a("tbody:first",w).append(ua.join(""));c.p.totaltime=new Date-L;if(P>0){c.grid.cols=c.rows[0].cells;if(c.p.records===0)c.p.records=Ba}ua=null;if(!c.p.treeGrid&&!c.p.scroll)c.grid.bDiv.scrollTop=0;c.p.reccount=P;c.p.treeANode=-1;c.p.userDataOnFooter&&a(c).jqGrid("footerData","set",c.p.userData,true);if(G){c.p.records=Ba;c.p.lastpage=Math.ceil(Ba/Ha)}D||Q(false,true);if(G){for(;P<Ba;){la=s[P];ma=ra(la,P);if(c.p.xmlReader.repeatitems){wa||
|
64
|
+
(wa=I(Z+S+ga));Ia=a(c.p.xmlReader.cell,la);a.each(wa,function(Da){var xa=Ia[this];if(!xa)return false;J=xa.textContent||xa.text;pa[c.p.colModel[Da+Z+S+ga].name]=J})}else for(R=0;R<na.length;R++){J=a(na[R],la).text();pa[c.p.colModel[R+Z+S+ga].name]=J}pa[U]=ma;c.p.data.push(pa);pa={};P++}T()}}},H=function(s,w,x,D,C){var L=new Date;if(s){if(c.p.treeANode===-1&&!c.p.scroll){v(w,false);x=0}else x=x>0?x:0;var G=c.p.datatype=="local"?c.p.localReader:c.p.jsonReader,U,R=c.p.datatype!="local"&&c.p.loadonce;
|
65
|
+
if(R){c.p.data=[];c.p._index={};U=c.p.localReader.id="_id_"}var P=c.p.reccount=0,J,V,Z,S=[],ga,ia=0,ra=0,na=0,wa,pa,sa,la={},ma,ua=c.rows.length,ha;Z=[];ma=0;var Ja=c.p.altRows===true?" "+c.p.altclass:"";c.p.page=a.jgrid.getAccessor(s,G.page)||0;sa=a.jgrid.getAccessor(s,G.total);c.p.lastpage=sa===undefined?1:sa;c.p.records=a.jgrid.getAccessor(s,G.records)||0;c.p.userData=a.jgrid.getAccessor(s,G.userdata)||{};G.repeatitems||(ga=S=B("json"));sa=c.p.keyIndex===false?G.id:c.p.keyIndex;if(S.length>0&&
|
66
|
+
!isNaN(sa)){if(c.p.remapColumns&&c.p.remapColumns.length)sa=a.inArray(sa,c.p.remapColumns);sa=S[sa]}if(pa=a.jgrid.getAccessor(s,G.root)){wa=pa.length;s=0;var Ba=parseInt(c.p.rowNum,10),va=c.p.scroll?(parseInt(c.p.page,10)-1)*Ba+1:1;if(C)Ba*=C+1;for(var Ha=a.isFunction(c.p.afterInsertRow);s<wa;){C=pa[s];ha=a.jgrid.getAccessor(C,sa);if(ha===undefined){ha=va+s;if(S.length===0)if(G.cell){J=C[G.cell];ha=J[sa]||ha}}J=x===0?0:x+1;J=(J+s)%2==1?Ja:"";Z[ma++]='<tr id="'+ha+'" role="row" class= "ui-widget-content jqgrow ui-row-'+
|
67
|
+
c.p.direction+""+J+'">';if(c.p.rownumbers===true){Z[ma++]=A(0,s,c.p.page,c.p.rowNum);na=1}if(c.p.multiselect){Z[ma++]=y(ha,na,s);ia=1}if(c.p.subGrid){Z[ma++]=a(c).jqGrid("addSubGridCell",ia+na,s+x);ra=1}if(G.repeatitems){if(G.cell)C=a.jgrid.getAccessor(C,G.cell);ga||(ga=I(ia+ra+na))}for(V=0;V<ga.length;V++){J=a.jgrid.getAccessor(C,ga[V]);Z[ma++]=u(ha,J,V+ia+ra+na,s+x,C);la[c.p.colModel[V+ia+ra+na].name]=J}Z[ma++]="</tr>";if(R){la[U]=ha;c.p.data.push(la)}if(c.p.gridview===false){if(c.p.treeGrid===
|
68
|
+
true){ma=c.p.treeANode>=-1?c.p.treeANode:0;Z=a(Z.join(""))[0];ua===0?a("tbody:first",w).append(Z):a(c.rows[s+ma+x]).after(Z);try{a(c).jqGrid("setTreeNode",la,Z)}catch(Ka){}}else a("tbody:first",w).append(Z.join(""));if(c.p.subGrid===true)try{a(c).jqGrid("addSubGrid",c.rows[c.rows.length-1],ia+na)}catch(Ia){}Ha&&c.p.afterInsertRow.call(c,ha,la,C);Z=[];ma=0}la={};P++;s++;if(P==Ba)break}c.p.gridview===true&&a("tbody:first",w).append(Z.join(""));c.p.totaltime=new Date-L;if(P>0){c.grid.cols=c.rows[0].cells;
|
69
|
+
if(c.p.records===0)c.p.records=wa}}if(!c.p.treeGrid&&!c.p.scroll)c.grid.bDiv.scrollTop=0;c.p.reccount=P;c.p.treeANode=-1;c.p.userDataOnFooter&&a(c).jqGrid("footerData","set",c.p.userData,true);if(R){c.p.records=wa;c.p.lastpage=Math.ceil(wa/Ba)}D||Q(false,true);if(R){for(;P<wa;){C=pa[P];ha=a.jgrid.getAccessor(C,sa);if(ha===undefined){ha=va+P;if(S.length===0)if(G.cell){J=C[G.cell];ha=J[sa]||ha}}if(C){if(G.repeatitems){if(G.cell)C=a.jgrid.getAccessor(C,G.cell);ga||(ga=I(ia+ra+na))}for(V=0;V<ga.length;V++){J=
|
70
|
+
a.jgrid.getAccessor(C,ga[V]);la[c.p.colModel[V+ia+ra+na].name]=J}la[U]=ha;c.p.data.push(la);la={}}P++}T()}}},K=function(){var s,w=false,x=[],D,C;if(c.p.data.length){a.each(c.p.colModel,function(){sorttype=this.sorttype||"text";if(sorttype=="date"||sorttype=="datetime"){if(this.formatter&&typeof this.formatter==="string"&&this.formatter=="date"){D=this.formatoptions&&this.formatoptions.srcformat?this.formatoptions.srcformat:a.jgrid.formatter.date.srcformat;C=this.formatoptions&&this.formatoptions.newformat?
|
71
|
+
this.formatoptions.newformat:a.jgrid.formatter.date.newformat}else D=C=this.datefmt||"Y-m-d";x[this.name]={stype:sorttype,srcfmt:D,newfmt:C}}else x[this.name]={stype:sorttype,srcfmt:"",newfmt:""};if(!w&&(this.index==c.p.sortname||this.name==c.p.sortname)){s=this.name;w=true}});if(c.p.treeGrid)a(c).jqGrid("SortTree",c.p.sortname,c.p.sortorder,x[s].stype,x[s].srcformat);else{var L={eq:function(S){return S.equals},ne:function(S){return S.not().equals},lt:function(S){return S.less},le:function(S){return S.lessOrEquals},
|
72
|
+
gt:function(S){return S.greater},ge:function(S){return S.greaterOrEquals},cn:function(S){return S.contains},nc:function(S){return S.not().contains},bw:function(S){return S.startsWith},bn:function(S){return S.not().startsWith},en:function(S){return S.not().endsWith},ew:function(S){return S.endsWith},ni:function(S){return S.not().equals},"in":function(S){return S.equals}},G=a.jgrid.from(c.p.data);if(c.p.search===true){var U=c.p.postData.filters;if(U){if(typeof U=="string")U=a.jgrid.parse(U);for(var R=
|
73
|
+
0,P=U.rules.length,J;R<P;R++){J=U.rules[R];var V=U.groupOp;if(L[J.op]&&J.field&&J.data&&V)G=V.toUpperCase()=="OR"?L[J.op](G)(J.field,J.data,x[J.field]).or():L[J.op](G)(J.field,J.data,x[J.field])}}else try{G=L[c.p.postData.searchOper](G)(c.p.postData.searchField,c.p.postData.searchString,x[c.p.postData.searchField])}catch(Z){}}if(c.p.sortname&&c.p.sortorder)c.p.sortorder.toUpperCase()=="DESC"?G.orderBy(c.p.sortname,"d",x[s].stype,x[s].srcformat):G.orderBy(c.p.sortname,"a",x[s].stype,x[s].srcformat);
|
74
|
+
L=G.select();G=parseInt(c.p.rowNum,10);U=L.length;R=parseInt(c.p.page,10);P=Math.ceil(U/G);J={};L=L.slice((R-1)*G,R*G);x=G=null;J[c.p.localReader.total]=P;J[c.p.localReader.page]=R;J[c.p.localReader.records]=U;J[c.p.localReader.root]=L;L=null;return J}}},Q=function(s,w){var x,D,C,L,G,U,R,P="";C=parseInt(c.p.page,10)-1;if(C<0)C=0;C*=parseInt(c.p.rowNum,10);G=C+c.p.reccount;if(c.p.scroll){x=a("tbody:first > tr",c.grid.bDiv);C=G-x.length;c.p.reccount=x.length;if(D=x.outerHeight()){x=C*D;D=parseInt(c.p.records,
|
75
|
+
10)*D;a(">div:first",c.grid.bDiv).css({height:D}).children("div:first").css({height:x,display:x?"":"none"})}c.grid.bDiv.scrollLeft=c.grid.hDiv.scrollLeft}P=c.p.pager?c.p.pager:"";P+=c.p.toppager?P?","+c.p.toppager:c.p.toppager:"";if(P){R=a.jgrid.formatter.integer||{};x=q(c.p.page);D=q(c.p.lastpage);a(".selbox",P).attr("disabled",false);if(c.p.pginput===true){a(".ui-pg-input",P).val(c.p.page);a("#sp_1",P).html(a.fmatter?a.fmatter.util.NumberFormat(c.p.lastpage,R):c.p.lastpage)}if(c.p.viewrecords)if(c.p.reccount===
|
76
|
+
0)a(".ui-paging-info",P).html(c.p.emptyrecords);else{L=C+1;U=c.p.records;if(a.fmatter){L=a.fmatter.util.NumberFormat(L,R);G=a.fmatter.util.NumberFormat(G,R);U=a.fmatter.util.NumberFormat(U,R)}a(".ui-paging-info",P).html(a.jgrid.format(c.p.recordtext,L,G,U))}if(c.p.pgbuttons===true){if(x<=0)x=D=0;if(x==1||x===0){a("#first, #prev",c.p.pager).addClass("ui-state-disabled").removeClass("ui-state-hover");c.p.toppager&&a("#first_t, #prev_t",c.p.toppager).addClass("ui-state-disabled").removeClass("ui-state-hover")}else{a("#first, #prev",
|
77
|
+
c.p.pager).removeClass("ui-state-disabled");c.p.toppager&&a("#first_t, #prev_t",c.p.toppager).removeClass("ui-state-disabled")}if(x==D||x===0){a("#next, #last",c.p.pager).addClass("ui-state-disabled").removeClass("ui-state-hover");c.p.toppager&&a("#next_t, #last_t",c.p.toppager).addClass("ui-state-disabled").removeClass("ui-state-hover")}else{a("#next, #last",c.p.pager).removeClass("ui-state-disabled");c.p.toppager&&a("#next_t, #last_t",c.p.toppager).removeClass("ui-state-disabled")}}}s===true&&c.p.rownumbers===
|
78
|
+
true&&a("td.jqgrid-rownum",c.rows).each(function(J){a(this).html(C+1+J)});w&&c.p.jqgdnd&&a(c).jqGrid("gridDnD","updateDnD");a.isFunction(c.p.gridComplete)&&c.p.gridComplete.call(c)},O=function(s){if(!c.grid.hDiv.loading){var w=c.p.scroll&&s===false,x={},D,C=c.p.prmNames;if(c.p.page<=0)c.p.page=1;if(C.search!==null)x[C.search]=c.p.search;if(C.nd!==null)x[C.nd]=(new Date).getTime();if(C.rows!==null)x[C.rows]=c.p.rowNum;if(C.page!==null)x[C.page]=c.p.page;if(C.sort!==null)x[C.sort]=c.p.sortname;if(C.order!==
|
79
|
+
null)x[C.order]=c.p.sortorder;if(c.p.rowTotal!==null&&C.totalrows!==null)x[C.totalrows]=c.p.rowTotal;var L=c.p.loadComplete,G=a.isFunction(L);G||(L=null);var U=0;s=s||1;if(s>1)if(C.npage!==null){x[C.npage]=s;U=s-1;s=1}else L=function(P){c.p.page++;c.grid.hDiv.loading=false;G&&c.p.loadComplete.call(c,P);O(s-1)};else C.npage!==null&&delete c.p.postData[C.npage];a.extend(c.p.postData,x);var R=!c.p.scroll?0:c.rows.length-1;if(a.isFunction(c.p.datatype))c.p.datatype.call(c,c.p.postData,"load_"+c.p.id);
|
80
|
+
else{a.isFunction(c.p.beforeRequest)&&c.p.beforeRequest.call(c);D=c.p.datatype.toLowerCase();switch(D){case "json":case "jsonp":case "xml":case "script":a.ajax(a.extend({url:c.p.url,type:c.p.mtype,dataType:D,data:a.isFunction(c.p.serializeGridData)?c.p.serializeGridData.call(c,c.p.postData):c.p.postData,success:function(P){D==="xml"?z(P,c.grid.bDiv,R,s>1,U):H(P,c.grid.bDiv,R,s>1,U);L&&L.call(c,P);w&&c.grid.populateVisible();if(c.p.loadonce||c.p.treeGrid)c.p.datatype="local";fa()},error:function(P,
|
81
|
+
J,V){a.isFunction(c.p.loadError)&&c.p.loadError.call(c,P,J,V);fa()},beforeSend:function(P){ca();a.isFunction(c.p.loadBeforeSend)&&c.p.loadBeforeSend.call(c,P)}},a.jgrid.ajaxOptions,c.p.ajaxGridOptions));break;case "xmlstring":ca();x=a.jgrid.stringToDoc(c.p.datastr);G&&c.p.loadComplete.call(c,x);z(x,c.grid.bDiv);c.p.datatype="local";c.p.datastr=null;fa();break;case "jsonstring":ca();x=typeof c.p.datastr=="string"?a.jgrid.parse(c.p.datastr):c.p.datastr;G&&c.p.loadComplete.call(c,x);H(x,c.grid.bDiv);
|
82
|
+
c.p.datatype="local";c.p.datastr=null;fa();break;case "local":case "clientside":ca();c.p.datatype="local";x=K();H(x,c.grid.bDiv,R,s>1,U);L&&L.call(c,x);w&&c.grid.populateVisible();fa();break}}}},T=function(){var s=c.p.data.length,w,x,D;w=c.p.rownumbers===true?1:0;x=c.p.multiselect===true?1:0;D=c.p.subGrid===true?1:0;w=c.p.keyIndex===false||c.p.loadonce===true?c.p.localReader.id:c.p.colModel[c.p.keyIndex+x+D+w].name;for(x=0;x<s;x++){D=a.jgrid.getAccessor(c.p.data[x],w);c.p._index[D]=x}},ca=function(){c.grid.hDiv.loading=
|
83
|
+
true;if(!c.p.hiddengrid)switch(c.p.loadui){case "disable":break;case "enable":a("#load_"+c.p.id).show();break;case "block":a("#lui_"+c.p.id).show();a("#load_"+c.p.id).show();break}},fa=function(){c.grid.hDiv.loading=false;switch(c.p.loadui){case "disable":break;case "enable":a("#load_"+c.p.id).hide();break;case "block":a("#lui_"+c.p.id).hide();a("#load_"+c.p.id).hide();break}};l=function(s,w){var x="",D="<table cellspacing='0' cellpadding='0' border='0' style='table-layout:auto;' class='ui-pg-table'><tbody><tr>",
|
84
|
+
C="",L,G,U,R,P=function(J){var V;if(a.isFunction(c.p.onPaging))V=c.p.onPaging.call(c,J);c.p.selrow=null;if(c.p.multiselect){c.p.selarrrow=[];a("#cb_"+a.jgrid.jqID(c.p.id),c.grid.hDiv).attr("checked",false)}c.p.savedRow=[];if(V=="stop")return false;return true};s=s.substr(1);L="pg_"+s;G=s+"_left";U=s+"_center";R=s+"_right";a("#"+s).append("<div id='"+L+"' class='ui-pager-control' role='group'><table cellspacing='0' cellpadding='0' border='0' class='ui-pg-table' style='width:100%;table-layout:fixed;' role='row'><tbody><tr><td id='"+
|
85
|
+
G+"' align='left'></td><td id='"+U+"' align='center' style='white-space:pre;'></td><td id='"+R+"' align='right'></td></tr></tbody></table></div>").attr("dir","ltr");if(c.p.rowList.length>0){C="<td dir='"+j+"'>";C+="<select class='ui-pg-selbox' role='listbox'>";for(G=0;G<c.p.rowList.length;G++)C+="<option role='option' value='"+c.p.rowList[G]+"'"+(c.p.rowNum==c.p.rowList[G]?" selected":"")+">"+c.p.rowList[G]+"</option>";C+="</select></td>"}if(j=="rtl")D+=C;if(c.p.pginput===true)x="<td dir='"+j+"'>"+
|
86
|
+
a.jgrid.format(c.p.pgtext||"","<input class='ui-pg-input' type='text' size='2' maxlength='7' value='0' role='textbox'/>","<span id='sp_1'></span>")+"</td>";if(c.p.pgbuttons===true){G=["first"+w,"prev"+w,"next"+w,"last"+w];j=="rtl"&&G.reverse();D+="<td id='"+G[0]+"' class='ui-pg-button ui-corner-all'><span class='ui-icon ui-icon-seek-first'></span></td>";D+="<td id='"+G[1]+"' class='ui-pg-button ui-corner-all'><span class='ui-icon ui-icon-seek-prev'></span></td>";D+=x!=""?"<td class='ui-pg-button ui-state-disabled' style='width:4px;'><span class='ui-separator'></span></td>"+
|
87
|
+
x+"<td class='ui-pg-button ui-state-disabled' style='width:4px;'><span class='ui-separator'></span></td>":"";D+="<td id='"+G[2]+"' class='ui-pg-button ui-corner-all'><span class='ui-icon ui-icon-seek-next'></span></td>";D+="<td id='"+G[3]+"' class='ui-pg-button ui-corner-all'><span class='ui-icon ui-icon-seek-end'></span></td>"}else if(x!="")D+=x;if(j=="ltr")D+=C;D+="</tr></tbody></table>";c.p.viewrecords===true&&a("td#"+s+"_"+c.p.recordpos,"#"+L).append("<div dir='"+j+"' style='text-align:"+c.p.recordpos+
|
88
|
+
"' class='ui-paging-info'></div>");a("td#"+s+"_"+c.p.pagerpos,"#"+L).append(D);C=a(".ui-jqgrid").css("font-size")||"11px";a(document.body).append("<div id='testpg' class='ui-jqgrid ui-widget ui-widget-content' style='font-size:"+C+";visibility:hidden;' ></div>");D=a(D).clone().appendTo("#testpg").width();a("#testpg").remove();if(D>0){if(x!="")D+=50;a("td#"+s+"_"+c.p.pagerpos,"#"+L).width(D)}c.p._nvtd=[];c.p._nvtd[0]=D?Math.floor((c.p.width-D)/2):Math.floor(c.p.width/3);c.p._nvtd[1]=0;D=null;a(".ui-pg-selbox",
|
89
|
+
"#"+L).bind("change",function(){c.p.page=Math.round(c.p.rowNum*(c.p.page-1)/this.value-0.5)+1;c.p.rowNum=this.value;if(w)a(".ui-pg-selbox",c.p.pager).val(this.value);else c.p.toppager&&a(".ui-pg-selbox",c.p.toppager).val(this.value);if(!P("records"))return false;O();return false});if(c.p.pgbuttons===true){a(".ui-pg-button","#"+L).hover(function(){if(a(this).hasClass("ui-state-disabled"))this.style.cursor="default";else{a(this).addClass("ui-state-hover");this.style.cursor="pointer"}},function(){if(!a(this).hasClass("ui-state-disabled")){a(this).removeClass("ui-state-hover");
|
90
|
+
this.style.cursor="default"}});a("#first"+w+", #prev"+w+", #next"+w+", #last"+w,"#"+s).click(function(){var J=q(c.p.page,1),V=q(c.p.lastpage,1),Z=false,S=true,ga=true,ia=true,ra=true;if(V===0||V===1)ra=ia=ga=S=false;else if(V>1&&J>=1)if(J===1)ga=S=false;else{if(!(J>1&&J<V))if(J===V)ra=ia=false}else if(V>1&&J===0){ra=ia=false;J=V-1}if(this.id==="first"+w&&S){c.p.page=1;Z=true}if(this.id==="prev"+w&&ga){c.p.page=J-1;Z=true}if(this.id==="next"+w&&ia){c.p.page=J+1;Z=true}if(this.id==="last"+w&&ra){c.p.page=
|
91
|
+
V;Z=true}if(Z){if(!P(this.id))return false;O()}return false})}c.p.pginput===true&&a("input.ui-pg-input","#"+L).keypress(function(J){if((J.charCode?J.charCode:J.keyCode?J.keyCode:0)==13){c.p.page=a(this).val()>0?a(this).val():c.p.page;if(!P("user"))return false;O();return false}return this})};var ta=function(s,w,x,D){if(c.p.colModel[w].sortable)if(!(c.p.savedRow.length>0)){if(!x){if(c.p.lastsort==w)if(c.p.sortorder=="asc")c.p.sortorder="desc";else{if(c.p.sortorder=="desc")c.p.sortorder="asc"}else c.p.sortorder=
|
92
|
+
c.p.colModel[w].firstsortorder||"asc";c.p.page=1}if(D)if(c.p.lastsort==w&&c.p.sortorder==D&&!x)return;else c.p.sortorder=D;x=a("thead:first",c.grid.hDiv).get(0);a("tr th:eq("+c.p.lastsort+") span.ui-grid-ico-sort",x).addClass("ui-state-disabled");a("tr th:eq("+c.p.lastsort+")",x).attr("aria-selected","false");a("tr th:eq("+w+") span.ui-icon-"+c.p.sortorder,x).removeClass("ui-state-disabled");a("tr th:eq("+w+")",x).attr("aria-selected","true");if(!c.p.viewsortcols[0])if(c.p.lastsort!=w){a("tr th:eq("+
|
93
|
+
c.p.lastsort+") span.s-ico",x).hide();a("tr th:eq("+w+") span.s-ico",x).show()}s=s.substring(5);c.p.sortname=c.p.colModel[w].index||s;x=c.p.sortorder;if(a.isFunction(c.p.onSortCol))if(c.p.onSortCol.call(c,s,w,x)=="stop"){c.p.lastsort=w;return}if(c.p.datatype=="local")c.p.deselectAfterSort&&a(c).jqGrid("resetSelection");else{c.p.selrow=null;c.p.multiselect&&a("#cb_"+a.jgrid.jqID(c.p.id),c.grid.hDiv).attr("checked",false);c.p.selarrrow=[];c.p.savedRow=[]}if(c.p.scroll){x=c.grid.bDiv.scrollLeft;v(c.grid.bDiv,
|
94
|
+
true);c.grid.hDiv.scrollLeft=x}c.p.subGrid&&c.p.datatype=="local"&&a("td.sgexpanded","#"+c.p.id).each(function(){a(this).trigger("click")});O();c.p.lastsort=w;if(c.p.sortname!=s&&w)c.p.lastsort=w}},ya=function(s){var w=s,x;for(x=s+1;x<c.p.colModel.length;x++)if(c.p.colModel[x].hidden!==true){w=x;break}return w-s},za=function(s){var w,x={},D=n?0:c.p.cellLayout;for(w=x[0]=x[1]=x[2]=0;w<=s;w++)if(c.p.colModel[w].hidden===false)x[0]+=c.p.colModel[w].width+D;if(c.p.direction=="rtl")x[0]=c.p.width-x[0];
|
95
|
+
x[0]-=c.grid.bDiv.scrollLeft;if(a(c.grid.cDiv).is(":visible"))x[1]+=a(c.grid.cDiv).height()+parseInt(a(c.grid.cDiv).css("padding-top"),10)+parseInt(a(c.grid.cDiv).css("padding-bottom"),10);if(c.p.toolbar[0]===true&&(c.p.toolbar[1]=="top"||c.p.toolbar[1]=="both"))x[1]+=a(c.grid.uDiv).height()+parseInt(a(c.grid.uDiv).css("border-top-width"),10)+parseInt(a(c.grid.uDiv).css("border-bottom-width"),10);if(c.p.toppager)x[1]+=a(c.grid.topDiv).height()+parseInt(a(c.grid.topDiv).css("border-bottom-width"),
|
96
|
+
10);x[2]+=a(c.grid.bDiv).height()+a(c.grid.hDiv).height();return x};this.p.id=this.id;if(a.inArray(c.p.multikey,["shiftKey","altKey","ctrlKey"])==-1)c.p.multikey=false;c.p.keyIndex=false;for(h=0;h<c.p.colModel.length;h++)if(c.p.colModel[h].key===true){c.p.keyIndex=h;break}c.p.sortorder=c.p.sortorder.toLowerCase();if(this.p.treeGrid===true){try{a(this).jqGrid("setTreeGrid")}catch(Ga){}if(c.p.datatype!="local")c.p.localReader={id:"_id_"}}if(this.p.subGrid)try{a(c).jqGrid("setSubGrid")}catch(E){}if(this.p.multiselect){this.p.colNames.unshift("<input role='checkbox' id='cb_"+
|
97
|
+
this.p.id+"' class='cbox' type='checkbox'/>");this.p.colModel.unshift({name:"cb",width:n?c.p.multiselectWidth+c.p.cellLayout:c.p.multiselectWidth,sortable:false,resizable:false,hidedlg:true,search:false,align:"center",fixed:true})}if(this.p.rownumbers){this.p.colNames.unshift("");this.p.colModel.unshift({name:"rn",width:c.p.rownumWidth,sortable:false,resizable:false,hidedlg:true,search:false,align:"center",fixed:true})}c.p.xmlReader=a.extend(true,{root:"rows",row:"row",page:"rows>page",total:"rows>total",
|
98
|
+
records:"rows>records",repeatitems:true,cell:"cell",id:"[id]",userdata:"userdata",subgrid:{root:"rows",row:"row",repeatitems:true,cell:"cell"}},c.p.xmlReader);c.p.jsonReader=a.extend(true,{root:"rows",page:"page",total:"total",records:"records",repeatitems:true,cell:"cell",id:"id",userdata:"userdata",subgrid:{root:"rows",repeatitems:true,cell:"cell"}},c.p.jsonReader);c.p.localReader=a.extend(true,{root:"rows",page:"page",total:"total",records:"records",repeatitems:false,cell:"cell",id:"id",userdata:"userdata",
|
99
|
+
subgrid:{root:"rows",repeatitems:true,cell:"cell"}},c.p.localReader);if(c.p.scroll){c.p.pgbuttons=false;c.p.pginput=false;c.p.rowList=[]}c.p.data.length&&T();var F="<thead><tr class='ui-jqgrid-labels' role='rowheader'>",X,M,da,W,Y,aa,N,ja;M=ja="";if(c.p.shrinkToFit===true&&c.p.forceFit===true)for(h=c.p.colModel.length-1;h>=0;h--)if(!c.p.colModel[h].hidden){c.p.colModel[h].resizable=false;break}if(c.p.viewsortcols[1]=="horizontal"){ja=" ui-i-asc";M=" ui-i-desc"}X=p?"class='ui-th-div-ie'":"";ja="<span class='s-ico' style='display:none'><span sort='asc' class='ui-grid-ico-sort ui-icon-asc"+
|
100
|
+
ja+" ui-state-disabled ui-icon ui-icon-triangle-1-n ui-sort-"+j+"'></span>";ja+="<span sort='desc' class='ui-grid-ico-sort ui-icon-desc"+M+" ui-state-disabled ui-icon ui-icon-triangle-1-s ui-sort-"+j+"'></span></span>";for(h=0;h<this.p.colNames.length;h++){M=c.p.headertitles?' title="'+a.jgrid.stripHtml(c.p.colNames[h])+'"':"";F+="<th id='"+c.p.id+"_"+c.p.colModel[h].name+"' role='columnheader' class='ui-state-default ui-th-column ui-th-"+j+"'"+M+">";M=c.p.colModel[h].index||c.p.colModel[h].name;
|
101
|
+
F+="<div id='jqgh_"+c.p.colModel[h].name+"' "+X+">"+c.p.colNames[h];c.p.colModel[h].width=c.p.colModel[h].width?parseInt(c.p.colModel[h].width,10):150;if(typeof c.p.colModel[h].title!=="boolean")c.p.colModel[h].title=true;if(M==c.p.sortname)c.p.lastsort=h;F+=ja+"</div></th>"}F+="</tr></thead>";a(this).append(F);a("thead tr:first th",this).hover(function(){a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")});if(this.p.multiselect){var ba=[],qa;a("#cb_"+a.jgrid.jqID(c.p.id),
|
102
|
+
this).bind("click",function(){if(this.checked){a("[id^=jqg_]",c.rows).attr("checked",true);a(c.rows).each(function(s){if(!a(this).hasClass("subgrid")){a(this).addClass("ui-state-highlight").attr("aria-selected","true");c.p.selarrrow[s]=c.p.selrow=this.id}});qa=true;ba=[]}else{a("[id^=jqg_]",c.rows).attr("checked",false);a(c.rows).each(function(s){if(!a(this).hasClass("subgrid")){a(this).removeClass("ui-state-highlight").attr("aria-selected","false");ba[s]=this.id}});c.p.selarrrow=[];c.p.selrow=null;
|
103
|
+
qa=false}if(a.isFunction(c.p.onSelectAll))c.p.onSelectAll.call(c,qa?c.p.selarrrow:ba,qa)})}if(c.p.autowidth===true){F=a(r).innerWidth();c.p.width=F>0?F:"nw"}(function(){var s=0,w=c.p.cellLayout,x=0,D,C=c.p.scrollOffset,L,G=false,U,R=0,P=0,J=0,V;if(n)w=0;a.each(c.p.colModel,function(){if(typeof this.hidden==="undefined")this.hidden=false;if(this.hidden===false){s+=q(this.width,0);if(this.fixed){R+=this.width;P+=this.width+w}else x++;J++}});if(isNaN(c.p.width))c.p.width=g.width=s;else g.width=c.p.width;
|
104
|
+
c.p.tblwidth=s;if(c.p.shrinkToFit===false&&c.p.forceFit===true)c.p.forceFit=false;if(c.p.shrinkToFit===true&&x>0){U=g.width-w*x-P;if(!isNaN(c.p.height)){U-=C;G=true}s=0;a.each(c.p.colModel,function(Z){if(this.hidden===false&&!this.fixed){this.width=L=Math.round(U*this.width/(c.p.tblwidth-R));s+=L;D=Z}});V=0;if(G){if(g.width-P-(s+w*x)!==C)V=g.width-P-(s+w*x)-C}else if(!G&&Math.abs(g.width-P-(s+w*x))!==1)V=g.width-P-(s+w*x);c.p.colModel[D].width+=V;c.p.tblwidth=s+V+R+J*w;if(c.p.tblwidth>c.p.width){c.p.colModel[D].width-=
|
105
|
+
c.p.tblwidth-parseInt(c.p.width,10);c.p.tblwidth=c.p.width}}})();a(r).css("width",g.width+"px").append("<div class='ui-jqgrid-resize-mark' id='rs_m"+c.p.id+"'> </div>");a(k).css("width",g.width+"px");F=a("thead:first",c).get(0);var ea="";if(c.p.footerrow)ea+="<table role='grid' style='width:"+c.p.tblwidth+"px' class='ui-jqgrid-ftable' cellspacing='0' cellpadding='0' border='0'><tbody><tr role='row' class='ui-widget-content footrow footrow-"+j+"'>";k=a("tr:first",F);c.p.disableClick=false;a("th",
|
106
|
+
k).each(function(s){da=c.p.colModel[s].width;if(typeof c.p.colModel[s].resizable==="undefined")c.p.colModel[s].resizable=true;if(c.p.colModel[s].resizable){W=document.createElement("span");a(W).html(" ").addClass("ui-jqgrid-resize ui-jqgrid-resize-"+j);a.browser.opera||a(W).css("cursor","col-resize");a(this).addClass(c.p.resizeclass)}else W="";a(this).css("width",da+"px").prepend(W);c.p.colModel[s].hidden&&a(this).css("display","none");g.headers[s]={width:da,el:this};Y=c.p.colModel[s].sortable;
|
107
|
+
if(typeof Y!=="boolean")Y=c.p.colModel[s].sortable=true;var w=c.p.colModel[s].name;w=="cb"||w=="subgrid"||w=="rn"||c.p.viewsortcols[2]&&a("div",this).addClass("ui-jqgrid-sortable");if(Y)if(c.p.viewsortcols[0]){a("div span.s-ico",this).show();s==c.p.lastsort&&a("div span.ui-icon-"+c.p.sortorder,this).removeClass("ui-state-disabled")}else if(s==c.p.lastsort){a("div span.s-ico",this).show();a("div span.ui-icon-"+c.p.sortorder,this).removeClass("ui-state-disabled")}if(c.p.footerrow)ea+="<td role='gridcell' "+
|
108
|
+
t(s,0,"")+"> </td>"}).mousedown(function(s){if(a(s.target).closest("th>span.ui-jqgrid-resize").length==1){var w=a.jgrid.getCellIndex(this);if(c.p.forceFit===true)c.p.nv=ya(w);g.dragStart(w,s,za(w));return false}}).click(function(s){if(c.p.disableClick)return c.p.disableClick=false;var w="th>div.ui-jqgrid-sortable",x,D;c.p.viewsortcols[2]||(w="th>div>span>span.ui-grid-ico-sort");s=a(s.target).closest(w);if(s.length==1){w=a.jgrid.getCellIndex(this);if(!c.p.viewsortcols[2]){x=true;D=s.attr("sort")}ta(a("div",
|
109
|
+
this)[0].id,w,x,D);return false}});if(c.p.sortable&&a.fn.sortable)try{a(c).jqGrid("sortableColumns",k)}catch(Fa){}if(c.p.footerrow)ea+="</tr></tbody></table>";this.appendChild(document.createElement("tbody"));a(this).addClass("ui-jqgrid-btable");k=a("<table class='ui-jqgrid-htable' style='width:"+c.p.tblwidth+"px' role='grid' aria-labelledby='gbox_"+this.id+"' cellspacing='0' cellpadding='0' border='0'></table>").append(F);var ka=c.p.caption&&c.p.hiddengrid===true?true:false;F=a("<div class='ui-jqgrid-hbox"+
|
110
|
+
(j=="rtl"?"-rtl":"")+"'></div>");g.hDiv=document.createElement("div");a(g.hDiv).css({width:g.width+"px"}).addClass("ui-state-default ui-jqgrid-hdiv").append(F);a(F).append(k);ka&&a(g.hDiv).hide();if(c.p.pager){if(typeof c.p.pager=="string"){if(c.p.pager.substr(0,1)!="#")c.p.pager="#"+c.p.pager}else c.p.pager="#"+a(c.p.pager).attr("id");a(c.p.pager).css({width:g.width+"px"}).appendTo(r).addClass("ui-state-default ui-jqgrid-pager ui-corner-bottom");ka&&a(c.p.pager).hide();l(c.p.pager,"")}c.p.cellEdit===
|
111
|
+
false&&c.p.hoverrows===true&&a(c).bind("mouseover",function(s){N=a(s.target).closest("tr.jqgrow");a(N).attr("class")!=="subgrid"&&a(N).addClass("ui-state-hover");return false}).bind("mouseout",function(s){N=a(s.target).closest("tr.jqgrow");a(N).removeClass("ui-state-hover");return false});var oa,Ca;a(c).before(g.hDiv).click(function(s){aa=s.target;var w=a(aa).hasClass("cbox");N=a(aa,c.rows).closest("tr.jqgrow");if(a(N).length===0)return this;var x=true;if(a.isFunction(c.p.beforeSelectRow))x=c.p.beforeSelectRow.call(c,
|
112
|
+
N[0].id,s);if(aa.tagName=="A"||(aa.tagName=="INPUT"||aa.tagName=="TEXTAREA"||aa.tagName=="OPTION"||aa.tagName=="SELECT")&&!w)return this;if(x===true){if(c.p.cellEdit===true)if(c.p.multiselect&&w)a(c).jqGrid("setSelection",N[0].id,true);else{oa=N[0].rowIndex;Ca=a.jgrid.getCellIndex(aa);try{a(c).jqGrid("editCell",oa,Ca,true)}catch(D){}}else if(c.p.multikey)if(s[c.p.multikey])a(c).jqGrid("setSelection",N[0].id,true);else{if(c.p.multiselect&&w){w=a("[id^=jqg_]",N).attr("checked");a("[id^=jqg_]",N).attr("checked",
|
113
|
+
!w)}}else{if(c.p.multiselect&&c.p.multiboxonly)if(!w){a(c.p.selarrrow).each(function(C,L){C=c.rows.namedItem(L);a(C).removeClass("ui-state-highlight");a("#jqg_"+a.jgrid.jqID(L),C).attr("checked",false)});c.p.selarrrow=[];a("#cb_"+a.jgrid.jqID(c.p.id),c.grid.hDiv).attr("checked",false)}a(c).jqGrid("setSelection",N[0].id,true)}if(a.isFunction(c.p.onCellSelect)){oa=N[0].id;Ca=a.jgrid.getCellIndex(aa);c.p.onCellSelect.call(c,oa,Ca,a(aa).html(),s)}s.stopPropagation()}else return this}).bind("reloadGrid",
|
114
|
+
function(s,w){if(c.p.treeGrid===true)c.p.datatype=c.p.treedatatype;w&&w.current&&c.grid.selectionPreserver(c);if(c.p.datatype=="local")a(c).jqGrid("resetSelection");else if(!c.p.treeGrid){c.p.selrow=null;if(c.p.multiselect){c.p.selarrrow=[];a("#cb_"+a.jgrid.jqID(c.p.id),c.grid.hDiv).attr("checked",false)}c.p.savedRow=[]}c.p.scroll&&v(c.grid.bDiv,true);if(w&&w.page){s=w.page;if(s>c.p.lastpage)s=c.p.lastpage;if(s<1)s=1;c.p.page=s;c.grid.bDiv.scrollTop=c.grid.prevRowHeight?(s-1)*c.grid.prevRowHeight*
|
115
|
+
c.p.rowNum:0}if(c.grid.prevRowHeight&&c.p.scroll){delete c.p.lastpage;c.grid.populateVisible()}else c.grid.populate();return false});a.isFunction(this.p.ondblClickRow)&&a(this).dblclick(function(s){aa=s.target;N=a(aa,c.rows).closest("tr.jqgrow");if(a(N).length===0)return false;oa=N[0].rowIndex;Ca=a.jgrid.getCellIndex(aa);c.p.ondblClickRow.call(c,a(N).attr("id"),oa,Ca,s);return false});a.isFunction(this.p.onRightClickRow)&&a(this).bind("contextmenu",function(s){aa=s.target;N=a(aa,c.rows).closest("tr.jqgrow");
|
116
|
+
if(a(N).length===0)return false;c.p.multiselect||a(c).jqGrid("setSelection",N[0].id,true);oa=N[0].rowIndex;Ca=a.jgrid.getCellIndex(aa);c.p.onRightClickRow.call(c,a(N).attr("id"),oa,Ca,s);return false});g.bDiv=document.createElement("div");a(g.bDiv).append(a('<div style="position:relative;'+(p&&a.browser.version<8?"height:0.01%;":"")+'"></div>').append("<div></div>").append(this)).addClass("ui-jqgrid-bdiv").css({height:c.p.height+(isNaN(c.p.height)?"":"px"),width:g.width+"px"}).scroll(g.scrollGrid);
|
117
|
+
a("table:first",g.bDiv).css({width:c.p.tblwidth+"px"});if(p){a("tbody",this).size()==2&&a("tbody:first",this).remove();c.p.multikey&&a(g.bDiv).bind("selectstart",function(){return false})}else c.p.multikey&&a(g.bDiv).bind("mousedown",function(){return false});ka&&a(g.bDiv).hide();g.cDiv=document.createElement("div");var Aa=c.p.hidegrid===true?a("<a role='link' href='javascript:void(0)'/>").addClass("ui-jqgrid-titlebar-close HeaderButton").hover(function(){Aa.addClass("ui-state-hover")},function(){Aa.removeClass("ui-state-hover")}).append("<span class='ui-icon ui-icon-circle-triangle-n'></span>").css(j==
|
118
|
+
"rtl"?"left":"right","0px"):"";a(g.cDiv).append(Aa).append("<span class='ui-jqgrid-title"+(j=="rtl"?"-rtl":"")+"'>"+c.p.caption+"</span>").addClass("ui-jqgrid-titlebar ui-widget-header ui-corner-top ui-helper-clearfix");a(g.cDiv).insertBefore(g.hDiv);if(c.p.toolbar[0]){g.uDiv=document.createElement("div");if(c.p.toolbar[1]=="top")a(g.uDiv).insertBefore(g.hDiv);else c.p.toolbar[1]=="bottom"&&a(g.uDiv).insertAfter(g.hDiv);if(c.p.toolbar[1]=="both"){g.ubDiv=document.createElement("div");a(g.uDiv).insertBefore(g.hDiv).addClass("ui-userdata ui-state-default").attr("id",
|
119
|
+
"t_"+this.id);a(g.ubDiv).insertAfter(g.hDiv).addClass("ui-userdata ui-state-default").attr("id","tb_"+this.id);ka&&a(g.ubDiv).hide()}else a(g.uDiv).width(g.width).addClass("ui-userdata ui-state-default").attr("id","t_"+this.id);ka&&a(g.uDiv).hide()}if(c.p.toppager){c.p.toppager=c.p.id+"_toppager";g.topDiv=a("<div id='"+c.p.toppager+"'></div>")[0];c.p.toppager="#"+c.p.toppager;a(g.topDiv).insertBefore(g.hDiv).addClass("ui-state-default ui-jqgrid-toppager").width(g.width);l(c.p.toppager,"_t")}if(c.p.footerrow){g.sDiv=
|
120
|
+
a("<div class='ui-jqgrid-sdiv'></div>")[0];F=a("<div class='ui-jqgrid-hbox"+(j=="rtl"?"-rtl":"")+"'></div>");a(g.sDiv).append(F).insertAfter(g.hDiv).width(g.width);a(F).append(ea);g.footers=a(".ui-jqgrid-ftable",g.sDiv)[0].rows[0].cells;if(c.p.rownumbers)g.footers[0].className="ui-state-default jqgrid-rownum";ka&&a(g.sDiv).hide()}if(c.p.caption){var Ea=c.p.datatype;if(c.p.hidegrid===true){a(".ui-jqgrid-titlebar-close",g.cDiv).click(function(s){var w=a.isFunction(c.p.onHeaderClick);if(c.p.gridstate==
|
121
|
+
"visible"){a(".ui-jqgrid-bdiv, .ui-jqgrid-hdiv","#gview_"+c.p.id).slideUp("fast");c.p.pager&&a(c.p.pager).slideUp("fast");c.p.toppager&&a(c.p.toppager).slideUp("fast");if(c.p.toolbar[0]===true){c.p.toolbar[1]=="both"&&a(g.ubDiv).slideUp("fast");a(g.uDiv).slideUp("fast")}c.p.footerrow&&a(".ui-jqgrid-sdiv","#gbox_"+c.p.id).slideUp("fast");a("span",this).removeClass("ui-icon-circle-triangle-n").addClass("ui-icon-circle-triangle-s");c.p.gridstate="hidden";a("#gbox_"+c.p.id).hasClass("ui-resizable")&&
|
122
|
+
a(".ui-resizable-handle","#gbox_"+c.p.id).hide();if(w)ka||c.p.onHeaderClick.call(c,c.p.gridstate,s)}else if(c.p.gridstate=="hidden"){a(".ui-jqgrid-hdiv, .ui-jqgrid-bdiv","#gview_"+c.p.id).slideDown("fast");c.p.pager&&a(c.p.pager).slideDown("fast");c.p.toppager&&a(c.p.toppager).slideDown("fast");if(c.p.toolbar[0]===true){c.p.toolbar[1]=="both"&&a(g.ubDiv).slideDown("fast");a(g.uDiv).slideDown("fast")}c.p.footerrow&&a(".ui-jqgrid-sdiv","#gbox_"+c.p.id).slideDown("fast");a("span",this).removeClass("ui-icon-circle-triangle-s").addClass("ui-icon-circle-triangle-n");
|
123
|
+
if(ka){c.p.datatype=Ea;O();ka=false}c.p.gridstate="visible";a("#gbox_"+c.p.id).hasClass("ui-resizable")&&a(".ui-resizable-handle","#gbox_"+c.p.id).show();w&&c.p.onHeaderClick.call(c,c.p.gridstate,s)}return false});if(ka){c.p.datatype="local";a(".ui-jqgrid-titlebar-close",g.cDiv).trigger("click")}}}else a(g.cDiv).hide();a(g.hDiv).after(g.bDiv).mousemove(function(s){if(g.resizing){g.dragMove(s);return false}});a(".ui-jqgrid-labels",g.hDiv).bind("selectstart",function(){return false});a(document).mouseup(function(){if(g.resizing){g.dragEnd();
|
124
|
+
return false}return true});this.updateColumns=function(){var s=this.rows[0],w=this;if(s){a("td",s).each(function(x){a(this).css("width",w.grid.headers[x].width+"px")});this.grid.cols=s.cells}return this};c.formatCol=t;c.sortData=ta;c.updatepager=Q;c.refreshIndex=T;c.formatter=function(s,w,x,D,C){return o(s,w,x,D,C)};a.extend(g,{populate:O,emptyRows:v});this.grid=g;c.addXmlData=function(s){z(s,c.grid.bDiv)};c.addJSONData=function(s){H(s,c.grid.bDiv)};O();c.p.hiddengrid=false;a(window).unload(function(){c=
|
125
|
+
null})}}})};a.jgrid.extend({getGridParam:function(d){var e=this[0];if(e&&e.grid)return d?typeof e.p[d]!="undefined"?e.p[d]:null:e.p},setGridParam:function(d){return this.each(function(){this.grid&&typeof d==="object"&&a.extend(true,this.p,d)})},getDataIDs:function(){var d=[],e=0,b;this.each(function(){if((b=this.rows.length)&&b>0)for(;e<b;){d[e]=this.rows[e].id;e++}});return d},setSelection:function(d,e){return this.each(function(){function b(c){var k=a(f.grid.bDiv)[0].clientHeight,l=a(f.grid.bDiv)[0].scrollTop,
|
126
|
+
p=f.rows[c].offsetTop;c=f.rows[c].clientHeight;if(p+c>=k+l)a(f.grid.bDiv)[0].scrollTop=p-(k+l)+c+l;else if(p<k+l)if(p<l)a(f.grid.bDiv)[0].scrollTop=p}var f=this,g,h,j;if(d!==undefined){e=e===false?false:true;if(h=f.rows.namedItem(d+"")){if(f.p.scrollrows===true){g=f.rows.namedItem(d).rowIndex;g>=0&&b(g)}if(f.p.multiselect){f.p.selrow=h.id;j=a.inArray(f.p.selrow,f.p.selarrrow);if(j===-1){h.className!=="ui-subgrid"&&a(h).addClass("ui-state-highlight").attr("aria-selected","true");g=true;a("#jqg_"+a.jgrid.jqID(f.p.selrow),
|
127
|
+
f.rows[h.rowIndex]).attr("checked",g);f.p.selarrrow.push(f.p.selrow);f.p.onSelectRow&&e&&f.p.onSelectRow.call(f,f.p.selrow,g)}else{h.className!=="ui-subgrid"&&a(h).removeClass("ui-state-highlight").attr("aria-selected","false");g=false;a("#jqg_"+a.jgrid.jqID(f.p.selrow),f.rows[h.rowIndex]).attr("checked",g);f.p.selarrrow.splice(j,1);f.p.onSelectRow&&e&&f.p.onSelectRow.call(f,f.p.selrow,g);h=f.p.selarrrow[0];f.p.selrow=h===undefined?null:h}}else if(h.className!=="ui-subgrid"){f.p.selrow&&a(f.rows.namedItem(f.p.selrow)).removeClass("ui-state-highlight").attr("aria-selected",
|
128
|
+
"false");f.p.selrow=h.id;a(h).addClass("ui-state-highlight").attr("aria-selected","true");f.p.onSelectRow&&e&&f.p.onSelectRow.call(f,f.p.selrow,true)}}}})},resetSelection:function(){return this.each(function(){var d=this,e;if(d.p.multiselect){a(d.p.selarrrow).each(function(b,f){e=d.rows.namedItem(f);a(e).removeClass("ui-state-highlight").attr("aria-selected","false");a("#jqg_"+a.jgrid.jqID(f),e).attr("checked",false)});a("#cb_"+a.jgrid.jqID(d.p.id),d.grid.hDiv).attr("checked",false);d.p.selarrrow=
|
129
|
+
[]}else if(d.p.selrow){a("tr#"+a.jgrid.jqID(d.p.selrow),d.grid.bDiv).removeClass("ui-state-highlight").attr("aria-selected","false");d.p.selrow=null}d.p.savedRow=[]})},getRowData:function(d){var e={},b,f=false,g,h=0;this.each(function(){var j=this,c,k;if(typeof d=="undefined"){f=true;b=[];g=j.rows.length}else{k=j.rows.namedItem(d);if(!k)return e;g=1}for(;h<g;){if(f)k=j.rows[h];a("td",k).each(function(l){c=j.p.colModel[l].name;if(c!=="cb"&&c!=="subgrid"&&c!=="rn")if(j.p.treeGrid===true&&c==j.p.ExpandColumn)e[c]=
|
130
|
+
a.jgrid.htmlDecode(a("span:first",this).html());else try{e[c]=a.unformat(this,{rowId:k.id,colModel:j.p.colModel[l]},l)}catch(p){e[c]=a.jgrid.htmlDecode(a(this).html())}});h++;if(f){b.push(e);e={}}}});return b?b:e},delRowData:function(d){var e=false,b,f,g;this.each(function(){if(b=this.rows.namedItem(d)){g=b.rowIndex;a(b).remove();this.p.records--;this.p.reccount--;this.updatepager(true,false);e=true;if(this.p.multiselect){f=a.inArray(d,this.p.selarrrow);f!=-1&&this.p.selarrrow.splice(f,1)}if(d==this.p.selrow)this.p.selrow=
|
131
|
+
null}else return false;if(this.p.datatype=="local"){var h=null;h=this.p._index[d];if(h!==null){this.p.data.splice(h,1);this.refreshIndex()}}g===0&&e&&this.updateColumns();if(this.p.altRows===true&&e){var j=this.p.altclass;a(this.rows).each(function(c){c%2==1?a(this).addClass(j):a(this).removeClass(j)})}});return e},setRowData:function(d,e,b){var f,g=true,h;this.each(function(){if(!this.grid)return false;var j=this,c,k,l=typeof b,p={};k=j.rows.namedItem(d);if(!k)return false;if(e)try{a(this.p.colModel).each(function(q){f=
|
132
|
+
this.name;if(e[f]!==undefined){p[f]=this.formatter&&typeof this.formatter==="string"&&this.formatter=="date"?a.unformat.date(e[f],this):e[f];c=j.formatter(d,e[f],q,e,"edit");h=this.title?{title:a.jgrid.stripHtml(c)}:{};j.p.treeGrid===true&&f==j.p.ExpandColumn?a("td:eq("+q+") > span:first",k).html(c).attr(h):a("td:eq("+q+")",k).html(c).attr(h)}});if(j.p.datatype=="local"){var n=null;n=j.p._index[d];if(n!==null)j.p.data[n]=a.extend(true,j.p.data[n],p);p=null}}catch(r){g=false}if(g)if(l==="string")a(k).addClass(b);
|
133
|
+
else l==="object"&&a(k).css(b)});return g},addRowData:function(d,e,b,f){b||(b="last");var g=false,h,j,c,k,l,p,n,r,q="",t,m,o,u,y;if(e){if(a.isArray(e)){t=true;b="last";m=d}else{e=[e];t=false}this.each(function(){var A=e.length;l=this.p.rownumbers===true?1:0;c=this.p.multiselect===true?1:0;k=this.p.subGrid===true?1:0;if(!t)if(typeof d!="undefined")d+="";else{d=this.p.records+1+"";if(this.p.keyIndex!==false){m=this.p.colModel[this.p.keyIndex+c+k+l].name;if(typeof e[0][m]!="undefined")d=e[0][m]}}o=this.p.altclass;
|
134
|
+
for(var B=0,I="",v={},z=a.isFunction(this.p.afterInsertRow)?true:false;B<A;){u=e[B];j="";if(t){try{d=u[m]}catch(H){d=this.p.records+1+""}I=this.p.altRows===true?(this.rows.length-1)%2===0?o:"":""}if(l){q=this.formatCol(0,1,"");j+='<td role="gridcell" aria-describedby="'+this.p.id+'_rn" class="ui-state-default jqgrid-rownum" '+q+">0</td>"}if(c){r='<input role="checkbox" type="checkbox" id="jqg_'+d+'" class="cbox"/>';q=this.formatCol(l,1,"");j+='<td role="gridcell" aria-describedby="'+this.p.id+'_cb" '+
|
135
|
+
q+">"+r+"</td>"}if(k)j+=a(this).jqGrid("addSubGridCell",c+l,1);for(n=c+k+l;n<this.p.colModel.length;n++){y=this.p.colModel[n];h=y.name;v[h]=y.formatter&&typeof y.formatter==="string"&&y.formatter=="date"?a.unformat.date(u[h],y):u[h];r=this.formatter(d,u[h],n,u,"edit");q=this.formatCol(n,1,r);j+='<td role="gridcell" aria-describedby="'+this.p.id+"_"+h+'" '+q+">"+r+"</td>"}j='<tr id="'+d+'" role="row" class="ui-widget-content jqgrow ui-row-'+this.p.direction+" "+I+'">'+j+"</tr>";if(this.p.subGrid===
|
136
|
+
true){j=a(j)[0];a(this).jqGrid("addSubGrid",j,c+l)}if(this.rows.length===0)a("table:first",this.grid.bDiv).append(j);else switch(b){case "last":a(this.rows[this.rows.length-1]).after(j);break;case "first":a(this.rows[0]).before(j);break;case "after":if(p=this.rows.namedItem(f))a(this.rows[p.rowIndex+1]).hasClass("ui-subgrid")?a(this.rows[p.rowIndex+1]).after(j):a(p).after(j);break;case "before":if(p=this.rows.namedItem(f)){a(p).before(j);p=p.rowIndex}break}this.p.records++;this.p.reccount++;if(!this.grid.cols||
|
137
|
+
!this.grid.cols.length)this.grid.cols=this.rows[0].cells;if(b==="first"||b==="before"&&p<=1||this.rows.length===1)this.updateColumns();z&&this.p.afterInsertRow.call(this,d,u,u);B++;if(this.p.datatype=="local"){this.p._index[d]=this.p.data.length;this.p.data.push(v);v={}}}if(this.p.altRows===true&&!t)if(b=="last")(this.rows.length-1)%2==1&&a(this.rows[this.rows.length-1]).addClass(o);else a(this.rows).each(function(K){K%2==1?a(this).addClass(o):a(this).removeClass(o)});this.updatepager(true,true);
|
138
|
+
g=true})}return g},footerData:function(d,e,b){function f(k){for(var l in k)if(k.hasOwnProperty(l))return false;return true}var g,h=false,j={},c;if(typeof d=="undefined")d="get";if(typeof b!="boolean")b=true;d=d.toLowerCase();this.each(function(){var k=this,l;if(!k.grid||!k.p.footerrow)return false;if(d=="set")if(f(e))return false;h=true;a(this.p.colModel).each(function(p){g=this.name;if(d=="set"){if(e[g]!==undefined){l=b?k.formatter("",e[g],p,e,"edit"):e[g];c=this.title?{title:a.jgrid.stripHtml(l)}:
|
139
|
+
{};a("tr.footrow td:eq("+p+")",k.grid.sDiv).html(l).attr(c);h=true}}else if(d=="get")j[g]=a("tr.footrow td:eq("+p+")",k.grid.sDiv).html()})});return d=="get"?j:h},ShowHideCol:function(d,e){return this.each(function(){var b=this,f=false;if(b.grid){if(typeof d==="string")d=[d];e=e!="none"?"":"none";var g=e==""?true:false;a(this.p.colModel).each(function(h){if(a.inArray(this.name,d)!==-1&&this.hidden===g){a("tr",b.grid.hDiv).each(function(){a("th:eq("+h+")",this).css("display",e)});a(b.rows).each(function(j){a("td:eq("+
|
140
|
+
h+")",b.rows[j]).css("display",e)});b.p.footerrow&&a("td:eq("+h+")",b.grid.sDiv).css("display",e);if(e=="none")b.p.tblwidth-=this.width;else b.p.tblwidth+=this.width;this.hidden=!g;f=true}});if(f===true){a("table:first",b.grid.hDiv).width(b.p.tblwidth);a("table:first",b.grid.bDiv).width(b.p.tblwidth);b.grid.hDiv.scrollLeft=b.grid.bDiv.scrollLeft;if(b.p.footerrow){a("table:first",b.grid.sDiv).width(b.p.tblwidth);b.grid.sDiv.scrollLeft=b.grid.bDiv.scrollLeft}}}})},hideCol:function(d){return this.each(function(){a(this).jqGrid("ShowHideCol",
|
141
|
+
d,"none")})},showCol:function(d){return this.each(function(){a(this).jqGrid("ShowHideCol",d,"")})},remapColumns:function(d,e,b){function f(j){var c;c=j.length?a.makeArray(j):a.extend({},j);a.each(d,function(k){j[k]=c[this]})}function g(j,c){a(">tr"+(c||""),j).each(function(){var k=this,l=a.makeArray(k.cells);a.each(d,function(){var p=l[this];p&&k.appendChild(p)})})}var h=this.get(0);f(h.p.colModel);f(h.p.colNames);f(h.grid.headers);g(a("thead:first",h.grid.hDiv),b&&":not(.ui-jqgrid-labels)");e&&g(a("tbody:first",
|
142
|
+
h.grid.bDiv),".jqgrow");h.p.footerrow&&g(a("tbody:first",h.grid.sDiv));if(h.p.remapColumns)if(h.p.remapColumns.length)f(h.p.remapColumns);else h.p.remapColumns=a.makeArray(d);h.p.lastsort=a.inArray(h.p.lastsort,d);if(h.p.treeGrid)h.p.expColInd=a.inArray(h.p.expColInd,d)},setGridWidth:function(d,e){return this.each(function(){if(this.grid){var b=this,f,g=0,h=b.p.cellLayout,j,c=0,k=false,l=b.p.scrollOffset,p,n=0,r=0,q=0,t;if(typeof e!="boolean")e=b.p.shrinkToFit;if(!isNaN(d)){d=parseInt(d,10);b.grid.width=
|
143
|
+
b.p.width=d;a("#gbox_"+b.p.id).css("width",d+"px");a("#gview_"+b.p.id).css("width",d+"px");a(b.grid.bDiv).css("width",d+"px");a(b.grid.hDiv).css("width",d+"px");b.p.pager&&a(b.p.pager).css("width",d+"px");b.p.toppager&&a(b.p.toppager).css("width",d+"px");if(b.p.toolbar[0]===true){a(b.grid.uDiv).css("width",d+"px");b.p.toolbar[1]=="both"&&a(b.grid.ubDiv).css("width",d+"px")}b.p.footerrow&&a(b.grid.sDiv).css("width",d+"px");if(e===false&&b.p.forceFit===true)b.p.forceFit=false;if(e===true){if(a.browser.safari)h=
|
144
|
+
0;a.each(b.p.colModel,function(){if(this.hidden===false){g+=parseInt(this.width,10);if(this.fixed){r+=this.width;n+=this.width+h}else c++;q++}});if(c!==0){b.p.tblwidth=g;p=d-h*c-n;if(!isNaN(b.p.height))if(a(b.grid.bDiv)[0].clientHeight<a(b.grid.bDiv)[0].scrollHeight){k=true;p-=l}g=0;var m=b.grid.cols.length>0;a.each(b.p.colModel,function(o){if(this.hidden===false&&!this.fixed){f=Math.round(p*this.width/(b.p.tblwidth-r));if(!(f<0)){this.width=f;g+=f;b.grid.headers[o].width=f;b.grid.headers[o].el.style.width=
|
145
|
+
f+"px";if(b.p.footerrow)b.grid.footers[o].style.width=f+"px";if(m)b.grid.cols[o].style.width=f+"px";j=o}}});t=0;if(k){if(d-n-(g+h*c)!==l)t=d-n-(g+h*c)-l}else if(Math.abs(d-n-(g+h*c))!==1)t=d-n-(g+h*c);b.p.colModel[j].width+=t;b.p.tblwidth=g+t+r+h*q;if(b.p.tblwidth>d){k=b.p.tblwidth-parseInt(d,10);b.p.tblwidth=d;f=b.p.colModel[j].width-=k}else f=b.p.colModel[j].width;b.grid.headers[j].width=f;b.grid.headers[j].el.style.width=f+"px";if(m)b.grid.cols[j].style.width=f+"px";a("table:first",b.grid.bDiv).css("width",
|
146
|
+
b.p.tblwidth+"px");a("table:first",b.grid.hDiv).css("width",b.p.tblwidth+"px");b.grid.hDiv.scrollLeft=b.grid.bDiv.scrollLeft;if(b.p.footerrow){b.grid.footers[j].style.width=f+"px";a("table:first",b.grid.sDiv).css("width",b.p.tblwidth+"px")}}}}}})},setGridHeight:function(d){return this.each(function(){if(this.grid){a(this.grid.bDiv).css({height:d+(isNaN(d)?"":"px")});this.p.height=d;this.p.scroll&&this.grid.populateVisible()}})},setCaption:function(d){return this.each(function(){this.p.caption=d;a("span.ui-jqgrid-title",
|
147
|
+
this.grid.cDiv).html(d);a(this.grid.cDiv).show()})},setLabel:function(d,e,b,f){return this.each(function(){var g=-1;if(this.grid){if(isNaN(d))a(this.p.colModel).each(function(c){if(this.name==d){g=c;return false}});else g=parseInt(d,10);if(g>=0){var h=a("tr.ui-jqgrid-labels th:eq("+g+")",this.grid.hDiv);if(e){var j=a(".s-ico",h);a("[id^=jqgh_]",h).empty().html(e).append(j);this.p.colNames[g]=e}if(b)typeof b==="string"?a(h).addClass(b):a(h).css(b);typeof f==="object"&&a(h).attr(f)}}})},setCell:function(d,
|
148
|
+
e,b,f,g,h){return this.each(function(){var j=-1,c,k;if(this.grid){if(isNaN(e))a(this.p.colModel).each(function(p){if(this.name==e){j=p;return false}});else j=parseInt(e,10);if(j>=0)if(c=this.rows.namedItem(d)){var l=a("td:eq("+j+")",c);if(b!==""||h===true){c=this.formatter(d,b,j,c,"edit");k=this.p.colModel[j].title?{title:a.jgrid.stripHtml(c)}:{};this.p.treeGrid&&a(".tree-wrap",a(l)).length>0?a("span",a(l)).html(c).attr(k):a(l).html(c).attr(k);if(this.p.datatype=="local"){c=this.p.colModel[j];b=c.formatter&&
|
149
|
+
typeof c.formatter==="string"&&c.formatter=="date"?a.unformat.date(b,c):b;if(k=this.p._index[d])this.p.data[k][c.name]=b}}if(typeof f==="string")a(l).addClass(f);else f&&a(l).css(f);typeof g==="object"&&a(l).attr(g)}}})},getCell:function(d,e){var b=false;this.each(function(){var f=-1;if(this.grid){if(isNaN(e))a(this.p.colModel).each(function(j){if(this.name===e){f=j;return false}});else f=parseInt(e,10);if(f>=0){var g=this.rows.namedItem(d);if(g)try{b=a.unformat(a("td:eq("+f+")",g),{rowId:g.id,colModel:this.p.colModel[f]},
|
150
|
+
f)}catch(h){b=a.jgrid.htmlDecode(a("td:eq("+f+")",g).html())}}}});return b},getCol:function(d,e,b){var f=[],g,h=0;e=typeof e!="boolean"?false:e;if(typeof b=="undefined")b=false;this.each(function(){var j=-1;if(this.grid){if(isNaN(d))a(this.p.colModel).each(function(p){if(this.name===d){j=p;return false}});else j=parseInt(d,10);if(j>=0){var c=this.rows.length,k=0;if(c&&c>0){for(;k<c;){try{g=a.unformat(a(this.rows[k].cells[j]),{rowId:this.rows[k].id,colModel:this.p.colModel[j]},j)}catch(l){g=a.jgrid.htmlDecode(this.rows[k].cells[j].innerHTML)}if(b)h+=
|
151
|
+
parseFloat(g);else if(e)f.push({id:this.rows[k].id,value:g});else f[k]=g;k++}if(b)switch(b.toLowerCase()){case "sum":f=h;break;case "avg":f=h/c;break;case "count":f=c;break}}}}});return f},clearGridData:function(d){return this.each(function(){if(this.grid){if(typeof d!="boolean")d=false;a("tbody:first tr",this.grid.bDiv).remove();this.p.footerrow&&d&&a(".ui-jqgrid-ftable td",this.grid.sDiv).html(" ");this.p.selrow=null;this.p.selarrrow=[];this.p.savedRow=[];this.p.records=0;this.p.page="0";this.p.lastpage=
|
152
|
+
"0";this.p.reccount=0;this.p.data=[];this.p_index={};this.updatepager(true,false)}})},getInd:function(d,e){var b=false,f;this.each(function(){if(f=this.rows.namedItem(d))b=e===true?f:f.rowIndex});return b}})})(jQuery);
|
110
153
|
(function(a){a.jgrid.extend({editCell:function(d,e,b){return this.each(function(){var f=this,g,h,j;if(!(!f.grid||f.p.cellEdit!==true)){e=parseInt(e,10);f.p.selrow=f.rows[d].id;f.p.knv||a(f).jqGrid("GridNav");if(f.p.savedRow.length>0){if(b===true)if(d==f.p.iRow&&e==f.p.iCol)return;a(f).jqGrid("saveCell",f.p.savedRow[0].id,f.p.savedRow[0].ic)}else window.setTimeout(function(){a("#"+f.p.knv).attr("tabindex","-1").focus()},0);g=f.p.colModel[e].name;if(!(g=="subgrid"||g=="cb"||g=="rn")){j=a("td:eq("+e+
|
111
154
|
")",f.rows[d]);if(f.p.colModel[e].editable===true&&b===true&&!j.hasClass("not-editable-cell")){if(parseInt(f.p.iCol,10)>=0&&parseInt(f.p.iRow,10)>=0){a("td:eq("+f.p.iCol+")",f.rows[f.p.iRow]).removeClass("edit-cell ui-state-highlight");a(f.rows[f.p.iRow]).removeClass("selected-row ui-state-hover")}a(j).addClass("edit-cell ui-state-highlight");a(f.rows[d]).addClass("selected-row ui-state-hover");try{h=a.unformat(j,{rowId:f.rows[d].id,colModel:f.p.colModel[e]},e)}catch(c){h=a(j).html()}if(f.p.autoencode)h=
|
112
155
|
a.jgrid.htmlDecode(h);if(!f.p.colModel[e].edittype)f.p.colModel[e].edittype="text";f.p.savedRow.push({id:d,ic:e,name:g,v:h});if(a.isFunction(f.p.formatCell)){var k=f.p.formatCell(f.rows[d].id,g,h,d,e);if(k!==undefined)h=k}k=a.extend({},f.p.colModel[e].editoptions||{},{id:d+"_"+g,name:g});var l=createEl(f.p.colModel[e].edittype,k,h,true,a.extend({},a.jgrid.ajaxOptions,f.p.ajaxSelectOptions||{}));a.isFunction(f.p.beforeEditCell)&&f.p.beforeEditCell(f.rows[d].id,g,h,d,e);a(j).html("").append(l).attr("tabindex",
|
113
|
-
"0");window.setTimeout(function(){a(l).focus()},0);a("input, select, textarea",j).bind("keydown",function(
|
156
|
+
"0");window.setTimeout(function(){a(l).focus()},0);a("input, select, textarea",j).bind("keydown",function(p){if(p.keyCode===27)if(a("input.hasDatepicker",j).length>0)a(".ui-datepicker").is(":hidden")?a(f).jqGrid("restoreCell",d,e):a("input.hasDatepicker",j).datepicker("hide");else a(f).jqGrid("restoreCell",d,e);p.keyCode===13&&a(f).jqGrid("saveCell",d,e);if(p.keyCode==9)if(f.grid.hDiv.loading)return false;else p.shiftKey?a(f).jqGrid("prevCell",d,e):a(f).jqGrid("nextCell",d,e);p.stopPropagation()});
|
114
157
|
a.isFunction(f.p.afterEditCell)&&f.p.afterEditCell(f.rows[d].id,g,h,d,e)}else{if(parseInt(f.p.iCol,10)>=0&&parseInt(f.p.iRow,10)>=0){a("td:eq("+f.p.iCol+")",f.rows[f.p.iRow]).removeClass("edit-cell ui-state-highlight");a(f.rows[f.p.iRow]).removeClass("selected-row ui-state-hover")}j.addClass("edit-cell ui-state-highlight");a(f.rows[d]).addClass("selected-row ui-state-hover");if(a.isFunction(f.p.onSelectCell)){h=j.html().replace(/\ \;/ig,"");f.p.onSelectCell(f.rows[d].id,g,h,d,e)}}f.p.iCol=e;f.p.iRow=
|
115
|
-
d}}})},saveCell:function(d,e){return this.each(function(){var b=this,f;if(!(!b.grid||b.p.cellEdit!==true)){f=b.p.savedRow.length>=1?0:null;if(f!==null){var g=a("td:eq("+e+")",b.rows[d]),h,j,c=b.p.colModel[e],k=c.name,l=a.jgrid.jqID(k);switch(c.edittype){case "select":if(c.editoptions.multiple){l=a("#"+d+"_"+l,b.rows[d]);var
|
116
|
-
j=a("#"+d+"_"+l+">option:selected",b.rows[d]).text()}if(c.formatter)j=h;break;case "checkbox":var
|
117
|
-
}catch(
|
118
|
-
if(a.isFunction(b.p.beforeSubmitCell))(f=b.p.beforeSubmitCell(b.rows[d].id,k,h,d,e))||(f={});a("input.hasDatepicker",g).length>0&&a("input.hasDatepicker",g).datepicker("hide");if(b.p.cellsubmit=="remote")if(b.p.cellurl){var
|
119
|
-
|
120
|
-
d,e)}}else{a(g).empty();a(b).jqGrid("setCell",b.rows[d].id,e,j,false,false,true);a(g).addClass("dirty-cell");a(b.rows[d]).addClass("edited");a.isFunction(b.p.afterSaveCell)&&b.p.afterSaveCell(b.rows[d].id,k,h,d,e);b.p.savedRow.splice(0,1)}},error:function(
|
121
|
-
b.p.ajaxCellOptions||{}))}else try{info_dialog(a.jgrid.errors.errcap,a.jgrid.errors.nourl,a.jgrid.edit.bClose);a(b).jqGrid("restoreCell",d,e)}catch(
|
122
|
-
100);a(b).jqGrid("restoreCell",d,e)}catch(
|
123
|
-
"-1");a(b).jqGrid("setCell",b.rows[d].id,e,b.p.savedRow[f].v,false,false,true);b.p.savedRow.splice(0,1)}window.setTimeout(function(){a("#"+b.p.knv).attr("tabindex","-1").focus()},0)}})},nextCell:function(d,e){return this.each(function(){var b=
|
124
|
-
e){return this.each(function(){var b=
|
125
|
-
a(b.grid.bDiv)[0].scrollTop+b.rows[j].clientHeight;if(k=="vu")if(p
|
126
|
-
function e(j,c){var k,l;if(c=="lft"){k=j+1;for(l=j;l>=0;l--)if(b.p.colModel[l].hidden!==true){k=l;break}}if(c=="rgt"){k=j-1;for(l=j;l<b.p.colModel.length;l++)if(b.p.colModel[l].hidden!==true){k=l;break}}return k}var b=this;if(!(!b.grid||b.p.cellEdit!==true)){b.p.knv=b.p.id+"_kn";var f=a("<span style='width:0px;height:0px;background-color:black;' tabindex='0'><span tabindex='-1' style='width:0px;height:0px;background-color:grey' id='"+b.p.knv+"'></span></span>"),g,h;
|
127
|
-
a("#"+b.p.knv).focus().keydown(function(j){h=j.keyCode;if(b.p.direction=="rtl")if(h==37)h=39;else if(h==39)h=37;switch(h){case 38:if(b.p.iRow-1>=0){d(b.p.iRow-1,b.p.iCol,"vu");a(b).jqGrid("editCell",b.p.iRow-1,b.p.iCol,false)}break;case 40:if(b.p.iRow+1<=b.rows.length-1){d(b.p.iRow+1,b.p.iCol,"vd");a(b).jqGrid("editCell",b.p.iRow+1,b.p.iCol,false)}break;case 37:if(b.p.iCol-1>=0){g=e(b.p.iCol-1,"lft");d(b.p.iRow,g,"h");a(b).jqGrid("editCell",b.p.iRow,g,false)}break;case 39:if(b.p.iCol+
|
128
|
-
1){g=e(b.p.iCol+1,"rgt");d(b.p.iRow,g,"h");a(b).jqGrid("editCell",b.p.iRow,g,false)}break;case 13:parseInt(b.p.iCol,10)>=0&&parseInt(b.p.iRow,10)>=0&&a(b).jqGrid("editCell",b.p.iRow,b.p.iCol,true);break}return false})}})},getChangedCells:function(d){var e=[];d||(d="all");this.each(function(){var b=this,f;!b.grid||b.p.cellEdit!==true||a(b.rows).each(function(g){var h={};if(a(this).hasClass("edited")){a("td",this).each(function(j){f=b.p.colModel[j].name;if(f!=="cb"&&f!=="subgrid")if(d==
|
129
|
-
a.unformat(this,{rowId:b.rows[g].id,colModel:b.p.colModel[j]},j)}catch(c){h[f]=a.jgrid.htmlDecode(a(this).html())}}else try{h[f]=a.unformat(this,{rowId:b.rows[g].id,colModel:b.p.colModel[j]},j)}catch(k){h[f]=a.jgrid.htmlDecode(a(this).html())}});h.id=this.id;e.push(h)}})});return e}})})(jQuery);
|
158
|
+
d}}})},saveCell:function(d,e){return this.each(function(){var b=this,f;if(!(!b.grid||b.p.cellEdit!==true)){f=b.p.savedRow.length>=1?0:null;if(f!==null){var g=a("td:eq("+e+")",b.rows[d]),h,j,c=b.p.colModel[e],k=c.name,l=a.jgrid.jqID(k);switch(c.edittype){case "select":if(c.editoptions.multiple){l=a("#"+d+"_"+l,b.rows[d]);var p=[];if(h=a(l).val())h.join(",");else h="";a("option:selected",l).each(function(u,y){p[u]=a(y).text()});j=p.join(",")}else{h=a("#"+d+"_"+l+">option:selected",b.rows[d]).val();
|
159
|
+
j=a("#"+d+"_"+l+">option:selected",b.rows[d]).text()}if(c.formatter)j=h;break;case "checkbox":var n=["Yes","No"];if(c.editoptions)n=c.editoptions.value.split(":");j=h=a("#"+d+"_"+l,b.rows[d]).attr("checked")?n[0]:n[1];break;case "password":case "text":case "textarea":case "button":j=h=a("#"+d+"_"+l,b.rows[d]).val();break;case "custom":try{if(c.editoptions&&a.isFunction(c.editoptions.custom_value)){h=c.editoptions.custom_value(a(".customelement",g),"get");if(h===undefined)throw"e2";else j=h}else throw"e1";
|
160
|
+
}catch(r){r=="e1"&&info_dialog(jQuery.jgrid.errors.errcap,"function 'custom_value' "+a.jgrid.edit.msg.nodefined,jQuery.jgrid.edit.bClose);r=="e2"?info_dialog(jQuery.jgrid.errors.errcap,"function 'custom_value' "+a.jgrid.edit.msg.novalue,jQuery.jgrid.edit.bClose):info_dialog(jQuery.jgrid.errors.errcap,r.message,jQuery.jgrid.edit.bClose)}break}if(j!=b.p.savedRow[f].v){if(a.isFunction(b.p.beforeSaveCell))if(f=b.p.beforeSaveCell(b.rows[d].id,k,h,d,e))h=f;var q=checkValues(h,e,b);if(q[0]===true){f={};
|
161
|
+
if(a.isFunction(b.p.beforeSubmitCell))(f=b.p.beforeSubmitCell(b.rows[d].id,k,h,d,e))||(f={});a("input.hasDatepicker",g).length>0&&a("input.hasDatepicker",g).datepicker("hide");if(b.p.cellsubmit=="remote")if(b.p.cellurl){var t={};if(b.p.autoencode)h=a.jgrid.htmlEncode(h);t[k]=h;n=b.p.prmNames;c=n.id;l=n.oper;t[c]=b.rows[d].id;t[l]=n.editoper;t=a.extend(f,t);a("#lui_"+b.p.id).show();b.grid.hDiv.loading=true;a.ajax(a.extend({url:b.p.cellurl,data:a.isFunction(b.p.serializeCellData)?b.p.serializeCellData(t):
|
162
|
+
t,type:"POST",complete:function(u,y){a("#lui_"+b.p.id).hide();b.grid.hDiv.loading=false;if(y=="success")if(a.isFunction(b.p.afterSubmitCell)){u=b.p.afterSubmitCell(u,t.id,k,h,d,e);if(u[0]===true){a(g).empty();a(b).jqGrid("setCell",b.rows[d].id,e,j,false,false,true);a(g).addClass("dirty-cell");a(b.rows[d]).addClass("edited");a.isFunction(b.p.afterSaveCell)&&b.p.afterSaveCell(b.rows[d].id,k,h,d,e);b.p.savedRow.splice(0,1)}else{info_dialog(a.jgrid.errors.errcap,u[1],a.jgrid.edit.bClose);a(b).jqGrid("restoreCell",
|
163
|
+
d,e)}}else{a(g).empty();a(b).jqGrid("setCell",b.rows[d].id,e,j,false,false,true);a(g).addClass("dirty-cell");a(b.rows[d]).addClass("edited");a.isFunction(b.p.afterSaveCell)&&b.p.afterSaveCell(b.rows[d].id,k,h,d,e);b.p.savedRow.splice(0,1)}},error:function(u,y){a("#lui_"+b.p.id).hide();b.grid.hDiv.loading=false;a.isFunction(b.p.errorCell)?b.p.errorCell(u,y):info_dialog(a.jgrid.errors.errcap,u.status+" : "+u.statusText+"<br/>"+y,a.jgrid.edit.bClose);a(b).jqGrid("restoreCell",d,e)}},a.jgrid.ajaxOptions,
|
164
|
+
b.p.ajaxCellOptions||{}))}else try{info_dialog(a.jgrid.errors.errcap,a.jgrid.errors.nourl,a.jgrid.edit.bClose);a(b).jqGrid("restoreCell",d,e)}catch(m){}if(b.p.cellsubmit=="clientArray"){a(g).empty();a(b).jqGrid("setCell",b.rows[d].id,e,j,false,false,true);a(g).addClass("dirty-cell");a(b.rows[d]).addClass("edited");a.isFunction(b.p.afterSaveCell)&&b.p.afterSaveCell(b.rows[d].id,k,h,d,e);b.p.savedRow.splice(0,1)}}else try{window.setTimeout(function(){info_dialog(a.jgrid.errors.errcap,h+" "+q[1],a.jgrid.edit.bClose)},
|
165
|
+
100);a(b).jqGrid("restoreCell",d,e)}catch(o){}}else a(b).jqGrid("restoreCell",d,e)}a.browser.opera?a("#"+b.p.knv).attr("tabindex","-1").focus():window.setTimeout(function(){a("#"+b.p.knv).attr("tabindex","-1").focus()},0)}})},restoreCell:function(d,e){return this.each(function(){var b=this,f;if(!(!b.grid||b.p.cellEdit!==true)){f=b.p.savedRow.length>=1?0:null;if(f!==null){var g=a("td:eq("+e+")",b.rows[d]);if(a.isFunction(a.fn.datepicker))try{a("input.hasDatepicker",g).datepicker("hide")}catch(h){}a(g).empty().attr("tabindex",
|
166
|
+
"-1");a(b).jqGrid("setCell",b.rows[d].id,e,b.p.savedRow[f].v,false,false,true);b.p.savedRow.splice(0,1)}window.setTimeout(function(){a("#"+b.p.knv).attr("tabindex","-1").focus()},0)}})},nextCell:function(d,e){return this.each(function(){var b=false;if(!(!this.grid||this.p.cellEdit!==true)){for(var f=e+1;f<this.p.colModel.length;f++)if(this.p.colModel[f].editable===true){b=f;break}if(b!==false)a(this).jqGrid("editCell",d,b,true);else this.p.savedRow.length>0&&a(this).jqGrid("saveCell",d,e)}})},prevCell:function(d,
|
167
|
+
e){return this.each(function(){var b=false;if(!(!this.grid||this.p.cellEdit!==true)){for(var f=e-1;f>=0;f--)if(this.p.colModel[f].editable===true){b=f;break}if(b!==false)a(this).jqGrid("editCell",d,b,true);else this.p.savedRow.length>0&&a(this).jqGrid("saveCell",d,e)}})},GridNav:function(){return this.each(function(){function d(j,c,k){if(k.substr(0,1)=="v"){var l=a(b.grid.bDiv)[0].clientHeight,p=a(b.grid.bDiv)[0].scrollTop,n=b.rows[j].offsetTop+b.rows[j].clientHeight,r=b.rows[j].offsetTop;if(k=="vd")if(n>=
|
168
|
+
l)a(b.grid.bDiv)[0].scrollTop=a(b.grid.bDiv)[0].scrollTop+b.rows[j].clientHeight;if(k=="vu")if(r<p)a(b.grid.bDiv)[0].scrollTop=a(b.grid.bDiv)[0].scrollTop-b.rows[j].clientHeight}if(k=="h"){k=a(b.grid.bDiv)[0].clientWidth;l=a(b.grid.bDiv)[0].scrollLeft;p=b.rows[j].cells[c].offsetLeft;if(b.rows[j].cells[c].offsetLeft+b.rows[j].cells[c].clientWidth>=k+parseInt(l,10))a(b.grid.bDiv)[0].scrollLeft=a(b.grid.bDiv)[0].scrollLeft+b.rows[j].cells[c].clientWidth;else if(p<l)a(b.grid.bDiv)[0].scrollLeft=a(b.grid.bDiv)[0].scrollLeft-
|
169
|
+
b.rows[j].cells[c].clientWidth}}function e(j,c){var k,l;if(c=="lft"){k=j+1;for(l=j;l>=0;l--)if(b.p.colModel[l].hidden!==true){k=l;break}}if(c=="rgt"){k=j-1;for(l=j;l<b.p.colModel.length;l++)if(b.p.colModel[l].hidden!==true){k=l;break}}return k}var b=this;if(!(!b.grid||b.p.cellEdit!==true)){b.p.knv=b.p.id+"_kn";var f=a("<span style='width:0px;height:0px;background-color:black;' tabindex='0'><span tabindex='-1' style='width:0px;height:0px;background-color:grey' id='"+b.p.knv+"'></span></span>"),g,h;
|
170
|
+
a(f).insertBefore(b.grid.cDiv);a("#"+b.p.knv).focus().keydown(function(j){h=j.keyCode;if(b.p.direction=="rtl")if(h==37)h=39;else if(h==39)h=37;switch(h){case 38:if(b.p.iRow-1>=0){d(b.p.iRow-1,b.p.iCol,"vu");a(b).jqGrid("editCell",b.p.iRow-1,b.p.iCol,false)}break;case 40:if(b.p.iRow+1<=b.rows.length-1){d(b.p.iRow+1,b.p.iCol,"vd");a(b).jqGrid("editCell",b.p.iRow+1,b.p.iCol,false)}break;case 37:if(b.p.iCol-1>=0){g=e(b.p.iCol-1,"lft");d(b.p.iRow,g,"h");a(b).jqGrid("editCell",b.p.iRow,g,false)}break;case 39:if(b.p.iCol+
|
171
|
+
1<=b.p.colModel.length-1){g=e(b.p.iCol+1,"rgt");d(b.p.iRow,g,"h");a(b).jqGrid("editCell",b.p.iRow,g,false)}break;case 13:parseInt(b.p.iCol,10)>=0&&parseInt(b.p.iRow,10)>=0&&a(b).jqGrid("editCell",b.p.iRow,b.p.iCol,true);break}return false})}})},getChangedCells:function(d){var e=[];d||(d="all");this.each(function(){var b=this,f;!b.grid||b.p.cellEdit!==true||a(b.rows).each(function(g){var h={};if(a(this).hasClass("edited")){a("td",this).each(function(j){f=b.p.colModel[j].name;if(f!=="cb"&&f!=="subgrid")if(d==
|
172
|
+
"dirty"){if(a(this).hasClass("dirty-cell"))try{h[f]=a.unformat(this,{rowId:b.rows[g].id,colModel:b.p.colModel[j]},j)}catch(c){h[f]=a.jgrid.htmlDecode(a(this).html())}}else try{h[f]=a.unformat(this,{rowId:b.rows[g].id,colModel:b.p.colModel[j]},j)}catch(k){h[f]=a.jgrid.htmlDecode(a(this).html())}});h.id=this.id;e.push(h)}})});return e}})})(jQuery);
|
130
173
|
var showModal=function(a){a.w.show()},closeModal=function(a){a.w.hide().attr("aria-hidden","true");a.o&&a.o.remove()},hideModal=function(a,d){d=jQuery.extend({jqm:true,gb:""},d||{});if(d.onClose){var e=d.onClose(a);if(typeof e=="boolean"&&!e)return}if(jQuery.fn.jqm&&d.jqm===true)jQuery(a).attr("aria-hidden","true").jqmHide();else{if(d.gb!="")try{jQuery(".jqgrid-overlay:first",d.gb).hide()}catch(b){}jQuery(a).hide().attr("aria-hidden","true")}};
|
131
174
|
function findPos(a){var d=0,e=0;if(a.offsetParent){do{d+=a.offsetLeft;e+=a.offsetTop}while(a=a.offsetParent)}return[d,e]}
|
132
175
|
var createModal=function(a,d,e,b,f,g){var h=document.createElement("div"),j;j=jQuery(e.gbox).attr("dir")=="rtl"?true:false;h.className="ui-widget ui-widget-content ui-corner-all ui-jqdialog";h.id=a.themodal;var c=document.createElement("div");c.className="ui-jqdialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix";c.id=a.modalhead;jQuery(c).append("<span class='ui-jqdialog-title'>"+e.caption+"</span>");var k=jQuery("<a href='javascript:void(0)' class='ui-jqdialog-titlebar-close ui-corner-all'></a>").hover(function(){k.addClass("ui-state-hover")},
|
133
176
|
function(){k.removeClass("ui-state-hover")}).append("<span class='ui-icon ui-icon-closethick'></span>");jQuery(c).append(k);if(j){h.dir="rtl";jQuery(".ui-jqdialog-title",c).css("float","right");jQuery(".ui-jqdialog-titlebar-close",c).css("left","0.3em")}else{h.dir="ltr";jQuery(".ui-jqdialog-title",c).css("float","left");jQuery(".ui-jqdialog-titlebar-close",c).css("right","0.3em")}var l=document.createElement("div");jQuery(l).addClass("ui-jqdialog-content ui-widget-content").attr("id",a.modalcontent);
|
134
|
-
jQuery(l).append(d);h.appendChild(l);jQuery(h).prepend(c);g===true?jQuery("body").append(h):jQuery(h).insertBefore(b);if(typeof e.jqModal==="undefined")e.jqModal=true;d={};if(jQuery.fn.jqm&&e.jqModal===true){if(e.left===0&&e.top===0){b=[];b=findPos(f);e.left=b[0]+4;e.top=b[1]+4}d.top=e.top+"px";d.left=e.left}else if(e.left!==0||e.top!==0){d.left=e.left;d.top=e.top+"px"}jQuery("a.ui-jqdialog-titlebar-close",c).click(function(){var
|
135
|
-
e.gbox;hideModal("#"+a.themodal,{gb:q,jqm:e.jqModal,onClose:
|
136
|
-
role:"dialog","aria-labelledby":a.modalhead,"aria-hidden":"true"});if(typeof e.drag=="undefined")e.drag=true;if(typeof e.resize=="undefined")e.resize=true;if(e.drag){jQuery(c).css("cursor","move");if(jQuery.fn.jqDrag)jQuery(h).jqDrag(c);else try{jQuery(h).draggable({handle:jQuery("#"+c.id)})}catch(
|
137
|
-
a.scrollelm?"#"+a.scrollelm:false)}else try{jQuery(h).resizable({handles:"se, sw",alsoResize:a.scrollelm?"#"+a.scrollelm:false})}catch(
|
177
|
+
jQuery(l).append(d);h.appendChild(l);jQuery(h).prepend(c);g===true?jQuery("body").append(h):jQuery(h).insertBefore(b);if(typeof e.jqModal==="undefined")e.jqModal=true;d={};if(jQuery.fn.jqm&&e.jqModal===true){if(e.left===0&&e.top===0){b=[];b=findPos(f);e.left=b[0]+4;e.top=b[1]+4}d.top=e.top+"px";d.left=e.left}else if(e.left!==0||e.top!==0){d.left=e.left;d.top=e.top+"px"}jQuery("a.ui-jqdialog-titlebar-close",c).click(function(){var r=jQuery("#"+a.themodal).data("onClose")||e.onClose,q=jQuery("#"+a.themodal).data("gbox")||
|
178
|
+
e.gbox;hideModal("#"+a.themodal,{gb:q,jqm:e.jqModal,onClose:r});return false});if(e.width===0||!e.width)e.width=300;if(e.height===0||!e.height)e.height=200;if(!e.zIndex)e.zIndex=950;f=0;if(j&&d.left&&!g){f=jQuery(e.gbox).width()-(!isNaN(e.width)?parseInt(e.width,10):0)-8;d.left=parseInt(d.left,10)+parseInt(f,10)}if(d.left)d.left+="px";jQuery(h).css(jQuery.extend({width:isNaN(e.width)?"auto":e.width+"px",height:isNaN(e.height)?"auto":e.height+"px",zIndex:e.zIndex,overflow:"hidden"},d)).attr({tabIndex:"-1",
|
179
|
+
role:"dialog","aria-labelledby":a.modalhead,"aria-hidden":"true"});if(typeof e.drag=="undefined")e.drag=true;if(typeof e.resize=="undefined")e.resize=true;if(e.drag){jQuery(c).css("cursor","move");if(jQuery.fn.jqDrag)jQuery(h).jqDrag(c);else try{jQuery(h).draggable({handle:jQuery("#"+c.id)})}catch(p){}}if(e.resize)if(jQuery.fn.jqResize){jQuery(h).append("<div class='jqResize ui-resizable-handle ui-resizable-se ui-icon ui-icon-gripsmall-diagonal-se ui-icon-grip-diagonal-se'></div>");jQuery("#"+a.themodal).jqResize(".jqResize",
|
180
|
+
a.scrollelm?"#"+a.scrollelm:false)}else try{jQuery(h).resizable({handles:"se, sw",alsoResize:a.scrollelm?"#"+a.scrollelm:false})}catch(n){}e.closeOnEscape===true&&jQuery(h).keydown(function(r){if(r.which==27){r=jQuery("#"+a.themodal).data("onClose")||e.onClose;hideModal(this,{gb:e.gbox,jqm:e.jqModal,onClose:r})}})},viewModal=function(a,d){d=jQuery.extend({toTop:true,overlay:10,modal:false,onShow:showModal,onHide:closeModal,gbox:"",jqm:true,jqM:true},d||{});if(jQuery.fn.jqm&&d.jqm===true)d.jqM?jQuery(a).attr("aria-hidden",
|
138
181
|
"false").jqm(d).jqmShow():jQuery(a).attr("aria-hidden","false").jqmShow();else{if(d.gbox!=""){jQuery(".jqgrid-overlay:first",d.gbox).show();jQuery(a).data("gbox",d.gbox)}jQuery(a).show().attr("aria-hidden","false");try{jQuery(":input:visible",a)[0].focus()}catch(e){}}};
|
139
182
|
function info_dialog(a,d,e,b){var f={width:290,height:"auto",dataheight:"auto",drag:true,resize:false,caption:"<b>"+a+"</b>",left:250,top:170,zIndex:1E3,jqModal:true,modal:false,closeOnEscape:true,align:"center",buttonalign:"center",buttons:[]};jQuery.extend(f,b||{});var g=f.jqModal;if(jQuery.fn.jqm&&!g)g=false;a="";if(f.buttons.length>0)for(b=0;b<f.buttons.length;b++){if(typeof f.buttons[b].id=="undefined")f.buttons[b].id="info_button_"+b;a+="<a href='javascript:void(0)' id='"+f.buttons[b].id+"' class='fm-button ui-state-default ui-corner-all'>"+
|
140
183
|
f.buttons[b].text+"</a>"}b=isNaN(f.dataheight)?f.dataheight:f.dataheight+"px";var h="<div id='info_id'>";h+="<div id='infocnt' style='margin:0px;padding-bottom:1em;width:100%;overflow:auto;position:relative;height:"+b+";"+("text-align:"+f.align+";")+"'>"+d+"</div>";h+=e?"<div class='ui-widget-content ui-helper-clearfix' style='text-align:"+f.buttonalign+";padding-bottom:0.8em;padding-top:0.5em;background-image: none;border-width: 1px 0 0 0;'><a href='javascript:void(0)' id='closedialog' class='fm-button ui-state-default ui-corner-all'>"+
|
141
184
|
e+"</a>"+a+"</div>":a!=""?"<div class='ui-widget-content ui-helper-clearfix' style='text-align:"+f.buttonalign+";padding-bottom:0.8em;padding-top:0.5em;background-image: none;border-width: 1px 0 0 0;'>"+a+"</div>":"";h+="</div>";try{jQuery("#info_dialog").attr("aria-hidden")=="false"&&hideModal("#info_dialog",{jqm:g});jQuery("#info_dialog").remove()}catch(j){}createModal({themodal:"info_dialog",modalhead:"info_head",modalcontent:"info_content",scrollelm:"infocnt"},h,f,"","",true);a&&jQuery.each(f.buttons,
|
142
|
-
function(k){jQuery("#"+this.id,"#info_id").bind("click",function(){f.buttons[k].onClick.call(jQuery("#info_dialog"));return false})});jQuery("#closedialog","#info_id").click(function(){hideModal("#info_dialog",{jqm:g});return false});jQuery(".fm-button","#info_dialog").hover(function(){jQuery(this).addClass("ui-state-hover")},function(){jQuery(this).removeClass("ui-state-hover")});viewModal("#info_dialog",{onHide:function(k){k.w.hide().remove();k.o&&
|
143
|
-
|
185
|
+
function(k){jQuery("#"+this.id,"#info_id").bind("click",function(){f.buttons[k].onClick.call(jQuery("#info_dialog"));return false})});jQuery("#closedialog","#info_id").click(function(){hideModal("#info_dialog",{jqm:g});return false});jQuery(".fm-button","#info_dialog").hover(function(){jQuery(this).addClass("ui-state-hover")},function(){jQuery(this).removeClass("ui-state-hover")});jQuery.isFunction(f.beforeOpen)&&f.beforeOpen();viewModal("#info_dialog",{onHide:function(k){k.w.hide().remove();k.o&&
|
186
|
+
k.o.remove()},modal:f.modal,jqm:g});jQuery.isFunction(f.afterOpen)&&f.afterOpen();try{$("#info_dialog").focus()}catch(c){}}
|
187
|
+
function createEl(a,d,e,b,f){function g(q,t){if(jQuery.isFunction(t.dataInit)){q.id=t.id;t.dataInit(q);delete t.id;delete t.dataInit}if(t.dataEvents){jQuery.each(t.dataEvents,function(){this.data!==undefined?jQuery(q).bind(this.type,this.data,this.fn):jQuery(q).bind(this.type,this.fn)});delete t.dataEvents}return t}var h="";d.defaultValue&&delete d.defaultValue;switch(a){case "textarea":h=document.createElement("textarea");if(b)d.cols||jQuery(h).css({width:"98%"});else if(!d.cols)d.cols=20;if(!d.rows)d.rows=
|
144
188
|
2;if(e==" "||e==" "||e.length==1&&e.charCodeAt(0)==160)e="";h.value=e;d=g(h,d);jQuery(h).attr(d).attr({role:"textbox",multiline:"true"});break;case "checkbox":h=document.createElement("input");h.type="checkbox";if(d.value){var j=d.value.split(":");if(e===j[0]){h.checked=true;h.defaultChecked=true}h.value=j[0];jQuery(h).attr("offval",j[1]);try{delete d.value}catch(c){}}else{j=e.toLowerCase();if(j.search(/(false|0|no|off|undefined)/i)<0&&j!==""){h.checked=true;h.defaultChecked=true;h.value=
|
145
|
-
e}else h.value="on";jQuery(h).attr("offval","off")}d=g(h,d);jQuery(h).attr(d).attr("role","checkbox");break;case "select":h=document.createElement("select");h.setAttribute("role","select");var k,l=[];if(d.multiple===true){k=true;h.multiple="multiple";$(h).attr("aria-multiselectable","true")}else k=false;if(typeof d.dataUrl!="undefined")jQuery.ajax(jQuery.extend({url:d.dataUrl,type:"GET",complete:function(q){try{delete d.dataUrl;delete d.value}catch(
|
146
|
-
q=jQuery(q).html();delete d.buildSelect}else q=jQuery(q.responseText).html();if(q){jQuery(h).append(q);d=g(h,d);if(typeof d.size==="undefined")d.size=k?3:1;if(k){l=e.split(",");l=jQuery.map(l,function(
|
147
|
-
"selected";if(!k)return false}})},0)}}},f||{}));else if(d.value){if(k){l=e.split(",");l=jQuery.map(l,function(q){return jQuery.trim(q)});if(typeof d.size==="undefined")d.size=3}else d.size=1;if(typeof d.value==="function")d.value=d.value();if(typeof d.value==="string"){b=d.value.split(";");for(j=0;j<b.length;j++){f=b[j].split(":");if(f.length>2)f[1]=jQuery.map(f,function(q,
|
189
|
+
e}else h.value="on";jQuery(h).attr("offval","off")}d=g(h,d);jQuery(h).attr(d).attr("role","checkbox");break;case "select":h=document.createElement("select");h.setAttribute("role","select");var k,l=[];if(d.multiple===true){k=true;h.multiple="multiple";$(h).attr("aria-multiselectable","true")}else k=false;if(typeof d.dataUrl!="undefined")jQuery.ajax(jQuery.extend({url:d.dataUrl,type:"GET",complete:function(q){try{delete d.dataUrl;delete d.value}catch(t){}if(typeof d.buildSelect!="undefined"){q=d.buildSelect(q);
|
190
|
+
q=jQuery(q).html();delete d.buildSelect}else q=jQuery(q.responseText).html();if(q){jQuery(h).append(q);d=g(h,d);if(typeof d.size==="undefined")d.size=k?3:1;if(k){l=e.split(",");l=jQuery.map(l,function(m){return jQuery.trim(m)})}else l[0]=jQuery.trim(e);jQuery(h).attr(d);setTimeout(function(){jQuery("option",h).each(function(m){if(m===0)this.selected="";$(this).attr("role","option");if(jQuery.inArray(jQuery.trim(jQuery(this).text()),l)>-1||jQuery.inArray(jQuery.trim(jQuery(this).val()),l)>-1){this.selected=
|
191
|
+
"selected";if(!k)return false}})},0)}}},f||{}));else if(d.value){if(k){l=e.split(",");l=jQuery.map(l,function(q){return jQuery.trim(q)});if(typeof d.size==="undefined")d.size=3}else d.size=1;if(typeof d.value==="function")d.value=d.value();if(typeof d.value==="string"){b=d.value.split(";");for(j=0;j<b.length;j++){f=b[j].split(":");if(f.length>2)f[1]=jQuery.map(f,function(q,t){if(t>0)return q}).join(":");a=document.createElement("option");a.setAttribute("role","option");a.value=f[0];a.innerHTML=f[1];
|
148
192
|
if(!k&&(jQuery.trim(f[0])==jQuery.trim(e)||jQuery.trim(f[1])==jQuery.trim(e)))a.selected="selected";if(k&&(jQuery.inArray(jQuery.trim(f[1]),l)>-1||jQuery.inArray(jQuery.trim(f[0]),l)>-1))a.selected="selected";h.appendChild(a)}}else if(typeof d.value==="object"){b=d.value;for(j in b)if(b.hasOwnProperty(j)){a=document.createElement("option");a.setAttribute("role","option");a.value=j;a.innerHTML=b[j];if(!k&&(jQuery.trim(j)==jQuery.trim(e)||jQuery.trim(b[j])==jQuery.trim(e)))a.selected="selected";if(k&&
|
149
|
-
(jQuery.inArray(jQuery.trim(b[j]),l)>-1||jQuery.inArray(jQuery.trim(j),l)>-1))a.selected="selected";h.appendChild(a)}}d=g(h,d);try{delete d.value}catch(
|
150
|
-
a;d=g(h,d);jQuery(h).attr(d);break;case "custom":h=document.createElement("span");try{if(jQuery.isFunction(d.custom_element)){var
|
151
|
-
jQuery.jgrid.edit.msg.novalue,jQuery.jgrid.edit.bClose):info_dialog(jQuery.jgrid.errors.errcap,
|
193
|
+
(jQuery.inArray(jQuery.trim(b[j]),l)>-1||jQuery.inArray(jQuery.trim(j),l)>-1))a.selected="selected";h.appendChild(a)}}d=g(h,d);try{delete d.value}catch(p){}jQuery(h).attr(d)}break;case "text":case "password":case "button":j=a=="button"?"button":"textbox";h=document.createElement("input");h.type=a;h.value=e;d=g(h,d);if(a!="button")if(b)d.size||jQuery(h).css({width:"98%"});else if(!d.size)d.size=20;jQuery(h).attr(d).attr("role",j);break;case "image":case "file":h=document.createElement("input");h.type=
|
194
|
+
a;d=g(h,d);jQuery(h).attr(d);break;case "custom":h=document.createElement("span");try{if(jQuery.isFunction(d.custom_element)){var n=d.custom_element.call(this,e,d);if(n){n=jQuery(n).addClass("customelement").attr({id:d.id,name:d.name});jQuery(h).empty().append(n)}else throw"e2";}else throw"e1";}catch(r){r=="e1"&&info_dialog(jQuery.jgrid.errors.errcap,"function 'custom_element' "+jQuery.jgrid.edit.msg.nodefined,jQuery.jgrid.edit.bClose);r=="e2"?info_dialog(jQuery.jgrid.errors.errcap,"function 'custom_element' "+
|
195
|
+
jQuery.jgrid.edit.msg.novalue,jQuery.jgrid.edit.bClose):info_dialog(jQuery.jgrid.errors.errcap,r.message,jQuery.jgrid.edit.bClose)}break}return h}function daysInFebruary(a){return a%4===0&&(a%100!==0||a%400===0)?29:28}function DaysArray(a){for(var d=1;d<=a;d++){this[d]=31;if(d==4||d==6||d==9||d==11)this[d]=30;if(d==2)this[d]=29}return this}
|
152
196
|
function checkDate(a,d){var e={},b;a=a.toLowerCase();b=a.indexOf("/")!=-1?"/":a.indexOf("-")!=-1?"-":a.indexOf(".")!=-1?".":"/";a=a.split(b);d=d.split(b);if(d.length!=3)return false;b=-1;for(var f,g=-1,h=-1,j=0;j<a.length;j++){f=isNaN(d[j])?0:parseInt(d[j],10);e[a[j]]=f;f=a[j];if(f.indexOf("y")!=-1)b=j;if(f.indexOf("m")!=-1)h=j;if(f.indexOf("d")!=-1)g=j}f=a[b]=="y"||a[b]=="yyyy"?4:a[b]=="yy"?2:-1;j=DaysArray(12);var c;if(b===-1)return false;else{c=e[a[b]].toString();if(f==2&&c.length==1)f=1;if(c.length!=
|
153
197
|
f||e[a[b]]===0&&d[b]!="00")return false}if(h===-1)return false;else{c=e[a[h]].toString();if(c.length<1||e[a[h]]<1||e[a[h]]>12)return false}if(g===-1)return false;else{c=e[a[g]].toString();if(c.length<1||e[a[g]]<1||e[a[g]]>31||e[a[h]]==2&&e[a[g]]>daysInFebruary(e[a[b]])||e[a[g]]>j[e[a[h]]])return false}return true}function isEmpty(a){return a.match(/^s+$/)||a==""?true:false}
|
154
198
|
function checkTime(a){var d=/^(\d{1,2}):(\d{2})([ap]m)?$/;if(!isEmpty(a))if(a=a.match(d)){if(a[3]){if(a[1]<1||a[1]>12)return false}else if(a[1]>23)return false;if(a[2]>59)return false}else return false;return true}
|
155
199
|
function checkValues(a,d,e){var b,f,g;if(typeof d=="string"){f=0;for(len=e.p.colModel.length;f<len;f++)if(e.p.colModel[f].name==d){b=e.p.colModel[f].editrules;d=f;try{g=e.p.colModel[f].formoptions.label}catch(h){}break}}else if(d>=0)b=e.p.colModel[d].editrules;if(b){g||(g=e.p.colNames[d]);if(b.required===true)if(a.match(/^s+$/)||a=="")return[false,g+": "+jQuery.jgrid.edit.msg.required,""];f=b.required===false?false:true;if(b.number===true)if(!(f===false&&isEmpty(a)))if(isNaN(a))return[false,g+": "+
|
156
200
|
jQuery.jgrid.edit.msg.number,""];if(typeof b.minValue!="undefined"&&!isNaN(b.minValue))if(parseFloat(a)<parseFloat(b.minValue))return[false,g+": "+jQuery.jgrid.edit.msg.minValue+" "+b.minValue,""];if(typeof b.maxValue!="undefined"&&!isNaN(b.maxValue))if(parseFloat(a)>parseFloat(b.maxValue))return[false,g+": "+jQuery.jgrid.edit.msg.maxValue+" "+b.maxValue,""];var j;if(b.email===true)if(!(f===false&&isEmpty(a))){j=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i;
|
157
|
-
if(!j.test(a))return[false,g+": "+jQuery.jgrid.edit.msg.email,""]}if(b.integer===true)if(!(f===false&&isEmpty(a))){if(isNaN(a))return[false,g+": "+jQuery.jgrid.edit.msg.integer,""];if(a%1!==0||a.indexOf(".")!=-1)return[false,g+": "+jQuery.jgrid.edit.msg.integer,""]}if(b.date===true)if(!(f===false&&isEmpty(a))){d=e.p.colModel[d].datefmt||"Y-m-d";if(!checkDate(d,a))return[false,g+": "+jQuery.jgrid.edit.msg.date+
|
158
|
-
": "+jQuery.jgrid.edit.msg.date+" - hh:mm (am/pm)",""];if(b.url===true)if(!(f===false&&isEmpty(a))){j=/^(((https?)|(ftp)):\/\/([\-\w]+\.)+\w{2,3}(\/[%\-\w]+(\.\w{2,})?)*(([\w\-\.\?\\\/+@&#;`~=%!]*)(\.\w{2,})?)*\/?)/i;if(!j.test(a))return[false,g+": "+jQuery.jgrid.edit.msg.url,""]}if(b.custom===true)if(!(f===false&&isEmpty(a)))if(jQuery.isFunction(b.custom_func)){a=b.custom_func.call(e,a,g);return jQuery.isArray(a)?
|
159
|
-
""]}return[true,"",""]}
|
160
|
-
(function(a){a.jgrid.extend({getColProp:function(d){var e={},b=this[0];if(b.grid){b=b.p.colModel;for(var f=0;f<b.length;f++)if(b[f].name==d){e=b[f];break}return e}},setColProp:function(d,e){return this.each(function(){if(this.grid)if(e)for(var b=this.p.colModel,f=0;f<b.length;f++)if(b[f].name==d){a.extend(this.p.colModel[f],e);break}})},sortGrid:function(d,e,b){return this.each(function(){var f
|
161
|
-
|
162
|
-
var e=document.createElement("table");a(e).attr({id:d.id});e.className=d.cl;d=this.id;a(e).removeClass("ui-jqgrid-btable");if(a(this.p.pager).parents("#gbox_"+d).length===1){a(e).insertBefore("#gbox_"+d).show();a(this.p.pager).insertBefore("#gbox_"+d)}else a(e).insertBefore("#gbox_"+d).show();a("#gbox_"+d).remove()}})},setGridState:function(d){return this.each(function(){if(this.grid)
|
163
|
-
|
164
|
-
|
165
|
-
e||(e="id");d&&d.length>0&&a(d).each(function(){l=this;if(k=j.rows.namedItem(l[e])){
|
166
|
-
this.name:this.name;if(l[f]!==undefined){c=j.formatter(
|
167
|
-
clearButton:"Clear",enableSearch:false,enableClear:false,beforeSearch:null,afterSearch:null,beforeClear:null,afterClear:null,url:"",marksearched:true},e||{});return this.each(function(){var b=this;this.p=e;if(this.p.filterModel.length===0&&this.p.gridModel===false)alert("No filter is set");else if(d){this.p.gridid=d.indexOf("#")!=-1?d:"#"+d;var f=a(this.p.gridid).jqGrid("getGridParam","colModel");if(f){if(this.p.gridModel===true){var g=a(this.p.gridid)[0],
|
168
|
-
this.search===false?false:true;h=this.editrules&&this.editrules.searchhidden===true?true:this.hidden===true?false:true;if(this.search===true&&h===true){
|
169
|
-
f[
|
170
|
-
default:if(
|
171
|
-
{url:
|
172
|
-
q.grid.hDiv).addClass("dirty-cell");
|
173
|
-
if(b.p.url){
|
174
|
-
|
175
|
-
a("select",this).width(
|
176
|
-
B=document.createElement("option");
|
177
|
-
4):a("input",
|
178
|
-
"' value='"+b.p.searchButton+"'/>";a(
|
179
|
-
this.triggerSearch=j;this.clearSearch=c}else alert("Could not get grid colModel")}else alert("No target grid is set!")})},filterToolbar:function(d){d=a.extend({autosearch:true,searchOnEnter:true,beforeSearch:null,afterSearch:null,beforeClear:null,afterClear:null,searchurl:"",stringResult:false,groupOp:"AND"},d||{});return this.each(function(){function e(j,c){var k=a(j);k[0]&&jQuery.each(c,function(){this.data!==undefined?
|
180
|
-
function(){var j={},c=0,k,l,
|
181
|
-
d.groupOp+'","rules":[',q=0;a.each(j,function(
|
182
|
-
d.afterSearch()},g=a("<tr class='ui-search-toolbar' role='rowheader'></tr>"),h;a.each(b.p.colModel,function(){var j=this,c,k,l,
|
183
|
-
this.surl||l.dataUrl)a.ajax(a.extend({url:
|
184
|
-
c).change(function(){f();return false});
|
185
|
-
|
186
|
-
(j.index||j.name)+"' id='gs_"+j.name+"' value='"+
|
187
|
-
500)}});break}a(k).append(c);a(g).append(k)});a("table thead",b.grid.hDiv).append(g);this.triggerToolbar=f;this.clearToolbar=function(j){var c={},k,l=0,
|
188
|
-
return false}});if(
|
189
|
-
a(b).jqGrid("setGridParam",{url:b.p.searchurl})}var
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
v[
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
false)
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
"#"+
|
230
|
-
|
231
|
-
|
232
|
-
b.
|
233
|
-
|
234
|
-
"#"+
|
235
|
-
|
236
|
-
a("#FormError","#"+
|
237
|
-
|
238
|
-
a("
|
239
|
-
a(
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
if(a(
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
a("
|
251
|
-
a("#"+n)
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
b.
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
a("
|
261
|
-
|
262
|
-
"
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")});
|
267
|
-
|
268
|
-
if(
|
269
|
-
if(b.
|
270
|
-
|
271
|
-
|
272
|
-
a(
|
201
|
+
if(!j.test(a))return[false,g+": "+jQuery.jgrid.edit.msg.email,""]}if(b.integer===true)if(!(f===false&&isEmpty(a))){if(isNaN(a))return[false,g+": "+jQuery.jgrid.edit.msg.integer,""];if(a%1!==0||a.indexOf(".")!=-1)return[false,g+": "+jQuery.jgrid.edit.msg.integer,""]}if(b.date===true)if(!(f===false&&isEmpty(a))){d=e.p.colModel[d].formatoptions&&e.p.colModel[d].formatoptions.newformat?e.p.colModel[d].formatoptions.newformat:e.p.colModel[d].datefmt||"Y-m-d";if(!checkDate(d,a))return[false,g+": "+jQuery.jgrid.edit.msg.date+
|
202
|
+
" - "+d,""]}if(b.time===true)if(!(f===false&&isEmpty(a)))if(!checkTime(a))return[false,g+": "+jQuery.jgrid.edit.msg.date+" - hh:mm (am/pm)",""];if(b.url===true)if(!(f===false&&isEmpty(a))){j=/^(((https?)|(ftp)):\/\/([\-\w]+\.)+\w{2,3}(\/[%\-\w]+(\.\w{2,})?)*(([\w\-\.\?\\\/+@&#;`~=%!]*)(\.\w{2,})?)*\/?)/i;if(!j.test(a))return[false,g+": "+jQuery.jgrid.edit.msg.url,""]}if(b.custom===true)if(!(f===false&&isEmpty(a)))if(jQuery.isFunction(b.custom_func)){a=b.custom_func.call(e,a,g);return jQuery.isArray(a)?
|
203
|
+
a:[false,jQuery.jgrid.edit.msg.customarray,""]}else return[false,jQuery.jgrid.edit.msg.customfcheck,""]}return[true,"",""]}
|
204
|
+
(function(a){a.jgrid.extend({getColProp:function(d){var e={},b=this[0];if(b.grid){b=b.p.colModel;for(var f=0;f<b.length;f++)if(b[f].name==d){e=b[f];break}return e}},setColProp:function(d,e){return this.each(function(){if(this.grid)if(e)for(var b=this.p.colModel,f=0;f<b.length;f++)if(b[f].name==d){a.extend(this.p.colModel[f],e);break}})},sortGrid:function(d,e,b){return this.each(function(){var f=-1;if(this.grid){if(!d)d=this.p.sortname;for(var g=0;g<this.p.colModel.length;g++)if(this.p.colModel[g].index==
|
205
|
+
d||this.p.colModel[g].name==d){f=g;break}if(f!=-1){g=this.p.colModel[f].sortable;if(typeof g!=="boolean")g=true;if(typeof e!=="boolean")e=false;g&&this.sortData("jqgh_"+d,f,e,b)}}})},GridDestroy:function(){return this.each(function(){if(this.grid){this.p.pager&&a(this.p.pager).remove();var d=this.id;try{a("#gbox_"+d).remove()}catch(e){}}})},GridUnload:function(){return this.each(function(){if(this.grid){var d={id:a(this).attr("id"),cl:a(this).attr("class")};this.p.pager&&a(this.p.pager).empty().removeClass("ui-state-default ui-jqgrid-pager corner-bottom");
|
206
|
+
var e=document.createElement("table");a(e).attr({id:d.id});e.className=d.cl;d=this.id;a(e).removeClass("ui-jqgrid-btable");if(a(this.p.pager).parents("#gbox_"+d).length===1){a(e).insertBefore("#gbox_"+d).show();a(this.p.pager).insertBefore("#gbox_"+d)}else a(e).insertBefore("#gbox_"+d).show();a("#gbox_"+d).remove()}})},setGridState:function(d){return this.each(function(){if(this.grid)if(d=="hidden"){a(".ui-jqgrid-bdiv, .ui-jqgrid-hdiv","#gview_"+this.p.id).slideUp("fast");this.p.pager&&a(this.p.pager).slideUp("fast");
|
207
|
+
this.p.toppager&&a(this.p.toppager).slideUp("fast");if(this.p.toolbar[0]===true){this.p.toolbar[1]=="both"&&a(this.grid.ubDiv).slideUp("fast");a(this.grid.uDiv).slideUp("fast")}this.p.footerrow&&a(".ui-jqgrid-sdiv","#gbox_"+this.p.id).slideUp("fast");a(".ui-jqgrid-titlebar-close span",this.grid.cDiv).removeClass("ui-icon-circle-triangle-n").addClass("ui-icon-circle-triangle-s");this.p.gridstate="hidden"}else if(d=="visible"){a(".ui-jqgrid-hdiv, .ui-jqgrid-bdiv","#gview_"+this.p.id).slideDown("fast");
|
208
|
+
this.p.pager&&a(this.p.pager).slideDown("fast");this.p.toppager&&a(this.p.toppager).slideDown("fast");if(this.p.toolbar[0]===true){this.p.toolbar[1]=="both"&&a(this.grid.ubDiv).slideDown("fast");a(this.grid.uDiv).slideDown("fast")}this.p.footerrow&&a(".ui-jqgrid-sdiv","#gbox_"+this.p.id).slideDown("fast");a(".ui-jqgrid-titlebar-close span",this.grid.cDiv).removeClass("ui-icon-circle-triangle-s").addClass("ui-icon-circle-triangle-n");this.p.gridstate="visible"}})},updateGridRows:function(d,e,b){var f,
|
209
|
+
g=false,h;this.each(function(){var j=this,c,k,l,p;if(!j.grid)return false;e||(e="id");d&&d.length>0&&a(d).each(function(){l=this;if(k=j.rows.namedItem(l[e])){p=l[e];if(b===true)if(j.p.jsonReader.repeatitems===true){if(j.p.jsonReader.cell)l=l[j.p.jsonReader.cell];for(var n=0;n<l.length;n++){c=j.formatter(p,l[n],n,l,"edit");h=j.p.colModel[n].title?{title:a.jgrid.stripHtml(c)}:{};j.p.treeGrid===true&&f==j.p.ExpandColumn?a("td:eq("+n+") > span:first",k).html(c).attr(h):a("td:eq("+n+")",k).html(c).attr(h)}return g=
|
210
|
+
true}a(j.p.colModel).each(function(r){f=b===true?this.jsonmap||this.name:this.name;if(l[f]!==undefined){c=j.formatter(p,l[f],r,l,"edit");h=this.title?{title:a.jgrid.stripHtml(c)}:{};j.p.treeGrid===true&&f==j.p.ExpandColumn?a("td:eq("+r+") > span:first",k).html(c).attr(h):a("td:eq("+r+")",k).html(c).attr(h);g=true}})}})});return g},filterGrid:function(d,e){e=a.extend({gridModel:false,gridNames:false,gridToolbar:false,filterModel:[],formtype:"horizontal",autosearch:true,formclass:"filterform",tableclass:"filtertable",
|
211
|
+
buttonclass:"filterbutton",searchButton:"Search",clearButton:"Clear",enableSearch:false,enableClear:false,beforeSearch:null,afterSearch:null,beforeClear:null,afterClear:null,url:"",marksearched:true},e||{});return this.each(function(){var b=this;this.p=e;if(this.p.filterModel.length===0&&this.p.gridModel===false)alert("No filter is set");else if(d){this.p.gridid=d.indexOf("#")!=-1?d:"#"+d;var f=a(this.p.gridid).jqGrid("getGridParam","colModel");if(f){if(this.p.gridModel===true){var g=a(this.p.gridid)[0],
|
212
|
+
h;a.each(f,function(p){var n=[];this.search=this.search===false?false:true;h=this.editrules&&this.editrules.searchhidden===true?true:this.hidden===true?false:true;if(this.search===true&&h===true){n.label=b.p.gridNames===true?g.p.colNames[p]:"";n.name=this.name;n.index=this.index||this.name;n.stype=this.edittype||"text";if(n.stype!="select")n.stype="text";n.defval=this.defval||"";n.surl=this.surl||"";n.sopt=this.editoptions||{};n.width=this.width;b.p.filterModel.push(n)}})}else a.each(b.p.filterModel,
|
213
|
+
function(){for(var p=0;p<f.length;p++)if(this.name==f[p].name){this.index=f[p].index||this.name;break}if(!this.index)this.index=this.name});var j=function(){var p={},n=0,r,q=a(b.p.gridid)[0],t;q.p.searchdata={};a.isFunction(b.p.beforeSearch)&&b.p.beforeSearch();a.each(b.p.filterModel,function(){t=this.index;switch(this.stype){case "select":if(r=a("select[name="+t+"]",b).val()){p[t]=r;b.p.marksearched&&a("#jqgh_"+this.name,q.grid.hDiv).addClass("dirty-cell");n++}else{b.p.marksearched&&a("#jqgh_"+this.name,
|
214
|
+
q.grid.hDiv).removeClass("dirty-cell");try{delete q.p.postData[this.index]}catch(u){}}break;default:if(r=a("input[name="+t+"]",b).val()){p[t]=r;b.p.marksearched&&a("#jqgh_"+this.name,q.grid.hDiv).addClass("dirty-cell");n++}else{b.p.marksearched&&a("#jqgh_"+this.name,q.grid.hDiv).removeClass("dirty-cell");try{delete q.p.postData[this.index]}catch(y){}}}});var m=n>0?true:false;a.extend(q.p.postData,p);var o;if(b.p.url){o=a(q).jqGrid("getGridParam","url");a(q).jqGrid("setGridParam",{url:b.p.url})}a(q).jqGrid("setGridParam",
|
215
|
+
{search:m}).trigger("reloadGrid",[{page:1}]);o&&a(q).jqGrid("setGridParam",{url:o});a.isFunction(b.p.afterSearch)&&b.p.afterSearch()},c=function(){var p={},n,r=0,q=a(b.p.gridid)[0],t;a.isFunction(b.p.beforeClear)&&b.p.beforeClear();a.each(b.p.filterModel,function(){t=this.index;n=this.defval?this.defval:"";if(!this.stype)this.stype="text";switch(this.stype){case "select":var u;a("select[name="+t+"] option",b).each(function(B){if(B===0)this.selected=true;if(a(this).text()==n){this.selected=true;u=
|
216
|
+
a(this).val();return false}});if(u){p[t]=u;b.p.marksearched&&a("#jqgh_"+this.name,q.grid.hDiv).addClass("dirty-cell");r++}else{b.p.marksearched&&a("#jqgh_"+this.name,q.grid.hDiv).removeClass("dirty-cell");try{delete q.p.postData[this.index]}catch(y){}}break;case "text":a("input[name="+t+"]",b).val(n);if(n){p[t]=n;b.p.marksearched&&a("#jqgh_"+this.name,q.grid.hDiv).addClass("dirty-cell");r++}else{b.p.marksearched&&a("#jqgh_"+this.name,q.grid.hDiv).removeClass("dirty-cell");try{delete q.p.postData[this.index]}catch(A){}}break}});
|
217
|
+
var m=r>0?true:false;a.extend(q.p.postData,p);var o;if(b.p.url){o=a(q).jqGrid("getGridParam","url");a(q).jqGrid("setGridParam",{url:b.p.url})}a(q).jqGrid("setGridParam",{search:m}).trigger("reloadGrid",[{page:1}]);o&&a(q).jqGrid("setGridParam",{url:o});a.isFunction(b.p.afterClear)&&b.p.afterClear()},k=a("<form name='SearchForm' style=display:inline;' class='"+this.p.formclass+"'></form>"),l=a("<table class='"+this.p.tableclass+"' cellspacing='0' cellpading='0' border='0'><tbody></tbody></table>");
|
218
|
+
a(k).append(l);(function(){var p=document.createElement("tr"),n,r,q,t;b.p.formtype=="horizontal"&&a(l).append(p);a.each(b.p.filterModel,function(m){q=document.createElement("td");a(q).append("<label for='"+this.name+"'>"+this.label+"</label>");t=document.createElement("td");var o=this;if(!this.stype)this.stype="text";switch(this.stype){case "select":if(this.surl)a(t).load(this.surl,function(){o.defval&&a("select",this).val(o.defval);a("select",this).attr({name:o.index||o.name,id:"sg_"+o.name});o.sopt&&
|
219
|
+
a("select",this).attr(o.sopt);b.p.gridToolbar===true&&o.width&&a("select",this).width(o.width);b.p.autosearch===true&&a("select",this).change(function(){j();return false})});else if(o.sopt.value){var u=o.sopt.value,y=document.createElement("select");a(y).attr({name:o.index||o.name,id:"sg_"+o.name}).attr(o.sopt);var A;if(typeof u==="string"){m=u.split(";");for(var B=0;B<m.length;B++){u=m[B].split(":");A=document.createElement("option");A.value=u[0];A.innerHTML=u[1];if(u[1]==o.defval)A.selected="selected";
|
220
|
+
y.appendChild(A)}}else if(typeof u==="object")for(B in u)if(u.hasOwnProperty(B)){m++;A=document.createElement("option");A.value=B;A.innerHTML=u[B];if(u[B]==o.defval)A.selected="selected";y.appendChild(A)}b.p.gridToolbar===true&&o.width&&a(y).width(o.width);a(t).append(y);b.p.autosearch===true&&a(y).change(function(){j();return false})}break;case "text":y=this.defval?this.defval:"";a(t).append("<input type='text' name='"+(this.index||this.name)+"' id='sg_"+this.name+"' value='"+y+"'/>");o.sopt&&a("input",
|
221
|
+
t).attr(o.sopt);if(b.p.gridToolbar===true&&o.width)a.browser.msie?a("input",t).width(o.width-4):a("input",t).width(o.width-2);b.p.autosearch===true&&a("input",t).keypress(function(I){if((I.charCode?I.charCode:I.keyCode?I.keyCode:0)==13){j();return false}return this});break}if(b.p.formtype=="horizontal"){b.p.gridToolbar===true&&b.p.gridNames===false?a(p).append(t):a(p).append(q).append(t);a(p).append(t)}else{n=document.createElement("tr");a(n).append(q).append(t);a(l).append(n)}});t=document.createElement("td");
|
222
|
+
if(b.p.enableSearch===true){r="<input type='button' id='sButton' class='"+b.p.buttonclass+"' value='"+b.p.searchButton+"'/>";a(t).append(r);a("input#sButton",t).click(function(){j();return false})}if(b.p.enableClear===true){r="<input type='button' id='cButton' class='"+b.p.buttonclass+"' value='"+b.p.clearButton+"'/>";a(t).append(r);a("input#cButton",t).click(function(){c();return false})}if(b.p.enableClear===true||b.p.enableSearch===true)if(b.p.formtype=="horizontal")a(p).append(t);else{n=document.createElement("tr");
|
223
|
+
a(n).append("<td> </td>").append(t);a(l).append(n)}})();a(this).append(k);this.triggerSearch=j;this.clearSearch=c}else alert("Could not get grid colModel")}else alert("No target grid is set!")})},filterToolbar:function(d){d=a.extend({autosearch:true,searchOnEnter:true,beforeSearch:null,afterSearch:null,beforeClear:null,afterClear:null,searchurl:"",stringResult:false,groupOp:"AND"},d||{});return this.each(function(){function e(j,c){var k=a(j);k[0]&&jQuery.each(c,function(){this.data!==undefined?
|
224
|
+
k.bind(this.type,this.data,this.fn):k.bind(this.type,this.fn)})}var b=this,f=function(){var j={},c=0,k,l,p={};a.each(b.p.colModel,function(){l=this.index||this.name;var o=this.searchoptions&&this.searchoptions.sopt?this.searchoptions.sopt[0]:"bw";switch(this.stype){case "select":if(k=a("select[name="+l+"]",b.grid.hDiv).val()){j[l]=k;p[l]=o;c++}else try{delete b.p.postData[l]}catch(u){}break;case "text":if(k=a("input[name="+l+"]",b.grid.hDiv).val()){j[l]=k;p[l]=o;c++}else try{delete b.p.postData[l]}catch(y){}break}});
|
225
|
+
var n=c>0?true:false;if(d.stringResult===true||b.p.datatype=="local"){var r='{"groupOp":"'+d.groupOp+'","rules":[',q=0;a.each(j,function(o,u){if(q>0)r+=",";r+='{"field":"'+o+'",';r+='"op":"'+p[o]+'",';r+='"data":"'+u+'"}';q++});r+="]}";a.extend(b.p.postData,{filters:r})}else a.extend(b.p.postData,j);var t;if(b.p.searchurl){t=b.p.url;a(b).jqGrid("setGridParam",{url:b.p.searchurl})}var m=false;if(a.isFunction(d.beforeSearch))m=d.beforeSearch.call(b);m||a(b).jqGrid("setGridParam",{search:n}).trigger("reloadGrid",
|
226
|
+
[{page:1}]);t&&a(b).jqGrid("setGridParam",{url:t});a.isFunction(d.afterSearch)&&d.afterSearch()},g=a("<tr class='ui-search-toolbar' role='rowheader'></tr>"),h;a.each(b.p.colModel,function(){var j=this,c,k,l,p;k=a("<th role='columnheader' class='ui-state-default ui-th-column ui-th-"+b.p.direction+"'></th>");c=a("<div style='width:100%;position:relative;height:100%;padding-right:0.3em;'></div>");this.hidden===true&&a(k).css("display","none");this.search=this.search===false?false:true;if(typeof this.stype==
|
227
|
+
"undefined")this.stype="text";l=a.extend({},this.searchoptions||{});if(this.search)switch(this.stype){case "select":if(p=this.surl||l.dataUrl)a.ajax(a.extend({url:p,dataType:"html",complete:function(m){if(l.buildSelect!==undefined)(m=l.buildSelect(m))&&a(c).append(m);else a(c).append(m.responseText);l.defaultValue&&a("select",c).val(l.defaultValue);a("select",c).attr({name:j.index||j.name,id:"gs_"+j.name});l.attr&&a("select",c).attr(l.attr);a("select",c).css({width:"100%"});l.dataInit!==undefined&&
|
228
|
+
l.dataInit(a("select",c)[0]);l.dataEvents!==undefined&&e(a("select",c)[0],l.dataEvents);d.autosearch===true&&a("select",c).change(function(){f();return false});m=null}},a.jgrid.ajaxOptions,b.p.ajaxSelectOptions||{}));else{var n;if(j.searchoptions&&j.searchoptions.value)n=j.searchoptions.value;else if(j.editoptions&&j.editoptions.value)n=j.editoptions.value;if(n){p=document.createElement("select");p.style.width="100%";a(p).attr({name:j.index||j.name,id:"gs_"+j.name});var r,q;if(typeof n==="string"){n=
|
229
|
+
n.split(";");for(var t=0;t<n.length;t++){r=n[t].split(":");q=document.createElement("option");q.value=r[0];q.innerHTML=r[1];p.appendChild(q)}}else if(typeof n==="object")for(r in n)if(n.hasOwnProperty(r)){q=document.createElement("option");q.value=r;q.innerHTML=n[r];p.appendChild(q)}l.defaultValue&&a(p).val(l.defaultValue);l.attr&&a(p).attr(l.attr);l.dataInit!==undefined&&l.dataInit(p);l.dataEvents!==undefined&&e(p,l.dataEvents);a(c).append(p);d.autosearch===true&&a(p).change(function(){f();return false})}}break;
|
230
|
+
case "text":p=l.defaultValue?l.defaultValue:"";a(c).append("<input type='text' style='width:95%;padding:0px;' name='"+(j.index||j.name)+"' id='gs_"+j.name+"' value='"+p+"'/>");l.attr&&a("input",c).attr(l.attr);l.dataInit!==undefined&&l.dataInit(a("input",c)[0]);l.dataEvents!==undefined&&e(a("input",c)[0],l.dataEvents);if(d.autosearch===true)d.searchOnEnter?a("input",c).keypress(function(m){if((m.charCode?m.charCode:m.keyCode?m.keyCode:0)==13){f();return false}return this}):a("input",c).keydown(function(m){switch(m.which){case 13:return false;
|
231
|
+
case 9:case 16:case 37:case 38:case 39:case 40:case 27:break;default:h&&clearTimeout(h);h=setTimeout(function(){f()},500)}});break}a(k).append(c);a(g).append(k)});a("table thead",b.grid.hDiv).append(g);this.triggerToolbar=f;this.clearToolbar=function(j){var c={},k,l=0,p;j=typeof j!="boolean"?true:j;a.each(b.p.colModel,function(){k=this.searchoptions&&this.searchoptions.defaultValue?this.searchoptions.defaultValue:"";p=this.index||this.name;switch(this.stype){case "select":var o;a("select[name="+p+
|
232
|
+
"] option",b.grid.hDiv).each(function(A){if(A===0)this.selected=true;if(a(this).text()==k){this.selected=true;o=a(this).val();return false}});if(o){c[p]=o;l++}else try{delete b.p.postData[p]}catch(u){}break;case "text":a("input[name="+p+"]",b.grid.hDiv).val(k);if(k){c[p]=k;l++}else try{delete b.p.postData[p]}catch(y){}break}});var n=l>0?true:false;if(d.stringResult===true||b.p.datatype=="local"){var r='{"groupOp":"'+d.groupOp+'","rules":[',q=0;a.each(c,function(o,u){if(q>0)r+=",";r+='{"field":"'+
|
233
|
+
o+'",';r+='"op":"eq",';r+='"data":"'+u+'"}';q++});r+="]}";a.extend(b.p.postData,{filters:r})}else a.extend(b.p.postData,c);var t;if(b.p.searchurl){t=b.p.url;a(b).jqGrid("setGridParam",{url:b.p.searchurl})}var m=false;if(a.isFunction(d.beforeClear))m=d.beforeClear.call(b);m||j&&a(b).jqGrid("setGridParam",{search:n}).trigger("reloadGrid",[{page:1}]);t&&a(b).jqGrid("setGridParam",{url:t});a.isFunction(d.afterClear)&&d.afterClear()};this.toggleToolbar=function(){var j=a("tr.ui-search-toolbar",b.grid.hDiv);
|
234
|
+
j.css("display")=="none"?j.show():j.hide()}})}})})(jQuery);
|
235
|
+
(function(a){var d=null;a.jgrid.extend({searchGrid:function(e){e=a.extend({recreateFilter:false,drag:true,sField:"searchField",sValue:"searchString",sOper:"searchOper",sFilter:"filters",loadDefaults:true,beforeShowSearch:null,afterShowSearch:null,onInitializeSearch:null,closeAfterSearch:false,closeAfterReset:false,closeOnEscape:false,multipleSearch:false,cloneSearchRowOnAdd:true,sopt:null,stringResult:undefined,onClose:null,useDataProxy:false,overlay:true},a.jgrid.search,e||{});return this.each(function(){function b(y,
|
236
|
+
A){A=y.p.postData[A.sFilter];if(typeof A=="string")A=a.jgrid.parse(A);if(A){A.groupOp&&y.SearchFilter.setGroupOp(A.groupOp);if(A.rules){var B,I=0,v=A.rules.length;for(B=false;I<v;I++){B=A.rules[I];if(B.field!==undefined&&B.op!==undefined&&B.data!==undefined)(B=y.SearchFilter.setFilter({sfref:y.SearchFilter.$.find(".sf:last"),filter:a.extend({},B)}))&&y.SearchFilter.add()}}}}function f(y){var A=y!==undefined,B=a("#"+c.p.id),I={};if(e.multipleSearch===false){I[e.sField]=y.rules[0].field;I[e.sValue]=
|
237
|
+
y.rules[0].data;I[e.sOper]=y.rules[0].op}else I[e.sFilter]=y;B[0].p.search=A;a.extend(B[0].p.postData,I);B.trigger("reloadGrid",[{page:1}]);e.closeAfterSearch&&h(a("#"+k))}function g(y){y=y&&y.hasOwnProperty("reload")?y.reload:true;grid=a("#"+c.p.id);sdata=[];grid[0].p.search=false;if(e.multipleSearch===false)sdata[e.sField]=sdata[e.sValue]=sdata[e.sOper]="";else sdata[e.sFilter]="";a.extend(grid[0].p.postData,sdata);y&&grid.trigger("reloadGrid",[{page:1}]);e.closeAfterReset&&h(a("#"+k))}function h(y){if(e.onClose){var A=
|
238
|
+
e.onClose(y);if(typeof A=="boolean"&&!A)return}y.hide();e.overlay===true&&a(".jqgrid-overlay:first","#gbox_"+c.p.id).hide()}function j(){var y=a(".ui-searchFilter").length;if(y>1){var A=a("#"+k).css("zIndex");a("#"+k).css({zIndex:parseInt(A,10)+y})}a("#"+k).show();e.overlay===true&&a(".jqgrid-overlay:first","#gbox_"+c.p.id).show();try{a(":input:visible","#"+k)[0].focus()}catch(B){}}var c=this;if(c.grid)if(a.fn.searchFilter){var k="fbox_"+c.p.id;e.recreateFilter===true&&a("#"+k).remove();if(a("#"+
|
239
|
+
k).html()!=null){a.isFunction(e.beforeShowSearch)&&e.beforeShowSearch(a("#"+k));j();a.isFunction(e.afterShowSearch)&&e.afterShowSearch(a("#"+k))}else{var l=[],p=a("#"+c.p.id).jqGrid("getGridParam","colNames"),n=a("#"+c.p.id).jqGrid("getGridParam","colModel"),r=["eq","ne","lt","le","gt","ge","bw","bn","in","ni","ew","en","cn","nc"],q,t,m,o=[];if(e.sopt!==null)for(q=m=0;q<e.sopt.length;q++){if((t=a.inArray(e.sopt[q],r))!=-1){o[m]={op:e.sopt[q],text:e.odata[t]};m++}}else for(q=0;q<r.length;q++)o[q]=
|
240
|
+
{op:r[q],text:e.odata[q]};a.each(n,function(y,A){var B=typeof A.search==="undefined"?true:A.search,I=A.hidden===true;y=a.extend({},{text:p[y],itemval:A.index||A.name},this.searchoptions);A=y.searchhidden===true;if(typeof y.sopt!=="undefined"){m=0;y.ops=[];if(y.sopt.length>0)for(q=0;q<y.sopt.length;q++)if((t=a.inArray(y.sopt[q],r))!=-1){y.ops[m]={op:y.sopt[q],text:e.odata[t]};m++}}if(typeof this.stype==="undefined")this.stype="text";if(this.stype=="select")if(y.dataUrl===undefined){var v;if(y.value)v=
|
241
|
+
y.value;else if(this.editoptions)v=this.editoptions.value;if(v){y.dataValues=[];if(typeof v==="string"){v=v.split(";");var z;for(q=0;q<v.length;q++){z=v[q].split(":");y.dataValues[q]={value:z[0],text:z[1]}}}else if(typeof v==="object"){q=0;for(z in v)if(v.hasOwnProperty(z)){y.dataValues[q]={value:z,text:v[z]};q++}}}}if(A&&B||B&&!I)l.push(y)});if(l.length>0){a("<div id='"+k+"' role='dialog' tabindex='-1'></div>").insertBefore("#gview_"+c.p.id);if(e.stringResult===undefined)e.stringResult=e.multipleSearch;
|
242
|
+
c.SearchFilter=a("#"+k).searchFilter(l,{groupOps:e.groupOps,operators:o,onClose:h,resetText:e.Reset,searchText:e.Find,windowTitle:e.caption,rulesText:e.rulesText,matchText:e.matchText,onSearch:f,onReset:g,stringResult:e.stringResult,ajaxSelectOptions:a.extend({},a.jgrid.ajaxOptions,c.p.ajaxSelectOptions||{}),clone:e.cloneSearchRowOnAdd});a(".ui-widget-overlay","#"+k).remove();c.p.direction=="rtl"&&a(".ui-closer","#"+k).css("float","left");if(e.drag===true){a("#"+k+" table thead tr:first td:first").css("cursor",
|
243
|
+
"move");if(jQuery.fn.jqDrag)a("#"+k).jqDrag(a("#"+k+" table thead tr:first td:first"));else try{a("#"+k).draggable({handle:a("#"+k+" table thead tr:first td:first")})}catch(u){}}if(e.multipleSearch===false){a(".ui-del, .ui-add, .ui-del, .ui-add-last, .matchText, .rulesText","#"+k).hide();a("select[name='groupOp']","#"+k).hide()}e.multipleSearch===true&&e.loadDefaults===true&&b(c,e);a.isFunction(e.onInitializeSearch)&&e.onInitializeSearch(a("#"+k));a.isFunction(e.beforeShowSearch)&&e.beforeShowSearch(a("#"+
|
244
|
+
k));j();a.isFunction(e.afterShowSearch)&&e.afterShowSearch(a("#"+k));e.closeOnEscape===true&&a("#"+k).keydown(function(y){y.which==27&&h(a("#"+k))})}}}})},editGridRow:function(e,b){d=b=a.extend({top:0,left:0,width:300,height:"auto",dataheight:"auto",modal:false,drag:true,resize:true,url:null,mtype:"POST",clearAfterAdd:true,closeAfterEdit:false,reloadAfterSubmit:true,onInitializeForm:null,beforeInitData:null,beforeShowForm:null,afterShowForm:null,beforeSubmit:null,afterSubmit:null,onclickSubmit:null,
|
245
|
+
afterComplete:null,onclickPgButtons:null,afterclickPgButtons:null,editData:{},recreateForm:false,jqModal:true,closeOnEscape:false,addedrow:"first",topinfo:"",bottominfo:"",saveicon:[],closeicon:[],savekey:[false,13],navkeys:[false,38,40],checkOnSubmit:false,checkOnUpdate:false,_savedData:{},processing:false,onClose:null,ajaxEditOptions:{},serializeEditData:null,viewPagerButtons:true},a.jgrid.edit,b||{});return this.each(function(){function f(E,F){E===0?a("#pData","#"+t+"_2").addClass("ui-state-disabled"):
|
246
|
+
a("#pData","#"+t+"_2").removeClass("ui-state-disabled");E==F?a("#nData","#"+t+"_2").addClass("ui-state-disabled"):a("#nData","#"+t+"_2").removeClass("ui-state-disabled")}function g(){var E=a(n).jqGrid("getDataIDs"),F=a("#id_g","#"+t).val();return[a.inArray(F,E),E]}function h(){var E=true;a("#FormError","#"+t).hide();if(d.checkOnUpdate){v={};z={};j();H=a.extend({},v,z);if(K=p(H,d._savedData)){a("#"+q).data("disabled",true);a(".confirm","#"+m.themodal).show();E=false}}return E}function j(){a(".FormElement",
|
247
|
+
"#"+t).each(function(){var E=a(".customelement",this);if(E.length){var F=a(E[0]).attr("name");a.each(n.p.colModel,function(){if(this.name==F&&this.editoptions&&a.isFunction(this.editoptions.custom_value)){try{v[F]=this.editoptions.custom_value(a("#"+F,"#"+t),"get");if(v[F]===undefined)throw"e1";}catch(M){M=="e1"?info_dialog(jQuery.jgrid.errors.errcap,"function 'custom_value' "+a.jgrid.edit.msg.novalue,jQuery.jgrid.edit.bClose):info_dialog(jQuery.jgrid.errors.errcap,M.message,jQuery.jgrid.edit.bClose)}return true}})}else{switch(a(this).get(0).type){case "checkbox":if(a(this).attr("checked"))v[this.name]=
|
248
|
+
a(this).val();else{E=a(this).attr("offval");v[this.name]=E}break;case "select-one":v[this.name]=a("option:selected",this).val();z[this.name]=a("option:selected",this).text();break;case "select-multiple":v[this.name]=a(this).val();v[this.name]=v[this.name]?v[this.name].join(","):"";var X=[];a("option:selected",this).each(function(M,da){X[M]=a(da).text()});z[this.name]=X.join(",");break;case "password":case "text":case "textarea":case "button":v[this.name]=a(this).val();break}if(n.p.autoencode)v[this.name]=
|
249
|
+
a.jgrid.htmlEncode(v[this.name])}});return true}function c(E,F,X,M){for(var da,W,Y,aa=0,N,ja,ba,qa=[],ea=false,Fa="",ka=1;ka<=M;ka++)Fa+="<td class='CaptionTD ui-widget-content'> </td><td class='DataTD ui-widget-content' style='white-space:pre'> </td>";if(E!="_empty")ea=a(F).jqGrid("getInd",E);a(F.p.colModel).each(function(oa){da=this.name;ja=(W=this.editrules&&this.editrules.edithidden===true?false:this.hidden===true?true:false)?"style='display:none'":"";if(da!=="cb"&&da!=="subgrid"&&this.editable===
|
250
|
+
true&&da!=="rn"){if(ea===false)N="";else if(da==F.p.ExpandColumn&&F.p.treeGrid===true)N=a("td:eq("+oa+")",F.rows[ea]).text();else try{N=a.unformat(a("td:eq("+oa+")",F.rows[ea]),{rowId:E,colModel:this},oa)}catch(Ca){N=a("td:eq("+oa+")",F.rows[ea]).html()}var Aa=a.extend({},this.editoptions||{},{id:da,name:da}),Ea=a.extend({},{elmprefix:"",elmsuffix:"",rowabove:false,rowcontent:""},this.formoptions||{}),s=parseInt(Ea.rowpos,10)||aa+1,w=parseInt((parseInt(Ea.colpos,10)||1)*2,10);if(E=="_empty"&&Aa.defaultValue)N=
|
251
|
+
a.isFunction(Aa.defaultValue)?Aa.defaultValue():Aa.defaultValue;if(!this.edittype)this.edittype="text";if(n.p.autoencode)N=a.jgrid.htmlDecode(N);ba=createEl(this.edittype,Aa,N,false,a.extend({},a.jgrid.ajaxOptions,F.p.ajaxSelectOptions||{}));if(N==""&&this.edittype=="checkbox")N=a(ba).attr("offval");if(N==""&&this.edittype=="select")N=a("option:eq(0)",ba).text();if(d.checkOnSubmit||d.checkOnUpdate)d._savedData[da]=N;a(ba).addClass("FormElement");Y=a(X).find("tr[rowpos="+s+"]");if(Ea.rowabove){Aa=
|
252
|
+
a("<tr><td class='contentinfo' colspan='"+M*2+"'>"+Ea.rowcontent+"</td></tr>");a(X).append(Aa);Aa[0].rp=s}if(Y.length===0){Y=a("<tr "+ja+" rowpos='"+s+"'></tr>").addClass("FormData").attr("id","tr_"+da);a(Y).append(Fa);a(X).append(Y);Y[0].rp=s}a("td:eq("+(w-2)+")",Y[0]).html(typeof Ea.label==="undefined"?F.p.colNames[oa]:Ea.label);a("td:eq("+(w-1)+")",Y[0]).append(Ea.elmprefix).append(ba).append(Ea.elmsuffix);qa[aa]=oa;aa++}});if(aa>0){ka=a("<tr class='FormData' style='display:none'><td class='CaptionTD'></td><td colspan='"+
|
253
|
+
(M*2-1)+"' class='DataTD'><input class='FormElement' id='id_g' type='text' name='"+F.p.id+"_id' value='"+E+"'/></td></tr>");ka[0].rp=aa+999;a(X).append(ka);if(d.checkOnSubmit||d.checkOnUpdate)d._savedData[F.p.id+"_id"]=E}return qa}function k(E,F,X){var M,da=0,W,Y,aa,N,ja;if(d.checkOnSubmit||d.checkOnUpdate){d._savedData={};d._savedData[F.p.id+"_id"]=E}var ba=F.p.colModel;if(E=="_empty"){a(ba).each(function(){M=this.name;aa=a.extend({},this.editoptions||{});Y=a("#"+a.jgrid.jqID(M),"#"+X);if(Y[0]!=
|
254
|
+
null){N="";if(aa.defaultValue){N=a.isFunction(aa.defaultValue)?aa.defaultValue():aa.defaultValue;if(Y[0].type=="checkbox"){ja=N.toLowerCase();if(ja.search(/(false|0|no|off|undefined)/i)<0&&ja!==""){Y[0].checked=true;Y[0].defaultChecked=true;Y[0].value=N}else Y.attr({checked:"",defaultChecked:""})}else Y.val(N)}else if(Y[0].type=="checkbox"){Y[0].checked=false;Y[0].defaultChecked=false;N=a(Y).attr("offval")}else if(Y[0].type.substr(0,6)=="select")Y[0].selectedIndex=0;else Y.val(N);if(d.checkOnSubmit===
|
255
|
+
true||d.checkOnUpdate)d._savedData[M]=N}});a("#id_g","#"+X).val(E)}else{var qa=a(F).jqGrid("getInd",E,true);if(qa){a("td",qa).each(function(ea){M=ba[ea].name;if(M!=="cb"&&M!=="subgrid"&&M!=="rn"&&ba[ea].editable===true){if(M==F.p.ExpandColumn&&F.p.treeGrid===true)W=a(this).text();else try{W=a.unformat(this,{rowId:E,colModel:ba[ea]},ea)}catch(Fa){W=a(this).html()}if(n.p.autoencode)W=a.jgrid.htmlDecode(W);if(d.checkOnSubmit===true||d.checkOnUpdate)d._savedData[M]=W;M=a.jgrid.jqID(M);switch(ba[ea].edittype){case "password":case "text":case "button":case "image":a("#"+
|
256
|
+
M,"#"+X).val(W);break;case "textarea":if(W==" "||W==" "||W.length==1&&W.charCodeAt(0)==160)W="";a("#"+M,"#"+X).val(W);break;case "select":var ka=W.split(",");ka=a.map(ka,function(Ca){return a.trim(Ca)});a("#"+M+" option","#"+X).each(function(){this.selected=!ba[ea].editoptions.multiple&&(ka[0]==a.trim(a(this).text())||ka[0]==a.trim(a(this).val()))?true:ba[ea].editoptions.multiple?a.inArray(a.trim(a(this).text()),ka)>-1||a.inArray(a.trim(a(this).val()),ka)>-1?true:false:false});break;case "checkbox":W+=
|
257
|
+
"";if(ba[ea].editoptions&&ba[ea].editoptions.value)if(ba[ea].editoptions.value.split(":")[0]==W){a("#"+M,"#"+X).attr("checked",true);a("#"+M,"#"+X).attr("defaultChecked",true)}else{a("#"+M,"#"+X).attr("checked",false);a("#"+M,"#"+X).attr("defaultChecked","")}else{W=W.toLowerCase();if(W.search(/(false|0|no|off|undefined)/i)<0&&W!==""){a("#"+M,"#"+X).attr("checked",true);a("#"+M,"#"+X).attr("defaultChecked",true)}else{a("#"+M,"#"+X).attr("checked",false);a("#"+M,"#"+X).attr("defaultChecked","")}}break;
|
258
|
+
case "custom":try{if(ba[ea].editoptions&&a.isFunction(ba[ea].editoptions.custom_value))ba[ea].editoptions.custom_value(a("#"+M,"#"+X),"set",W);else throw"e1";}catch(oa){oa=="e1"?info_dialog(jQuery.jgrid.errors.errcap,"function 'custom_value' "+a.jgrid.edit.msg.nodefined,jQuery.jgrid.edit.bClose):info_dialog(jQuery.jgrid.errors.errcap,oa.message,jQuery.jgrid.edit.bClose)}break}da++}});da>0&&a("#id_g","#"+t).val(E)}}}function l(){var E,F=[true,"",""],X={},M=n.p.prmNames,da,W;if(a.isFunction(d.beforeCheckValues)){var Y=
|
259
|
+
d.beforeCheckValues(v,a("#"+q),v[n.p.id+"_id"]=="_empty"?M.addoper:M.editoper);if(Y&&typeof Y==="object")v=Y}for(var aa in v)if(v.hasOwnProperty(aa)){F=checkValues(v[aa],aa,n);if(F[0]===false)break}if(F[0]){if(a.isFunction(d.onclickSubmit))X=d.onclickSubmit(d,v)||{};if(a.isFunction(d.beforeSubmit))F=d.beforeSubmit(v,a("#"+q))}if(F[0]&&!d.processing){d.processing=true;a("#sData","#"+t+"_2").addClass("ui-state-active");W=M.oper;da=M.id;v[W]=a.trim(v[n.p.id+"_id"])=="_empty"?M.addoper:M.editoper;if(v[W]!=
|
260
|
+
M.addoper)v[da]=v[n.p.id+"_id"];else if(v[da]===undefined)v[da]=v[n.p.id+"_id"];delete v[n.p.id+"_id"];v=a.extend(v,d.editData,X);if(n.p.restful){d.mtype=v.id=="_empty"?"POST":"PUT";d.url=v.id=="_empty"?n.p.url:n.p.url+"/"+v.id}X=a.extend({url:d.url?d.url:a(n).jqGrid("getGridParam","editurl"),type:d.mtype,data:a.isFunction(d.serializeEditData)?d.serializeEditData(v):v,complete:function(N,ja){if(ja!="success"){F[0]=false;F[1]=a.isFunction(d.errorTextFormat)?d.errorTextFormat(N):ja+" Status: '"+N.statusText+
|
261
|
+
"'. Error code: "+N.status}else if(a.isFunction(d.afterSubmit))F=d.afterSubmit(N,v);if(F[0]===false){a("#FormError>td","#"+t).html(F[1]);a("#FormError","#"+t).show()}else{a.each(n.p.colModel,function(){if(z[this.name]&&this.formatter&&this.formatter=="select")try{delete z[this.name]}catch(ea){}});v=a.extend(v,z);n.p.autoencode&&a.each(v,function(ea,Fa){v[ea]=a.jgrid.htmlDecode(Fa)});d.reloadAfterSubmit=d.reloadAfterSubmit&&n.p.datatype!="local";if(v[W]==M.addoper){F[2]||(F[2]=parseInt(n.p.records,
|
262
|
+
10)+1+"");v[da]=F[2];if(d.closeAfterAdd){if(d.reloadAfterSubmit)a(n).trigger("reloadGrid");else{a(n).jqGrid("addRowData",F[2],v,b.addedrow);a(n).jqGrid("setSelection",F[2])}hideModal("#"+m.themodal,{gb:"#gbox_"+r,jqm:b.jqModal,onClose:d.onClose})}else if(d.clearAfterAdd){d.reloadAfterSubmit?a(n).trigger("reloadGrid"):a(n).jqGrid("addRowData",F[2],v,b.addedrow);k("_empty",n,q)}else d.reloadAfterSubmit?a(n).trigger("reloadGrid"):a(n).jqGrid("addRowData",F[2],v,b.addedrow)}else{if(d.reloadAfterSubmit){a(n).trigger("reloadGrid");
|
263
|
+
d.closeAfterEdit||setTimeout(function(){a(n).jqGrid("setSelection",v[da])},1E3)}else n.p.treeGrid===true?a(n).jqGrid("setTreeRow",v[da],v):a(n).jqGrid("setRowData",v[da],v);d.closeAfterEdit&&hideModal("#"+m.themodal,{gb:"#gbox_"+r,jqm:b.jqModal,onClose:d.onClose})}if(a.isFunction(d.afterComplete)){E=N;setTimeout(function(){d.afterComplete(E,v,a("#"+q));E=null},500)}}d.processing=false;if(d.checkOnSubmit||d.checkOnUpdate){a("#"+q).data("disabled",false);if(d._savedData[n.p.id+"_id"]!="_empty")for(var ba in d._savedData)if(v[ba])d._savedData[ba]=
|
264
|
+
v[ba]}a("#sData","#"+t+"_2").removeClass("ui-state-active");try{a(":input:visible","#"+q)[0].focus()}catch(qa){}},error:function(N,ja,ba){a("#FormError>td","#"+t).html(ja+" : "+ba);a("#FormError","#"+t).show();d.processing=false;a("#"+q).data("disabled",false);a("#sData","#"+t+"_2").removeClass("ui-state-active")}},a.jgrid.ajaxOptions,d.ajaxEditOptions);if(!X.url&&!d.useDataProxy)if(a.isFunction(n.p.dataProxy))d.useDataProxy=true;else{F[0]=false;F[1]+=" "+a.jgrid.errors.nourl}if(F[0])d.useDataProxy?
|
265
|
+
n.p.dataProxy.call(n,X,"set_"+n.p.id):a.ajax(X)}if(F[0]===false){a("#FormError>td","#"+t).html(F[1]);a("#FormError","#"+t).show()}}function p(E,F){var X=false,M;for(M in E)if(E[M]!=F[M]){X=true;break}return X}var n=this;if(n.grid&&e){var r=n.p.id,q="FrmGrid_"+r,t="TblGrid_"+r,m={themodal:"editmod"+r,modalhead:"edithd"+r,modalcontent:"editcnt"+r,scrollelm:q},o=a.isFunction(d.beforeShowForm)?d.beforeShowForm:false,u=a.isFunction(d.afterShowForm)?d.afterShowForm:false,y=a.isFunction(d.beforeInitData)?
|
266
|
+
d.beforeInitData:false,A=a.isFunction(d.onInitializeForm)?d.onInitializeForm:false,B=1,I=0,v,z,H,K;if(e=="new"){e="_empty";b.caption=b.addCaption}else b.caption=b.editCaption;b.recreateForm===true&&a("#"+m.themodal).html()!=null&&a("#"+m.themodal).remove();var Q=true;if(b.checkOnUpdate&&b.jqModal&&!b.modal)Q=false;if(a("#"+m.themodal).html()!=null){a(".ui-jqdialog-title","#"+m.modalhead).html(b.caption);a("#FormError","#"+t).hide();if(d.topinfo){a(".topinfo","#"+t+"_2").html(d.topinfo);a(".tinfo",
|
267
|
+
"#"+t+"_2").show()}else a(".tinfo","#"+t+"_2").hide();if(d.bottominfo){a(".bottominfo","#"+t+"_2").html(d.bottominfo);a(".binfo","#"+t+"_2").show()}else a(".binfo","#"+t+"_2").hide();y&&y(a("#"+q));k(e,n,q);e=="_empty"||!d.viewPagerButtons?a("#pData, #nData","#"+t+"_2").hide():a("#pData, #nData","#"+t+"_2").show();if(d.processing===true){d.processing=false;a("#sData","#"+t+"_2").removeClass("ui-state-active")}if(a("#"+q).data("disabled")===true){a(".confirm","#"+m.themodal).hide();a("#"+q).data("disabled",
|
268
|
+
false)}o&&o(a("#"+q));a("#"+m.themodal).data("onClose",d.onClose);viewModal("#"+m.themodal,{gbox:"#gbox_"+r,jqm:b.jqModal,jqM:false,closeoverlay:Q,modal:b.modal});Q||a(".jqmOverlay").click(function(){if(!h())return false;hideModal("#"+m.themodal,{gb:"#gbox_"+r,jqm:b.jqModal,onClose:d.onClose});return false});u&&u(a("#"+q))}else{a(n.p.colModel).each(function(){var E=this.formoptions;B=Math.max(B,E?E.colpos||0:0);I=Math.max(I,E?E.rowpos||0:0)});var O=isNaN(b.dataheight)?b.dataheight:b.dataheight+"px",
|
269
|
+
T;O=a("<form name='FormPost' id='"+q+"' class='FormGrid' onSubmit='return false;' style='width:100%;overflow:auto;position:relative;height:"+O+";'></form>").data("disabled",false);var ca=a("<table id='"+t+"' class='EditTable' cellspacing='0' cellpading='0' border='0'><tbody></tbody></table>");a(O).append(ca);T=a("<tr id='FormError' style='display:none'><td class='ui-state-error' colspan='"+B*2+"'></td></tr>");T[0].rp=0;a(ca).append(T);T=a("<tr style='display:none' class='tinfo'><td class='topinfo' colspan='"+
|
270
|
+
B*2+"'>"+d.topinfo+"</td></tr>");T[0].rp=0;a(ca).append(T);y&&y(a("#"+q));T=(y=n.p.direction=="rtl"?true:false)?"nData":"pData";var fa=y?"pData":"nData";c(e,n,ca,B);T="<a href='javascript:void(0)' id='"+T+"' class='fm-button ui-state-default ui-corner-left'><span class='ui-icon ui-icon-triangle-1-w'></span></div>";fa="<a href='javascript:void(0)' id='"+fa+"' class='fm-button ui-state-default ui-corner-right'><span class='ui-icon ui-icon-triangle-1-e'></span></div>";var ta="<a href='javascript:void(0)' id='sData' class='fm-button ui-state-default ui-corner-all'>"+
|
271
|
+
b.bSubmit+"</a>",ya="<a href='javascript:void(0)' id='cData' class='fm-button ui-state-default ui-corner-all'>"+b.bCancel+"</a>";T="<table border='0' class='EditTable' id='"+t+"_2'><tbody><tr id='Act_Buttons'><td class='navButton ui-widget-content'>"+(y?fa+T:T+fa)+"</td><td class='EditButton ui-widget-content'>"+ta+ya+"</td></tr>";T+="<tr style='display:none' class='binfo'><td class='bottominfo' colspan='2'>"+d.bottominfo+"</td></tr>";T+="</tbody></table>";if(I>0){var za=[];a.each(a(ca)[0].rows,function(E,
|
272
|
+
F){za[E]=F});za.sort(function(E,F){if(E.rp>F.rp)return 1;if(E.rp<F.rp)return-1;return 0});a.each(za,function(E,F){a("tbody",ca).append(F)})}b.gbox="#gbox_"+r;var Ga=false;if(b.closeOnEscape===true){b.closeOnEscape=false;Ga=true}O=a("<span></span>").append(O).append(T);createModal(m,O,b,"#gview_"+n.p.id,a("#gbox_"+n.p.id)[0]);if(y){a("#pData, #nData","#"+t+"_2").css("float","right");a(".EditButton","#"+t+"_2").css("text-align","left")}d.topinfo&&a(".tinfo","#"+t+"_2").show();d.bottominfo&&a(".binfo",
|
273
|
+
"#"+t+"_2").show();T=O=null;a("#"+m.themodal).keydown(function(E){var F=E.target;if(a("#"+q).data("disabled")===true)return false;if(d.savekey[0]===true&&E.which==d.savekey[1])if(F.tagName!="TEXTAREA"){a("#sData","#"+t+"_2").trigger("click");return false}if(E.which===27){if(!h())return false;Ga&&hideModal(this,{gb:b.gbox,jqm:b.jqModal,onClose:d.onClose});return false}if(d.navkeys[0]===true){if(a("#id_g","#"+t).val()=="_empty")return true;if(E.which==d.navkeys[1]){a("#pData","#"+t+"_2").trigger("click");
|
274
|
+
return false}if(E.which==d.navkeys[2]){a("#nData","#"+t+"_2").trigger("click");return false}}});if(b.checkOnUpdate){a("a.ui-jqdialog-titlebar-close span","#"+m.themodal).removeClass("jqmClose");a("a.ui-jqdialog-titlebar-close","#"+m.themodal).unbind("click").click(function(){if(!h())return false;hideModal("#"+m.themodal,{gb:"#gbox_"+r,jqm:b.jqModal,onClose:d.onClose});return false})}b.saveicon=a.extend([true,"left","ui-icon-disk"],b.saveicon);b.closeicon=a.extend([true,"left","ui-icon-close"],b.closeicon);
|
275
|
+
if(b.saveicon[0]===true)a("#sData","#"+t+"_2").addClass(b.saveicon[1]=="right"?"fm-button-icon-right":"fm-button-icon-left").append("<span class='ui-icon "+b.saveicon[2]+"'></span>");if(b.closeicon[0]===true)a("#cData","#"+t+"_2").addClass(b.closeicon[1]=="right"?"fm-button-icon-right":"fm-button-icon-left").append("<span class='ui-icon "+b.closeicon[2]+"'></span>");if(d.checkOnSubmit||d.checkOnUpdate){ta="<a href='javascript:void(0)' id='sNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+
|
276
|
+
b.bYes+"</a>";fa="<a href='javascript:void(0)' id='nNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+b.bNo+"</a>";ya="<a href='javascript:void(0)' id='cNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+b.bExit+"</a>";O=b.zIndex||999;O++;a("<div class='ui-widget-overlay jqgrid-overlay confirm' style='z-index:"+O+";display:none;'> "+(a.browser.msie&&a.browser.version==6?'<iframe style="display:block;position:absolute;z-index:-1;filter:Alpha(Opacity=\'0\');" src="javascript:false;"></iframe>':
|
277
|
+
"")+"</div><div class='confirm ui-widget-content ui-jqconfirm' style='z-index:"+(O+1)+"'>"+b.saveData+"<br/><br/>"+ta+fa+ya+"</div>").insertAfter("#"+q);a("#sNew","#"+m.themodal).click(function(){l();a("#"+q).data("disabled",false);a(".confirm","#"+m.themodal).hide();return false});a("#nNew","#"+m.themodal).click(function(){a(".confirm","#"+m.themodal).hide();a("#"+q).data("disabled",false);setTimeout(function(){a(":input","#"+q)[0].focus()},0);return false});a("#cNew","#"+m.themodal).click(function(){a(".confirm",
|
278
|
+
"#"+m.themodal).hide();a("#"+q).data("disabled",false);hideModal("#"+m.themodal,{gb:"#gbox_"+r,jqm:b.jqModal,onClose:d.onClose});return false})}A&&A(a("#"+q));e=="_empty"||!d.viewPagerButtons?a("#pData,#nData","#"+t+"_2").hide():a("#pData,#nData","#"+t+"_2").show();o&&o(a("#"+q));a("#"+m.themodal).data("onClose",d.onClose);viewModal("#"+m.themodal,{gbox:"#gbox_"+r,jqm:b.jqModal,closeoverlay:Q,modal:b.modal});Q||a(".jqmOverlay").click(function(){if(!h())return false;hideModal("#"+m.themodal,{gb:"#gbox_"+
|
279
|
+
r,jqm:b.jqModal,onClose:d.onClose});return false});u&&u(a("#"+q));a(".fm-button","#"+m.themodal).hover(function(){a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")});a("#sData","#"+t+"_2").click(function(){v={};z={};a("#FormError","#"+t).hide();j();if(v[n.p.id+"_id"]=="_empty")l();else if(b.checkOnSubmit===true){H=a.extend({},v,z);if(K=p(H,d._savedData)){a("#"+q).data("disabled",true);a(".confirm","#"+m.themodal).show()}else l()}else l();return false});a("#cData",
|
280
|
+
"#"+t+"_2").click(function(){if(!h())return false;hideModal("#"+m.themodal,{gb:"#gbox_"+r,jqm:b.jqModal,onClose:d.onClose});return false});a("#nData","#"+t+"_2").click(function(){if(!h())return false;a("#FormError","#"+t).hide();var E=g();E[0]=parseInt(E[0],10);if(E[0]!=-1&&E[1][E[0]+1]){a.isFunction(b.onclickPgButtons)&&b.onclickPgButtons("next",a("#"+q),E[1][E[0]]);k(E[1][E[0]+1],n,q);a(n).jqGrid("setSelection",E[1][E[0]+1]);a.isFunction(b.afterclickPgButtons)&&b.afterclickPgButtons("next",a("#"+
|
281
|
+
q),E[1][E[0]+1]);f(E[0]+1,E[1].length-1)}return false});a("#pData","#"+t+"_2").click(function(){if(!h())return false;a("#FormError","#"+t).hide();var E=g();if(E[0]!=-1&&E[1][E[0]-1]){a.isFunction(b.onclickPgButtons)&&b.onclickPgButtons("prev",a("#"+q),E[1][E[0]]);k(E[1][E[0]-1],n,q);a(n).jqGrid("setSelection",E[1][E[0]-1]);a.isFunction(b.afterclickPgButtons)&&b.afterclickPgButtons("prev",a("#"+q),E[1][E[0]-1]);f(E[0]-1,E[1].length-1)}return false})}o=g();f(o[0],o[1].length-1)}})},viewGridRow:function(e,
|
282
|
+
b){b=a.extend({top:0,left:0,width:0,height:"auto",dataheight:"auto",modal:false,drag:true,resize:true,jqModal:true,closeOnEscape:false,labelswidth:"30%",closeicon:[],navkeys:[false,38,40],onClose:null,beforeShowForm:null,viewPagerButtons:true},a.jgrid.view,b||{});return this.each(function(){function f(){if(b.closeOnEscape===true||b.navkeys[0]===true)setTimeout(function(){a(".ui-jqdialog-titlebar-close","#"+r.modalhead).focus()},0)}function g(z,H){z===0?a("#pData","#"+n+"_2").addClass("ui-state-disabled"):
|
283
|
+
a("#pData","#"+n+"_2").removeClass("ui-state-disabled");z==H?a("#nData","#"+n+"_2").addClass("ui-state-disabled"):a("#nData","#"+n+"_2").removeClass("ui-state-disabled")}function h(){var z=a(k).jqGrid("getDataIDs"),H=a("#id_g","#"+n).val();return[a.inArray(H,z),z]}function j(z,H,K,Q){for(var O,T,ca,fa=0,ta,ya,za=[],Ga=false,E="<td class='CaptionTD form-view-label ui-widget-content' width='"+b.labelswidth+"'> </td><td class='DataTD form-view-data ui-helper-reset ui-widget-content'> </td>",
|
284
|
+
F="",X=["integer","number","currency"],M=0,da=0,W,Y,aa,N=1;N<=Q;N++)F+=N==1?E:"<td class='CaptionTD form-view-label ui-widget-content'> </td><td class='DataTD form-view-data ui-widget-content'> </td>";a(H.p.colModel).each(function(){T=this.editrules&&this.editrules.edithidden===true?false:this.hidden===true?true:false;if(!T&&this.align==="right")if(this.formatter&&a.inArray(this.formatter,X)!==-1)M=Math.max(M,parseInt(this.width,10));else da=Math.max(da,parseInt(this.width,10))});W=M!==
|
285
|
+
0?M:da!==0?da:0;Ga=a(H).jqGrid("getInd",z);a(H.p.colModel).each(function(ja){O=this.name;Y=false;ya=(T=this.editrules&&this.editrules.edithidden===true?false:this.hidden===true?true:false)?"style='display:none'":"";aa=typeof this.viewable!="boolean"?true:this.viewable;if(O!=="cb"&&O!=="subgrid"&&O!=="rn"&&aa){ta=Ga===false?"":O==H.p.ExpandColumn&&H.p.treeGrid===true?a("td:eq("+ja+")",H.rows[Ga]).text():a("td:eq("+ja+")",H.rows[Ga]).html();Y=this.align==="right"&&W!==0?true:false;a.extend({},this.editoptions||
|
286
|
+
{},{id:O,name:O});var ba=a.extend({},{rowabove:false,rowcontent:""},this.formoptions||{}),qa=parseInt(ba.rowpos,10)||fa+1,ea=parseInt((parseInt(ba.colpos,10)||1)*2,10);if(ba.rowabove){var Fa=a("<tr><td class='contentinfo' colspan='"+Q*2+"'>"+ba.rowcontent+"</td></tr>");a(K).append(Fa);Fa[0].rp=qa}ca=a(K).find("tr[rowpos="+qa+"]");if(ca.length===0){ca=a("<tr "+ya+" rowpos='"+qa+"'></tr>").addClass("FormData").attr("id","trv_"+O);a(ca).append(F);a(K).append(ca);ca[0].rp=qa}a("td:eq("+(ea-2)+")",ca[0]).html("<b>"+
|
287
|
+
(typeof ba.label==="undefined"?H.p.colNames[ja]:ba.label)+"</b>");a("td:eq("+(ea-1)+")",ca[0]).append("<span>"+ta+"</span>").attr("id","v_"+O);Y&&a("td:eq("+(ea-1)+") span",ca[0]).css({"text-align":"right",width:W+"px"});za[fa]=ja;fa++}});if(fa>0){z=a("<tr class='FormData' style='display:none'><td class='CaptionTD'></td><td colspan='"+(Q*2-1)+"' class='DataTD'><input class='FormElement' id='id_g' type='text' name='id' value='"+z+"'/></td></tr>");z[0].rp=fa+99;a(K).append(z)}return za}function c(z,
|
288
|
+
H){var K,Q,O=0,T,ca;if(ca=a(H).jqGrid("getInd",z,true)){a("td",ca).each(function(fa){K=H.p.colModel[fa].name;Q=H.p.colModel[fa].editrules&&H.p.colModel[fa].editrules.edithidden===true?false:H.p.colModel[fa].hidden===true?true:false;if(K!=="cb"&&K!=="subgrid"&&K!=="rn"){T=K==H.p.ExpandColumn&&H.p.treeGrid===true?a(this).text():a(this).html();a.extend({},H.p.colModel[fa].editoptions||{});K=a.jgrid.jqID("v_"+K);a("#"+K+" span","#"+n).html(T);Q&&a("#"+K,"#"+n).parents("tr:first").hide();O++}});O>0&&a("#id_g",
|
289
|
+
"#"+n).val(z)}}var k=this;if(k.grid&&e){if(!b.imgpath)b.imgpath=k.p.imgpath;var l=k.p.id,p="ViewGrid_"+l,n="ViewTbl_"+l,r={themodal:"viewmod"+l,modalhead:"viewhd"+l,modalcontent:"viewcnt"+l,scrollelm:p},q=1,t=0;if(a("#"+r.themodal).html()!=null){a(".ui-jqdialog-title","#"+r.modalhead).html(b.caption);a("#FormError","#"+n).hide();c(e,k);a.isFunction(b.beforeShowForm)&&b.beforeShowForm(a("#"+p));viewModal("#"+r.themodal,{gbox:"#gbox_"+l,jqm:b.jqModal,jqM:false,modal:b.modal});f()}else{a(k.p.colModel).each(function(){var z=
|
290
|
+
this.formoptions;q=Math.max(q,z?z.colpos||0:0);t=Math.max(t,z?z.rowpos||0:0)});var m=isNaN(b.dataheight)?b.dataheight:b.dataheight+"px",o=a("<form name='FormPost' id='"+p+"' class='FormGrid' style='width:100%;overflow:auto;position:relative;height:"+m+";'></form>"),u=a("<table id='"+n+"' class='EditTable' cellspacing='1' cellpading='2' border='0' style='table-layout:fixed'><tbody></tbody></table>");a(o).append(u);j(e,k,u,q);m=k.p.direction=="rtl"?true:false;var y="<a href='javascript:void(0)' id='"+
|
291
|
+
(m?"nData":"pData")+"' class='fm-button ui-state-default ui-corner-left'><span class='ui-icon ui-icon-triangle-1-w'></span></div>",A="<a href='javascript:void(0)' id='"+(m?"pData":"nData")+"' class='fm-button ui-state-default ui-corner-right'><span class='ui-icon ui-icon-triangle-1-e'></span></div>",B="<a href='javascript:void(0)' id='cData' class='fm-button ui-state-default ui-corner-all'>"+b.bClose+"</a>";if(t>0){var I=[];a.each(a(u)[0].rows,function(z,H){I[z]=H});I.sort(function(z,H){if(z.rp>H.rp)return 1;
|
292
|
+
if(z.rp<H.rp)return-1;return 0});a.each(I,function(z,H){a("tbody",u).append(H)})}b.gbox="#gbox_"+l;var v=false;if(b.closeOnEscape===true){b.closeOnEscape=false;v=true}o=a("<span></span>").append(o).append("<table border='0' class='EditTable' id='"+n+"_2'><tbody><tr id='Act_Buttons'><td class='navButton ui-widget-content' width='"+b.labelswidth+"'>"+(m?A+y:y+A)+"</td><td class='EditButton ui-widget-content'>"+B+"</td></tr></tbody></table>");createModal(r,o,b,"#gview_"+k.p.id,a("#gview_"+k.p.id)[0]);
|
293
|
+
if(m){a("#pData, #nData","#"+n+"_2").css("float","right");a(".EditButton","#"+n+"_2").css("text-align","left")}b.viewPagerButtons||a("#pData, #nData","#"+n+"_2").hide();o=null;a("#"+r.themodal).keydown(function(z){if(z.which===27){v&&hideModal(this,{gb:b.gbox,jqm:b.jqModal,onClose:b.onClose});return false}if(b.navkeys[0]===true){if(z.which===b.navkeys[1]){a("#pData","#"+n+"_2").trigger("click");return false}if(z.which===b.navkeys[2]){a("#nData","#"+n+"_2").trigger("click");return false}}});b.closeicon=
|
294
|
+
a.extend([true,"left","ui-icon-close"],b.closeicon);if(b.closeicon[0]===true)a("#cData","#"+n+"_2").addClass(b.closeicon[1]=="right"?"fm-button-icon-right":"fm-button-icon-left").append("<span class='ui-icon "+b.closeicon[2]+"'></span>");a.isFunction(b.beforeShowForm)&&b.beforeShowForm(a("#"+p));viewModal("#"+r.themodal,{gbox:"#gbox_"+l,jqm:b.jqModal,modal:b.modal});a(".fm-button:not(.ui-state-disabled)","#"+n+"_2").hover(function(){a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")});
|
295
|
+
f();a("#cData","#"+n+"_2").click(function(){hideModal("#"+r.themodal,{gb:"#gbox_"+l,jqm:b.jqModal,onClose:b.onClose});return false});a("#nData","#"+n+"_2").click(function(){a("#FormError","#"+n).hide();var z=h();z[0]=parseInt(z[0],10);if(z[0]!=-1&&z[1][z[0]+1]){a.isFunction(b.onclickPgButtons)&&b.onclickPgButtons("next",a("#"+p),z[1][z[0]]);c(z[1][z[0]+1],k);a(k).jqGrid("setSelection",z[1][z[0]+1]);a.isFunction(b.afterclickPgButtons)&&b.afterclickPgButtons("next",a("#"+p),z[1][z[0]+1]);g(z[0]+1,z[1].length-
|
296
|
+
1)}f();return false});a("#pData","#"+n+"_2").click(function(){a("#FormError","#"+n).hide();var z=h();if(z[0]!=-1&&z[1][z[0]-1]){a.isFunction(b.onclickPgButtons)&&b.onclickPgButtons("prev",a("#"+p),z[1][z[0]]);c(z[1][z[0]-1],k);a(k).jqGrid("setSelection",z[1][z[0]-1]);a.isFunction(b.afterclickPgButtons)&&b.afterclickPgButtons("prev",a("#"+p),z[1][z[0]-1]);g(z[0]-1,z[1].length-1)}f();return false})}m=h();g(m[0],m[1].length-1)}})},delGridRow:function(e,b){d=b=a.extend({top:0,left:0,width:240,height:"auto",
|
297
|
+
dataheight:"auto",modal:false,drag:true,resize:true,url:"",mtype:"POST",reloadAfterSubmit:true,beforeShowForm:null,afterShowForm:null,beforeSubmit:null,onclickSubmit:null,afterSubmit:null,jqModal:true,closeOnEscape:false,delData:{},delicon:[],cancelicon:[],onClose:null,ajaxDelOptions:{},processing:false,serializeDelData:null,useDataProxy:false},a.jgrid.del,b||{});return this.each(function(){var f=this;if(f.grid)if(e){var g=typeof b.beforeShowForm==="function"?true:false,h=typeof b.afterShowForm===
|
298
|
+
"function"?true:false,j=f.p.id,c={},k="DelTbl_"+j,l,p,n,r,q={themodal:"delmod"+j,modalhead:"delhd"+j,modalcontent:"delcnt"+j,scrollelm:k};if(jQuery.isArray(e))e=e.join();if(a("#"+q.themodal).html()!=null){a("#DelData>td","#"+k).text(e);a("#DelError","#"+k).hide();if(d.processing===true){d.processing=false;a("#dData","#"+k).removeClass("ui-state-active")}g&&b.beforeShowForm(a("#"+k));viewModal("#"+q.themodal,{gbox:"#gbox_"+j,jqm:b.jqModal,jqM:false,modal:b.modal})}else{var t=isNaN(b.dataheight)?b.dataheight:
|
299
|
+
b.dataheight+"px";t="<div id='"+k+"' class='formdata' style='width:100%;overflow:auto;position:relative;height:"+t+";'>";t+="<table class='DelTable'><tbody>";t+="<tr id='DelError' style='display:none'><td class='ui-state-error'></td></tr>";t+="<tr id='DelData' style='display:none'><td >"+e+"</td></tr>";t+='<tr><td class="delmsg" style="white-space:pre;">'+b.msg+"</td></tr><tr><td > </td></tr>";t+="</tbody></table></div>";t+="<table cellspacing='0' cellpadding='0' border='0' class='EditTable' id='"+
|
300
|
+
k+"_2'><tbody><tr><td class='DataTD ui-widget-content'></td></tr><tr style='display:block;height:3px;'><td></td></tr><tr><td class='DelButton EditButton'>"+("<a href='javascript:void(0)' id='dData' class='fm-button ui-state-default ui-corner-all'>"+b.bSubmit+"</a>")+" "+("<a href='javascript:void(0)' id='eData' class='fm-button ui-state-default ui-corner-all'>"+b.bCancel+"</a>")+"</td></tr></tbody></table>";b.gbox="#gbox_"+j;createModal(q,t,b,"#gview_"+f.p.id,a("#gview_"+f.p.id)[0]);a(".fm-button",
|
301
|
+
"#"+k+"_2").hover(function(){a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")});b.delicon=a.extend([true,"left","ui-icon-scissors"],b.delicon);b.cancelicon=a.extend([true,"left","ui-icon-cancel"],b.cancelicon);if(b.delicon[0]===true)a("#dData","#"+k+"_2").addClass(b.delicon[1]=="right"?"fm-button-icon-right":"fm-button-icon-left").append("<span class='ui-icon "+b.delicon[2]+"'></span>");if(b.cancelicon[0]===true)a("#eData","#"+k+"_2").addClass(b.cancelicon[1]==
|
302
|
+
"right"?"fm-button-icon-right":"fm-button-icon-left").append("<span class='ui-icon "+b.cancelicon[2]+"'></span>");a("#dData","#"+k+"_2").click(function(){var m=[true,""];c={};var o=a("#DelData>td","#"+k).text();if(typeof b.onclickSubmit==="function")c=b.onclickSubmit(d,o)||{};if(typeof b.beforeSubmit==="function")m=b.beforeSubmit(o);if(m[0]&&!d.processing){d.processing=true;a(this).addClass("ui-state-active");n=f.p.prmNames;l=a.extend({},d.delData,c);r=n.oper;l[r]=n.deloper;p=n.id;l[p]=o;if(f.p.restful){b.mtype=
|
303
|
+
"DELETE";d.url=f.p.url+"/"+o}var u=a.extend({url:d.url?d.url:a(f).jqGrid("getGridParam","editurl"),type:b.mtype,data:a.isFunction(b.serializeDelData)?b.serializeDelData(l):l,complete:function(y,A){if(A!="success"){m[0]=false;m[1]=a.isFunction(d.errorTextFormat)?d.errorTextFormat(y):A+" Status: '"+y.statusText+"'. Error code: "+y.status}else if(typeof d.afterSubmit==="function")m=d.afterSubmit(y,l);if(m[0]===false){a("#DelError>td","#"+k).html(m[1]);a("#DelError","#"+k).show()}else{if(d.reloadAfterSubmit&&
|
304
|
+
f.p.datatype!="local")a(f).trigger("reloadGrid");else{A=[];A=o.split(",");if(f.p.treeGrid===true)try{a(f).jqGrid("delTreeNode",A[0])}catch(B){}else for(var I=0;I<A.length;I++)a(f).jqGrid("delRowData",A[I]);f.p.selrow=null;f.p.selarrrow=[]}a.isFunction(d.afterComplete)&&setTimeout(function(){d.afterComplete(y,o)},500)}d.processing=false;a("#dData","#"+k+"_2").removeClass("ui-state-active");m[0]&&hideModal("#"+q.themodal,{gb:"#gbox_"+j,jqm:b.jqModal,onClose:d.onClose})},error:function(y,A,B){a("#DelError>td",
|
305
|
+
"#"+k).html(A+" : "+B);a("#DelError","#"+k).show();d.processing=false;a("#dData","#"+k+"_2").removeClass("ui-state-active")}},a.jgrid.ajaxOptions,b.ajaxDelOptions);if(!u.url&&!d.useDataProxy)if(a.isFunction(f.p.dataProxy))d.useDataProxy=true;else{m[0]=false;m[1]+=" "+a.jgrid.errors.nourl}if(m[0])d.useDataProxy?f.p.dataProxy.call(f,u,"del_"+f.p.id):a.ajax(u)}if(m[0]===false){a("#DelError>td","#"+k).html(m[1]);a("#DelError","#"+k).show()}return false});a("#eData","#"+k+"_2").click(function(){hideModal("#"+
|
306
|
+
q.themodal,{gb:"#gbox_"+j,jqm:b.jqModal,onClose:d.onClose});return false});g&&b.beforeShowForm(a("#"+k));viewModal("#"+q.themodal,{gbox:"#gbox_"+j,jqm:b.jqModal,modal:b.modal})}h&&b.afterShowForm(a("#"+k));b.closeOnEscape===true&&setTimeout(function(){a(".ui-jqdialog-titlebar-close","#"+q.modalhead).focus()},0)}})},navGrid:function(e,b,f,g,h,j,c){b=a.extend({edit:true,editicon:"ui-icon-pencil",add:true,addicon:"ui-icon-plus",del:true,delicon:"ui-icon-trash",search:true,searchicon:"ui-icon-search",
|
307
|
+
refresh:true,refreshicon:"ui-icon-refresh",refreshstate:"firstpage",view:false,viewicon:"ui-icon-document",position:"left",closeOnEscape:true,beforeRefresh:null,afterRefresh:null,cloneToTop:false},a.jgrid.nav,b||{});return this.each(function(){var k={themodal:"alertmod",modalhead:"alerthd",modalcontent:"alertcnt"},l=this,p,n,r;if(!(!l.grid||typeof e!="string")){if(a("#"+k.themodal).html()===null){if(typeof window.innerWidth!="undefined"){p=window.innerWidth;n=window.innerHeight}else if(typeof document.documentElement!=
|
308
|
+
"undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!==0){p=document.documentElement.clientWidth;n=document.documentElement.clientHeight}else{p=1024;n=768}createModal(k,"<div>"+b.alerttext+"</div><span tabindex='0'><span tabindex='-1' id='jqg_alrt'></span></span>",{gbox:"#gbox_"+l.p.id,jqModal:true,drag:true,resize:true,caption:b.alertcap,top:n/2-25,left:p/2-100,width:200,height:"auto",closeOnEscape:b.closeOnEscape},"","",true)}p=1;if(b.cloneToTop&&
|
309
|
+
l.p.toppager)p=2;for(n=0;n<p;n++){var q=a("<table cellspacing='0' cellpadding='0' border='0' class='ui-pg-table navtable' style='float:left;table-layout:auto;'><tbody><tr></tr></tbody></table>"),t,m;if(n===0){t=e;m=l.p.id;if(t==l.p.toppager){m+="_top";p=1}}else{t=l.p.toppager;m=l.p.id+"_top"}l.p.direction=="rtl"&&a(q).attr("dir","rtl").css("float","right");if(b.add){g=g||{};r=a("<td class='ui-pg-button ui-corner-all'></td>");a(r).append("<div class='ui-pg-div'><span class='ui-icon "+b.addicon+"'></span>"+
|
310
|
+
b.addtext+"</div>");a("tr",q).append(r);a(r,q).attr({title:b.addtitle||"",id:g.id||"add_"+m}).click(function(){a(this).hasClass("ui-state-disabled")||(typeof b.addfunc=="function"?b.addfunc():a(l).jqGrid("editGridRow","new",g));return false}).hover(function(){a(this).hasClass("ui-state-disabled")||a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")});r=null}if(b.edit){r=a("<td class='ui-pg-button ui-corner-all'></td>");f=f||{};a(r).append("<div class='ui-pg-div'><span class='ui-icon "+
|
311
|
+
b.editicon+"'></span>"+b.edittext+"</div>");a("tr",q).append(r);a(r,q).attr({title:b.edittitle||"",id:f.id||"edit_"+m}).click(function(){if(!a(this).hasClass("ui-state-disabled")){var o=l.p.selrow;if(o)typeof b.editfunc=="function"?b.editfunc(o):a(l).jqGrid("editGridRow",o,f);else{viewModal("#"+k.themodal,{gbox:"#gbox_"+l.p.id,jqm:true});a("#jqg_alrt").focus()}}return false}).hover(function(){a(this).hasClass("ui-state-disabled")||a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")});
|
312
|
+
r=null}if(b.view){r=a("<td class='ui-pg-button ui-corner-all'></td>");c=c||{};a(r).append("<div class='ui-pg-div'><span class='ui-icon "+b.viewicon+"'></span>"+b.viewtext+"</div>");a("tr",q).append(r);a(r,q).attr({title:b.viewtitle||"",id:c.id||"view_"+m}).click(function(){if(!a(this).hasClass("ui-state-disabled")){var o=l.p.selrow;if(o)a(l).jqGrid("viewGridRow",o,c);else{viewModal("#"+k.themodal,{gbox:"#gbox_"+l.p.id,jqm:true});a("#jqg_alrt").focus()}}return false}).hover(function(){a(this).hasClass("ui-state-disabled")||
|
313
|
+
a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")});r=null}if(b.del){r=a("<td class='ui-pg-button ui-corner-all'></td>");h=h||{};a(r).append("<div class='ui-pg-div'><span class='ui-icon "+b.delicon+"'></span>"+b.deltext+"</div>");a("tr",q).append(r);a(r,q).attr({title:b.deltitle||"",id:h.id||"del_"+m}).click(function(){if(!a(this).hasClass("ui-state-disabled")){var o;if(l.p.multiselect){o=l.p.selarrrow;if(o.length===0)o=null}else o=l.p.selrow;if(o)"function"==typeof b.delfunc?
|
314
|
+
b.delfunc(o):a(l).jqGrid("delGridRow",o,h);else{viewModal("#"+k.themodal,{gbox:"#gbox_"+l.p.id,jqm:true});a("#jqg_alrt").focus()}}return false}).hover(function(){a(this).hasClass("ui-state-disabled")||a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")});r=null}if(b.add||b.edit||b.del||b.view)a("tr",q).append("<td class='ui-pg-button ui-state-disabled' style='width:4px;'><span class='ui-separator'></span></td>");if(b.search){r=a("<td class='ui-pg-button ui-corner-all'></td>");
|
315
|
+
j=j||{};a(r).append("<div class='ui-pg-div'><span class='ui-icon "+b.searchicon+"'></span>"+b.searchtext+"</div>");a("tr",q).append(r);a(r,q).attr({title:b.searchtitle||"",id:j.id||"search_"+m}).click(function(){a(this).hasClass("ui-state-disabled")||a(l).jqGrid("searchGrid",j);return false}).hover(function(){a(this).hasClass("ui-state-disabled")||a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")});r=null}if(b.refresh){r=a("<td class='ui-pg-button ui-corner-all'></td>");
|
316
|
+
a(r).append("<div class='ui-pg-div'><span class='ui-icon "+b.refreshicon+"'></span>"+b.refreshtext+"</div>");a("tr",q).append(r);a(r,q).attr({title:b.refreshtitle||"",id:"refresh_"+m}).click(function(){if(!a(this).hasClass("ui-state-disabled")){a.isFunction(b.beforeRefresh)&&b.beforeRefresh();l.p.search=false;try{a("#fbox_"+l.p.id).searchFilter().reset({reload:false});a.isFunction(l.clearToolbar)&&l.clearToolbar(false)}catch(o){}switch(b.refreshstate){case "firstpage":a(l).trigger("reloadGrid",[{page:1}]);
|
317
|
+
break;case "current":a(l).trigger("reloadGrid",[{current:true}]);break}a.isFunction(b.afterRefresh)&&b.afterRefresh()}return false}).hover(function(){a(this).hasClass("ui-state-disabled")||a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")});r=null}r=a(".ui-jqgrid").css("font-size")||"11px";a("body").append("<div id='testpg2' class='ui-jqgrid ui-widget ui-widget-content' style='font-size:"+r+";visibility:hidden;' ></div>");r=a(q).clone().appendTo("#testpg2").width();
|
318
|
+
a("#testpg2").remove();a(t+"_"+b.position,t).append(q);if(l.p._nvtd){if(r>l.p._nvtd[0]){a(t+"_"+b.position,t).width(r);l.p._nvtd[0]=r}l.p._nvtd[1]=r}q=r=r=null}}})},navButtonAdd:function(e,b){b=a.extend({caption:"newButton",title:"",buttonicon:"ui-icon-newwin",onClickButton:null,position:"last",cursor:"pointer"},b||{});return this.each(function(){if(this.grid){if(e.indexOf("#")!==0)e="#"+e;var f=a(".navtable",e)[0],g=this;if(f){var h=a("<td></td>");b.buttonicon.toString().toUpperCase()=="NONE"?a(h).addClass("ui-pg-button ui-corner-all").append("<div class='ui-pg-div'>"+
|
273
319
|
b.caption+"</div>"):a(h).addClass("ui-pg-button ui-corner-all").append("<div class='ui-pg-div'><span class='ui-icon "+b.buttonicon+"'></span>"+b.caption+"</div>");b.id&&a(h).attr("id",b.id);if(b.position=="first")f.rows[0].cells.length===0?a("tr",f).append(h):a("tr td:eq(0)",f).before(h);else a("tr",f).append(h);a(h,f).attr("title",b.title||"").click(function(j){a(this).hasClass("ui-state-disabled")||a.isFunction(b.onClickButton)&&b.onClickButton.call(g,j);return false}).hover(function(){a(this).hasClass("ui-state-disabled")||
|
274
|
-
a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")})}}})},navSeparatorAdd:function(e,b){b=a.extend({sepclass:"ui-separator",sepcontent:""},b||{});return this.each(function(){if(this.grid){if(e.indexOf("#")!==0)e="#"+e;var f=a(".navtable",e)[0];if(f){var g="<td class='ui-pg-button ui-state-disabled' style='width:4px;'><span class='"+b.sepclass+"'></span>"+b.sepcontent+"</td>";a("tr",f).append(g)}}})},GridToForm:function(e,b){return this.each(function(){var f=
|
275
|
-
|
276
|
-
|
320
|
+
a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")})}}})},navSeparatorAdd:function(e,b){b=a.extend({sepclass:"ui-separator",sepcontent:""},b||{});return this.each(function(){if(this.grid){if(e.indexOf("#")!==0)e="#"+e;var f=a(".navtable",e)[0];if(f){var g="<td class='ui-pg-button ui-state-disabled' style='width:4px;'><span class='"+b.sepclass+"'></span>"+b.sepcontent+"</td>";a("tr",f).append(g)}}})},GridToForm:function(e,b){return this.each(function(){if(this.grid){var f=
|
321
|
+
a(this).jqGrid("getRowData",e);if(f)for(var g in f)a("[name="+g+"]",b).is("input:radio")||a("[name="+g+"]",b).is("input:checkbox")?a("[name="+g+"]",b).each(function(){a(this).val()==f[g]?a(this).attr("checked","checked"):a(this).attr("checked","")}):a("[name="+g+"]",b).val(f[g])}})},FormToGrid:function(e,b,f,g){return this.each(function(){if(this.grid){f||(f="set");g||(g="first");var h=a(b).serializeArray(),j={};a.each(h,function(c,k){j[k.name]=k.value});if(f=="add")a(this).jqGrid("addRowData",e,
|
322
|
+
j,g);else f=="set"&&a(this).jqGrid("setRowData",e,j)}})}})})(jQuery);
|
277
323
|
(function(a){a.jgrid.extend({jqGridImport:function(d){d=a.extend({imptype:"xml",impstring:"",impurl:"",mtype:"GET",impData:{},xmlGrid:{config:"roots>grid",data:"roots>rows"},jsonGrid:{config:"grid",data:"data"},ajaxOptions:{}},d||{});return this.each(function(){var e=this,b=function(h,j){var c=a(j.xmlGrid.config,h)[0];j=a(j.xmlGrid.data,h)[0];var k;if(xmlJsonClass.xml2json&&a.jgrid.parse){c=xmlJsonClass.xml2json(c," ");c=a.jgrid.parse(c);for(var l in c)if(c.hasOwnProperty(l))k=c[l];if(j){l=c.grid.datatype;
|
278
324
|
c.grid.datatype="xmlstring";c.grid.datastr=h;a(e).jqGrid(k).jqGrid("setGridParam",{datatype:l})}else a(e).jqGrid(k)}else alert("xml2json or parse are not present")},f=function(h,j){if(h&&typeof h=="string"){var c=a.jgrid.parse(h);h=c[j.jsonGrid.config];if(j=c[j.jsonGrid.data]){c=h.datatype;h.datatype="jsonstring";h.datastr=j;a(e).jqGrid(h).jqGrid("setGridParam",{datatype:c})}else a(e).jqGrid(h)}};switch(d.imptype){case "xml":a.ajax(a.extend({url:d.impurl,type:d.mtype,data:d.impData,dataType:"xml",
|
279
325
|
complete:function(h,j){if(j=="success"){b(h.responseXML,d);a.isFunction(d.importComplete)&&d.importComplete(h)}}},d.ajaxOptions));break;case "xmlstring":if(d.impstring&&typeof d.impstring=="string"){var g=a.jgrid.stringToDoc(d.impstring);if(g){b(g,d);a.isFunction(d.importComplete)&&d.importComplete(g);d.impstring=null}g=null}break;case "json":a.ajax(a.extend({url:d.impurl,type:d.mtype,data:d.impData,dataType:"json",complete:function(h,j){if(j=="success"){f(h.responseText,d);a.isFunction(d.importComplete)&&
|
280
326
|
d.importComplete(h)}}},d.ajaxOptions));break;case "jsonstring":if(d.impstring&&typeof d.impstring=="string"){f(d.impstring,d);a.isFunction(d.importComplete)&&d.importComplete(d.impstring);d.impstring=null}break}})},jqGridExport:function(d){d=a.extend({exptype:"xmlstring",root:"grid",ident:"\t"},d||{});var e=null;this.each(function(){if(this.grid){var b=a.extend({},a(this).jqGrid("getGridParam"));if(b.rownumbers){b.colNames.splice(0,1);b.colModel.splice(0,1)}if(b.multiselect){b.colNames.splice(0,1);
|
281
327
|
b.colModel.splice(0,1)}if(b.subGrid){b.colNames.splice(0,1);b.colModel.splice(0,1)}b.knv=null;if(b.treeGrid)for(var f in b.treeReader)if(b.treeReader.hasOwnProperty(f)){b.colNames.splice(b.colNames.length-1);b.colModel.splice(b.colModel.length-1)}switch(d.exptype){case "xmlstring":e="<"+d.root+">"+xmlJsonClass.json2xml(b,d.ident)+"</"+d.root+">";break;case "jsonstring":e="{"+xmlJsonClass.toJson(b,d.root,d.ident)+"}";if(b.postData.filters!==undefined){e=e.replace(/filters":"/,'filters":');e=e.replace(/}]}"/,
|
282
|
-
"}]}")}break}}});return e},excelExport:function(d){d=a.extend({exptype:"remote",url:null,oper:"oper",tag:"excel",exportOptions:{}},d||{});return this.each(function(){
|
283
|
-
(function(a){a.jgrid.extend({editRow:function(d,e,b,f,g,h,j,c,k){return this.each(function(){var l=this,n,
|
284
|
-
"rn"){if(l.p.autoencode)
|
285
|
-
|
286
|
-
a(
|
287
|
-
l[k]=l[k]?l[k].join(","):"";a("select > option:selected",this).each(function(
|
288
|
-
"function 'custom_value' "+a.jgrid.edit.msg.nodefined,jQuery.jgrid.edit.bClose);v=="e2"?info_dialog(jQuery.jgrid.errors.errcap,"function 'custom_value' "+a.jgrid.edit.msg.novalue,jQuery.jgrid.edit.bClose):info_dialog(jQuery.jgrid.errors.errcap,v.message,jQuery.jgrid.edit.bClose)}break}q=checkValues(l[k],
|
289
|
-
{left:
|
290
|
-
a.isFunction(g)&&g(d,
|
291
|
-
d){
|
292
|
-
d){f=j;break}if(f>=0){if(a.isFunction(a.fn.datepicker))try{a("input.hasDatepicker","#"+g.id).datepicker("hide")}catch(c){}a.each(b.p.colModel,function(){if(this.editable===true&&this.name in b.p.savedRow[f])h[this.name]=b.p.savedRow[f][this.name]});a(b).jqGrid("setRowData",d,h);a(g).attr("editable","0").unbind("keydown");b.p.savedRow.splice(f,1)}a.isFunction(e)&&e(d)}}})}})})(jQuery);
|
328
|
+
"}]}")}break}}});return e},excelExport:function(d){d=a.extend({exptype:"remote",url:null,oper:"oper",tag:"excel",exportOptions:{}},d||{});return this.each(function(){if(this.grid){var e;if(d.exptype=="remote"){e=a.extend({},this.p.postData);e[d.oper]=d.tag;e=jQuery.param(e);e=d.url.indexOf("?")!=-1?d.url+"&"+e:d.url+"?"+e;window.location=e}}})}})})(jQuery);
|
329
|
+
(function(a){a.jgrid.extend({editRow:function(d,e,b,f,g,h,j,c,k){return this.each(function(){var l=this,p,n,r=0,q=null,t={},m,o;if(l.grid){m=a(l).jqGrid("getInd",d,true);if(m!==false)if((a(m).attr("editable")||"0")=="0"&&!a(m).hasClass("not-editable-row")){o=l.p.colModel;a("td",m).each(function(u){p=o[u].name;var y=l.p.treeGrid===true&&p==l.p.ExpandColumn;if(y)n=a("span:first",this).html();else try{n=a.unformat(this,{rowId:d,colModel:o[u]},u)}catch(A){n=a(this).html()}if(p!="cb"&&p!="subgrid"&&p!=
|
330
|
+
"rn"){if(l.p.autoencode)n=a.jgrid.htmlDecode(n);t[p]=n;if(o[u].editable===true){if(q===null)q=u;y?a("span:first",this).html(""):a(this).html("");var B=a.extend({},o[u].editoptions||{},{id:d+"_"+p,name:p});if(!o[u].edittype)o[u].edittype="text";B=createEl(o[u].edittype,B,n,true,a.extend({},a.jgrid.ajaxOptions,l.p.ajaxSelectOptions||{}));a(B).addClass("editable");y?a("span:first",this).append(B):a(this).append(B);o[u].edittype=="select"&&o[u].editoptions.multiple===true&&a.browser.msie&&a(B).width(a(B).width());
|
331
|
+
r++}}});if(r>0){t.id=d;l.p.savedRow.push(t);a(m).attr("editable","1");a("td:eq("+q+") input",m).focus();e===true&&a(m).bind("keydown",function(u){u.keyCode===27&&a(l).jqGrid("restoreRow",d,k);if(u.keyCode===13){if(u.target.tagName=="TEXTAREA")return true;a(l).jqGrid("saveRow",d,f,g,h,j,c,k);return false}u.stopPropagation()});a.isFunction(b)&&b(d)}}}})},saveRow:function(d,e,b,f,g,h,j){return this.each(function(){var c=this,k,l={},p={},n,r,q,t;if(c.grid){t=a(c).jqGrid("getInd",d,true);if(t!==false){n=
|
332
|
+
a(t).attr("editable");b=b?b:c.p.editurl;if(n==="1"){var m;a("td",t).each(function(A){m=c.p.colModel[A];k=m.name;if(k!="cb"&&k!="subgrid"&&m.editable===true&&k!="rn"){switch(m.edittype){case "checkbox":var B=["Yes","No"];if(m.editoptions)B=m.editoptions.value.split(":");l[k]=a("input",this).attr("checked")?B[0]:B[1];break;case "text":case "password":case "textarea":case "button":l[k]=a("input, textarea",this).val();break;case "select":if(m.editoptions.multiple){B=a("select",this);var I=[];l[k]=a(B).val();
|
333
|
+
l[k]=l[k]?l[k].join(","):"";a("select > option:selected",this).each(function(z,H){I[z]=a(H).text()});p[k]=I.join(",")}else{l[k]=a("select>option:selected",this).val();p[k]=a("select>option:selected",this).text()}if(m.formatter&&m.formatter=="select")p={};break;case "custom":try{if(m.editoptions&&a.isFunction(m.editoptions.custom_value)){l[k]=m.editoptions.custom_value(a(".customelement",this),"get");if(l[k]===undefined)throw"e2";}else throw"e1";}catch(v){v=="e1"&&info_dialog(jQuery.jgrid.errors.errcap,
|
334
|
+
"function 'custom_value' "+a.jgrid.edit.msg.nodefined,jQuery.jgrid.edit.bClose);v=="e2"?info_dialog(jQuery.jgrid.errors.errcap,"function 'custom_value' "+a.jgrid.edit.msg.novalue,jQuery.jgrid.edit.bClose):info_dialog(jQuery.jgrid.errors.errcap,v.message,jQuery.jgrid.edit.bClose)}break}q=checkValues(l[k],A,c);if(q[0]===false){q[1]=l[k]+" "+q[1];return false}if(c.p.autoencode)l[k]=a.jgrid.htmlEncode(l[k])}});if(q[0]===false)try{var o=findPos(a("#"+a.jgrid.jqID(d),c.grid.bDiv)[0]);info_dialog(a.jgrid.errors.errcap,
|
335
|
+
q[1],a.jgrid.edit.bClose,{left:o[0],top:o[1]})}catch(u){alert(q[1])}else{if(l){var y;o=c.p.prmNames;y=o.oper;n=o.id;l[y]=o.editoper;l[n]=d;if(typeof c.p.inlineData=="undefined")c.p.inlineData={};if(typeof f=="undefined")f={};l=a.extend({},l,c.p.inlineData,f)}if(b=="clientArray"){l=a.extend({},l,p);c.p.autoencode&&a.each(l,function(A,B){l[A]=a.jgrid.htmlDecode(B)});n=a(c).jqGrid("setRowData",d,l);a(t).attr("editable","0");for(o=0;o<c.p.savedRow.length;o++)if(c.p.savedRow[o].id==d){r=o;break}r>=0&&
|
336
|
+
c.p.savedRow.splice(r,1);a.isFunction(g)&&g(d,n)}else{a("#lui_"+c.p.id).show();if(c.p.restful){mtype="PUT";b=b+"/"+d}else mtype="POST";a.ajax(a.extend({url:b,data:a.isFunction(c.p.serializeRowData)?c.p.serializeRowData(l):l,type:mtype,complete:function(A,B){a("#lui_"+c.p.id).hide();if(B==="success")if((a.isFunction(e)?e(A):true)===true){c.p.autoencode&&a.each(l,function(I,v){l[I]=a.jgrid.htmlDecode(v)});l=a.extend({},l,p);a(c).jqGrid("setRowData",d,l);a(t).attr("editable","0");for(B=0;B<c.p.savedRow.length;B++)if(c.p.savedRow[B].id==
|
337
|
+
d){r=B;break}r>=0&&c.p.savedRow.splice(r,1);a.isFunction(g)&&g(d,A)}else a(c).jqGrid("restoreRow",d,j)},error:function(A,B){a("#lui_"+c.p.id).hide();a.isFunction(h)?h(d,A,B):alert("Error Row: "+d+" Result: "+A.status+":"+A.statusText+" Status: "+B);a(c).jqGrid("restoreRow",d,j)}},a.jgrid.ajaxOptions,c.p.ajaxRowOptions||{}))}a(t).unbind("keydown")}}}}})},restoreRow:function(d,e){return this.each(function(){var b=this,f,g,h={};if(b.grid){g=a(b).jqGrid("getInd",d,true);if(g!==false){for(var j=0;j<b.p.savedRow.length;j++)if(b.p.savedRow[j].id==
|
338
|
+
d){f=j;break}if(f>=0){if(a.isFunction(a.fn.datepicker))try{a("input.hasDatepicker","#"+a.jgrid.jqID(g.id)).datepicker("hide")}catch(c){}a.each(b.p.colModel,function(){if(this.editable===true&&this.name in b.p.savedRow[f])h[this.name]=b.p.savedRow[f][this.name]});a(b).jqGrid("setRowData",d,h);a(g).attr("editable","0").unbind("keydown");b.p.savedRow.splice(f,1)}a.isFunction(e)&&e(d)}}})}})})(jQuery);
|
293
339
|
(function(a){if(a.browser.msie&&a.browser.version==8)a.expr[":"].hidden=function(e){return e.offsetWidth===0||e.offsetHeight===0||e.style.display=="none"};a.jgrid._multiselect=false;if(a.ui)if(a.ui.multiselect){if(a.ui.multiselect.prototype._setSelected){var d=a.ui.multiselect.prototype._setSelected;a.ui.multiselect.prototype._setSelected=function(e,b){e=d.call(this,e,b);if(b&&this.selectedList){var f=this.element;this.selectedList.find("li").each(function(){a(this).data("optionLink")&&a(this).data("optionLink").remove().appendTo(f)})}return e}}if(a.ui.multiselect.prototype.destroy)a.ui.multiselect.prototype.destroy=
|
294
340
|
function(){this.element.show();this.container.remove();a.Widget===undefined?a.widget.prototype.destroy.apply(this,arguments):a.Widget.prototype.destroy.apply(this,arguments)};a.jgrid._multiselect=true}a.jgrid.extend({sortableColumns:function(e){return this.each(function(){function b(){f.p.disableClick=true}var f=this,g={tolerance:"pointer",axis:"x",scrollSensitivity:"1",items:">th:not(:has(#jqgh_cb,#jqgh_rn,#jqgh_subgrid),:hidden)",placeholder:{element:function(j){return a(document.createElement(j[0].nodeName)).addClass(j[0].className+
|
295
|
-
" ui-sortable-placeholder ui-state-highlight").removeClass("ui-sortable-helper")[0]},update:function(j,c){c.height(j.currentItem.innerHeight()-parseInt(j.currentItem.css("paddingTop")||0,10)-parseInt(j.currentItem.css("paddingBottom")||0,10));c.width(j.currentItem.innerWidth()-parseInt(j.currentItem.css("paddingLeft")||0,10)-parseInt(j.currentItem.css("paddingRight")||0,10))}},update:function(j,c){j=a(c.item).parent();j=a(">th",j);var k={};a.each(f.p.colModel,function(
|
296
|
-
j.each(function(){var
|
297
|
-
")";e.sortable(g).data("sortable").floating=true})},columnChooser:function(e){function b(
|
298
|
-
j=a("select",h);e=a.extend({width:420,height:240,classname:null,done:function(
|
299
|
-
c[this.value].name)});var
|
300
|
-
return}e.msel_opts=a.extend(a.ui.multiselect.defaults,e.msel_opts)}e.caption&&h.attr("title",e.caption);if(e.classname){h.addClass(e.classname);j.addClass(e.classname)}if(e.width){a(">div",h).css({width:e.width,margin:"0 auto"});j.css("width",e.width)}if(e.height){a(">div",h).css("height",e.height);j.css("height",e.height-10)}var c=g.jqGrid("getGridParam","colModel"),k=g.jqGrid("getGridParam","colNames"),l={},
|
301
|
-
else j.append("<option value='"+
|
341
|
+
" ui-sortable-placeholder ui-state-highlight").removeClass("ui-sortable-helper")[0]},update:function(j,c){c.height(j.currentItem.innerHeight()-parseInt(j.currentItem.css("paddingTop")||0,10)-parseInt(j.currentItem.css("paddingBottom")||0,10));c.width(j.currentItem.innerWidth()-parseInt(j.currentItem.css("paddingLeft")||0,10)-parseInt(j.currentItem.css("paddingRight")||0,10))}},update:function(j,c){j=a(c.item).parent();j=a(">th",j);var k={};a.each(f.p.colModel,function(p){k[this.name]=p});var l=[];
|
342
|
+
j.each(function(){var p=a(">div",this).get(0).id.replace(/^jqgh_/,"");p in k&&l.push(k[p])});a(f).jqGrid("remapColumns",l,true,true);a.isFunction(f.p.sortable.update)&&f.p.sortable.update(l);setTimeout(function(){f.p.disableClick=false},50)}};if(f.p.sortable.options)a.extend(g,f.p.sortable.options);else if(a.isFunction(f.p.sortable))f.p.sortable={update:f.p.sortable};if(g.start){var h=g.start;g.start=function(j,c){b();h.call(this,j,c)}}else g.start=b;if(f.p.sortable.exclude)g.items+=":not("+f.p.sortable.exclude+
|
343
|
+
")";e.sortable(g).data("sortable").floating=true})},columnChooser:function(e){function b(r,q,t){if(q>=0){var m=r.slice(),o=m.splice(q,Math.max(r.length-q,q));if(q>r.length)q=r.length;m[q]=t;return m.concat(o)}}function f(r,q){if(r)if(typeof r=="string")a.fn[r]&&a.fn[r].apply(q,a.makeArray(arguments).slice(2));else a.isFunction(r)&&r.apply(q,a.makeArray(arguments).slice(2))}var g=this;if(!a("#colchooser_"+g[0].p.id).length){var h=a('<div id="colchooser_'+g[0].p.id+'" style="position:relative;overflow:hidden"><div><select multiple="multiple"></select></div></div>'),
|
344
|
+
j=a("select",h);e=a.extend({width:420,height:240,classname:null,done:function(r){r&&g.jqGrid("remapColumns",r,true)},msel:"multiselect",dlog:"dialog",dlog_opts:function(r){var q={};q[r.bSubmit]=function(){r.apply_perm();r.cleanup(false)};q[r.bCancel]=function(){r.cleanup(true)};return{buttons:q,close:function(){r.cleanup(true)},modal:false,resizable:false,width:r.width+20}},apply_perm:function(){a("option",j).each(function(){this.selected?g.jqGrid("showCol",c[this.value].name):g.jqGrid("hideCol",
|
345
|
+
c[this.value].name)});var r=[];a("option[selected]",j).each(function(){r.push(parseInt(this.value,10))});a.each(r,function(){delete l[c[parseInt(this,10)].name]});a.each(l,function(){var q=parseInt(this,10);r=b(r,q,q)});e.done&&e.done.call(g,r)},cleanup:function(r){f(e.dlog,h,"destroy");f(e.msel,j,"destroy");h.remove();r&&e.done&&e.done.call(g)},msel_opts:{}},a.jgrid.col,e||{});if(a.ui)if(a.ui.multiselect)if(e.msel=="multiselect"){if(!a.jgrid._multiselect){alert("Multiselect plugin loaded after jqGrid. Please load the plugin before the jqGrid!");
|
346
|
+
return}e.msel_opts=a.extend(a.ui.multiselect.defaults,e.msel_opts)}e.caption&&h.attr("title",e.caption);if(e.classname){h.addClass(e.classname);j.addClass(e.classname)}if(e.width){a(">div",h).css({width:e.width,margin:"0 auto"});j.css("width",e.width)}if(e.height){a(">div",h).css("height",e.height);j.css("height",e.height-10)}var c=g.jqGrid("getGridParam","colModel"),k=g.jqGrid("getGridParam","colNames"),l={},p=[];j.empty();a.each(c,function(r){l[this.name]=r;if(this.hidedlg)this.hidden||p.push(r);
|
347
|
+
else j.append("<option value='"+r+"' "+(this.hidden?"":"selected='selected'")+">"+k[r]+"</option>")});var n=a.isFunction(e.dlog_opts)?e.dlog_opts.call(g,e):e.dlog_opts;f(e.dlog,h,n);n=a.isFunction(e.msel_opts)?e.msel_opts.call(g,e):e.msel_opts;f(e.msel,j,n)}},sortableRows:function(e){return this.each(function(){var b=this;if(b.grid)if(!b.p.treeGrid)if(a.fn.sortable){e=a.extend({cursor:"move",axis:"y",items:".jqgrow"},e||{});if(e.start&&a.isFunction(e.start)){e._start_=e.start;delete e.start}else e._start_=
|
302
348
|
false;if(e.update&&a.isFunction(e.update)){e._update_=e.update;delete e.update}else e._update_=false;e.start=function(f,g){a(g.item).css("border-width","0px");a("td",g.item).each(function(c){this.style.width=b.grid.cols[c].style.width});if(b.p.subGrid){var h=a(g.item).attr("id");try{a(b).jqGrid("collapseSubGridRow",h)}catch(j){}}e._start_&&e._start_.apply(this,[f,g])};e.update=function(f,g){a(g.item).css("border-width","");b.updateColumns();b.p.rownumbers===true&&a("td.jqgrid-rownum",b.rows).each(function(h){a(this).html(h+
|
303
349
|
1)});e._update_&&e._update_.apply(this,[f,g])};a("tbody:first",b).sortable(e);a("tbody:first",b).disableSelection()}})},gridDnD:function(e){return this.each(function(){function b(){var h=a.data(f,"dnd");a("tr.jqgrow:not(.ui-draggable)",f).draggable(a.isFunction(h.drag)?h.drag.call(a(f),h):h.drag)}var f=this;if(f.grid)if(!f.p.treeGrid)if(a.fn.draggable&&a.fn.droppable){a("#jqgrid_dnd").html()===null&&a("body").append("<table id='jqgrid_dnd' class='ui-jqgrid-dnd'></table>");if(typeof e=="string"&&e==
|
304
|
-
"updateDnD"&&f.p.jqgdnd===true)b();else{e=a.extend({drag:function(h){return a.extend({start:function(j,c){if(f.p.subGrid){var k=a(c.helper).attr("id");try{a(f).jqGrid("collapseSubGridRow",k)}catch(l){}}for(k=0;k<a.data(f,"dnd").connectWith.length;k++)a(a.data(f,"dnd").connectWith[k]).jqGrid("getGridParam","reccount")=="0"&&a(a.data(f,"dnd").connectWith[k]).jqGrid("addRowData","jqg_empty_row",{});c.helper.addClass("ui-state-highlight");a("td",c.helper).each(function(
|
350
|
+
"updateDnD"&&f.p.jqgdnd===true)b();else{e=a.extend({drag:function(h){return a.extend({start:function(j,c){if(f.p.subGrid){var k=a(c.helper).attr("id");try{a(f).jqGrid("collapseSubGridRow",k)}catch(l){}}for(k=0;k<a.data(f,"dnd").connectWith.length;k++)a(a.data(f,"dnd").connectWith[k]).jqGrid("getGridParam","reccount")=="0"&&a(a.data(f,"dnd").connectWith[k]).jqGrid("addRowData","jqg_empty_row",{});c.helper.addClass("ui-state-highlight");a("td",c.helper).each(function(p){this.style.width=f.grid.headers[p].width+
|
305
351
|
"px"});h.onstart&&a.isFunction(h.onstart)&&h.onstart.call(a(f),j,c)},stop:function(j,c){if(c.helper.dropped){var k=a(c.helper).attr("id");a(f).jqGrid("delRowData",k)}for(k=0;k<a.data(f,"dnd").connectWith.length;k++)a(a.data(f,"dnd").connectWith[k]).jqGrid("delRowData","jqg_empty_row");h.onstop&&a.isFunction(h.onstop)&&h.onstop.call(a(f),j,c)}},h.drag_opts||{})},drop:function(h){return a.extend({accept:function(j){var c=a(j).closest("table.ui-jqgrid-btable");if(a.data(c[0],"dnd")!==undefined){j=a.data(c[0],
|
306
|
-
"dnd").connectWith;return a.inArray("#"+this.id,j)!=-1?true:false}return j},drop:function(j,c){var k=a(c.draggable).attr("id");k=a("#"+f.id).jqGrid("getRowData",k);if(!h.dropbyname){var l=0,
|
307
|
-
"object")k=
|
352
|
+
"dnd").connectWith;return a.inArray("#"+this.id,j)!=-1?true:false}return j},drop:function(j,c){var k=a(c.draggable).attr("id");k=a("#"+f.id).jqGrid("getRowData",k);if(!h.dropbyname){var l=0,p={},n,r=a("#"+this.id).jqGrid("getGridParam","colModel");try{for(var q in k){if(k.hasOwnProperty(q)&&r[l]){n=r[l].name;p[n]=k[q]}l++}k=p}catch(t){}}c.helper.dropped=true;if(h.beforedrop&&a.isFunction(h.beforedrop)){n=h.beforedrop.call(this,j,c,k,a("#"+f.id),a(this));if(typeof n!="undefined"&&n!==null&&typeof n==
|
353
|
+
"object")k=n}if(c.helper.dropped){var m;if(h.autoid)if(a.isFunction(h.autoid))m=h.autoid.call(this,k);else{m=Math.ceil(Math.random()*1E3);m=h.autoidprefix+m}a("#"+this.id).jqGrid("addRowData",m,k,h.droppos)}h.ondrop&&a.isFunction(h.ondrop)&&h.ondrop.call(this,j,c,k)}},h.drop_opts||{})},onstart:null,onstop:null,beforedrop:null,ondrop:null,drop_opts:{activeClass:"ui-state-active",hoverClass:"ui-state-hover"},drag_opts:{revert:"invalid",helper:"clone",cursor:"move",appendTo:"#jqgrid_dnd",zIndex:5E3},
|
308
354
|
dropbyname:false,droppos:"first",autoid:true,autoidprefix:"dnd_"},e||{});if(e.connectWith){e.connectWith=e.connectWith.split(",");e.connectWith=a.map(e.connectWith,function(h){return a.trim(h)});a.data(f,"dnd",e);f.p.reccount!="0"&&!f.p.jqgdnd&&b();f.p.jqgdnd=true;for(var g=0;g<e.connectWith.length;g++)a(e.connectWith[g]).droppable(a.isFunction(e.drop)?e.drop.call(a(f),e):e.drop)}}}})},gridResize:function(e){return this.each(function(){var b=this;if(b.grid&&a.fn.resizable){e=a.extend({},e||{});if(e.alsoResize){e._alsoResize_=
|
309
355
|
e.alsoResize;delete e.alsoResize}else e._alsoResize_=false;if(e.stop&&a.isFunction(e.stop)){e._stop_=e.stop;delete e.stop}else e._stop_=false;e.stop=function(f,g){a(b).jqGrid("setGridParam",{height:a("#gview_"+b.p.id+" .ui-jqgrid-bdiv").height()});a(b).jqGrid("setGridWidth",g.size.width,e.shrinkToFit);e._stop_&&e._stop_.call(b,f,g)};e.alsoResize=e._alsoResize_?eval("("+("{'#gview_"+b.p.id+" .ui-jqgrid-bdiv':true,'"+e._alsoResize_+"':true}")+")"):a(".ui-jqgrid-bdiv","#gview_"+b.p.id);delete e._alsoResize_;
|
310
356
|
a("#gbox_"+b.p.id).resizable(e)}})}})})(jQuery);
|
@@ -318,87 +364,91 @@ d.bCancel+"</a>")+"</td></tr></tbody></table>";d.gbox="#gbox_"+h;createModal(c,k
|
|
318
364
|
a(":input","#"+j).click(function(){var l=this.id.substr(4);if(l){this.checked?a(e).jqGrid("showCol",l):a(e).jqGrid("hideCol",l);d.ShrinkToFit===true&&a(e).jqGrid("setGridWidth",e.grid.width-0.0010,true)}return this}):a("#dData","#"+j+"_2").click(function(){for(i=0;i<e.p.colModel.length;i++)if(!e.p.colModel[i].hidedlg){var l=e.p.colModel[i].name.replace(".","\\.");if(a("#col_"+l,"#"+j).attr("checked")){a(e).jqGrid("showCol",e.p.colModel[i].name);a("#col_"+l,"#"+j).attr("defaultChecked",true)}else{a(e).jqGrid("hideCol",
|
319
365
|
e.p.colModel[i].name);a("#col_"+l,"#"+j).attr("defaultChecked","")}}d.ShrinkToFit===true&&a(e).jqGrid("setGridWidth",e.grid.width-0.0010,true);d.closeAfterSubmit&&hideModal("#"+c.themodal,{gb:"#gbox_"+h,jqm:d.jqModal,onClose:d.onClose});g&&d.afterSubmitForm(a("#"+j));return false});a("#eData","#"+j+"_2").click(function(){hideModal("#"+c.themodal,{gb:"#gbox_"+h,jqm:d.jqModal,onClose:d.onClose});return false});a("#dData, #eData","#"+j+"_2").hover(function(){a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")});
|
320
366
|
b&&d.beforeShowForm(a("#"+j));viewModal("#"+c.themodal,{gbox:"#gbox_"+h,jqm:d.jqModal,jqM:true,modal:d.modal})}f&&d.afterShowForm(a("#"+j))}})}})})(jQuery);
|
321
|
-
(function(a){a.jgrid.extend({setSubGrid:function(){return this.each(function(){var d
|
367
|
+
(function(a){a.jgrid.extend({setSubGrid:function(){return this.each(function(){var d;this.p.colNames.unshift("");this.p.colModel.unshift({name:"subgrid",width:a.browser.safari?this.p.subGridWidth+this.p.cellLayout:this.p.subGridWidth,sortable:false,resizable:false,hidedlg:true,search:false,fixed:true});d=this.p.subGridModel;if(d[0]){d[0].align=a.extend([],d[0].align||[]);for(var e=0;e<d[0].name.length;e++)d[0].align[e]=d[0].align[e]||"left"}})},addSubGridCell:function(d,e){var b="",f,g;this.each(function(){b=
|
322
368
|
this.formatCol(d,e);f=this.p.gridview;g=this.p.id});return f===false?'<td role="grid" aria-describedby="'+g+'_subgrid" class="ui-sgcollapsed sgcollapsed" '+b+"><a href='javascript:void(0);'><span class='ui-icon ui-icon-plus'></span></a></td>":'<td role="grid" aria-describedby="'+g+'_subgrid" '+b+"></td>"},addSubGrid:function(d,e){return this.each(function(){var b=this;if(b.grid){var f,g,h,j,c,k,l;a("td:eq("+e+")",d).click(function(){if(a(this).hasClass("sgcollapsed")){h=b.p.id;f=a(this).parent();
|
323
369
|
j=e>=1?"<td colspan='"+e+"'> </td>":"";g=a(f).attr("id");l=true;if(a.isFunction(b.p.subGridBeforeExpand))l=b.p.subGridBeforeExpand(h+"_"+g,g);if(l===false)return false;c=0;a.each(b.p.colModel,function(){if(this.hidden===true||this.name=="rn"||this.name=="cb")c++});k="<tr role='row' class='ui-subgrid'>"+j+"<td class='ui-widget-content subgrid-cell'><span class='ui-icon ui-icon-carat-1-sw'/></td><td colspan='"+parseInt(b.p.colNames.length-1-c,10)+"' class='ui-widget-content subgrid-data'><div id="+
|
324
|
-
h+"_"+g+" class='tablediv'>";a(this).parent().after(k+"</div></td></tr>");a.isFunction(b.p.subGridRowExpanded)?b.p.subGridRowExpanded(h+"_"+g,g):
|
325
|
-
a(this).html("<a href='javascript:void(0);'><span class='ui-icon ui-icon-plus'></span></a>").removeClass("sgexpanded").addClass("sgcollapsed")}return false});var
|
326
|
-
|
327
|
-
"xml"?
|
328
|
-
a(
|
329
|
-
false;a("#load_"+b.p.id).hide();return false},q=function(
|
330
|
-
|
331
|
-
|
332
|
-
true)
|
370
|
+
h+"_"+g+" class='tablediv'>";a(this).parent().after(k+"</div></td></tr>");a.isFunction(b.p.subGridRowExpanded)?b.p.subGridRowExpanded(h+"_"+g,g):p(f);a(this).html("<a href='javascript:void(0);'><span class='ui-icon ui-icon-minus'></span></a>").removeClass("sgcollapsed").addClass("sgexpanded")}else if(a(this).hasClass("sgexpanded")){l=true;if(a.isFunction(b.p.subGridRowColapsed)){f=a(this).parent();g=a(f).attr("id");l=b.p.subGridRowColapsed(h+"_"+g,g)}if(l===false)return false;a(this).parent().next().remove(".ui-subgrid");
|
371
|
+
a(this).html("<a href='javascript:void(0);'><span class='ui-icon ui-icon-plus'></span></a>").removeClass("sgexpanded").addClass("sgcollapsed")}return false});var p=function(t){var m,o,u,y;m=a(t).attr("id");o={nd_:(new Date).getTime()};o[b.p.prmNames.subgridid]=m;if(!b.p.subGridModel[0])return false;if(b.p.subGridModel[0].params)for(y=0;y<b.p.subGridModel[0].params.length;y++)for(u=0;u<b.p.colModel.length;u++)if(b.p.colModel[u].name==b.p.subGridModel[0].params[y])o[b.p.colModel[u].name]=a("td:eq("+
|
372
|
+
u+")",t).text().replace(/\ \;/ig,"");if(!b.grid.hDiv.loading){b.grid.hDiv.loading=true;a("#load_"+b.p.id).show();if(!b.p.subgridtype)b.p.subgridtype=b.p.datatype;if(a.isFunction(b.p.subgridtype))b.p.subgridtype(o);else b.p.subgridtype=b.p.subgridtype.toLowerCase();switch(b.p.subgridtype){case "xml":case "json":a.ajax(a.extend({type:b.p.mtype,url:b.p.subGridUrl,dataType:b.p.subgridtype,data:a.isFunction(b.p.serializeSubGridData)?b.p.serializeSubGridData(o):o,complete:function(A){b.p.subgridtype==
|
373
|
+
"xml"?r(A.responseXML,m):q(a.jgrid.parse(A.responseText),m)}},a.jgrid.ajaxOptions,b.p.ajaxSubgridOptions||{}));break}}return false},n=function(t,m,o){m=a("<td align='"+b.p.subGridModel[0].align[o]+"'></td>").html(m);a(t).append(m)},r=function(t,m){var o,u,y,A=a("<table cellspacing='0' cellpadding='0' border='0'><tbody></tbody></table>"),B=a("<tr></tr>");for(u=0;u<b.p.subGridModel[0].name.length;u++){o=a("<th class='ui-state-default ui-th-subgrid ui-th-column ui-th-"+b.p.direction+"'></th>");a(o).html(b.p.subGridModel[0].name[u]);
|
374
|
+
a(o).width(b.p.subGridModel[0].width[u]);a(B).append(o)}a(A).append(B);if(t){y=b.p.xmlReader.subgrid;a(y.root+" "+y.row,t).each(function(){B=a("<tr class='ui-widget-content ui-subtblcell'></tr>");if(y.repeatitems===true)a(y.cell,this).each(function(v){n(B,a(this).text()||" ",v)});else{var I=b.p.subGridModel[0].mapping||b.p.subGridModel[0].name;if(I)for(u=0;u<I.length;u++)n(B,a(I[u],this).text()||" ",u)}a(A).append(B)})}t=a("table:first",b.grid.bDiv).attr("id")+"_";a("#"+t+m).append(A);b.grid.hDiv.loading=
|
375
|
+
false;a("#load_"+b.p.id).hide();return false},q=function(t,m){var o,u,y,A,B=a("<table cellspacing='0' cellpadding='0' border='0'><tbody></tbody></table>"),I=a("<tr></tr>");for(u=0;u<b.p.subGridModel[0].name.length;u++){o=a("<th class='ui-state-default ui-th-subgrid ui-th-column ui-th-"+b.p.direction+"'></th>");a(o).html(b.p.subGridModel[0].name[u]);a(o).width(b.p.subGridModel[0].width[u]);a(I).append(o)}a(B).append(I);if(t){o=b.p.jsonReader.subgrid;t=t[o.root];if(typeof t!=="undefined")for(u=0;u<
|
376
|
+
t.length;u++){y=t[u];I=a("<tr class='ui-widget-content ui-subtblcell'></tr>");if(o.repeatitems===true){if(o.cell)y=y[o.cell];for(A=0;A<y.length;A++)n(I,y[A]||" ",A)}else{var v=b.p.subGridModel[0].mapping||b.p.subGridModel[0].name;if(v.length)for(A=0;A<v.length;A++)n(I,y[v[A]]||" ",A)}a(B).append(I)}}u=a("table:first",b.grid.bDiv).attr("id")+"_";a("#"+u+m).append(B);b.grid.hDiv.loading=false;a("#load_"+b.p.id).hide();return false};b.subGridXml=function(t,m){r(t,m)};b.subGridJson=function(t,
|
377
|
+
m){q(t,m)}}})},expandSubGridRow:function(d){return this.each(function(){if(this.grid||d)if(this.p.subGrid===true){var e=a(this).jqGrid("getInd",d,true);if(e)(e=a("td.sgcollapsed",e)[0])&&a(e).trigger("click")}})},collapseSubGridRow:function(d){return this.each(function(){if(this.grid||d)if(this.p.subGrid===true){var e=a(this).jqGrid("getInd",d,true);if(e)(e=a("td.sgexpanded",e)[0])&&a(e).trigger("click")}})},toggleSubGridRow:function(d){return this.each(function(){if(this.grid||d)if(this.p.subGrid===
|
378
|
+
true){var e=a(this).jqGrid("getInd",d,true);if(e){var b=a("td.sgcollapsed",e)[0];if(b)a(b).trigger("click");else(b=a("td.sgexpanded",e)[0])&&a(b).trigger("click")}}})}})})(jQuery);
|
333
379
|
function tableToGrid(a,d){jQuery(a).each(function(){if(!this.grid){jQuery(this).width("99%");var e=jQuery(this).width(),b=jQuery("input[type=checkbox]:first",jQuery(this)),f=jQuery("input[type=radio]:first",jQuery(this)),g=b.length>0,h=!g&&f.length>0,j=g||h;b=b.attr("name")||f.attr("name");var c=[],k=[];jQuery("th",jQuery(this)).each(function(){if(c.length===0&&j){c.push({name:"__selection__",index:"__selection__",width:0,hidden:true});k.push("__selection__")}else{c.push({name:jQuery(this).attr("id")||
|
334
|
-
jQuery.trim(jQuery.jgrid.stripHtml(jQuery(this).html())).split(" ").join("_"),index:jQuery(this).attr("id")||jQuery.trim(jQuery.jgrid.stripHtml(jQuery(this).html())).split(" ").join("_"),width:jQuery(this).width()||150});k.push(jQuery(this).html())}});var l=[],
|
335
|
-
|
336
|
-
(function(a){a.jgrid.extend({setTreeNode:function(d,e){return this.each(function(){var b=this;if(b.grid&&b.p.treeGrid){var f=b.p.expColInd,g=b.p.treeReader.expanded_field,h=b.p.treeReader.leaf_field,j=b.p.treeReader.level_field;e.level=d[j];if(b.p.treeGridModel=="nested"){
|
337
|
-
|
338
|
-
10))a(b).jqGrid("isVisibleNode",
|
339
|
-
function(l){l=a(l.target||l.srcElement,b.rows).
|
340
|
-
false;d.p.pgbuttons=false;d.p.pginput=false;d.p.multiselect=false;d.p.rowList=[];d.p.treeIcons=a.extend({plus:"ui-icon-triangle-1-"+(d.p.direction=="rtl"?"w":"e"),minus:"ui-icon-triangle-1-s",leaf:"ui-icon-radio-off"},d.p.treeIcons||{});if(d.p.treeGridModel=="nested")d.p.treeReader=a.extend({level_field:"level",left_field:"lft",right_field:"rgt",leaf_field:"isLeaf",expanded_field:"expanded"},
|
341
|
-
leaf_field:"isLeaf",expanded_field:"expanded"},d.p.treeReader);for(var b in d.p.colModel)if(d.p.colModel.hasOwnProperty(b)){if(d.p.colModel[b].name==d.p.ExpandColumn){d.p.expColInd=e;break}e++}if(!d.p.expColInd)d.p.expColInd=0;a.each(d.p.treeReader,function(f,g){if(g){d.p.colNames.push(g);d.p.colModel.push({name:g,width:1,hidden:true,sortable:false,resizable:false,hidedlg:true,
|
342
|
-
|
343
|
-
a
|
344
|
-
d)
|
345
|
-
|
346
|
-
parseInt(d
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
this
|
380
|
+
jQuery.trim(jQuery.jgrid.stripHtml(jQuery(this).html())).split(" ").join("_"),index:jQuery(this).attr("id")||jQuery.trim(jQuery.jgrid.stripHtml(jQuery(this).html())).split(" ").join("_"),width:jQuery(this).width()||150});k.push(jQuery(this).html())}});var l=[],p=[],n=[];jQuery("tbody > tr",jQuery(this)).each(function(){var r={},q=0;jQuery("td",jQuery(this)).each(function(){if(q===0&&j){var t=jQuery("input",jQuery(this)),m=t.attr("value");p.push(m||l.length);t.attr("checked")&&n.push(m);r[c[q].name]=
|
381
|
+
t.attr("value")}else r[c[q].name]=jQuery(this).html();q++});q>0&&l.push(r)});jQuery(this).empty();jQuery(this).addClass("scroll");jQuery(this).jqGrid(jQuery.extend({datatype:"local",width:e,colNames:k,colModel:c,multiselect:g},d||{}));for(e=0;e<l.length;e++){g=null;if(p.length>0)if((g=p[e])&&g.replace)g=encodeURIComponent(g).replace(/[.\-%]/g,"_");if(g===null)g=e+1;jQuery(this).jqGrid("addRowData",g,l[e])}for(e=0;e<n.length;e++)jQuery(this).jqGrid("setSelection",n[e])}})}
|
382
|
+
(function(a){a.jgrid.extend({setTreeNode:function(d,e){return this.each(function(){var b=this;if(b.grid&&b.p.treeGrid){var f=b.p.expColInd,g=b.p.treeReader.expanded_field,h=b.p.treeReader.leaf_field,j=b.p.treeReader.level_field;e.level=d[j];if(b.p.treeGridModel=="nested"){var c=d[b.p.treeReader.left_field],k=d[b.p.treeReader.right_field];d[h]||(d[h]=parseInt(k,10)===parseInt(c,10)+1?"true":"false")}k=parseInt(d[j],10);if(b.p.tree_root_level===0){c=k+1;k=k}else{c=k;k=k-1}c="<div class='tree-wrap tree-wrap-"+
|
383
|
+
b.p.direction+"' style='width:"+c*18+"px;'>";c+="<div style='"+(b.p.direction=="rtl"?"right:":"left:")+k*18+"px;' class='ui-icon ";if(d[h]=="true"||d[h]===true){c+=b.p.treeIcons.leaf+" tree-leaf'";d[h]=true;d[g]=false}else{if(d[g]=="true"||d[g]===true){c+=b.p.treeIcons.minus+" tree-minus treeclick'";d[g]=true}else{c+=b.p.treeIcons.plus+" tree-plus treeclick'";d[g]=false}d[h]=false}c+="</div></div>";if(!b.p.loadonce){d[b.p.localReader.id]=e.id;b.p.data.push(d);b.p._index[e.id]=b.p.data.length-1}if(parseInt(d[j],
|
384
|
+
10)!==parseInt(b.p.tree_root_level,10))a(b).jqGrid("isVisibleNode",d)||a(e).css("display","none");a("td:eq("+f+")",e).wrapInner("<span></span>").prepend(c);a(".treeclick",e).bind("click",function(l){l=a(l.target||l.srcElement,b.rows).closest("tr.jqgrow")[0].id;l=b.p._index[l];var p=b.p.treeReader.expanded_field;if(!b.p.data[l][b.p.treeReader.leaf_field])if(b.p.data[l][p]){a(b).jqGrid("collapseRow",b.p.data[l]);a(b).jqGrid("collapseNode",b.p.data[l])}else{a(b).jqGrid("expandRow",b.p.data[l]);a(b).jqGrid("expandNode",
|
385
|
+
b.p.data[l])}return false});b.p.ExpandColClick===true&&a("span",e).css("cursor","pointer").bind("click",function(l){l=a(l.target||l.srcElement,b.rows).closest("tr.jqgrow")[0].id;var p=b.p._index[l],n=b.p.treeReader.expanded_field;if(!b.p.data[p][b.p.treeReader.leaf_field])if(b.p.data[p][n]){a(b).jqGrid("collapseRow",b.p.data[p]);a(b).jqGrid("collapseNode",b.p.data[p])}else{a(b).jqGrid("expandRow",b.p.data[p]);a(b).jqGrid("expandNode",b.p.data[p])}a(b).jqGrid("setSelection",l);return false})}})},setTreeGrid:function(){return this.each(function(){var d=
|
386
|
+
this,e=0;if(d.p.treeGrid){d.p.treedatatype||a.extend(d.p,{treedatatype:d.p.datatype});d.p.subGrid=false;d.p.altRows=false;d.p.pgbuttons=false;d.p.pginput=false;d.p.multiselect=false;d.p.rowList=[];d.p.treeIcons=a.extend({plus:"ui-icon-triangle-1-"+(d.p.direction=="rtl"?"w":"e"),minus:"ui-icon-triangle-1-s",leaf:"ui-icon-radio-off"},d.p.treeIcons||{});if(d.p.treeGridModel=="nested")d.p.treeReader=a.extend({level_field:"level",left_field:"lft",right_field:"rgt",leaf_field:"isLeaf",expanded_field:"expanded"},
|
387
|
+
d.p.treeReader);else if(d.p.treeGridModel=="adjacency")d.p.treeReader=a.extend({level_field:"level",parent_id_field:"parent",leaf_field:"isLeaf",expanded_field:"expanded"},d.p.treeReader);for(var b in d.p.colModel)if(d.p.colModel.hasOwnProperty(b)){if(d.p.colModel[b].name==d.p.ExpandColumn){d.p.expColInd=e;break}e++}if(!d.p.expColInd)d.p.expColInd=0;a.each(d.p.treeReader,function(f,g){if(g){d.p.colNames.push(g);d.p.colModel.push({name:g,width:1,hidden:true,sortable:false,resizable:false,hidedlg:true,
|
388
|
+
editable:true,search:false})}})}})},expandRow:function(d){this.each(function(){var e=this;if(e.grid&&e.p.treeGrid){var b=a(e).jqGrid("getNodeChildren",d),f=e.p.treeReader.expanded_field;a(b).each(function(){var g=a.jgrid.getAccessor(this,e.p.localReader.id);a("#"+g,e.grid.bDiv).css("display","");this[f]&&a(e).jqGrid("expandRow",this)})}})},collapseRow:function(d){this.each(function(){var e=this;if(e.grid&&e.p.treeGrid){var b=a(e).jqGrid("getNodeChildren",d),f=e.p.treeReader.expanded_field;a(b).each(function(){var g=
|
389
|
+
a.jgrid.getAccessor(this,e.p.localReader.id);a("#"+g,e.grid.bDiv).css("display","none");this[f]&&a(e).jqGrid("collapseRow",this)})}})},getRootNodes:function(){var d=[];this.each(function(){var e=this;if(e.grid&&e.p.treeGrid)switch(e.p.treeGridModel){case "nested":var b=e.p.treeReader.level_field;a(e.p.data).each(function(){parseInt(this[b],10)===parseInt(e.p.tree_root_level,10)&&d.push(this)});break;case "adjacency":var f=e.p.treeReader.parent_id_field;a(e.p.data).each(function(){if(this[f]===null||
|
390
|
+
String(this[f]).toLowerCase()=="null")d.push(this)});break}});return d},getNodeDepth:function(d){var e=null;this.each(function(){if(this.grid&&this.p.treeGrid)switch(this.p.treeGridModel){case "nested":e=parseInt(d[this.p.treeReader.level_field],10)-parseInt(this.p.tree_root_level,10);break;case "adjacency":e=a(this).jqGrid("getNodeAncestors",d).length;break}});return e},getNodeParent:function(d){var e=null;this.each(function(){if(this.grid&&this.p.treeGrid)switch(this.p.treeGridModel){case "nested":var b=
|
391
|
+
this.p.treeReader.left_field,f=this.p.treeReader.right_field,g=this.p.treeReader.level_field,h=parseInt(d[b],10),j=parseInt(d[f],10),c=parseInt(d[g],10);a(this.p.data).each(function(){if(parseInt(this[g],10)===c-1&&parseInt(this[b],10)<h&&parseInt(this[f],10)>j){e=this;return false}});break;case "adjacency":var k=this.p.treeReader.parent_id_field;a(this.p.data).each(function(){if(this.id==d[k]){e=this;return false}});break}});return e},getNodeChildren:function(d){var e=[];this.each(function(){if(this.grid&&
|
392
|
+
this.p.treeGrid)switch(this.p.treeGridModel){case "nested":var b=this.p.treeReader.left_field,f=this.p.treeReader.right_field,g=this.p.treeReader.level_field,h=parseInt(d[b],10),j=parseInt(d[f],10),c=parseInt(d[g],10);a(this.p.data).each(function(){parseInt(this[g],10)===c+1&&parseInt(this[b],10)>h&&parseInt(this[f],10)<j&&e.push(this)});break;case "adjacency":var k=this.p.treeReader.parent_id_field;a(this.p.data).each(function(){this[k]==d.id&&e.push(this)});break}});return e},getFullTreeNode:function(d){var e=
|
393
|
+
[];this.each(function(){var b;if(this.grid&&this.p.treeGrid)switch(this.p.treeGridModel){case "nested":var f=this.p.treeReader.left_field,g=this.p.treeReader.right_field,h=this.p.treeReader.level_field,j=parseInt(d[f],10),c=parseInt(d[g],10),k=parseInt(d[h],10);a(this.p.data).each(function(){parseInt(this[h],10)>=k&&parseInt(this[f],10)>=j&&parseInt(this[f],10)<=c&&e.push(this)});break;case "adjacency":e.push(d);var l=this.p.treeReader.parent_id_field;a(this.p.data).each(function(p){b=e.length;for(p=
|
394
|
+
0;p<b;p++)if(e[p].id==this[l]){e.push(this);break}});break}});return e},getNodeAncestors:function(d){var e=[];this.each(function(){if(this.grid&&this.p.treeGrid)for(var b=a(this).jqGrid("getNodeParent",d);b;){e.push(b);b=a(this).jqGrid("getNodeParent",b)}});return e},isVisibleNode:function(d){var e=true;this.each(function(){if(this.grid&&this.p.treeGrid){var b=a(this).jqGrid("getNodeAncestors",d),f=this.p.treeReader.expanded_field;a(b).each(function(){e=e&&this[f];if(!e)return false})}});return e},
|
395
|
+
isNodeLoaded:function(d){var e;this.each(function(){if(this.grid&&this.p.treeGrid){var b=this.p.treeReader.leaf_field;e=d.loaded!==undefined?d.loaded:d[b]||a(this).jqGrid("getNodeChildren",d).length>0?true:false}});return e},expandNode:function(d){return this.each(function(){if(this.grid&&this.p.treeGrid){var e=this.p.treeReader.expanded_field;if(!d[e]){var b=a.jgrid.getAccessor(d,this.p.localReader.id),f=a("#"+b,this.grid.bDiv)[0],g=this.p._index[b];if(a(this).jqGrid("isNodeLoaded",this.p.data[g])){d[e]=
|
396
|
+
true;a("div.treeclick",f).removeClass(this.p.treeIcons.plus+" tree-plus").addClass(this.p.treeIcons.minus+" tree-minus")}else{d[e]=true;a("div.treeclick",f).removeClass(this.p.treeIcons.plus+" tree-plus").addClass(this.p.treeIcons.minus+" tree-minus");this.p.treeANode=f.rowIndex;this.p.datatype=this.p.treedatatype;this.p.treeGridModel=="nested"?a(this).jqGrid("setGridParam",{postData:{nodeid:b,n_left:d.lft,n_right:d.rgt,n_level:d.level}}):a(this).jqGrid("setGridParam",{postData:{nodeid:b,parentid:d.parent_id,
|
397
|
+
n_level:d.level}});a(this).trigger("reloadGrid");this.p.treeGridModel=="nested"?a(this).jqGrid("setGridParam",{postData:{nodeid:"",n_left:"",n_right:"",n_level:""}}):a(this).jqGrid("setGridParam",{postData:{nodeid:"",parentid:"",n_level:""}})}}}})},collapseNode:function(d){return this.each(function(){if(this.grid&&this.p.treeGrid)if(d.expanded){d.expanded=false;var e=a.jgrid.getAccessor(d,this.p.localReader.id);e=a("#"+e,this.grid.bDiv)[0];a("div.treeclick",e).removeClass(this.p.treeIcons.minus+" tree-minus").addClass(this.p.treeIcons.plus+
|
398
|
+
" tree-plus")}})},SortTree:function(d,e,b,f){return this.each(function(){if(this.grid&&this.p.treeGrid){var g,h,j,c=[],k=this,l;g=a(this).jqGrid("getRootNodes");g=a.jgrid.from(g);g.orderBy(d,e,b,f);l=g.select();g=0;for(h=l.length;g<h;g++){j=l[g];c.push(j);a(this).jqGrid("collectChildrenSortTree",c,j,d,e,b,f)}a.each(c,function(p){var n=a.jgrid.getAccessor(this,k.p.localReader.id);if(p===0){p=a("#"+n,k.grid.bDiv);a("td",p).each(function(r){a(this).css("width",k.grid.headers[r].width+"px")});k.grid.cols=
|
399
|
+
p[0].cells}a("tbody",k.grid.bDiv).append(a("#"+n,k.grid.bDiv))});c=l=g=null}})},collectChildrenSortTree:function(d,e,b,f,g,h){return this.each(function(){if(this.grid&&this.p.treeGrid){var j,c,k,l;j=a(this).jqGrid("getNodeChildren",e);j=a.jgrid.from(j);j.orderBy(b,f,f,g,h);l=j.select();j=0;for(c=l.length;j<c;j++){k=l[j];d.push(k);a(this).jqGrid("collectChildrenSortTree",d,k,b,f,g,h)}}})},setTreeRow:function(d,e){var b=false;this.each(function(){if(this.grid&&this.p.treeGrid)b=a(this).jqGrid("setRowData",
|
400
|
+
d,e)});return b},delTreeNode:function(d){return this.each(function(){if(this.grid&&this.p.treeGrid){var e=a(this).jqGrid("getInd",d,true);if(e){var b=a(this).jqGrid("getNodeChildren",e);if(b.length>0)for(var f=0;f<b.length;f++)a(this).jqGrid("delRowData",b[f].id);a(this).jqGrid("delRowData",e.id)}}})}})})(jQuery);
|
353
401
|
(function(a){a.fn.jqDrag=function(j){return g(this,j,"d")};a.fn.jqResize=function(j,c){return g(this,j,"r",c)};a.jqDnR={dnr:{},e:0,drag:function(j){if(e.k=="d")b.css({left:e.X+j.pageX-e.pX,top:e.Y+j.pageY-e.pY});else{b.css({width:Math.max(j.pageX-e.pX+e.W,0),height:Math.max(j.pageY-e.pY+e.H,0)});M1&&f.css({width:Math.max(j.pageX-M1.pX+M1.W,0),height:Math.max(j.pageY-M1.pY+M1.H,0)})}return false},stop:function(){a(document).unbind("mousemove",d.drag).unbind("mouseup",d.stop)}};var d=a.jqDnR,e=d.dnr,
|
354
|
-
b=d.e,f,g=function(j,c,k,l){return j.each(function(){c=c?a(c,j):j;c.bind("mousedown",{e:j,k:k},function(
|
355
|
-
k:
|
356
|
-
(function(a){a.fn.jqm=function(
|
357
|
-
function(
|
358
|
-
setTimeout(function(){c("bind")},1);b.push(
|
359
|
-
|
360
|
-
0,e=a.jqm.hash,b=[],f=a.browser.msie&&a.browser.version=="6.0",g=false,h=function(
|
361
|
-
|
402
|
+
b=d.e,f,g=function(j,c,k,l){return j.each(function(){c=c?a(c,j):j;c.bind("mousedown",{e:j,k:k},function(p){var n=p.data,r={};b=n.e;f=l?a(l):false;if(b.css("position")!="relative")try{b.position(r)}catch(q){}e={X:r.left||h("left")||0,Y:r.top||h("top")||0,W:h("width")||b[0].scrollWidth||0,H:h("height")||b[0].scrollHeight||0,pX:p.pageX,pY:p.pageY,k:n.k};M1=f&&n.k!="d"?{X:r.left||f1("left")||0,Y:r.top||f1("top")||0,W:f[0].offsetWidth||f1("width")||0,H:f[0].offsetHeight||f1("height")||0,pX:p.pageX,pY:p.pageY,
|
403
|
+
k:n.k}:false;a(document).mousemove(a.jqDnR.drag).mouseup(a.jqDnR.stop);return false})})},h=function(j){return parseInt(b.css(j))||false};f1=function(j){return parseInt(f.css(j))||false}})(jQuery);
|
404
|
+
(function(a){a.fn.jqm=function(p){var n={overlay:50,closeoverlay:true,overlayClass:"jqmOverlay",closeClass:"jqmClose",trigger:".jqModal",ajax:g,ajaxText:"",target:g,modal:g,toTop:g,onShow:g,onHide:g,onLoad:g};return this.each(function(){if(this._jqm)return e[this._jqm].c=a.extend({},e[this._jqm].c,p);d++;this._jqm=d;e[d]={c:a.extend(n,a.jqm.params,p),a:g,w:a(this).addClass("jqmID"+d),s:d};n.trigger&&a(this).jqmAddTrigger(n.trigger)})};a.fn.jqmAddClose=function(p){return l(this,p,"jqmHide")};a.fn.jqmAddTrigger=
|
405
|
+
function(p){return l(this,p,"jqmShow")};a.fn.jqmShow=function(p){return this.each(function(){a.jqm.open(this._jqm,p)})};a.fn.jqmHide=function(p){return this.each(function(){a.jqm.close(this._jqm,p)})};a.jqm={hash:{},open:function(p,n){var r=e[p],q=r.c,t="."+q.closeClass,m=parseInt(r.w.css("z-index"));m=m>0?m:3E3;var o=a("<div></div>").css({height:"100%",width:"100%",position:"fixed",left:0,top:0,"z-index":m-1,opacity:q.overlay/100});if(r.a)return g;r.t=n;r.a=true;r.w.css("z-index",m);if(q.modal){b[0]||
|
406
|
+
setTimeout(function(){c("bind")},1);b.push(p)}else if(q.overlay>0)q.closeoverlay&&r.w.jqmAddClose(o);else o=g;r.o=o?o.addClass(q.overlayClass).prependTo("body"):g;if(f){a("html,body").css({height:"100%",width:"100%"});if(o){o=o.css({position:"absolute"})[0];for(var u in{Top:1,Left:1})o.style.setExpression(u.toLowerCase(),"(_=(document.documentElement.scroll"+u+" || document.body.scroll"+u+"))+'px'")}}if(q.ajax){p=q.target||r.w;m=q.ajax;p=typeof p=="string"?a(p,r.w):a(p);m=m.substr(0,1)=="@"?a(n).attr(m.substring(1)):
|
407
|
+
m;p.html(q.ajaxText).load(m,function(){q.onLoad&&q.onLoad.call(this,r);t&&r.w.jqmAddClose(a(t,r.w));h(r)})}else t&&r.w.jqmAddClose(a(t,r.w));q.toTop&&r.o&&r.w.before('<span id="jqmP'+r.w[0]._jqm+'"></span>').insertAfter(r.o);q.onShow?q.onShow(r):r.w.show();h(r);return g},close:function(p){p=e[p];if(!p.a)return g;p.a=g;if(b[0]){b.pop();b[0]||c("unbind")}p.c.toTop&&p.o&&a("#jqmP"+p.w[0]._jqm).after(p.w).remove();if(p.c.onHide)p.c.onHide(p);else{p.w.hide();p.o&&p.o.remove()}return g},params:{}};var d=
|
408
|
+
0,e=a.jqm.hash,b=[],f=a.browser.msie&&a.browser.version=="6.0",g=false,h=function(p){var n=a('<iframe src="javascript:false;document.write(\'\');" class="jqm"></iframe>').css({opacity:0});if(f)if(p.o)p.o.html('<p style="width:100%;height:100%"/>').prepend(n);else a("iframe.jqm",p.w)[0]||p.w.prepend(n);j(p)},j=function(p){try{a(":input:visible",p.w)[0].focus()}catch(n){}},c=function(p){a(document)[p]("keypress",k)[p]("keydown",k)[p]("mousedown",k)},k=function(p){var n=e[b[b.length-1]];(p=!a(p.target).parents(".jqmID"+
|
409
|
+
n.s)[0])&&j(n);return!p},l=function(p,n,r){return p.each(function(){var q=this._jqm;a(n).each(function(){if(!this[r]){this[r]=[];a(this).click(function(){for(var t in{jqmShow:1,jqmHide:1})for(var m in this[t])e[this[t][m]]&&e[this[t][m]].w[t](this);return g})}this[r].push(q)})})}})(jQuery);
|
362
410
|
(function(a){function d(e,b,f,g,h){var j=b;if(a.fn.fmatter[e])j=a.fn.fmatter[e](b,f,g,h);return j}a.fmatter={};a.fn.fmatter=function(e,b,f,g,h){f=a.extend({},a.jgrid.formatter,f);return d(e,b,f,g,h)};a.fmatter.util={NumberFormat:function(e,b){isNumber(e)||(e*=1);if(isNumber(e)){var f=e<0,g=e+"",h=b.decimalSeparator?b.decimalSeparator:".";if(isNumber(b.decimalPlaces)){var j=b.decimalPlaces;g=Math.pow(10,j);g=Math.round(e*g)/g+"";e=g.lastIndexOf(".");if(j>0){if(e<0){g+=h;e=g.length-1}else if(h!==".")g=
|
363
|
-
g.replace(".",h);for(;g.length-1-e<j;)g+="0"}}if(b.thousandsSeparator){j=b.thousandsSeparator;e=g.lastIndexOf(h);e=e>-1?e:g.length;h=g.substring(e);for(var c=-1,k=e;k>0;k--){c++;if(c%3===0&&k!==e&&(!f||k>1))h=j+h;h=g.charAt(k-1)+h}g=h}g=b.prefix?b.prefix+g:g;return g=b.suffix?g+b.suffix:g}else return e},DateFormat:function(e,b,f,g){var h=function(
|
364
|
-
monthNames:g.monthNames};if(e in g.masks)e=g.masks[e];if(b.constructor===Date)c=b;else{b=b.split(/[\\\/:_;.\t\T\s-]/);e=e.split(/[\\\/:_;.\t\T\s-]/);k=0;for(l=e.length;k<l;k++){if(e[k]=="M"){c=a.inArray(b[k],
|
365
|
-
g.masks)f=g.masks[f];else f||(f="Y-m-d");j=c.getHours();e=c.getMinutes();b=c.getDate();k=c.getMonth()+1;l=c.getTimezoneOffset();var
|
366
|
-
L:"?",o:"?",Y:
|
367
|
-
function(
|
411
|
+
g.replace(".",h);for(;g.length-1-e<j;)g+="0"}}if(b.thousandsSeparator){j=b.thousandsSeparator;e=g.lastIndexOf(h);e=e>-1?e:g.length;h=g.substring(e);for(var c=-1,k=e;k>0;k--){c++;if(c%3===0&&k!==e&&(!f||k>1))h=j+h;h=g.charAt(k-1)+h}g=h}g=b.prefix?b.prefix+g:g;return g=b.suffix?g+b.suffix:g}else return e},DateFormat:function(e,b,f,g){var h=function(y,A){y=String(y);for(A=parseInt(A,10)||2;y.length<A;)y="0"+y;return y},j={m:1,d:1,y:1970,h:0,i:0,s:0,u:0},c=0,k,l,p=["i18n"];p.i18n={dayNames:g.dayNames,
|
412
|
+
monthNames:g.monthNames};if(e in g.masks)e=g.masks[e];if(b.constructor===Date)c=b;else{b=b.split(/[\\\/:_;.\t\T\s-]/);e=e.split(/[\\\/:_;.\t\T\s-]/);k=0;for(l=e.length;k<l;k++){if(e[k]=="M"){c=a.inArray(b[k],p.i18n.monthNames);if(c!==-1&&c<12)b[k]=c+1}if(e[k]=="F"){c=a.inArray(b[k],p.i18n.monthNames);if(c!==-1&&c>11)b[k]=c+1-12}if(b[k])j[e[k].toLowerCase()]=parseInt(b[k],10)}j.m=parseInt(j.m,10)-1;c=j.y;if(c>=70&&c<=99)j.y=1900+j.y;else if(c>=0&&c<=69)j.y=2E3+j.y;c=new Date(j.y,j.m,j.d,j.h,j.i,j.s,
|
413
|
+
j.u)}if(f in g.masks)f=g.masks[f];else f||(f="Y-m-d");j=c.getHours();e=c.getMinutes();b=c.getDate();k=c.getMonth()+1;l=c.getTimezoneOffset();var n=c.getSeconds(),r=c.getMilliseconds(),q=c.getDay(),t=c.getFullYear(),m=(q+6)%7+1,o=(new Date(t,k-1,b)-new Date(t,0,1))/864E5,u={d:h(b),D:p.i18n.dayNames[q],j:b,l:p.i18n.dayNames[q+7],N:m,S:g.S(b),w:q,z:o,W:m<5?Math.floor((o+m-1)/7)+1:Math.floor((o+m-1)/7)||(((new Date(t-1,0,1)).getDay()+6)%7<4?53:52),F:p.i18n.monthNames[k-1+12],m:h(k),M:p.i18n.monthNames[k-
|
414
|
+
1],n:k,t:"?",L:"?",o:"?",Y:t,y:String(t).substring(2),a:j<12?g.AmPm[0]:g.AmPm[1],A:j<12?g.AmPm[2]:g.AmPm[3],B:"?",g:j%12||12,G:j,h:h(j%12||12),H:h(j),i:h(e),s:h(n),u:r,e:"?",I:"?",O:(l>0?"-":"+")+h(Math.floor(Math.abs(l)/60)*100+Math.abs(l)%60,4),P:"?",T:(String(c).match(/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g)||[""]).pop().replace(/[^-+\dA-Z]/g,""),Z:"?",c:"?",r:"?",U:Math.floor(c/1E3)};return f.replace(/\\.|[dDjlNSwzWFmMntLoYyaABgGhHisueIOPTZcrU]/g,
|
415
|
+
function(y){return y in u?u[y]:y.substring(1)})}};a.fn.fmatter.defaultFormat=function(e,b){return isValue(e)&&e!==""?e:b.defaultValue?b.defaultValue:" "};a.fn.fmatter.email=function(e,b){return isEmpty(e)?a.fn.fmatter.defaultFormat(e,b):'<a href="mailto:'+e+'">'+e+"</a>"};a.fn.fmatter.checkbox=function(e,b){var f=a.extend({},b.checkbox);isUndefined(b.colModel.formatoptions)||(f=a.extend({},f,b.colModel.formatoptions));b=f.disabled===true?"disabled":"";if(isEmpty(e)||isUndefined(e))e=a.fn.fmatter.defaultFormat(e,
|
368
416
|
f);e+="";e=e.toLowerCase();return'<input type="checkbox" '+(e.search(/(false|0|no|off)/i)<0?" checked='checked' ":"")+' value="'+e+'" offval="no" '+b+"/>"};a.fn.fmatter.link=function(e,b){var f={target:b.target},g="";isUndefined(b.colModel.formatoptions)||(f=a.extend({},f,b.colModel.formatoptions));if(f.target)g="target="+f.target;return isEmpty(e)?a.fn.fmatter.defaultFormat(e,b):"<a "+g+' href="'+e+'">'+e+"</a>"};a.fn.fmatter.showlink=function(e,b){var f={baseLinkUrl:b.baseLinkUrl,showAction:b.showAction,
|
369
417
|
addParam:b.addParam||"",target:b.target,idName:b.idName},g="";isUndefined(b.colModel.formatoptions)||(f=a.extend({},f,b.colModel.formatoptions));if(f.target)g="target="+f.target;f=f.baseLinkUrl+f.showAction+"?"+f.idName+"="+b.rowId+f.addParam;return isString(e)?"<a "+g+' href="'+f+'">'+e+"</a>":a.fn.fmatter.defaultFormat(e,b)};a.fn.fmatter.integer=function(e,b){var f=a.extend({},b.integer);isUndefined(b.colModel.formatoptions)||(f=a.extend({},f,b.colModel.formatoptions));if(isEmpty(e))return f.defaultValue;
|
370
418
|
return a.fmatter.util.NumberFormat(e,f)};a.fn.fmatter.number=function(e,b){var f=a.extend({},b.number);isUndefined(b.colModel.formatoptions)||(f=a.extend({},f,b.colModel.formatoptions));if(isEmpty(e))return f.defaultValue;return a.fmatter.util.NumberFormat(e,f)};a.fn.fmatter.currency=function(e,b){var f=a.extend({},b.currency);isUndefined(b.colModel.formatoptions)||(f=a.extend({},f,b.colModel.formatoptions));if(isEmpty(e))return f.defaultValue;return a.fmatter.util.NumberFormat(e,f)};a.fn.fmatter.date=
|
371
419
|
function(e,b,f,g){f=a.extend({},b.date);isUndefined(b.colModel.formatoptions)||(f=a.extend({},f,b.colModel.formatoptions));return!f.reformatAfterEdit&&g=="edit"?a.fn.fmatter.defaultFormat(e,b):isEmpty(e)?a.fn.fmatter.defaultFormat(e,b):a.fmatter.util.DateFormat(f.srcformat,e,f.newformat,f)};a.fn.fmatter.select=function(e,b){e+="";var f=false,g=[];if(!isUndefined(b.colModel.editoptions))f=b.colModel.editoptions.value;if(f){var h=b.colModel.editoptions.multiple===true?true:false,j=[],c;if(h){j=e.split(",");
|
372
|
-
j=a.map(j,function(
|
420
|
+
j=a.map(j,function(n){return a.trim(n)})}if(isString(f))for(var k=f.split(";"),l=0,p=0;p<k.length;p++){c=k[p].split(":");if(c.length>2)c[1]=jQuery.map(c,function(n,r){if(r>0)return n}).join(":");if(h){if(jQuery.inArray(c[0],j)>-1){g[l]=c[1];l++}}else if(a.trim(c[0])==a.trim(e)){g[0]=c[1];break}}else if(isObject(f))if(h)g=jQuery.map(j,function(n){return f[n]});else g[0]=f[e]||""}e=g.join(", ");return e==""?a.fn.fmatter.defaultFormat(e,b):e};a.fn.fmatter.rowactions=function(e,b,f,g){switch(f){case "edit":f=
|
373
421
|
function(){a("tr#"+e+" div.ui-inline-edit, tr#"+e+" div.ui-inline-del","#"+b).show();a("tr#"+e+" div.ui-inline-save, tr#"+e+" div.ui-inline-cancel","#"+b).hide()};a("#"+b).jqGrid("editRow",e,g,null,null,null,{oper:"edit"},f,null,f);a("tr#"+e+" div.ui-inline-edit, tr#"+e+" div.ui-inline-del","#"+b).hide();a("tr#"+e+" div.ui-inline-save, tr#"+e+" div.ui-inline-cancel","#"+b).show();break;case "save":a("#"+b).jqGrid("saveRow",e,null,null);a("tr#"+e+" div.ui-inline-edit, tr#"+e+" div.ui-inline-del","#"+
|
374
422
|
b).show();a("tr#"+e+" div.ui-inline-save, tr#"+e+" div.ui-inline-cancel","#"+b).hide();break;case "cancel":a("#"+b).jqGrid("restoreRow",e);a("tr#"+e+" div.ui-inline-edit, tr#"+e+" div.ui-inline-del","#"+b).show();a("tr#"+e+" div.ui-inline-save, tr#"+e+" div.ui-inline-cancel","#"+b).hide();break}};a.fn.fmatter.actions=function(e,b){e={keys:false,editbutton:true,delbutton:true};isUndefined(b.colModel.formatoptions)||(e=a.extend(e,b.colModel.formatoptions));var f=b.rowId,g="",h;if(typeof f=="undefined"||
|
375
423
|
isEmpty(f))return"";if(e.editbutton){h="onclick=$.fn.fmatter.rowactions('"+f+"','"+b.gid+"','edit',"+e.keys+");";g=g+"<div style='margin-left:8px;'><div title='"+a.jgrid.nav.edittitle+"' style='float:left;cursor:pointer;' class='ui-pg-div ui-inline-edit' "+h+"><span class='ui-icon ui-icon-pencil'></span></div>"}if(e.delbutton){h="onclick=jQuery('#"+b.gid+"').jqGrid('delGridRow','"+f+"');";g=g+"<div title='"+a.jgrid.nav.deltitle+"' style='float:left;margin-left:5px;' class='ui-pg-div ui-inline-del' "+
|
376
424
|
h+"><span class='ui-icon ui-icon-trash'></span></div>"}h="onclick=$.fn.fmatter.rowactions('"+f+"','"+b.gid+"','save',false);";g=g+"<div title='"+a.jgrid.edit.bSubmit+"' style='float:left;display:none' class='ui-pg-div ui-inline-save'><span class='ui-icon ui-icon-disk' "+h+"></span></div>";h="onclick=$.fn.fmatter.rowactions('"+f+"','"+b.gid+"','cancel',false);";return g=g+"<div title='"+a.jgrid.edit.bCancel+"' style='float:left;display:none;margin-left:5px;' class='ui-pg-div ui-inline-cancel'><span class='ui-icon ui-icon-cancel' "+
|
377
425
|
h+"></span></div></div>"};a.unformat=function(e,b,f,g){var h,j=b.colModel.formatter,c=b.colModel.formatoptions||{},k=/([\.\*\_\'\(\)\{\}\+\?\\])/g;unformatFunc=b.colModel.unformat||a.fn.fmatter[j]&&a.fn.fmatter[j].unformat;if(typeof unformatFunc!=="undefined"&&isFunction(unformatFunc))h=unformatFunc(a(e).text(),b,e);else if(typeof j!=="undefined"&&isString(j)){h=a.jgrid.formatter||{};switch(j){case "integer":c=a.extend({},h.integer,c);b=c.thousandsSeparator.replace(k,"\\$1");b=new RegExp(b,"g");h=
|
378
426
|
a(e).text().replace(b,"");break;case "number":c=a.extend({},h.number,c);b=c.thousandsSeparator.replace(k,"\\$1");b=new RegExp(b,"g");h=a(e).text().replace(b,"").replace(c.decimalSeparator,".");break;case "currency":c=a.extend({},h.currency,c);b=c.thousandsSeparator.replace(k,"\\$1");b=new RegExp(b,"g");h=a(e).text().replace(b,"").replace(c.decimalSeparator,".").replace(c.prefix,"").replace(c.suffix,"");break;case "checkbox":c=b.colModel.editoptions?b.colModel.editoptions.value.split(":"):["Yes","No"];
|
379
|
-
h=a("input",e).attr("checked")?c[0]:c[1];break;case "select":h=a.unformat.select(e,b,f,g);break;case "actions":return"";default:h=a(e).text()}}return h?h:g===true?a(e).text():a.jgrid.htmlDecode(a(e).html())};a.unformat.select=function(e,b,f,g){f=[];e=a(e).text();if(g===true)return e;b=a.extend({},b.colModel.editoptions);if(b.value){var h=b.value;b=b.multiple===true?true:false;g=[];var j;if(b){g=e.split(",");g=a.map(g,function(
|
380
|
-
c[l].split(":");if(b){if(jQuery.inArray(j[1],g)>-1){f[k]=j[0];k++}}else if(a.trim(j[1])==a.trim(e)){f[0]=j[0];break}}else if(isObject(h)){b||(g[0]=e);f=jQuery.map(g,function(
|
381
|
-
isFinite(e)};isString=function(e){return typeof e==="string"};isEmpty=function(e){if(!isString(e)&&isValue(e))return false;else if(!isValue(e))return true;e=a.trim(e).replace(/\ \;/ig,"").replace(/\ \;/ig,
|
382
|
-
|
383
|
-
|
384
|
-
jQuery.
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
var
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
jQuery(v.target).parents(".sf");
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
427
|
+
h=a("input",e).attr("checked")?c[0]:c[1];break;case "select":h=a.unformat.select(e,b,f,g);break;case "actions":return"";default:h=a(e).text()}}return h?h:g===true?a(e).text():a.jgrid.htmlDecode(a(e).html())};a.unformat.select=function(e,b,f,g){f=[];e=a(e).text();if(g===true)return e;b=a.extend({},b.colModel.editoptions);if(b.value){var h=b.value;b=b.multiple===true?true:false;g=[];var j;if(b){g=e.split(",");g=a.map(g,function(p){return a.trim(p)})}if(isString(h))for(var c=h.split(";"),k=0,l=0;l<c.length;l++){j=
|
428
|
+
c[l].split(":");if(j.length>2)j[1]=jQuery.map(j,function(p,n){if(n>0)return p}).join(":");if(b){if(jQuery.inArray(j[1],g)>-1){f[k]=j[0];k++}}else if(a.trim(j[1])==a.trim(e)){f[0]=j[0];break}}else if(isObject(h)){b||(g[0]=e);f=jQuery.map(g,function(p){var n;a.each(h,function(r,q){if(q==p){n=r;return false}});if(n)return n})}return f.join(", ")}else return e||""};a.unformat.date=function(e,b){var f=a.jgrid.formatter.date||{};isUndefined(b.formatoptions)||(f=a.extend({},f,b.formatoptions));return isEmpty(e)?
|
429
|
+
a.fn.fmatter.defaultFormat(e,b):a.fmatter.util.DateFormat(f.newformat,e,f.srcformat,f)};isValue=function(e){return isObject(e)||isString(e)||isNumber(e)||isBoolean(e)};isBoolean=function(e){return typeof e==="boolean"};isNull=function(e){return e===null};isNumber=function(e){return typeof e==="number"&&isFinite(e)};isString=function(e){return typeof e==="string"};isEmpty=function(e){if(!isString(e)&&isValue(e))return false;else if(!isValue(e))return true;e=a.trim(e).replace(/\ \;/ig,"").replace(/\ \;/ig,
|
430
|
+
"");return e===""};isUndefined=function(e){return typeof e==="undefined"};isObject=function(e){return e&&(typeof e==="object"||isFunction(e))||false};isFunction=function(e){return typeof e==="function"}})(jQuery);
|
431
|
+
jQuery.fn.searchFilter=function(a,d){function e(b,f,g){this.$=b;this.add=function(v){v==null?b.find(".ui-add-last").click():b.find(".sf:eq("+v+") .ui-add").click();return this};this.del=function(v){v==null?b.find(".sf:last .ui-del").click():b.find(".sf:eq("+v+") .ui-del").click();return this};this.search=function(){b.find(".ui-search").click();return this};this.reset=function(v){if(v===undefined)v=false;b.find(".ui-reset").trigger("click",[v]);return this};this.close=function(){b.find(".ui-closer").click();
|
432
|
+
return this};if(f!=null){var h=function(){jQuery(this).toggleClass("ui-state-hover");return false},j=function(v){jQuery(this).toggleClass("ui-state-active",v.type=="mousedown");return false},c=function(v,z){return"<option value='"+v+"'>"+z+"</option>"},k=function(v,z,H){return"<select class='"+v+"'"+(H?" style='display:none;'":"")+">"+z+"</select>"},l=function(v,z){v=b.find("tr.sf td.data "+v);v[0]!=null&&z(v)},p=function(v,z){var H=b.find("tr.sf td.data "+v);H[0]!=null&&jQuery.each(z,function(){this.data!=
|
433
|
+
null?H.bind(this.type,this.data,this.fn):H.bind(this.type,this.fn)})},n=jQuery.extend({},jQuery.fn.searchFilter.defaults,g),r=-1,q="";jQuery.each(n.groupOps,function(){q+=c(this.op,this.text)});q="<select name='groupOp'>"+q+"</select>";b.html("").addClass("ui-searchFilter").append("<div class='ui-widget-overlay' style='z-index: -1'> </div><table class='ui-widget-content ui-corner-all'><thead><tr><td colspan='5' class='ui-widget-header ui-corner-all' style='line-height: 18px;'><div class='ui-closer ui-state-default ui-corner-all ui-helper-clearfix' style='float: right;'><span class='ui-icon ui-icon-close'></span></div>"+
|
434
|
+
n.windowTitle+"</td></tr></thead><tbody><tr class='sf'><td class='fields'></td><td class='ops'></td><td class='data'></td><td><div class='ui-del ui-state-default ui-corner-all'><span class='ui-icon ui-icon-minus'></span></div></td><td><div class='ui-add ui-state-default ui-corner-all'><span class='ui-icon ui-icon-plus'></span></div></td></tr><tr><td colspan='5' class='divider'><div> </div></td></tr></tbody><tfoot><tr><td colspan='3'><span class='ui-reset ui-state-default ui-corner-all' style='display: inline-block; float: left;'><span class='ui-icon ui-icon-arrowreturnthick-1-w' style='float: left;'></span><span style='line-height: 18px; padding: 0 7px 0 3px;'>"+
|
435
|
+
n.resetText+"</span></span><span class='ui-search ui-state-default ui-corner-all' style='display: inline-block; float: right;'><span class='ui-icon ui-icon-search' style='float: left;'></span><span style='line-height: 18px; padding: 0 7px 0 3px;'>"+n.searchText+"</span></span><span class='matchText'>"+n.matchText+"</span> "+q+" <span class='rulesText'>"+n.rulesText+"</span></td><td> </td><td><div class='ui-add-last ui-state-default ui-corner-all'><span class='ui-icon ui-icon-plusthick'></span></div></td></tr></tfoot></table>");
|
436
|
+
var t=b.find("tr.sf"),m=t.find("td.fields"),o=t.find("td.ops"),u=t.find("td.data"),y="";jQuery.each(n.operators,function(){y+=c(this.op,this.text)});y=k("default",y,true);o.append(y);u.append("<input type='text' class='default' style='display:none;' />");var A="",B=false,I=false;jQuery.each(f,function(v){A+=c(this.itemval,this.text);if(this.ops!=null){B=true;var z="";jQuery.each(this.ops,function(){z+=c(this.op,this.text)});z=k("field"+v,z,true);o.append(z)}if(this.dataUrl!=null){if(v>r)r=v;I=true;
|
437
|
+
var H=this.dataEvents,K=this.dataInit,Q=this.buildSelect;jQuery.ajax(jQuery.extend({url:this.dataUrl,complete:function(T){T=Q!=null?jQuery("<div />").append(Q(T)):jQuery("<div />").append(T.responseText);T.find("select").addClass("field"+v).hide();u.append(T.html());K&&l(".field"+v,K);H&&p(".field"+v,H);v==r&&b.find("tr.sf td.fields select[name='field']").change()}},n.ajaxSelectOptions))}else if(this.dataValues!=null){I=true;var O="";jQuery.each(this.dataValues,function(){O+=c(this.value,this.text)});
|
438
|
+
O=k("field"+v,O,true);u.append(O)}else if(this.dataEvents!=null||this.dataInit!=null){I=true;O="<input type='text' class='field"+v+"' />";u.append(O)}this.dataInit!=null&&v!=r&&l(".field"+v,this.dataInit);this.dataEvents!=null&&v!=r&&p(".field"+v,this.dataEvents)});A="<select name='field'>"+A+"</select>";m.append(A);f=m.find("select[name='field']");B?f.change(function(v){var z=v.target.selectedIndex;v=jQuery(v.target).parents("tr.sf").find("td.ops");v.find("select").removeAttr("name").hide();z=v.find(".field"+
|
439
|
+
z);if(z[0]==null)z=v.find(".default");z.attr("name","op").show()}):o.find(".default").attr("name","op").show();I?f.change(function(v){var z=v.target.selectedIndex;v=jQuery(v.target).parents("tr.sf").find("td.data");v.find("select,input").removeClass("vdata").hide();z=v.find(".field"+z);if(z[0]==null)z=v.find(".default");z.show().addClass("vdata")}):u.find(".default").show().addClass("vdata");if(B||I)f.change();b.find(".ui-state-default").hover(h,h).mousedown(j).mouseup(j);b.find(".ui-closer").click(function(){n.onClose(jQuery(b.selector));
|
440
|
+
return false});b.find(".ui-del").click(function(v){v=jQuery(v.target).parents(".sf");if(v.siblings(".sf").length>0){n.datepickerFix===true&&jQuery.fn.datepicker!==undefined&&v.find(".hasDatepicker").datepicker("destroy");v.remove()}else{v.find("select[name='field']")[0].selectedIndex=0;v.find("select[name='op']")[0].selectedIndex=0;v.find(".data input").val("");v.find(".data select").each(function(){this.selectedIndex=0});v.find("select[name='field']").change()}return false});b.find(".ui-add").click(function(v){v=
|
441
|
+
jQuery(v.target).parents(".sf");var z=v.clone(true).insertAfter(v);z.find(".ui-state-default").removeClass("ui-state-hover ui-state-active");if(n.clone){z.find("select[name='field']")[0].selectedIndex=v.find("select[name='field']")[0].selectedIndex;if(z.find("select[name='op']")[0]!=null)z.find("select[name='op']").focus()[0].selectedIndex=v.find("select[name='op']")[0].selectedIndex;var H=z.find("select.vdata");if(H[0]!=null)H[0].selectedIndex=v.find("select.vdata")[0].selectedIndex}else{z.find(".data input").val("");
|
442
|
+
z.find("select[name='field']").focus()}n.datepickerFix===true&&jQuery.fn.datepicker!==undefined&&v.find(".hasDatepicker").each(function(){var K=jQuery.data(this,"datepicker").settings;z.find("#"+this.id).unbind().removeAttr("id").removeClass("hasDatepicker").datepicker(K)});z.find("select[name='field']").change();return false});b.find(".ui-search").click(function(){var v=jQuery(b.selector),z,H=v.find("select[name='groupOp'] :selected").val();z=n.stringResult?'{"groupOp":"'+H+'","rules":[':{groupOp:H,
|
443
|
+
rules:[]};v.find(".sf").each(function(K){var Q=jQuery(this).find("select[name='field'] :selected").val(),O=jQuery(this).find("select[name='op'] :selected").val(),T=jQuery(this).find("input.vdata,select.vdata :selected").val();T+="";T=T.replace(/\\/g,"\\\\").replace(/\"/g,'\\"');if(n.stringResult){if(K>0)z+=",";z+='{"field":"'+Q+'",';z+='"op":"'+O+'",';z+='"data":"'+T+'"}'}else z.rules.push({field:Q,op:O,data:T})});if(n.stringResult)z+="]}";n.onSearch(z);return false});b.find(".ui-reset").click(function(v,
|
444
|
+
z){v=jQuery(b.selector);v.find(".ui-del").click();v.find("select[name='groupOp']")[0].selectedIndex=0;n.onReset(z);return false});b.find(".ui-add-last").click(function(){var v=jQuery(b.selector+" .sf:last"),z=v.clone(true).insertAfter(v);z.find(".ui-state-default").removeClass("ui-state-hover ui-state-active");z.find(".data input").val("");z.find("select[name='field']").focus();n.datepickerFix===true&&jQuery.fn.datepicker!==undefined&&v.find(".hasDatepicker").each(function(){var H=jQuery.data(this,
|
445
|
+
"datepicker").settings;z.find("#"+this.id).unbind().removeAttr("id").removeClass("hasDatepicker").datepicker(H)});z.find("select[name='field']").change();return false});this.setGroupOp=function(v){selDOMobj=this.$.find("select[name='groupOp']")[0];var z={},H=selDOMobj.options.length,K;for(K=0;K<H;K++)z[selDOMobj.options[K].value]=K;selDOMobj.selectedIndex=z[v];jQuery(selDOMobj).change()};this.setFilter=function(v){var z=v.sfref;v=v.filter;var H=[],K,Q,O,T,ca={};selDOMobj=z.find("select[name='field']")[0];
|
446
|
+
K=0;for(O=selDOMobj.options.length;K<O;K++){ca[selDOMobj.options[K].value]={index:K,ops:{}};H.push(selDOMobj.options[K].value)}K=0;for(O=H.length;K<O;K++){if(selDOMobj=z.find(".ops > select[class='field"+K+"']")[0]){Q=0;for(T=selDOMobj.options.length;Q<T;Q++)ca[H[K]].ops[selDOMobj.options[Q].value]=Q}if(selDOMobj=z.find(".data > select[class='field"+K+"']")[0]){ca[H[K]].data={};Q=0;for(T=selDOMobj.options.length;Q<T;Q++)ca[H[K]].data[selDOMobj.options[Q].value]=Q}}var fa,ta,ya,za;H=v.field;if(ca[H])fa=
|
447
|
+
ca[H].index;if(fa!=null){ta=ca[H].ops[v.op];if(ta===undefined){K=0;for(O=g.operators.length;K<O;K++)if(g.operators[K].op==v.op){ta=K;break}}ya=v.data;za=ca[H].data==null?-1:ca[H].data[ya]}if(fa!=null&&ta!=null&&za!=null){z.find("select[name='field']")[0].selectedIndex=fa;z.find("select[name='field']").change();z.find("select[name='op']")[0].selectedIndex=ta;z.find("input.vdata").val(ya);if(z=z.find("select.vdata")[0])z.selectedIndex=za;return true}else return false}}}return new e(this,a,d)};
|
448
|
+
jQuery.fn.searchFilter.version="1.2.9";
|
399
449
|
jQuery.fn.searchFilter.defaults={clone:true,datepickerFix:true,onReset:function(a){alert("Reset Clicked. Data Returned: "+a)},onSearch:function(a){alert("Search Clicked. Data Returned: "+a)},onClose:function(a){a.hide()},groupOps:[{op:"AND",text:"all"},{op:"OR",text:"any"}],operators:[{op:"eq",text:"is equal to"},{op:"ne",text:"is not equal to"},{op:"lt",text:"is less than"},{op:"le",text:"is less or equal to"},{op:"gt",text:"is greater than"},{op:"ge",text:"is greater or equal to"},{op:"in",text:"is in"},
|
400
450
|
{op:"ni",text:"is not in"},{op:"bw",text:"begins with"},{op:"bn",text:"does not begin with"},{op:"ew",text:"ends with"},{op:"en",text:"does not end with"},{op:"cn",text:"contains"},{op:"nc",text:"does not contain"}],matchText:"match",rulesText:"rules",resetText:"Reset",searchText:"Search",stringResult:true,windowTitle:"Search Rules",ajaxSelectOptions:{}};
|
401
|
-
var xmlJsonClass={xml2json:function(a,d){if(a.nodeType===9)a=a.documentElement;a=this.toJson(this.toObj(this.removeWhite(a)),a.nodeName,"\t");return"{\n"+d+(d?a.replace(/\t/g,d):a.replace(/\t|\n/g,""))+"\n}"},json2xml:function(a,d){var e=function(g,h,j){var c="",k,l;if(g instanceof Array)if(g.length===0)c+=j+"<"+h+">__EMPTY_ARRAY_</"+h+">\n";else{k=0;for(l=g.length;k<l;k+=1){var
|
451
|
+
var xmlJsonClass={xml2json:function(a,d){if(a.nodeType===9)a=a.documentElement;a=this.toJson(this.toObj(this.removeWhite(a)),a.nodeName,"\t");return"{\n"+d+(d?a.replace(/\t/g,d):a.replace(/\t|\n/g,""))+"\n}"},json2xml:function(a,d){var e=function(g,h,j){var c="",k,l;if(g instanceof Array)if(g.length===0)c+=j+"<"+h+">__EMPTY_ARRAY_</"+h+">\n";else{k=0;for(l=g.length;k<l;k+=1){var p=j+e(g[k],h,j+"\t")+"\n";c+=p}}else if(typeof g==="object"){k=false;c+=j+"<"+h;for(l in g)if(g.hasOwnProperty(l))if(l.charAt(0)===
|
402
452
|
"@")c+=" "+l.substr(1)+'="'+g[l].toString()+'"';else k=true;c+=k?">":"/>";if(k){for(l in g)if(g.hasOwnProperty(l))if(l==="#text")c+=g[l];else if(l==="#cdata")c+="<![CDATA["+g[l]+"]]\>";else if(l.charAt(0)!=="@")c+=e(g[l],l,j+"\t");c+=(c.charAt(c.length-1)==="\n"?j:"")+"</"+h+">"}}else c+=typeof g==="function"?j+"<"+h+"><![CDATA["+g+"]]\></"+h+">":g.toString()==='""'||g.toString().length===0?j+"<"+h+">__EMPTY_STRING_</"+h+">":j+"<"+h+">"+g.toString()+"</"+h+">";return c},b="",f;for(f in a)if(a.hasOwnProperty(f))b+=
|
403
453
|
e(a[f],f,"");return d?b.replace(/\t/g,d):b.replace(/\t|\n/g,"")},toObj:function(a){var d={},e=/function/i;if(a.nodeType===1){if(a.attributes.length){var b;for(b=0;b<a.attributes.length;b+=1)d["@"+a.attributes[b].nodeName]=(a.attributes[b].nodeValue||"").toString()}if(a.firstChild){var f=b=0,g=false,h;for(h=a.firstChild;h;h=h.nextSibling)if(h.nodeType===1)g=true;else if(h.nodeType===3&&h.nodeValue.match(/[^ \f\n\r\t\v]/))b+=1;else if(h.nodeType===4)f+=1;if(g)if(b<2&&f<2){this.removeWhite(a);for(h=
|
404
454
|
a.firstChild;h;h=h.nextSibling)if(h.nodeType===3)d["#text"]=this.escape(h.nodeValue);else if(h.nodeType===4)if(e.test(h.nodeValue))d[h.nodeName]=[d[h.nodeName],h.nodeValue];else d["#cdata"]=this.escape(h.nodeValue);else if(d[h.nodeName])if(d[h.nodeName]instanceof Array)d[h.nodeName][d[h.nodeName].length]=this.toObj(h);else d[h.nodeName]=[d[h.nodeName],this.toObj(h)];else d[h.nodeName]=this.toObj(h)}else if(a.attributes.length)d["#text"]=this.escape(this.innerXml(a));else d=this.escape(this.innerXml(a));
|
@@ -407,25 +457,3 @@ a.nodeType);return d},toJson:function(a,d,e){var b=d?'"'+d+'"':"";if(a==="[]")b+
|
|
407
457
|
"}"}else if(typeof a==="string"){e=/function/i;f=a.toString();b+=/(^-?\d+\.?\d*$)/.test(f)||e.test(f)||f==="false"||f==="true"?(d&&":")+f:(d&&":")+'"'+a+'"'}else b+=(d&&":")+a.toString();return b},innerXml:function(a){var d="";if("innerHTML"in a)d=a.innerHTML;else{var e=function(b){var f="",g;if(b.nodeType===1){f+="<"+b.nodeName;for(g=0;g<b.attributes.length;g+=1)f+=" "+b.attributes[g].nodeName+'="'+(b.attributes[g].nodeValue||"").toString()+'"';if(b.firstChild){f+=">";for(g=b.firstChild;g;g=g.nextSibling)f+=
|
408
458
|
e(g);f+="</"+b.nodeName+">"}else f+="/>"}else if(b.nodeType===3)f+=b.nodeValue;else if(b.nodeType===4)f+="<![CDATA["+b.nodeValue+"]]\>";return f};for(a=a.firstChild;a;a=a.nextSibling)d+=e(a)}return d},escape:function(a){return a.replace(/[\\]/g,"\\\\").replace(/[\"]/g,'\\"').replace(/[\n]/g,"\\n").replace(/[\r]/g,"\\r")},removeWhite:function(a){a.normalize();var d;for(d=a.firstChild;d;)if(d.nodeType===3)if(d.nodeValue.match(/[^ \f\n\r\t\v]/))d=d.nextSibling;else{var e=d.nextSibling;a.removeChild(d);
|
409
459
|
d=e}else{d.nodeType===1&&this.removeWhite(d);d=d.nextSibling}return a}};
|
410
|
-
jQuery.tableDnD={currentTable:null,dragObject:null,mouseOffset:null,oldY:0,build:function(a){this.each(function(){this.tableDnDConfig=jQuery.extend({onDragStyle:null,onDropStyle:null,onDragClass:"tDnD_whileDrag",onDrop:null,onDragStart:null,scrollAmount:5,serializeRegexp:/[^\-]*$/,serializeParamName:null,dragHandle:null},a||{});jQuery.tableDnD.makeDraggable(this)});jQuery(document).bind("mousemove",jQuery.tableDnD.mousemove).bind("mouseup",jQuery.tableDnD.mouseup);return this},makeDraggable:function(a){var d=
|
411
|
-
a.tableDnDConfig;a.tableDnDConfig.dragHandle?jQuery("td."+a.tableDnDConfig.dragHandle,a).each(function(){jQuery(this).mousedown(function(e){jQuery.tableDnD.dragObject=this.parentNode;jQuery.tableDnD.currentTable=a;jQuery.tableDnD.mouseOffset=jQuery.tableDnD.getMouseOffset(this,e);d.onDragStart&&d.onDragStart(a,this);return false})}):jQuery("tr",a).each(function(){var e=jQuery(this);e.hasClass("nodrag")||e.mousedown(function(b){if(b.target.tagName=="TD"){jQuery.tableDnD.dragObject=this;jQuery.tableDnD.currentTable=
|
412
|
-
a;jQuery.tableDnD.mouseOffset=jQuery.tableDnD.getMouseOffset(this,b);d.onDragStart&&d.onDragStart(a,this);return false}}).css("cursor","move")})},updateTables:function(){this.each(function(){this.tableDnDConfig&&jQuery.tableDnD.makeDraggable(this)})},mouseCoords:function(a){if(a.pageX||a.pageY)return{x:a.pageX,y:a.pageY};return{x:a.clientX+document.body.scrollLeft-document.body.clientLeft,y:a.clientY+document.body.scrollTop-document.body.clientTop}},getMouseOffset:function(a,d){d=d||window.event;
|
413
|
-
a=this.getPosition(a);d=this.mouseCoords(d);return{x:d.x-a.x,y:d.y-a.y}},getPosition:function(a){var d=0,e=0;if(a.offsetHeight==0)a=a.firstChild;if(a&&a.offsetParent){for(;a.offsetParent;){d+=a.offsetLeft;e+=a.offsetTop;a=a.offsetParent}d+=a.offsetLeft;e+=a.offsetTop}return{x:d,y:e}},mousemove:function(a){if(jQuery.tableDnD.dragObject!=null){var d=jQuery(jQuery.tableDnD.dragObject),e=jQuery.tableDnD.currentTable.tableDnDConfig,b=jQuery.tableDnD.mouseCoords(a);a=b.y-jQuery.tableDnD.mouseOffset.y;var f=
|
414
|
-
window.pageYOffset;if(document.all)if(typeof document.compatMode!="undefined"&&document.compatMode!="BackCompat")f=document.documentElement.scrollTop;else if(typeof document.body!="undefined")f=document.body.scrollTop;if(b.y-f<e.scrollAmount)window.scrollBy(0,-e.scrollAmount);else(window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight)-(b.y-f)<e.scrollAmount&&window.scrollBy(0,e.scrollAmount);if(a!=jQuery.tableDnD.oldY){b=
|
415
|
-
a>jQuery.tableDnD.oldY;jQuery.tableDnD.oldY=a;e.onDragClass?d.addClass(e.onDragClass):d.css(e.onDragStyle);if(d=jQuery.tableDnD.findDropTargetRow(d,a))if(b&&jQuery.tableDnD.dragObject!=d)jQuery.tableDnD.dragObject.parentNode.insertBefore(jQuery.tableDnD.dragObject,d.nextSibling);else!b&&jQuery.tableDnD.dragObject!=d&&jQuery.tableDnD.dragObject.parentNode.insertBefore(jQuery.tableDnD.dragObject,d)}return false}},findDropTargetRow:function(a,d){for(var e=jQuery.tableDnD.currentTable.rows,b=0;b<e.length;b++){var f=
|
416
|
-
e[b],g=this.getPosition(f).y,h=parseInt(f.offsetHeight)/2;if(f.offsetHeight==0){g=this.getPosition(f.firstChild).y;h=parseInt(f.firstChild.offsetHeight)/2}if(d>g-h&&d<g+h){if(f==a)return null;d=jQuery.tableDnD.currentTable.tableDnDConfig;return d.onAllowDrop?d.onAllowDrop(a,f)?f:null:jQuery(f).hasClass("nodrop")?null:f}}return null},mouseup:function(){if(jQuery.tableDnD.currentTable&&jQuery.tableDnD.dragObject){var a=jQuery.tableDnD.dragObject,d=jQuery.tableDnD.currentTable.tableDnDConfig;d.onDragClass?
|
417
|
-
jQuery(a).removeClass(d.onDragClass):jQuery(a).css(d.onDropStyle);jQuery.tableDnD.dragObject=null;d.onDrop&&d.onDrop(jQuery.tableDnD.currentTable,a);jQuery.tableDnD.currentTable=null}},serialize:function(){return jQuery.tableDnD.currentTable?jQuery.tableDnD.serializeTable(jQuery.tableDnD.currentTable):"Error: No Table id set, you need to set an id on your table and every row"},serializeTable:function(a){for(var d="",e=a.id,b=a.rows,f=0;f<b.length;f++){if(d.length>0)d+="&";var g=b[f].id;if(g&&g&&a.tableDnDConfig&&
|
418
|
-
a.tableDnDConfig.serializeRegexp)g=g.match(a.tableDnDConfig.serializeRegexp)[0];d+=e+"[]="+g}return d},serializeTables:function(){var a="";this.each(function(){a+=jQuery.tableDnD.serializeTable(this)});return a}};jQuery.fn.extend({tableDnD:jQuery.tableDnD.build,tableDnDUpdate:jQuery.tableDnD.updateTables,tableDnDSerialize:jQuery.tableDnD.serializeTables});
|
419
|
-
(function(a){a.widget("ui.multiselect",{_init:function(){this.element.hide();this.id=this.element.attr("id");this.container=a('<div class="ui-multiselect ui-helper-clearfix ui-widget"></div>').insertAfter(this.element);this.count=0;this.selectedContainer=a('<div class="selected"></div>').appendTo(this.container);this.availableContainer=a('<div class="available"></div>').appendTo(this.container);this.selectedActions=a('<div class="actions ui-widget-header ui-helper-clearfix"><span class="count">0 '+
|
420
|
-
a.ui.multiselect.locale.itemsCount+'</span><a href="#" class="remove-all">'+a.ui.multiselect.locale.removeAll+"</a></div>").appendTo(this.selectedContainer);this.availableActions=a('<div class="actions ui-widget-header ui-helper-clearfix"><input type="text" class="search empty ui-widget-content ui-corner-all"/><a href="#" class="add-all">'+a.ui.multiselect.locale.addAll+"</a></div>").appendTo(this.availableContainer);this.selectedList=a('<ul class="selected connected-list"><li class="ui-helper-hidden-accessible"></li></ul>').bind("selectstart",
|
421
|
-
function(){return false}).appendTo(this.selectedContainer);this.availableList=a('<ul class="available connected-list"><li class="ui-helper-hidden-accessible"></li></ul>').bind("selectstart",function(){return false}).appendTo(this.availableContainer);var d=this;this.container.width(this.element.width()+1);this.selectedContainer.width(Math.floor(this.element.width()*this.options.dividerLocation));this.availableContainer.width(Math.floor(this.element.width()*(1-this.options.dividerLocation)));this.selectedList.height(Math.max(this.element.height()-
|
422
|
-
this.selectedActions.height(),1));this.availableList.height(Math.max(this.element.height()-this.availableActions.height(),1));if(!this.options.animated){this.options.show="show";this.options.hide="hide"}this._populateLists(this.element.find("option"));this.options.sortable&&a("ul.selected").sortable({placeholder:"ui-state-highlight",axis:"y",update:function(){d.selectedList.find("li").each(function(){a(this).data("optionLink")&&a(this).data("optionLink").remove().appendTo(d.element)})},receive:function(e,
|
423
|
-
b){b.item.data("optionLink").attr("selected",true);d.count+=1;d._updateCount();d.selectedList.children(".ui-draggable").each(function(){a(this).removeClass("ui-draggable");a(this).data("optionLink",b.item.data("optionLink"));a(this).data("idx",b.item.data("idx"));d._applyItemState(a(this),true)});setTimeout(function(){b.item.remove()},1)}});this.options.searchable?this._registerSearchEvents(this.availableContainer.find("input.search")):a(".search").hide();a(".remove-all").click(function(){d._populateLists(d.element.find("option").removeAttr("selected"));
|
424
|
-
return false});a(".add-all").click(function(){d._populateLists(d.element.find("option").attr("selected","selected"));return false})},destroy:function(){this.element.show();this.container.remove();a.widget.prototype.destroy.apply(this,arguments)},_populateLists:function(d){this.selectedList.children(".ui-element").remove();this.availableList.children(".ui-element").remove();this.count=0;var e=this;a(d.map(function(b){var f=e._getOptionNode(this).appendTo(this.selected?e.selectedList:e.availableList).show();
|
425
|
-
if(this.selected)e.count+=1;e._applyItemState(f,this.selected);f.data("idx",b);return f[0]}));this._updateCount()},_updateCount:function(){this.selectedContainer.find("span.count").text(this.count+" "+a.ui.multiselect.locale.itemsCount)},_getOptionNode:function(d){d=a(d);var e=a('<li class="ui-state-default ui-element" title="'+d.text()+'"><span class="ui-icon"/>'+d.text()+'<a href="#" class="action"><span class="ui-corner-all ui-icon"/></a></li>').hide();e.data("optionLink",d);return e},_cloneWithData:function(d){var e=
|
426
|
-
d.clone();e.data("optionLink",d.data("optionLink"));e.data("idx",d.data("idx"));return e},_setSelected:function(d,e){d.data("optionLink").attr("selected",e);if(e){e=this._cloneWithData(d);d[this.options.hide](this.options.animated,function(){a(this).remove()});e.appendTo(this.selectedList).hide()[this.options.show](this.options.animated);this._applyItemState(e,true);return e}else{var b=this.availableList.find("li"),f=this.options.nodeComparator;e=null;var g=d.data("idx"),h=f(d,a(b[g]));if(h)for(;g>=
|
427
|
-
0&&g<b.length;){h>0?g++:g--;if(h!=f(d,a(b[g]))){e=b[h>0?g:g+1];break}}else e=b[g];b=this._cloneWithData(d);e?b.insertBefore(a(e)):b.appendTo(this.availableList);d[this.options.hide](this.options.animated,function(){a(this).remove()});b.hide()[this.options.show](this.options.animated);this._applyItemState(b,false);return b}},_applyItemState:function(d,e){if(e){this.options.sortable?d.children("span").addClass("ui-icon-arrowthick-2-n-s").removeClass("ui-helper-hidden").addClass("ui-icon"):d.children("span").removeClass("ui-icon-arrowthick-2-n-s").addClass("ui-helper-hidden").removeClass("ui-icon");
|
428
|
-
d.find("a.action span").addClass("ui-icon-minus").removeClass("ui-icon-plus");this._registerRemoveEvents(d.find("a.action"))}else{d.children("span").removeClass("ui-icon-arrowthick-2-n-s").addClass("ui-helper-hidden").removeClass("ui-icon");d.find("a.action span").addClass("ui-icon-plus").removeClass("ui-icon-minus");this._registerAddEvents(d.find("a.action"))}this._registerHoverEvents(d)},_filter:function(d){var e=a(this),b=d.children("li");d=b.map(function(){return a(this).text().toLowerCase()});
|
429
|
-
var f=a.trim(e.val().toLowerCase()),g=[];if(f){b.hide();d.each(function(h){this.indexOf(f)>-1&&g.push(h)});a.each(g,function(){a(b[this]).show()})}else b.show()},_registerHoverEvents:function(d){d.removeClass("ui-state-hover");d.mouseover(function(){a(this).addClass("ui-state-hover")});d.mouseout(function(){a(this).removeClass("ui-state-hover")})},_registerAddEvents:function(d){var e=this;d.click(function(){e._setSelected(a(this).parent(),true);e.count+=1;e._updateCount();return false}).each(function(){a(this).parent().draggable({connectToSortable:"ul.selected",
|
430
|
-
helper:function(){var b=e._cloneWithData(a(this)).width(a(this).width()-50);b.width(a(this).width());return b},appendTo:".ui-multiselect",containment:".ui-multiselect",revert:"invalid"})})},_registerRemoveEvents:function(d){var e=this;d.click(function(){e._setSelected(a(this).parent(),false);e.count-=1;e._updateCount();return false})},_registerSearchEvents:function(d){var e=this;d.focus(function(){a(this).addClass("ui-state-active")}).blur(function(){a(this).removeClass("ui-state-active")}).keypress(function(b){if(b.keyCode==
|
431
|
-
13)return false}).keyup(function(){e._filter.apply(this,[e.availableList])})}});a.extend(a.ui.multiselect,{defaults:{sortable:true,searchable:true,animated:"fast",show:"slideDown",hide:"slideUp",dividerLocation:0.6,nodeComparator:function(d,e){d=d.text();e=e.text();return d==e?0:d<e?-1:1}},locale:{addAll:"Add all",removeAll:"Remove all",itemsCount:"items selected"}})})(jQuery);
|