compass-jquery-plugin 0.3.0.beta.22 → 0.3.0.beta.24
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +59 -17
- data/Rakefile +51 -51
- data/VERSION.yml +1 -1
- data/compass-jquery-plugin.gemspec +1132 -1049
- data/gem_tasks/dynatree.rake +76 -76
- data/gem_tasks/emulators.rake +57 -0
- data/gem_tasks/jqgrid.rake +118 -118
- data/gem_tasks/jqical.rake +85 -85
- data/gem_tasks/jqtools.rake +60 -0
- data/gem_tasks/jqtouch.rake +20 -40
- data/gem_tasks/jrails.rake +35 -25
- data/gem_tasks/jstree.rake +96 -95
- data/gem_tasks/mobile.rake +113 -0
- data/gem_tasks/ribbon.rake +77 -77
- data/gem_tasks/rubygems.rake +6 -6
- data/gem_tasks/secret_sauce.rake +63 -63
- data/lib/jquery.mobile.rb +33 -0
- data/lib/jquery.ui.rb +140 -140
- data/lib/jquery/emulators.rb +3 -0
- data/lib/jquery/jqical/helpers/ui_event_helper.rb +13 -13
- data/lib/jquery/jqtools.rb +2 -0
- data/lib/jquery/mobile.rb +3 -0
- data/lib/jquery/secret_sauce/helpers/ui_form_helper.rb +117 -117
- data/lib/jquery/secret_sauce/helpers/ui_grid_helper.rb +225 -225
- data/templates/dynatree/config/initializers/dynatree.rb +4 -4
- data/templates/dynatree/{jquery.ui/dynatree.aero.scss → jquery/dynatree/aero.scss} +31 -31
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/cbChecked.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/cbChecked_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/cbIntermediate.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/cbIntermediate_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/cbUnchecked.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/cbUnchecked_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/collapsed.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/collapsed_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/copy_here.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/customDoc1.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/customFolder1.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/doc_with_children.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/document.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/drop_accept.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/drop_here.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/drop_reject.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/empty.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/expanded.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/expanded_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/folder.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/folder_docs.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/folder_images.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/folder_page.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/ltDoc.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/ltError.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/ltWait.gif +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/move_here.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/rbChecked.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/rbChecked_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/rbIntermediate.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/rbIntermediate_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/rbUnchecked.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/rbUnchecked_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal.scss → jquery/dynatree/aqua.scss} +32 -32
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/cbChecked.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/cbChecked_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/cbIntermediate.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/cbIntermediate_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/cbUnchecked.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/cbUnchecked_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/collapsed.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/collapsed_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/copy_here.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/customDoc1.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/customFolder1.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/doc_with_children.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/document.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/drop_accept.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/drop_here.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/drop_reject.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/empty.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/expanded.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/expanded_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/folder.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/folder_docs.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/folder_images.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/folder_open.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/folder_page.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/ltDoc.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/ltError.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/ltWait.gif +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/move_here.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/rbChecked.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/rbChecked_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/rbIntermediate.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/rbIntermediate_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/rbUnchecked.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/rbUnchecked_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.aqua.scss → jquery/dynatree/crystal.scss} +32 -32
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/cbChecked.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/cbChecked_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/cbIntermediate.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/cbIntermediate_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/cbUnchecked.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/cbUnchecked_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/collapsed.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/collapsed_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/copy_here.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/customDoc1.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/customFolder1.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/doc_with_children.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/document.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/drop_accept.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/drop_here.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/drop_reject.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/empty.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/expanded.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/expanded_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/folder.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/folder_docs.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/folder_images.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/folder_open.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/folder_page.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/ltDoc.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/ltError.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/ltWait.gif +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/move_here.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/rbChecked.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/rbChecked_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/rbIntermediate.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/rbIntermediate_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/rbUnchecked.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/rbUnchecked_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp.scss → jquery/dynatree/xp.scss} +35 -35
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/cbChecked.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/cbChecked_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/cbIntermediate.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/cbIntermediate_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/cbUnchecked.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/cbUnchecked_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/copy_here.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/customDoc1.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/customFolder1.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/drop_accept.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/drop_here.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/drop_reject.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltD_ne.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltD_nes.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltDoc.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltError.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltFld.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltFld_o.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltL_.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltL_ne.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltL_nes.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltL_ns.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltM_ne.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltM_nes.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltP_ne.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltP_nes.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltWait.gif +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/move_here.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/rbChecked.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/rbChecked_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/rbIntermediate.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/rbIntermediate_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/rbUnchecked.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/rbUnchecked_hover.png +0 -0
- data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/vline.png +0 -0
- data/templates/dynatree/manifest.rb +140 -140
- data/templates/emulators/config/initializers/emulators.rb +10 -0
- data/templates/emulators/emulators/blackberry.landscape.scss +15 -0
- data/templates/emulators/emulators/blackberry.portrait.scss +15 -0
- data/templates/emulators/emulators/blackberry.torch.landscape.png +0 -0
- data/templates/emulators/emulators/blackberry.torch.portrait.png +0 -0
- data/templates/emulators/emulators/ipad.landscape.png +0 -0
- data/templates/emulators/emulators/ipad.landscape.scss +15 -0
- data/templates/emulators/emulators/ipad.portrait.png +0 -0
- data/templates/emulators/emulators/ipad.portrait.scss +15 -0
- data/templates/emulators/emulators/iphone.landscape.png +0 -0
- data/templates/emulators/emulators/iphone.landscape.scss +15 -0
- data/templates/emulators/emulators/iphone.portrait.png +0 -0
- data/templates/emulators/emulators/iphone.portrait.scss +15 -0
- data/templates/emulators/emulators/palm.landscape.scss +15 -0
- data/templates/emulators/emulators/palm.portrait.scss +15 -0
- data/templates/emulators/emulators/palm.pre.landscape.png +0 -0
- data/templates/emulators/emulators/palm.pre.portrait.png +0 -0
- data/templates/emulators/manifest.rb +20 -0
- data/templates/jqgrid/config/initializers/jqgrid.rb +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-cat.js +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-cat.min.js +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-de.js +23 -18
- data/templates/jqgrid/i18n/jqgrid/locale-de.min.js +6 -6
- data/templates/jqgrid/i18n/jqgrid/locale-fr.js +2 -2
- data/templates/jqgrid/i18n/jqgrid/locale-fr.min.js +1 -1
- data/templates/jqgrid/jquery.jqGrid.js +1858 -1850
- data/templates/jqgrid/jquery.jqGrid.min.js +214 -214
- data/templates/jqgrid/{jquery.ui → jquery}/jqGrid.scss +0 -0
- data/templates/jqgrid/manifest.rb +1 -1
- data/templates/jqical/app/views/{ui → shared}/_ui_event_for.js.haml +0 -0
- data/templates/jqical/config/initializers/jqical.rb +1 -1
- data/templates/jqical/{jquery.ui → jquery}/jqical.scss +0 -0
- data/templates/jqical/{jquery.ui → jquery}/jqical/calendar.png +0 -0
- data/templates/jqical/{jquery.ui → jquery}/jqical/clock.png +0 -0
- data/templates/jqical/manifest.rb +4 -4
- data/templates/jqtools/config/initializers/jqtools.rb +3 -0
- data/templates/jqtools/jquery.tools.js +4576 -0
- data/templates/jqtools/jquery.tools.min.js +255 -0
- data/templates/jqtools/manifest.rb +6 -0
- data/templates/jqtouch/config/initializers/jqtouch.rb +5 -6
- data/templates/jqtouch/jquery.jqtouch.js +656 -414
- data/templates/jqtouch/jquery.jqtouch.min.js +1 -1
- data/templates/jqtouch/{jqtouch/jqt.apple.scss → jquery/touch/apple.scss} +30 -36
- data/templates/jqtouch/{jqtouch → jquery/touch}/apple/activeButton.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/apple/backButton.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/apple/cancel.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/apple/chevron.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/apple/grayButton.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/apple/greenButton.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/apple/listArrowSel.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/apple/listGroup.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/apple/loading.gif +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/apple/on_off.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/apple/pinstripes.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/apple/redButton.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/apple/selection.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/apple/thumb.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/apple/toggle.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/apple/toggleOn.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/apple/toolButton.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/apple/toolbar.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/apple/whiteButton.png +0 -0
- data/templates/jqtouch/{jqtouch/jqt.default.scss → jquery/touch/default.scss} +31 -43
- data/templates/jqtouch/{jqtouch → jquery/touch}/default/backButton.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/default/backButtonActive.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/default/bigButton.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/default/bigButtonActive.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/default/button.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/default/buttonActive.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/default/chevron.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/default/chevronActive.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/default/chevronCircle.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/default/chevronCircleActive.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/default/loading.gif +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/default/toggleSwitch.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/default/toolbarBackground.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/Read me first - license.txt b/data/templates/jqtouch/jquery/touch/glyphish/Read me first - → license.txt +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/01-refresh.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/02-redo.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/03-loopback.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/04-squiggle.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/05-shuffle.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/06-magnifying-glass.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/07-map-marker.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/08-chat.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/09-chat2.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/10-medical.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/100-coffee.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/101-gameplan.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/102-walk.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/103-map.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/104-index-cards.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/105-piano.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/106-sliders.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/107-widescreen.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/108-badge.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/109-chicken.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/11-clock.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/110-bug.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/111-user.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/112-group.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/113-navigation.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/114-balloon.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/115-bow-and-arrow.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/116-controller.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/117-todo.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/118-coathanger.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/119-piggybank.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/12-eye.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/120-headphones.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/121-lanscape.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/122-stats.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/123-id-card.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/124-bullhorn.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/125-food.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/126-moon.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/127-sock.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/128-bone.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/129-golf.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/13-target.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/130-dice.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/14-tag.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/15-tags.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/16-line-chart.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/17-bar-chart.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/18-envelope.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/19-gear.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/20-gear2.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/21-skull.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/22-skull-n-crossbones.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/23-bird.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/24-gift.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/25-weather.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/26-bandaid.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/27-planet.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/28-star.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/29-heart.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/30-key.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/31-ipod.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/32-iphone.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/33-cabinet.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/34-coffee.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/35-shopping-bag.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/36-toolbox.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/37-suitcase.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/38-airplane.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/39-spraycan.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/40-inbox.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/41-picture-frame.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/42-photos.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/43-film-roll.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/44-shoebox.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/45-movie1.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/46-movie2.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/47-fuel.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/48-fork-and-knife.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/49-battery.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/50-beaker.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/51-outlet.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/52-pinetree.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/53-house.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/54-lock.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/55-network.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/56-cloud.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/57-download.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/58-bookmark.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/59-flag.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/60-signpost.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/61-brightness.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/62-contrast.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/63-runner.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/64-zap.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/65-note.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/66-microphone.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/67-tshirt.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/68-paperclip.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/69-display.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/70-tv.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/71-compass.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/72-pin.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/73-radar.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/74-location.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/75-phone.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/76-baby.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/77-ekg.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/78-stopwatch.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/79-medical-bag.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/80-shopping-cart.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/81-dashboard.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/82-dogpaw.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/83-calendar.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/84-lightbulb.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/85-trophy.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/86-camera.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/87-wineglass.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/88-beermug.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/89-dumbbell.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/90-lifebuoy.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/91-beaker2.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/92-testtube.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/93-thermometer.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/94-pill.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/95-equalizer.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/96-book.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/97-puzzle.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/98-palette.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/99-umbrella.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/01-refresh.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/02-redo.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/03-loopback.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/04-squiggle.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/05-shuffle.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/06-magnifying-glass.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/07-map-marker.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/08-chat.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/09-chat2.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/10-medical.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/100-coffee.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/101-gameplan.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/102-walk.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/103-map.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/104-index-cards.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/105-piano.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/106-sliders.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/107-widescreen.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/108-badge.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/109-chicken.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/11-clock.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/110-bug.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/111-user.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/112-group.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/113-navigation.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/114-balloon.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/115-bow-and-arrow.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/116-controller.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/117-todo.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/118-coathanger.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/119-piggybank.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/12-eye.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/120-headphones.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/121-lanscape.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/122-stats.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/123-id-card.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/124-bullhorn.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/125-food.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/126-moon.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/127-sock.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/128-bone.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/129-golf.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/13-target.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/130-dice.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/14-tag.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/15-tags.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/16-line-chart.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/17-bar-chart.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/18-envelope.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/19-gear.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/20-gear2.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/21-skull.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/22-skull-n-crossbones.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/23-bird.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/24-gift.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/25-weather.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/26-bandaid.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/27-planet.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/28-star.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/29-heart.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/30-key.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/31-ipod.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/32-iphone.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/33-cabinet.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/34-coffee.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/35-shopping-bag.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/36-toolbox.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/37-suitcase.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/38-airplane.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/39-spraycan.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/40-inbox.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/41-picture-frame.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/42-photos.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/43-film-roll.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/44-shoebox.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/45-movie1.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/46-movie2.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/47-fuel.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/48-fork-and-knife.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/49-battery.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/50-beaker.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/51-outlet.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/52-pinetree.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/53-house.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/54-lock.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/55-network.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/56-cloud.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/57-download.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/58-bookmark.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/59-flag.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/60-signpost.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/61-brightness.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/62-contrast.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/63-runner.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/64-zap.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/65-note.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/66-microphone.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/67-tshirt.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/68-paperclip.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/69-display.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/70-tv.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/71-compass.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/72-pin.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/73-radar.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/74-location.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/75-phone.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/76-baby.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/77-ekg.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/78-stopwatch.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/79-medical-bag.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/80-shopping-cart.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/81-dashboard.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/82-dogpaw.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/83-calendar.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/84-lightbulb.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/85-trophy.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/86-camera.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/87-wineglass.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/88-beermug.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/89-dumbbell.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/90-lifebuoy.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/91-beaker2.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/92-testtube.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/93-thermometer.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/94-pill.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/95-equalizer.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/96-book.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/97-puzzle.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/98-palette.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/99-umbrella.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/ical/bottom_bar.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/ical/calpad.jpg +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/ical/cells.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/ical/footer.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/ical/header.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/ical/header_left.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/ical/header_right.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/ical/jqt_startup.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/ical/jqtouch-ical.png +0 -0
- data/templates/jqtouch/{jqtouch/jqt.jqt.scss → jquery/touch/jqt.scss} +36 -40
- data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/activeButton.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/back_button.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/back_button_clicked.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/blueButton.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/button.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/button_clicked.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/chevron.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/chevron_circle.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/grayButton.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/greenButton.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/loading.gif +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/on_off.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/redButton.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/rowhead.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/toggle.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/toggleOn.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/toolbar.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/whiteButton.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/jqt_startup.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/jqtouch.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/jqtouch.scss +276 -254
- data/templates/jqtouch/jquery/touch/jqtouch4.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/photo/btnBack.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/photo/loading.gif +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/photo/navNext.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/photo/navPause.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/photo/navPlay.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/photo/navPrev.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/photo/toolbar.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/sw/alpha.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/sw/button-cancel.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/sw/button-done.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/sw/header.png +0 -0
- data/templates/jqtouch/{jqtouch → jquery/touch}/sw/slot-border.png +0 -0
- data/templates/jqtouch/manifest.rb +339 -342
- data/templates/jrails/config/initializers/jrails.rb +8 -4
- data/templates/jrails/i18n/jquery.ui/datepicker-gl.js +23 -0
- data/templates/jrails/i18n/jquery.ui/datepicker-gl.min.js +2 -0
- data/templates/jrails/i18n/jquery.ui/datepicker-pt.js +22 -0
- data/templates/jrails/i18n/jquery.ui/datepicker-pt.min.js +2 -0
- data/templates/jrails/i18n/jquery.ui/datepicker-ru.js +1 -1
- data/templates/jrails/i18n/jquery.ui/datepicker-ru.min.js +1 -1
- data/templates/jrails/jquery-1.4.3.js +6944 -0
- data/templates/jrails/jquery-1.4.3.min.js +152 -0
- data/templates/jrails/{jquery-ui-1.8.5.js → jquery-ui-1.8.6.js} +514 -356
- data/templates/jrails/jquery-ui-1.8.6.min.js +825 -0
- data/templates/jrails/jquery.bgiframe.js +37 -8
- data/templates/jrails/jquery.bgiframe.min.js +2 -2
- data/templates/jrails/jquery.cookie.js +89 -0
- data/templates/jrails/jquery.cookie.min.js +2 -0
- data/templates/jrails/jquery.flash_messages.js +5 -0
- data/templates/jrails/jquery.flash_messages.min.js +1 -0
- data/templates/jrails/jquery.form.js +660 -0
- data/templates/jrails/jquery.form.min.js +17 -0
- data/templates/jrails/jquery.layout.js +2507 -0
- data/templates/jrails/jquery.layout.min.js +49 -0
- data/templates/jrails/jquery.themeswitchertool.js +4 -4
- data/templates/jrails/jquery.themeswitchertool.min.js +4 -4
- data/templates/jrails/{jquery.ui → jquery/ui}/_theme.scss +20 -15
- data/templates/jrails/{jquery.ui → jquery/ui}/base.scss +18 -18
- data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-anim_basic_16x16.gif +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-icons_222222_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-icons_2e83ff_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-icons_454545_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-icons_888888_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-icons_cd0a0a_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/black-tie.scss +18 -18
- data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-anim_basic_16x16.gif +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-bg_diagonals-thick_8_333333_40x40.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-bg_flat_65_ffffff_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-bg_glass_40_111111_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-bg_glass_55_1c1c1c_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-bg_highlight-hard_100_f9f9f9_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-bg_highlight-hard_40_aaaaaa_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-bg_highlight-soft_50_aaaaaa_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-bg_inset-hard_45_cd0a0a_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-bg_inset-hard_55_ffeb80_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-icons_222222_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-icons_4ca300_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-icons_bbbbbb_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-icons_ededed_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-icons_ffcf29_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/blitzer.scss +18 -18
- data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-anim_basic_16x16.gif +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-bg_diagonals-thick_75_f3d8d8_40x40.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-bg_dots-small_65_a6a6a6_2x2.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-bg_flat_0_333333_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-bg_flat_65_ffffff_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-bg_glass_55_fbf8ee_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-bg_highlight-hard_100_eeeeee_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-bg_highlight-hard_100_f6f6f6_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-bg_highlight-soft_15_cc0000_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-icons_004276_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-icons_cc0000_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/contextMenu.scss +6 -6
- data/templates/jrails/{jquery.ui → jquery/ui}/contextMenu/cut.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/contextMenu/door.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/contextMenu/page_white_copy.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/contextMenu/page_white_delete.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/contextMenu/page_white_edit.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/contextMenu/page_white_paste.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/cupertino.scss +18 -18
- data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-anim_basic_16x16.gif +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-bg_diagonals-thick_90_eeeeee_40x40.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-bg_flat_15_cd0a0a_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-bg_glass_100_e4f1fb_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-bg_glass_50_3baae3_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-bg_glass_80_d7ebf9_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-bg_highlight-hard_100_f2f5f7_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-bg_highlight-hard_70_000000_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-bg_highlight-soft_100_deedf7_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-bg_highlight-soft_25_ffef8f_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-icons_2694e8_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-icons_2e83ff_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-icons_3d80b3_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-icons_72a7cf_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive.scss +18 -18
- data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-anim_basic_16x16.gif +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-bg_flat_30_cccccc_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-bg_glass_40_ffc73d_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-bg_highlight-hard_20_0972a5_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-bg_highlight-soft_33_003147_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-bg_highlight-soft_35_222222_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-bg_highlight-soft_44_444444_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-bg_loop_25_000000_21x21.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-icons_222222_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-icons_4b8e0b_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-icons_a83300_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-icons_cccccc_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv.scss +18 -18
- data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-anim_basic_16x16.gif +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-bg_diagonals-thick_15_0b3e6f_40x40.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-bg_dots-medium_30_0b58a2_4x4.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-bg_dots-small_20_333333_2x2.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-bg_dots-small_30_a32d00_2x2.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-bg_dots-small_40_00498f_2x2.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-bg_flat_40_292929_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-bg_gloss-wave_20_111111_500x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-icons_00498f_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-icons_98d2fb_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-icons_9ccdfc_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/eggplant.scss +18 -18
- data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-anim_basic_16x16.gif +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-bg_flat_0_eeeeee_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-bg_flat_55_994d53_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-bg_flat_55_fafafa_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-bg_gloss-wave_30_3d3644_500x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-bg_highlight-soft_100_dcd9de_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-bg_highlight-soft_100_eae6ea_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-bg_highlight-soft_25_30273a_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-bg_highlight-soft_45_5f5964_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-icons_454545_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-icons_734d99_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-icons_8d78a5_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-icons_a8a3ae_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-icons_ebccce_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike.scss +18 -18
- data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-anim_basic_16x16.gif +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-bg_diagonals-small_25_c5ddfc_40x40.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-bg_diagonals-thick_20_e69700_40x40.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-bg_diagonals-thick_22_1484e6_40x40.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-bg_diagonals-thick_26_2293f7_40x40.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-bg_flat_0_e69700_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-bg_flat_0_e6b900_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-bg_highlight-soft_100_f9f9f9_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-bg_inset-hard_100_eeeeee_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-icons_0a82eb_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-icons_0b54d5_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-icons_5fa5e3_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-icons_fcdd4a_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/farbtastic.scss +3 -3
- data/templates/jrails/{jquery.ui → jquery/ui}/farbtastic/marker.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/farbtastic/mask.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/farbtastic/wheel.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/flash_messages/flash-check.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/flash_messages/flash-error-bg.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/flash_messages/flash-error.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/flash_messages/flash-notice-bg.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/flash_messages/flash-warning-bg.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/flash_messages/flash-warning.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/flick.scss +18 -18
- data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-anim_basic_16x16.gif +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-bg_flat_0_eeeeee_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-bg_flat_55_ffffff_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-bg_highlight-soft_100_f6f6f6_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-bg_highlight-soft_25_0073ea_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-bg_highlight-soft_50_dddddd_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-icons_0073ea_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-icons_454545_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-icons_666666_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-icons_ff0084_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks.scss +18 -18
- data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-anim_basic_16x16.gif +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-bg_diagonals-small_40_db4865_40x40.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-bg_diagonals-small_50_93c3cd_40x40.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-bg_diagonals-small_50_ff3853_40x40.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-bg_diagonals-small_75_ccd232_40x40.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-bg_dots-medium_80_ffff38_4x4.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-bg_dots-small_35_35414f_2x2.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-bg_flat_75_ba9217_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-bg_white-lines_85_f7f7ba_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-icons_454545_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-icons_88a206_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-icons_c02669_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-icons_e1e463_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-icons_ffeb33_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/humanity.scss +18 -18
- data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-anim_basic_16x16.gif +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-bg_flat_75_aaaaaa_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-bg_glass_100_f5f0e5_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-bg_glass_25_cb842e_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-bg_glass_70_ede4d4_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-bg_highlight-hard_100_f4f0ec_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-bg_highlight-hard_65_fee4bd_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-bg_highlight-hard_75_f5f5b5_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-bg_inset-soft_100_f4f0ec_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-icons_c47a23_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-icons_cb672b_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-icons_f08000_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-icons_f35f07_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-icons_ff7519_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/le-frog.scss +18 -18
- data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-anim_basic_16x16.gif +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-bg_diagonals-small_0_aaaaaa_40x40.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-bg_diagonals-thick_15_444444_40x40.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-bg_diagonals-thick_95_ffdc2e_40x40.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-bg_glass_55_fbf5d0_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-bg_highlight-hard_30_285c00_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-bg_highlight-soft_33_3a8104_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-bg_highlight-soft_50_4eb305_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-bg_highlight-soft_60_4ca20b_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-bg_inset-soft_10_285c00_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-icons_4eb305_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-icons_72b42d_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-icons_cd0a0a_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc.scss +18 -18
- data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-anim_basic_16x16.gif +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-bg_glass_15_5f391b_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-bg_gloss-wave_20_1c160d_500x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-bg_gloss-wave_25_453326_500x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-bg_gloss-wave_30_44372c_500x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-bg_highlight-soft_20_201913_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-bg_highlight-soft_20_619226_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-bg_inset-soft_10_201913_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-icons_222222_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-icons_9bcc60_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-icons_add978_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-icons_e3ddc9_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-icons_f1fd86_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/overcast.scss +18 -18
- data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-anim_basic_16x16.gif +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-bg_flat_0_eeeeee_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-bg_flat_55_c0402a_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-bg_flat_55_eeeeee_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-bg_glass_100_f8f8f8_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-bg_glass_35_dddddd_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-bg_glass_60_eeeeee_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-bg_inset-hard_75_999999_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-bg_inset-soft_50_c9c9c9_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-icons_3383bb_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-icons_454545_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-icons_70b2e1_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-icons_999999_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-icons_fbc856_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder.scss +18 -18
- data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-anim_basic_16x16.gif +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-bg_diagonal-maze_20_6e4f1c_10x10.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-bg_diagonal-maze_40_000000_10x10.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-bg_fine-grain_10_eceadf_60x60.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-bg_fine-grain_10_f8f7f6_60x60.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-bg_fine-grain_15_eceadf_60x60.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-bg_fine-grain_15_f7f3de_60x60.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-bg_fine-grain_15_ffffff_60x60.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-bg_fine-grain_65_654b24_60x60.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-bg_fine-grain_68_b83400_60x60.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-icons_222222_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-icons_3572ac_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-icons_8c291d_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-icons_b83400_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-icons_fbdb93_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/redmond.scss +18 -18
- data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-anim_basic_16x16.gif +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-bg_flat_55_fbec88_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-bg_glass_85_dfeffc_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-icons_217bc0_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-icons_2e83ff_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-icons_469bdd_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-icons_6da8d5_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-icons_cd0a0a_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-icons_d8e7f3_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-icons_f9bd01_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/smoothness.scss +18 -18
- data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-anim_basic_16x16.gif +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-icons_222222_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-icons_2e83ff_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-icons_454545_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-icons_888888_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-icons_cd0a0a_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/south-street.scss +18 -18
- data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-anim_basic_16x16.gif +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-bg_glass_55_fcf0ba_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-bg_gloss-wave_100_ece8da_500x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-bg_highlight-hard_100_f5f3e5_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-bg_highlight-hard_100_fafaf4_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-bg_highlight-hard_15_459e00_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-bg_highlight-hard_95_cccccc_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-bg_highlight-soft_25_67b021_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-bg_highlight-soft_95_ffedad_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-bg_inset-soft_15_2b2922_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-icons_808080_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-icons_847e71_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-icons_8dc262_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-icons_cd0a0a_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-icons_eeeeee_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/start.scss +18 -18
- data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-anim_basic_16x16.gif +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-bg_flat_55_999999_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-bg_flat_75_aaaaaa_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-bg_glass_45_0078ae_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-bg_glass_55_f8da4e_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-bg_glass_75_79c9ec_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-bg_gloss-wave_45_e14f1c_500x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-bg_gloss-wave_50_6eac2c_500x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-bg_gloss-wave_75_2191c0_500x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-icons_0078ae_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-icons_056b93_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-icons_d8e7f3_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-icons_e0fdff_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-icons_f5e175_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-icons_f7a50d_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-icons_fcd113_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/sunny.scss +18 -18
- data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-anim_basic_16x16.gif +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-bg_diagonals-medium_20_d34d17_40x40.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-bg_flat_30_cccccc_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-bg_gloss-wave_45_817865_500x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-bg_gloss-wave_60_fece2f_500x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-bg_gloss-wave_70_ffdd57_500x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-bg_gloss-wave_90_fff9e5_500x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-bg_highlight-soft_100_feeebd_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-bg_inset-soft_30_ffffff_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-icons_3d3d3d_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-icons_bd7b00_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-icons_d19405_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-icons_eb990f_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-icons_ed9f26_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-icons_fadc7a_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-icons_ffe180_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse.scss +18 -18
- data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-anim_basic_16x16.gif +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-bg_diamond_10_4f4221_10x8.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-bg_diamond_20_372806_10x8.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-bg_diamond_25_675423_10x8.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-bg_diamond_25_d5ac5d_10x8.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-bg_diamond_8_261803_10x8.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-bg_diamond_8_443113_10x8.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-bg_flat_75_ddd4b0_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-bg_highlight-hard_65_fee4bd_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-icons_070603_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-icons_e8e2b5_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-icons_e9cd86_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-icons_efec9f_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-icons_f2ec64_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-icons_f9f2bd_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-icons_ff7519_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/buttonbg.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/icon_color_arrow.gif +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/menuhoverbg.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_black_matte.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_black_tie.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_blitzer.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_cupertino.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_dark_hive.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_dot_luv.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_eggplant.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_excite_bike.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_flick.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_hot_sneaks.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_humanity.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_le_frog.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_mint_choco.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_overcast.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_pepper_grinder.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_smoothness.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_south_street.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_start_menu.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_sunny.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_swanky_purse.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_trontastic.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_ui_dark.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_ui_light.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_windoze.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/trontastic.scss +18 -18
- data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-anim_basic_16x16.gif +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-bg_diagonals-small_50_262626_40x40.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-bg_flat_0_303030_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-bg_flat_0_4c4c4c_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-bg_glass_40_0a0a0a_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-bg_glass_55_f1fbe5_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-bg_glass_60_000000_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-bg_gloss-wave_55_000000_500x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-bg_gloss-wave_85_9fda58_500x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-bg_gloss-wave_95_f6ecd5_500x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-icons_000000_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-icons_1f1f1f_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-icons_9fda58_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-icons_b8ec79_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-icons_cd0a0a_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness.scss +18 -18
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-anim_basic_16x16.gif +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-bg_flat_30_cccccc_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-bg_glass_20_555555_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-bg_glass_40_0078a3_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-bg_glass_40_ffc73d_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-bg_gloss-wave_25_333333_500x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-bg_inset-soft_25_000000_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-bg_inset-soft_30_f58400_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-icons_222222_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-icons_4b8e0b_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-icons_a83300_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-icons_cccccc_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness.scss +18 -18
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-anim_basic_16x16.gif +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-bg_flat_10_000000_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-icons_222222_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-icons_228ef1_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-icons_ef8c08_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-icons_ffd27a_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/vader.scss +18 -18
- data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-anim_basic_16x16.gif +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-bg_gloss-wave_16_121212_500x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-bg_highlight-hard_15_888888_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-bg_highlight-hard_55_555555_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-bg_highlight-soft_35_adadad_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-bg_highlight-soft_60_dddddd_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-bg_inset-soft_15_121212_1x100.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-icons_666666_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-icons_aaaaaa_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-icons_bbbbbb_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-icons_c98000_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-icons_cccccc_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-icons_cd0a0a_256x240.png +0 -0
- data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-icons_f29a00_256x240.png +0 -0
- data/templates/jrails/manifest.rb +466 -454
- data/templates/jrails/partials/_flash_messages.scss +8 -8
- data/templates/jstree/config/initializers/jstree.rb +4 -4
- data/templates/jstree/jquery.jstree.js +4534 -3513
- data/templates/jstree/jquery.jstree.min.js +220 -172
- data/templates/jstree/{jquery.ui/jstree.aero.scss → jquery/jstree/aero.scss} +10 -10
- data/templates/jstree/{jquery.ui/jstree.aero → jquery/jstree/aero}/clicked.png +0 -0
- data/templates/jstree/{jquery.ui/jstree.aero → jquery/jstree/aero}/d.gif +0 -0
- data/templates/jstree/{jquery.ui/jstree.aero → jquery/jstree/aero}/d.png +0 -0
- data/templates/jstree/{jquery.ui/jstree.aero → jquery/jstree/aero}/hovered.png +0 -0
- data/templates/jstree/{jquery.ui/jstree.aero → jquery/jstree/aero}/throbber.gif +0 -0
- data/templates/jstree/{jquery.ui/jstree.aqua.scss → jquery/jstree/aqua.scss} +10 -10
- data/templates/jstree/{jquery.ui/jstree.aqua → jquery/jstree/aqua}/clicked.png +0 -0
- data/templates/jstree/{jquery.ui/jstree.aqua → jquery/jstree/aqua}/d.gif +0 -0
- data/templates/jstree/{jquery.ui/jstree.aqua → jquery/jstree/aqua}/d.png +0 -0
- data/templates/jstree/{jquery.ui/jstree.aqua → jquery/jstree/aqua}/hovered.png +0 -0
- data/templates/jstree/{jquery.ui/jstree.aqua → jquery/jstree/aqua}/throbber.gif +0 -0
- data/templates/jstree/{jquery.ui/jstree.classic.scss → jquery/jstree/classic.scss} +5 -5
- data/templates/jstree/{jquery.ui/jstree.classic → jquery/jstree/classic}/d.png +0 -0
- data/templates/jstree/{jquery.ui/jstree.classic → jquery/jstree/classic}/dot_for_ie.gif +0 -0
- data/templates/jstree/{jquery.ui/jstree.classic → jquery/jstree/classic}/throbber.gif +0 -0
- data/templates/jstree/{jquery.ui/jstree.crystal.scss → jquery/jstree/crystal.scss} +8 -8
- data/templates/jstree/{jquery.ui/jstree.crystal → jquery/jstree/crystal}/d.gif +0 -0
- data/templates/jstree/{jquery.ui/jstree.crystal → jquery/jstree/crystal}/d.png +0 -0
- data/templates/jstree/{jquery.ui/jstree.crystal → jquery/jstree/crystal}/throbber.gif +0 -0
- data/templates/jstree/{jquery.ui/jstree.default-rtl.scss → jquery/jstree/default-rtl.scss} +9 -9
- data/templates/jstree/{jquery.ui/jstree.default-rtl → jquery/jstree/default-rtl}/d.gif +0 -0
- data/templates/jstree/{jquery.ui/jstree.default-rtl → jquery/jstree/default-rtl}/d.png +0 -0
- data/templates/jstree/{jquery.ui/jstree.default-rtl → jquery/jstree/default-rtl}/dots.gif +0 -0
- data/templates/jstree/{jquery.ui/jstree.default-rtl → jquery/jstree/default-rtl}/throbber.gif +0 -0
- data/templates/jstree/{jquery.ui/jstree.default.scss → jquery/jstree/default.scss} +8 -8
- data/templates/jstree/{jquery.ui/jstree.default → jquery/jstree/default}/d.gif +0 -0
- data/templates/jstree/{jquery.ui/jstree.default → jquery/jstree/default}/d.png +0 -0
- data/templates/jstree/{jquery.ui/jstree.default → jquery/jstree/default}/throbber.gif +0 -0
- data/templates/jstree/manifest.rb +29 -29
- data/templates/mobile/config/initializers/mobile.rb +6 -0
- data/templates/mobile/jquery.mobile.js +3189 -0
- data/templates/mobile/jquery.mobile.min.js +28 -0
- data/templates/mobile/jquery/mobile/_base.scss +1326 -0
- data/templates/mobile/jquery/mobile/default.scss +742 -0
- data/templates/mobile/jquery/mobile/default/ajax-loader.gif +0 -0
- data/templates/mobile/jquery/mobile/default/ajax-loader.png +0 -0
- data/templates/mobile/jquery/mobile/default/form-check-off.png +0 -0
- data/templates/mobile/jquery/mobile/default/form-check-on.png +0 -0
- data/templates/mobile/jquery/mobile/default/form-radio-off.png +0 -0
- data/templates/mobile/jquery/mobile/default/form-radio-on.png +0 -0
- data/templates/mobile/jquery/mobile/default/icon-arrow-white-down.png +0 -0
- data/templates/mobile/jquery/mobile/default/icon-arrow-white-left.png +0 -0
- data/templates/mobile/jquery/mobile/default/icon-arrow-white-right.png +0 -0
- data/templates/mobile/jquery/mobile/default/icon-arrow-white-up.png +0 -0
- data/templates/mobile/jquery/mobile/default/icon-delete.png +0 -0
- data/templates/mobile/jquery/mobile/default/icon-minus-white.png +0 -0
- data/templates/mobile/jquery/mobile/default/icon-plus-white.png +0 -0
- data/templates/mobile/jquery/mobile/default/icon-search-black.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-18-black.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-18-white.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-36-black.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-36-white.png +0 -0
- data/templates/mobile/jquery/mobile/valencia.scss +804 -0
- data/templates/mobile/jquery/mobile/valencia/ajax-loader.gif +0 -0
- data/templates/mobile/jquery/mobile/valencia/ajax-loader.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-check-off.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-check-on.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-radio-off.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-radio-on.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icon-arrow-white-down.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icon-arrow-white-left.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icon-arrow-white-right.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icon-arrow-white-up.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icon-delete.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icon-minus-white.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icon-plus-white.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icon-search-black.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icons-18-black.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icons-18-white.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icons-36-black.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icons-36-white.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/texture_05.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/texture_075.png +0 -0
- data/templates/mobile/manifest.rb +47 -0
- data/templates/ribbon/config/initializers/ribbon.rb +3 -3
- data/templates/ribbon/jquery.ribbon.js +4 -4
- data/templates/ribbon/jquery.ribbon.min.js +3 -3
- data/templates/ribbon/{jquery.ui/ribbon.windows7.scss → jquery/ribbon/office.scss} +20 -20
- data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/arrow.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/arrow_down.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/bg.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/item_background.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/item_small_background.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menu_background.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menu_bottom.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menu_dropdownitembg.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menu_dropdownitembghover.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menu_item_hover.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menu_middle.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menu_top.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menu_top_backstage.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menu_top_backstage2.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menuitem_background.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/orb.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/orb_hover.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/orb_office.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/orb_office_hover.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/orb_submenu_item_hover.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/ribbon-backstage-firstLevel-hover.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/ribbon-backstage-rightColumn-wide.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/ribbon-backstage-subMenu-item-hover.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/ribbon-backstage-subMenu-item.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/ribbon-backstage-subMenu-itemSquare-hover.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/ribbon-backstage-subMenu-itemSquare.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/top_background.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.simple.scss → jquery/ribbon/simple.scss} +13 -13
- data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/arrow.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/arrow_down.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/bg.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/item_background.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/item_small_background.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/menu_background.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/menu_bottom.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/menu_dropdownitembg.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/menu_dropdownitembghover.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/menu_item_hover.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/menu_middle.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/menu_top.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/menuitem_background.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/orb.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/orb_hover.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/orb_submenu_item_hover.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/top_background.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.office.scss → jquery/ribbon/windows7.scss} +20 -20
- data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/arrow.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/arrow_down.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/bg.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/item_background.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/item_small_background.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menu_background.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menu_bottom.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menu_dropdownitembg.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menu_dropdownitembghover.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menu_item_hover.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menu_middle.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menu_top.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menu_top_backstage.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menu_top_backstage2.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menuitem_background.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/orb.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/orb_hover.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/orb_office.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/orb_office_hover.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/orb_submenu_item_hover.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/ribbon-backstage-firstLevel-hover.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/ribbon-backstage-rightColumn-wide.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/ribbon-backstage-subMenu-item-hover.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/ribbon-backstage-subMenu-item.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/ribbon-backstage-subMenu-itemSquare-hover.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/ribbon-backstage-subMenu-itemSquare.png +0 -0
- data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/top_background.png +0 -0
- data/templates/ribbon/manifest.rb +74 -74
- data/templates/secret_sauce/app/views/{ui → shared}/_ui_form_error_messages.html.haml +0 -0
- data/templates/secret_sauce/app/views/{ui → shared}/_ui_grid_for_without_block.js.haml +8 -8
- data/templates/secret_sauce/app/views/{ui → shared}/_ui_static_dialog.html.haml +0 -0
- data/templates/secret_sauce/config/initializers/secret_sauce.rb +1 -1
- data/templates/secret_sauce/{jquery.ui → jquery}/secret_sauce.scss +0 -0
- data/templates/secret_sauce/manifest.rb +4 -4
- metadata +1134 -1051
- data/templates/jqtouch/jqtouch/apple/actionButton.png +0 -0
- data/templates/jqtouch/jqtouch/icons/iphone_16x16.png +0 -0
- data/templates/jqtouch/jqtouch/iphone-emulator.scss +0 -21
- data/templates/jqtouch/jqtouch/iphone_fullsize.png +0 -0
- data/templates/jrails/jquery-1.4.2.js +0 -9502
- data/templates/jrails/jquery-1.4.2.min.js +0 -210
- data/templates/jrails/jquery-ui-1.8.5.min.js +0 -823
@@ -25,14 +25,14 @@ f){return e[f]})},getCellIndex:function(c){c=a(c);if(c.is("tr"))return-1;c=(!c.i
|
|
25
25
|
e.async=false;e.loadXML(c)}return e&&e.documentElement&&e.documentElement.tagName!="parsererror"?e:null},parse:function(c){c=c;if(c.substr(0,9)=="while(1);")c=c.substr(9);if(c.substr(0,2)=="/*")c=c.substr(2,c.length-4);c||(c="{}");return a.jgrid.useJSON===true&&typeof JSON==="object"&&typeof JSON.parse==="function"?JSON.parse(c):eval("("+c+")")},parseDate:function(c,e){var b={m:1,d:1,y:1970,h:0,i:0,s:0},f,h,g;if(e&&e!==null&&e!==undefined){e=a.trim(e);e=e.split(/[\\\/:_;.\t\T\s-]/);c=c.split(/[\\\/:_;.\t\T\s-]/);
|
26
26
|
var j=a.jgrid.formatter.date.monthNames,d=a.jgrid.formatter.date.AmPm,k=function(l,o){if(l===0){if(o==12)o=0}else if(o!=12)o+=12;return o};f=0;for(h=c.length;f<h;f++){if(c[f]=="M"){g=a.inArray(e[f],j);if(g!==-1&&g<12)e[f]=g+1}if(c[f]=="F"){g=a.inArray(e[f],j);if(g!==-1&&g>11)e[f]=g+1-12}if(c[f]=="a"){g=a.inArray(e[f],d);if(g!==-1&&g<2&&e[f]==d[g]){e[f]=g;b.h=k(e[f],b.h)}}if(c[f]=="A"){g=a.inArray(e[f],d);if(g!==-1&&g>1&&e[f]==d[g]){e[f]=g-2;b.h=k(e[f],b.h)}}if(e[f]!==undefined)b[c[f].toLowerCase()]=
|
27
27
|
parseInt(e[f],10)}b.m=parseInt(b.m,10)-1;f=b.y;if(f>=70&&f<=99)b.y=1900+b.y;else if(f>=0&&f<=69)b.y=2E3+b.y}return new Date(b.y,b.m,b.d,b.h,b.i,b.s,0)},jqID:function(c){c+="";return c.replace(/([\.\:\[\]])/g,"\\$1")},getAccessor:function(c,e){var b,f,h,g;if(typeof e==="function")return e(c);b=c[e];if(b===undefined)try{if(typeof e==="string")h=e.split(".");if(g=h.length)for(b=c;b&&g--;){f=h.shift();b=b[f]}}catch(j){}return b},ajaxOptions:{},from:function(c){return new function(e,b){if(typeof e=="string")e=
|
28
|
-
a.data(e);var f=this,h=e,g=true,j=false,d=b,k=/[\$,%]/g,l=null,o=null,m=false,
|
29
|
-
""};this._group=function(n,p){return{field:n.toString(),unique:p,items:[]}};this._toStr=function(n){if(j)n=a.trim(n);g||(n=n.toLowerCase());return n=n.toString().replace(RegExp('\\"',"g"),'\\"')};this._funcLoop=function(n){var p=[];a.each(h,function(v,z){p.push(n(z))});return p};this._append=function(n){if(d===null)d="";else d+=
|
28
|
+
a.data(e);var f=this,h=e,g=true,j=false,d=b,k=/[\$,%]/g,l=null,o=null,m=false,t="",q=[],s=true;if(typeof e=="object"&&e.push){if(e.length>0)s=typeof e[0]!="object"?false:true}else throw"data provides is not an array";this._hasData=function(){return h===null?false:h.length===0?false:true};this._getStr=function(n){var p=[];j&&p.push("jQuery.trim(");p.push("String("+n+")");j&&p.push(")");g||p.push(".toLowerCase()");return p.join("")};this._strComp=function(n){return typeof n=="string"?".toString()":
|
29
|
+
""};this._group=function(n,p){return{field:n.toString(),unique:p,items:[]}};this._toStr=function(n){if(j)n=a.trim(n);g||(n=n.toLowerCase());return n=n.toString().replace(RegExp('\\"',"g"),'\\"')};this._funcLoop=function(n){var p=[];a.each(h,function(v,z){p.push(n(z))});return p};this._append=function(n){if(d===null)d="";else d+=t===""?" && ":t;if(m)d+="!";d+="("+n+")";m=false;t=""};this._setCommand=function(n,p){l=n;o=p};this._resetNegate=function(){m=false};this._repeatCommand=function(n,p){if(l===
|
30
30
|
null)return f;if(n!=null&&p!=null)return l(n,p);if(o===null)return l(n);if(!s)return l(n);return l(o,n)};this._equals=function(n,p){return f._compare(n,p,1)===0};this._compare=function(n,p,v){if(v===undefined)v=1;if(n===undefined)n=null;if(p===undefined)p=null;if(n===null&&p===null)return 0;if(n===null&&p!==null)return 1;if(n!==null&&p===null)return-1;if(!g&&typeof n!=="number"&&typeof p!=="number"){n=String(n).toLowerCase();p=String(p).toLowerCase()}if(n<p)return-v;if(n>p)return v;return 0};this._performSort=
|
31
31
|
function(){if(q.length!==0)h=f._doSort(h,0)};this._doSort=function(n,p){var v=q[p].by,z=q[p].dir,E=q[p].type,B=q[p].datefmt;if(p==q.length-1)return f._getOrder(n,v,z,E,B);p++;v=f._getGroup(n,v,z,E,B);z=[];for(E=0;E<v.length;E++){B=f._doSort(v[E].items,p);for(var y=0;y<B.length;y++)z.push(B[y])}return z};this._getOrder=function(n,p,v,z,E){var B=[],y=[],A=v=="a"?1:-1,x,G;if(z===undefined)z="text";G=z=="float"||z=="number"||z=="currency"||z=="numeric"?function(R){R=parseFloat(String(R).replace(k,""));
|
32
|
-
return isNaN(R)?0:R}:z=="int"||z=="integer"?function(R){return R?parseFloat(String(R).replace(k,"")):0}:z=="date"||z=="datetime"?function(R){return a.jgrid.parseDate(E,R).getTime()}:a.isFunction(z)?z:function(R){R||(R="");return a.trim(String(R).toUpperCase())};a.each(n,function(R,
|
32
|
+
return isNaN(R)?0:R}:z=="int"||z=="integer"?function(R){return R?parseFloat(String(R).replace(k,"")):0}:z=="date"||z=="datetime"?function(R){return a.jgrid.parseDate(E,R).getTime()}:a.isFunction(z)?z:function(R){R||(R="");return a.trim(String(R).toUpperCase())};a.each(n,function(R,T){x=p!==""?a.jgrid.getAccessor(T,p):T;if(x===undefined)x="";x=G(x,T);y.push({vSort:x,index:R})});y.sort(function(R,T){R=R.vSort;T=T.vSort;return f._compare(R,T,A)});z=0;for(var I=n.length;z<I;){v=y[z].index;B.push(n[v]);
|
33
33
|
z++}return B};this._getGroup=function(n,p,v,z,E){var B=[],y=null,A=null,x;a.each(f._getOrder(n,p,v,z,E),function(G,I){x=a.jgrid.getAccessor(I,p);if(x===undefined)x="";if(!f._equals(A,x)){A=x;y!=null&&B.push(y);y=f._group(p,x)}y.items.push(I)});y!=null&&B.push(y);return B};this.ignoreCase=function(){g=false;return f};this.useCase=function(){g=true;return f};this.trim=function(){j=true;return f};this.noTrim=function(){j=false;return f};this.combine=function(n){var p=a.from(h);g||p.ignoreCase();j&&p.trim();
|
34
34
|
n=n(p).showQuery();f._append(n);return f};this.execute=function(){var n=d,p=[];if(n===null)return f;a.each(h,function(){eval(n)&&p.push(this)});h=p;return f};this.data=function(){return h};this.select=function(n){f._performSort();if(!f._hasData())return[];f.execute();if(a.isFunction(n)){var p=[];a.each(h,function(v,z){p.push(n(z))});return p}return h};this.hasMatch=function(){if(!f._hasData())return false;f.execute();return h.length>0};this.showQuery=function(n){var p=d;if(p===null)p="no query found";
|
35
|
-
if(a.isFunction(n)){n(p);return f}return p};this.andNot=function(n,p,v){m=!m;return f.and(n,p,v)};this.orNot=function(n,p,v){m=!m;return f.or(n,p,v)};this.not=function(n,p,v){return f.andNot(n,p,v)};this.and=function(n,p,v){
|
35
|
+
if(a.isFunction(n)){n(p);return f}return p};this.andNot=function(n,p,v){m=!m;return f.and(n,p,v)};this.orNot=function(n,p,v){m=!m;return f.or(n,p,v)};this.not=function(n,p,v){return f.andNot(n,p,v)};this.and=function(n,p,v){t=" && ";if(n===undefined)return f;return f._repeatCommand(n,p,v)};this.or=function(n,p,v){t=" || ";if(n===undefined)return f;return f._repeatCommand(n,p,v)};this.isNot=function(n){m=!m;return f.is(n)};this.is=function(n){f._append("this."+n);f._resetNegate();return f};this._compareValues=
|
36
36
|
function(n,p,v,z,E){var B;B=s?"this."+p:"this";if(v===undefined)v=null;v=v===null?p:v;switch(E.stype===undefined?"text":E.stype){case "int":case "integer":v=isNaN(Number(v))?"0":v;B="parseInt("+B+",10)";v="parseInt("+v+",10)";break;case "float":case "number":case "numeric":v=String(v).replace(k,"");v=isNaN(Number(v))?"0":v;B="parseFloat("+B+")";v="parseFloat("+v+")";break;case "date":case "datetime":v=String(a.jgrid.parseDate(E.newfmt||"Y-m-d",v).getTime());B='jQuery.jgrid.parseDate("'+E.srcfmt+'",'+
|
37
37
|
B+").getTime()";break;default:B=f._getStr(B);v=f._getStr('"'+f._toStr(v)+'"')}f._append(B+" "+z+" "+v);f._setCommand(n,p);f._resetNegate();return f};this.equals=function(n,p,v){return f._compareValues(f.equals,n,p,"==",v)};this.greater=function(n,p,v){return f._compareValues(f.greater,n,p,">",v)};this.less=function(n,p,v){return f._compareValues(f.less,n,p,"<",v)};this.greaterOrEquals=function(n,p,v){return f._compareValues(f.greaterOrEquals,n,p,">=",v)};this.lessOrEquals=function(n,p,v){return f._compareValues(f.lessOrEquals,
|
38
38
|
n,p,"<=",v)};this.startsWith=function(n,p){var v=p===undefined||p===null?n:p;v=j?a.trim(v.toString()).length:v.toString().length;if(s)f._append(f._getStr("this."+n)+".substr(0,"+v+") == "+f._getStr('"'+f._toStr(p)+'"'));else{v=j?a.trim(p.toString()).length:p.toString().length;f._append(f._getStr("this")+".substr(0,"+v+") == "+f._getStr('"'+f._toStr(n)+'"'))}f._setCommand(f.startsWith,n);f._resetNegate();return f};this.endsWith=function(n,p){var v=p===undefined||p===null?n:p;v=j?a.trim(v.toString()).length:
|
@@ -42,89 +42,89 @@ a.fn.jqGrid=function(c){if(typeof c=="string"){var e=a.jgrid.getAccessor(a.fn.jq
|
|
42
42
|
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,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,
|
43
43
|
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,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,
|
44
44
|
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:[],ajaxGridOptions:{},direction:"ltr",toppager:false,headertitles:false,scrollTimeout:40,data:[],_index:{},grouping:false,groupingView:{groupField:[],groupOrder:[],groupText:[],groupColumnShow:[],groupSummary:[],showSummaryOnHide:false,
|
45
|
-
sortitems:[],sortnames:[],groupDataSorted:false,summary:[],summaryval:[],plusicon:"ui-icon-circlesmall-plus",minusicon:"ui-icon-circlesmall-minus"},ignoreCase:false},a.jgrid.defaults,c||{}),h={headers:[],cols:[],footers:[],dragStart:function(
|
46
|
-
document.onselectstart=function(){return false}},dragMove:function(
|
47
|
-
"default";if(this.resizing){var
|
48
|
-
"px";this.cols[
|
49
|
-
null;document.onselectstart=function(){return true}},populateVisible:function(){h.timer&&clearTimeout(h.timer);h.timer=null;var
|
50
|
-
0||V<2||f.scroll===true){
|
51
|
-
h.timer=setTimeout(h.populateVisible,f.scrollTimeout)}}h.hDiv.scrollLeft=h.bDiv.scrollLeft;if(f.footerrow)h.sDiv.scrollLeft=h.bDiv.scrollLeft},selectionPreserver:function(
|
45
|
+
sortitems:[],sortnames:[],groupDataSorted:false,summary:[],summaryval:[],plusicon:"ui-icon-circlesmall-plus",minusicon:"ui-icon-circlesmall-minus"},ignoreCase:false},a.jgrid.defaults,c||{}),h={headers:[],cols:[],footers:[],dragStart:function(r,u,w){this.resizing={idx:r,startX:u.clientX,sOL:w[0]};this.hDiv.style.cursor="col-resize";this.curGbox=a("#rs_m"+f.id,"#gbox_"+f.id);this.curGbox.css({display:"block",left:w[0],top:w[1],height:w[2]});a.isFunction(f.resizeStart)&&f.resizeStart.call(this,u,r);
|
46
|
+
document.onselectstart=function(){return false}},dragMove:function(r){if(this.resizing){var u=r.clientX-this.resizing.startX;r=this.headers[this.resizing.idx];var w=f.direction==="ltr"?r.width+u:r.width-u,F;if(w>33){this.curGbox.css({left:this.resizing.sOL+u});if(f.forceFit===true){F=this.headers[this.resizing.idx+f.nv];u=f.direction==="ltr"?F.width-u:F.width+u;if(u>33){r.newWidth=w;F.newWidth=u}}else{this.newWidth=f.direction==="ltr"?f.tblwidth+u:f.tblwidth-u;r.newWidth=w}}}},dragEnd:function(){this.hDiv.style.cursor=
|
47
|
+
"default";if(this.resizing){var r=this.resizing.idx,u=this.headers[r].newWidth||this.headers[r].width;u=parseInt(u,10);this.resizing=false;a("#rs_m"+f.id).css("display","none");f.colModel[r].width=u;this.headers[r].width=u;this.headers[r].el.style.width=u+"px";this.cols[r].style.width=u+"px";if(this.footers.length>0)this.footers[r].style.width=u+"px";if(f.forceFit===true){u=this.headers[r+f.nv].newWidth||this.headers[r+f.nv].width;this.headers[r+f.nv].width=u;this.headers[r+f.nv].el.style.width=u+
|
48
|
+
"px";this.cols[r+f.nv].style.width=u+"px";if(this.footers.length>0)this.footers[r+f.nv].style.width=u+"px";f.colModel[r+f.nv].width=u}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,u,r)}this.curGbox=
|
49
|
+
null;document.onselectstart=function(){return true}},populateVisible:function(){h.timer&&clearTimeout(h.timer);h.timer=null;var r=a(h.bDiv).height();if(r){var u=a("table:first",h.bDiv),w=a("> tbody > tr:gt(0):visible:first",u).outerHeight()||h.prevRowHeight;if(w){h.prevRowHeight=w;var F=f.rowNum,D=h.scrollTop=h.bDiv.scrollTop,N=Math.round(u.position().top)-D,J=N+u.height();w=w*F;var S,V,H;if(J<r&&N<=0&&(f.lastpage===undefined||parseInt((J+D+w-1)/w,10)<=f.lastpage)){V=parseInt((r-J+w-1)/w,10);if(J>=
|
50
|
+
0||V<2||f.scroll===true){S=Math.round((J+D)/w)+1;N=-1}else N=1}if(N>0){S=parseInt(D/w,10)+1;V=parseInt((D+r)/w,10)+2-S;H=true}if(V)if(!(f.lastpage&&S>f.lastpage||f.lastpage==1))if(h.hDiv.loading)h.timer=setTimeout(h.populateVisible,f.scrollTimeout);else{f.page=S;if(H){h.selectionPreserver(u[0]);h.emptyRows(h.bDiv,false)}h.populate(V)}}}},scrollGrid:function(){if(f.scroll){var r=h.bDiv.scrollTop;if(h.scrollTop===undefined)h.scrollTop=0;if(r!=h.scrollTop){h.scrollTop=r;h.timer&&clearTimeout(h.timer);
|
51
|
+
h.timer=setTimeout(h.populateVisible,f.scrollTimeout)}}h.hDiv.scrollLeft=h.bDiv.scrollLeft;if(f.footerrow)h.sDiv.scrollLeft=h.bDiv.scrollLeft},selectionPreserver:function(r){var u=r.p,w=u.selrow,F=u.selarrrow?a.makeArray(u.selarrrow):null,D=r.grid.bDiv.scrollLeft,N=u.gridComplete;u.gridComplete=function(){u.selrow=null;u.selarrrow=[];if(u.multiselect&&F&&F.length>0)for(var J=0;J<F.length;J++)F[J]!=w&&a(r).jqGrid("setSelection",F[J],false);w&&a(r).jqGrid("setSelection",w,false);r.grid.bDiv.scrollLeft=
|
52
52
|
D;u.gridComplete=N;u.gridComplete&&N()}}};if(this.tagName!="TABLE")alert("Element is not a table");else{a(this).empty();this.p=f;var g,j,d;if(this.p.colNames.length===0)for(g=0;g<this.p.colModel.length;g++)this.p.colNames[g]=this.p.colModel[g].label||this.p.colModel[g].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,o=a.browser.msie?true:false,m=a.browser.safari?true:false;d=this;d.p.direction=a.trim(d.p.direction.toLowerCase());
|
53
|
-
if(a.inArray(d.p.direction,["ltr","rtl"])==-1)d.p.direction="ltr";j=d.p.direction;a(k).insertBefore(this);a(this).appendTo(k).removeClass("scroll");var
|
54
|
-
this.id+"'></div>").append(l).insertBefore(k);a("<div class='loading ui-state-default ui-state-active' id='load_"+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(
|
55
|
-
true)N+="display:none;";if(u===0)N+="width: "+h.headers[
|
56
|
-
u,
|
57
|
-
0;D<d.p.colModel.length;D++){u=d.p.colModel[D];if(u.name!=="cb"&&u.name!=="subgrid"&&u.name!=="rn"){w[F]=
|
58
|
-
d.p.scroll){a(">div:first",
|
59
|
-
"xmlstring",
|
60
|
-
Q=
|
61
|
-
this.textContent||this.text||0});a(d.p.xmlReader.userdata,
|
62
|
-
0?0:w+1;H=(H+
|
63
|
-
|
64
|
-
0;Y=a(
|
65
|
-
0)d.p.records=
|
66
|
-
O})}else for(H=0;H<
|
67
|
-
0,Q=0,
|
68
|
-
(
|
69
|
-
""+K+'">');if(d.p.rownumbers===true){Y.push(E(0,
|
70
|
-
|
71
|
-
a(d).jqGrid("groupingRender",
|
72
|
-
0)if(u.cell)
|
73
|
-
"date"){D=this.formatoptions&&this.formatoptions.srcformat?this.formatoptions.srcformat:a.jgrid.formatter.date.srcformat;J=this.formatoptions&&this.formatoptions.newformat?this.formatoptions.newformat:a.jgrid.formatter.date.newformat}else D=J=this.datefmt||"Y-m-d";w[this.name]={stype:N,srcfmt:D,newfmt:J}}else w[this.name]={stype:N,srcfmt:"",newfmt:""};if(d.p.grouping&&this.name==
|
74
|
-
|
75
|
-
"in":function(Q){return Q.equals}},H=a.jgrid.from(d.p.data);if(d.p.ignoreCase)H=H.ignoreCase();if(d.p.search===true){var K=d.p.postData.filters,O;if(K){if(typeof K=="string")K=a.jgrid.parse(K);for(var Y=0,
|
76
|
-
|
77
|
-
true;if(!d.p.hiddengrid)switch(d.p.loadui){case "enable":a("#load_"+d.p.id).show();break;case "block":a("#lui_"+d.p.id).show();a("#load_"+d.p.id).show()}},
|
78
|
-
(new Date).getTime();if(D.rows!==null)w[D.rows]=d.p.rowNum;if(D.page!==null)w[D.page]=d.p.page;if(D.sort!==null)w[D.sort]=d.p.sortname;if(D.order!==null)w[D.order]=d.p.sortorder;if(d.p.rowTotal!==null&&D.totalrows!==null)w[D.totalrows]=d.p.rowTotal;var N=d.p.loadComplete,J=a.isFunction(N);J||(N=null);var
|
79
|
-
if(d.p.grouping){a(d).jqGrid("groupingSetup");if(d.p.groupingView.groupDataSorted===true)w[D.sort]=d.p.groupingView.groupField[0]+" "+d.p.groupingView.groupOrder[0]+", "+w[D.sort]}a.extend(d.p.postData,w);var V=!d.p.scroll?1:d.rows.length-1;if(a.isFunction(d.p.datatype))d.p.datatype.call(d,d.p.postData,"load_"+d.p.id);else{a.isFunction(d.p.beforeRequest)&&d.p.beforeRequest.call(d);F=d.p.datatype.toLowerCase();switch(F){case "json":case "jsonp":case "xml":case "script":a.ajax(a.extend({url:d.p.url,
|
80
|
-
type:d.p.mtype,dataType:F,data:a.isFunction(d.p.serializeGridData)?d.p.serializeGridData.call(d,d.p.postData):d.p.postData,success:function(H){F==="xml"?G(H,d.grid.bDiv,V,
|
81
|
-
break;case "xmlstring":
|
82
|
-
"",F="<table cellspacing='0' cellpadding='0' border='0' style='table-layout:auto;' class='ui-pg-table'><tbody><tr>",D="",N,J,
|
83
|
-
J+"' align='left'></td><td id='"+
|
53
|
+
if(a.inArray(d.p.direction,["ltr","rtl"])==-1)d.p.direction="ltr";j=d.p.direction;a(k).insertBefore(this);a(this).appendTo(k).removeClass("scroll");var t=a("<div class='ui-jqgrid ui-widget ui-widget-content ui-corner-all'></div>");a(t).insertBefore(k).attr({id:"gbox_"+this.id,dir:j});a(k).appendTo(t).attr("id","gview_"+this.id);l=o&&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_"+
|
54
|
+
this.id+"'></div>").append(l).insertBefore(k);a("<div class='loading ui-state-default ui-state-active' id='load_"+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(r,u){r=parseInt(r,10);return isNaN(r)?u?u:0:r},s=function(r,u,w){var F=d.p.colModel[r],D=F.align,N='style="',J=F.classes,S=F.name;if(D)N+="text-align:"+D+";";if(F.hidden===
|
55
|
+
true)N+="display:none;";if(u===0)N+="width: "+h.headers[r].width+"px;";N+='"'+(J!==undefined?' class="'+J+'"':"")+(F.title&&w?' title="'+a.jgrid.stripHtml(w)+'"':"");N+=' aria-describedby="'+d.p.id+"_"+S+'"';return N},n=function(r){return r===undefined||r===null||r===""?" ":d.p.autoencode?a.jgrid.htmlEncode(r):r+""},p=function(r,u,w,F,D){w=d.p.colModel[w];if(typeof w.formatter!=="undefined"){r={rowId:r,colModel:w,gid:d.p.id};u=a.isFunction(w.formatter)?w.formatter.call(d,u,r,F,D):a.fmatter?a.fn.fmatter(w.formatter,
|
56
|
+
u,r,F,D):n(u)}else u=n(u);return u},v=function(r,u,w,F,D){r=p(r,u,w,D,"add");return'<td role="gridcell" '+s(w,F,r)+">"+r+"</td>"},z=function(r,u,w){r='<input role="checkbox" type="checkbox" id="jqg_'+d.p.id+"_"+r+'" class="cbox" name="jqg_'+d.p.id+"_"+r+'"/>';return'<td role="gridcell" '+s(u,w,"")+">"+r+"</td>"},E=function(r,u,w,F){w=(parseInt(w,10)-1)*parseInt(F,10)+1+u;return'<td role="gridcell" class="ui-state-default jqgrid-rownum" '+s(r,u,"")+">"+w+"</td>"},B=function(r){var u,w=[],F=0,D;for(D=
|
57
|
+
0;D<d.p.colModel.length;D++){u=d.p.colModel[D];if(u.name!=="cb"&&u.name!=="subgrid"&&u.name!=="rn"){w[F]=r=="local"?u.name:r=="xml"?u.xmlmap||u.name:u.jsonmap||u.name;F++}}return w},y=function(r){var u=d.p.remapColumns;if(!u||!u.length)u=a.map(d.p.colModel,function(w,F){return F});if(r)u=a.map(u,function(w){return w<r?null:w-r});return u},A=function(r,u){if(d.p.deepempty)a("#"+d.p.id+" tbody:first tr:gt(0)").remove();else{var w=a("#"+d.p.id+" tbody:first tr:first")[0];a("#"+d.p.id+" tbody:first").empty().append(w)}if(u&&
|
58
|
+
d.p.scroll){a(">div:first",r).css({height:"auto"}).children("div:first").css({height:0,display:"none"});r.scrollTop=0}},x=function(){var r=d.p.data.length,u,w,F;u=d.p.rownumbers===true?1:0;w=d.p.multiselect===true?1:0;F=d.p.subGrid===true?1:0;u=d.p.keyIndex===false||d.p.loadonce===true?d.p.localReader.id:d.p.colModel[d.p.keyIndex+w+F+u].name;for(w=0;w<r;w++){F=a.jgrid.getAccessor(d.p.data[w],u);d.p._index[F]=w}},G=function(r,u,w,F,D){var N=new Date,J=d.p.datatype!="local"&&d.p.loadonce||d.p.datatype==
|
59
|
+
"xmlstring",S,V=d.p.datatype=="local"?"local":"xml";if(J){d.p.data=[];d.p._index={};d.p.localReader.id=S="_id_"}d.p.reccount=0;if(a.isXMLDoc(r)){if(d.p.treeANode===-1&&!d.p.scroll){A(u,false);w=1}else w=w>1?w:1;var H,K=0,O,Y,ga=0,aa=0,ha=0,Q,pa=[],qa,oa={},ka,ia,ra=[],Fa=d.p.altRows===true?" "+d.p.altclass:"";d.p.xmlReader.repeatitems||(pa=B(V));Q=d.p.keyIndex===false?d.p.xmlReader.id:d.p.keyIndex;if(pa.length>0&&!isNaN(Q)){if(d.p.remapColumns&&d.p.remapColumns.length)Q=a.inArray(Q,d.p.remapColumns);
|
60
|
+
Q=pa[Q]}V=(Q+"").indexOf("[")===-1?pa.length?function(za,ta){return a(Q,za).text()||ta}:function(za,ta){return a(d.p.xmlReader.cell,za).eq(Q).text()||ta}:function(za,ta){return za.getAttribute(Q.replace(/[\[\]]/g,""))||ta};d.p.userData={};a(d.p.xmlReader.page,r).each(function(){d.p.page=this.textContent||this.text||0});a(d.p.xmlReader.total,r).each(function(){d.p.lastpage=this.textContent||this.text;if(d.p.lastpage===undefined)d.p.lastpage=1});a(d.p.xmlReader.records,r).each(function(){d.p.records=
|
61
|
+
this.textContent||this.text||0});a(d.p.xmlReader.userdata,r).each(function(){d.p.userData[this.getAttribute("name")]=this.textContent||this.text});(r=a(d.p.xmlReader.root+" "+d.p.xmlReader.row,r))||(r=[]);var Aa=r.length,ua=0;if(r&&Aa){var Ba=parseInt(d.p.rowNum,10),Ga=d.p.scroll?(parseInt(d.p.page,10)-1)*Ba+1:1;if(D)Ba*=D+1;D=a.isFunction(d.p.afterInsertRow);var Ca={},Ia="";if(d.p.grouping&&d.p.groupingView.groupCollapse===true)Ia=' style="display:none;"';for(;ua<Aa;){ka=r[ua];ia=V(ka,Ga+ua);H=w===
|
62
|
+
0?0:w+1;H=(H+ua)%2==1?Fa:"";ra.push("<tr"+Ia+' id="'+ia+'" role="row" class ="ui-widget-content jqgrow ui-row-'+d.p.direction+""+H+'">');if(d.p.rownumbers===true){ra.push(E(0,ua,d.p.page,d.p.rowNum));ha=1}if(d.p.multiselect===true){ra.push(z(ia,ha,ua));ga=1}if(d.p.subGrid===true){ra.push(a(d).jqGrid("addSubGridCell",ga+ha,ua+w));aa=1}if(d.p.xmlReader.repeatitems){qa||(qa=y(ga+aa+ha));var Ka=a(d.p.xmlReader.cell,ka);a.each(qa,function(za){var ta=Ka[this];if(!ta)return false;O=ta.textContent||ta.text;
|
63
|
+
oa[d.p.colModel[za+ga+aa+ha].name]=O;ra.push(v(ia,O,za+ga+aa+ha,ua+w,ka))})}else for(H=0;H<pa.length;H++){O=a(pa[H],ka).text();oa[d.p.colModel[H+ga+aa+ha].name]=O;ra.push(v(ia,O,H+ga+aa+ha,ua+w,ka))}ra.push("</tr>");if(d.p.grouping){H=d.p.groupingView.groupField.length;Y=[];for(var Ja=0;Ja<H;Ja++)Y.push(oa[d.p.groupingView.groupField[Ja]]);Ca=a(d).jqGrid("groupingPrepare",ra,Y,Ca,oa);ra=[]}if(J){oa[S]=ia;d.p.data.push(oa)}if(d.p.gridview===false){if(d.p.treeGrid===true){H=d.p.treeANode>-1?d.p.treeANode:
|
64
|
+
0;Y=a(ra.join(""))[0];a(d.rows[ua+H]).after(Y);try{a(d).jqGrid("setTreeNode",oa,Y)}catch(Ma){}}else a("tbody:first",u).append(ra.join(""));if(d.p.subGrid===true)try{a(d).jqGrid("addSubGrid",d.rows[d.rows.length-1],ga+ha)}catch(Na){}D&&d.p.afterInsertRow.call(d,ia,oa,ka);ra=[]}oa={};K++;ua++;if(K==Ba)break}}if(d.p.gridview===true)if(d.p.grouping){a(d).jqGrid("groupingRender",Ca,d.p.colModel.length);Ca=null}else a("tbody:first",u).append(ra.join(""));d.p.totaltime=new Date-N;if(K>0)if(d.p.records===
|
65
|
+
0)d.p.records=Aa;ra=null;if(!d.p.treeGrid&&!d.p.scroll)d.grid.bDiv.scrollTop=0;d.p.reccount=K;d.p.treeANode=-1;d.p.userDataOnFooter&&a(d).jqGrid("footerData","set",d.p.userData,true);if(J){d.p.records=Aa;d.p.lastpage=Math.ceil(Aa/Ba)}F||d.updatepager(false,true);if(J){for(;K<Aa;){ka=r[K];ia=V(ka,K);if(d.p.xmlReader.repeatitems){qa||(qa=y(ga+aa+ha));var La=a(d.p.xmlReader.cell,ka);a.each(qa,function(za){var ta=La[this];if(!ta)return false;O=ta.textContent||ta.text;oa[d.p.colModel[za+ga+aa+ha].name]=
|
66
|
+
O})}else for(H=0;H<pa.length;H++){O=a(pa[H],ka).text();oa[d.p.colModel[H+ga+aa+ha].name]=O}oa[S]=ia;d.p.data.push(oa);oa={};K++}x()}}},I=function(r,u,w,F,D){var N=new Date;if(r){if(d.p.treeANode===-1&&!d.p.scroll){A(u,false);w=1}else w=w>1?w:1;var J,S,V=d.p.datatype!="local"&&d.p.loadonce||d.p.datatype=="jsonstring";if(V){d.p.data=[];d.p._index={};J=d.p.localReader.id="_id_"}d.p.reccount=0;if(d.p.datatype=="local"){u=d.p.localReader;S="local"}else{u=d.p.jsonReader;S="json"}var H=0,K,O,Y,ga=[],aa,
|
67
|
+
ha=0,Q=0,pa=0,qa,oa,ka={},ia;Y=[];var ra=d.p.altRows===true?" "+d.p.altclass:"";d.p.page=a.jgrid.getAccessor(r,u.page)||0;qa=a.jgrid.getAccessor(r,u.total);d.p.lastpage=qa===undefined?1:qa;d.p.records=a.jgrid.getAccessor(r,u.records)||0;d.p.userData=a.jgrid.getAccessor(r,u.userdata)||{};u.repeatitems||(aa=ga=B(S));S=d.p.keyIndex===false?u.id:d.p.keyIndex;if(ga.length>0&&!isNaN(S)){if(d.p.remapColumns&&d.p.remapColumns.length)S=a.inArray(S,d.p.remapColumns);S=ga[S]}(oa=a.jgrid.getAccessor(r,u.root))||
|
68
|
+
(oa=[]);qa=oa.length;r=0;var Fa=parseInt(d.p.rowNum,10),Aa=d.p.scroll?(parseInt(d.p.page,10)-1)*Fa+1:1;if(D)Fa*=D+1;var ua=a.isFunction(d.p.afterInsertRow),Ba={},Ga="";if(d.p.grouping&&d.p.groupingView.groupCollapse===true)Ga=' style="display:none;"';for(;r<qa;){D=oa[r];ia=a.jgrid.getAccessor(D,S);if(ia===undefined){ia=Aa+r;if(ga.length===0)if(u.cell)ia=D[u.cell][S]||ia}K=w===1?0:w;K=(K+r)%2==1?ra:"";Y.push("<tr"+Ga+' id="'+ia+'" role="row" class= "ui-widget-content jqgrow ui-row-'+d.p.direction+
|
69
|
+
""+K+'">');if(d.p.rownumbers===true){Y.push(E(0,r,d.p.page,d.p.rowNum));pa=1}if(d.p.multiselect){Y.push(z(ia,pa,r));ha=1}if(d.p.subGrid){Y.push(a(d).jqGrid("addSubGridCell",ha+pa,r+w));Q=1}if(u.repeatitems){if(u.cell)D=a.jgrid.getAccessor(D,u.cell);aa||(aa=y(ha+Q+pa))}for(O=0;O<aa.length;O++){K=a.jgrid.getAccessor(D,aa[O]);Y.push(v(ia,K,O+ha+Q+pa,r+w,D));ka[d.p.colModel[O+ha+Q+pa].name]=K}Y.push("</tr>");if(d.p.grouping){K=d.p.groupingView.groupField.length;O=[];for(var Ca=0;Ca<K;Ca++)O.push(ka[d.p.groupingView.groupField[Ca]]);
|
70
|
+
Ba=a(d).jqGrid("groupingPrepare",Y,O,Ba,ka);Y=[]}if(V){ka[J]=ia;d.p.data.push(ka)}if(d.p.gridview===false){if(d.p.treeGrid===true){K=d.p.treeANode>-1?d.p.treeANode:0;Y=a(Y.join(""))[0];a(d.rows[r+K]).after(Y);try{a(d).jqGrid("setTreeNode",ka,Y)}catch(Ia){}}else a("#"+d.p.id+" tbody:first").append(Y.join(""));if(d.p.subGrid===true)try{a(d).jqGrid("addSubGrid",d.rows[d.rows.length-1],ha+pa)}catch(Ka){}ua&&d.p.afterInsertRow.call(d,ia,ka,D);Y=[]}ka={};H++;r++;if(H==Fa)break}if(d.p.gridview===true)d.p.grouping?
|
71
|
+
a(d).jqGrid("groupingRender",Ba,d.p.colModel.length):a("#"+d.p.id+" tbody:first").append(Y.join(""));d.p.totaltime=new Date-N;if(H>0)if(d.p.records===0)d.p.records=qa;if(!d.p.treeGrid&&!d.p.scroll)d.grid.bDiv.scrollTop=0;d.p.reccount=H;d.p.treeANode=-1;d.p.userDataOnFooter&&a(d).jqGrid("footerData","set",d.p.userData,true);if(V){d.p.records=qa;d.p.lastpage=Math.ceil(qa/Fa)}F||d.updatepager(false,true);if(V){for(;H<qa;){D=oa[H];ia=a.jgrid.getAccessor(D,S);if(ia===undefined){ia=Aa+H;if(ga.length===
|
72
|
+
0)if(u.cell)ia=D[u.cell][S]||ia}if(D){if(u.repeatitems){if(u.cell)D=a.jgrid.getAccessor(D,u.cell);aa||(aa=y(ha+Q+pa))}for(O=0;O<aa.length;O++){K=a.jgrid.getAccessor(D,aa[O]);ka[d.p.colModel[O+ha+Q+pa].name]=K}ka[J]=ia;d.p.data.push(ka);ka={}}H++}x()}}},R=function(){var r,u=false,w=[],F=[],D,N,J;if(a.isArray(d.p.data)){var S=d.p.grouping?d.p.groupingView:false;a.each(d.p.colModel,function(){N=this.sorttype||"text";if(N=="date"||N=="datetime"){if(this.formatter&&typeof this.formatter==="string"&&this.formatter==
|
73
|
+
"date"){D=this.formatoptions&&this.formatoptions.srcformat?this.formatoptions.srcformat:a.jgrid.formatter.date.srcformat;J=this.formatoptions&&this.formatoptions.newformat?this.formatoptions.newformat:a.jgrid.formatter.date.newformat}else D=J=this.datefmt||"Y-m-d";w[this.name]={stype:N,srcfmt:D,newfmt:J}}else w[this.name]={stype:N,srcfmt:"",newfmt:""};if(d.p.grouping&&this.name==S.groupField[0])F[0]=w[this.name];if(!u&&(this.index==d.p.sortname||this.name==d.p.sortname)){r=this.name;u=true}});if(d.p.treeGrid)a(d).jqGrid("SortTree",
|
74
|
+
r,d.p.sortorder,w[r].stype,w[r].srcfmt);else{var V={eq:function(Q){return Q.equals},ne:function(Q){return Q.not().equals},lt:function(Q){return Q.less},le:function(Q){return Q.lessOrEquals},gt:function(Q){return Q.greater},ge:function(Q){return Q.greaterOrEquals},cn:function(Q){return Q.contains},nc:function(Q){return Q.not().contains},bw:function(Q){return Q.startsWith},bn:function(Q){return Q.not().startsWith},en:function(Q){return Q.not().endsWith},ew:function(Q){return Q.endsWith},ni:function(Q){return Q.not().equals},
|
75
|
+
"in":function(Q){return Q.equals}},H=a.jgrid.from(d.p.data);if(d.p.ignoreCase)H=H.ignoreCase();if(d.p.search===true){var K=d.p.postData.filters,O;if(K){if(typeof K=="string")K=a.jgrid.parse(K);for(var Y=0,ga=K.rules.length,aa;Y<ga;Y++){aa=K.rules[Y];O=K.groupOp;if(V[aa.op]&&aa.field&&aa.data&&O)H=O.toUpperCase()=="OR"?V[aa.op](H)(aa.field,aa.data,w[aa.field]).or():V[aa.op](H)(aa.field,aa.data,w[aa.field])}}else try{H=V[d.p.postData.searchOper](H)(d.p.postData.searchField,d.p.postData.searchString,
|
76
|
+
w[d.p.postData.searchField])}catch(ha){}}if(d.p.grouping){H.orderBy(S.groupField[0],S.groupOrder[0],F[0].stype,F[0].srcfmt);S.groupDataSorted=true}if(r&&d.p.sortorder&&u)d.p.sortorder.toUpperCase()=="DESC"?H.orderBy(d.p.sortname,"d",w[r].stype,w[r].srcfmt):H.orderBy(d.p.sortname,"a",w[r].stype,w[r].srcfmt);V=H.select();H=parseInt(d.p.rowNum,10);K=V.length;O=parseInt(d.p.page,10);Y=Math.ceil(K/H);ga={};V=V.slice((O-1)*H,O*H);w=H=null;ga[d.p.localReader.total]=Y;ga[d.p.localReader.page]=O;ga[d.p.localReader.records]=
|
77
|
+
K;ga[d.p.localReader.root]=V;V=null;return ga}}},T=function(){d.grid.hDiv.loading=true;if(!d.p.hiddengrid)switch(d.p.loadui){case "enable":a("#load_"+d.p.id).show();break;case "block":a("#lui_"+d.p.id).show();a("#load_"+d.p.id).show()}},da=function(){d.grid.hDiv.loading=false;switch(d.p.loadui){case "enable":a("#load_"+d.p.id).hide();break;case "block":a("#lui_"+d.p.id).hide();a("#load_"+d.p.id).hide()}},ea=function(r){if(!d.grid.hDiv.loading){var u=d.p.scroll&&r===false,w={},F,D=d.p.prmNames;if(d.p.page<=
|
78
|
+
0)d.p.page=1;if(D.search!==null)w[D.search]=d.p.search;if(D.nd!==null)w[D.nd]=(new Date).getTime();if(D.rows!==null)w[D.rows]=d.p.rowNum;if(D.page!==null)w[D.page]=d.p.page;if(D.sort!==null)w[D.sort]=d.p.sortname;if(D.order!==null)w[D.order]=d.p.sortorder;if(d.p.rowTotal!==null&&D.totalrows!==null)w[D.totalrows]=d.p.rowTotal;var N=d.p.loadComplete,J=a.isFunction(N);J||(N=null);var S=0;r=r||1;if(r>1)if(D.npage!==null){w[D.npage]=r;S=r-1;r=1}else N=function(H){d.p.page++;d.grid.hDiv.loading=false;J&&
|
79
|
+
d.p.loadComplete.call(d,H);ea(r-1)};else D.npage!==null&&delete d.p.postData[D.npage];if(d.p.grouping){a(d).jqGrid("groupingSetup");if(d.p.groupingView.groupDataSorted===true)w[D.sort]=d.p.groupingView.groupField[0]+" "+d.p.groupingView.groupOrder[0]+", "+w[D.sort]}a.extend(d.p.postData,w);var V=!d.p.scroll?1:d.rows.length-1;if(a.isFunction(d.p.datatype))d.p.datatype.call(d,d.p.postData,"load_"+d.p.id);else{a.isFunction(d.p.beforeRequest)&&d.p.beforeRequest.call(d);F=d.p.datatype.toLowerCase();switch(F){case "json":case "jsonp":case "xml":case "script":a.ajax(a.extend({url:d.p.url,
|
80
|
+
type:d.p.mtype,dataType:F,data:a.isFunction(d.p.serializeGridData)?d.p.serializeGridData.call(d,d.p.postData):d.p.postData,success:function(H){F==="xml"?G(H,d.grid.bDiv,V,r>1,S):I(H,d.grid.bDiv,V,r>1,S);N&&N.call(d,H);u&&d.grid.populateVisible();if(d.p.loadonce||d.p.treeGrid)d.p.datatype="local";da()},error:function(H,K,O){a.isFunction(d.p.loadError)&&d.p.loadError.call(d,H,K,O);da()},beforeSend:function(H){T();a.isFunction(d.p.loadBeforeSend)&&d.p.loadBeforeSend.call(d,H)}},a.jgrid.ajaxOptions,d.p.ajaxGridOptions));
|
81
|
+
break;case "xmlstring":T();w=a.jgrid.stringToDoc(d.p.datastr);G(w,d.grid.bDiv);J&&d.p.loadComplete.call(d,w);d.p.datatype="local";d.p.datastr=null;da();break;case "jsonstring":T();w=typeof d.p.datastr=="string"?a.jgrid.parse(d.p.datastr):d.p.datastr;I(w,d.grid.bDiv);J&&d.p.loadComplete.call(d,w);d.p.datatype="local";d.p.datastr=null;da();break;case "local":case "clientside":T();d.p.datatype="local";w=R();I(w,d.grid.bDiv,V,r>1,S);N&&N.call(d,w);u&&d.grid.populateVisible();da()}}}};l=function(r,u){var w=
|
82
|
+
"",F="<table cellspacing='0' cellpadding='0' border='0' style='table-layout:auto;' class='ui-pg-table'><tbody><tr>",D="",N,J,S,V,H=function(K){var O;if(a.isFunction(d.p.onPaging))O=d.p.onPaging.call(d,K);d.p.selrow=null;if(d.p.multiselect){d.p.selarrrow=[];a("#cb_"+a.jgrid.jqID(d.p.id),d.grid.hDiv).attr("checked",false)}d.p.savedRow=[];if(O=="stop")return false;return true};r=r.substr(1);N="pg_"+r;J=r+"_left";S=r+"_center";V=r+"_right";a("#"+r).append("<div id='"+N+"' class='ui-pager-control' role='group'><table cellspacing='0' cellpadding='0' border='0' class='ui-pg-table' style='width:100%;table-layout:fixed;height:100%;' role='row'><tbody><tr><td id='"+
|
83
|
+
J+"' align='left'></td><td id='"+S+"' align='center' style='white-space:pre;'></td><td id='"+V+"' align='right'></td></tr></tbody></table></div>").attr("dir","ltr");if(d.p.rowList.length>0){D="<td dir='"+j+"'>";D+="<select class='ui-pg-selbox' role='listbox'>";for(J=0;J<d.p.rowList.length;J++)D+='<option role="option" value="'+d.p.rowList[J]+'"'+(d.p.rowNum==d.p.rowList[J]?' selected="selected"':"")+">"+d.p.rowList[J]+"</option>";D+="</select></td>"}if(j=="rtl")F+=D;if(d.p.pginput===true)w="<td dir='"+
|
84
84
|
j+"'>"+a.jgrid.format(d.p.pgtext||"","<input class='ui-pg-input' type='text' size='2' maxlength='7' value='0' role='textbox'/>","<span id='sp_1'></span>")+"</td>";if(d.p.pgbuttons===true){J=["first"+u,"prev"+u,"next"+u,"last"+u];j=="rtl"&&J.reverse();F+="<td id='"+J[0]+"' class='ui-pg-button ui-corner-all'><span class='ui-icon ui-icon-seek-first'></span></td>";F+="<td id='"+J[1]+"' class='ui-pg-button ui-corner-all'><span class='ui-icon ui-icon-seek-prev'></span></td>";F+=w!==""?"<td class='ui-pg-button ui-state-disabled' style='width:4px;'><span class='ui-separator'></span></td>"+
|
85
|
-
w+"<td class='ui-pg-button ui-state-disabled' style='width:4px;'><span class='ui-separator'></span></td>":"";F+="<td id='"+J[2]+"' class='ui-pg-button ui-corner-all'><span class='ui-icon ui-icon-seek-next'></span></td>";F+="<td id='"+J[3]+"' class='ui-pg-button ui-corner-all'><span class='ui-icon ui-icon-seek-end'></span></td>"}else if(w!=="")F+=w;if(j=="ltr")F+=D;F+="</tr></tbody></table>";d.p.viewrecords===true&&a("td#"+
|
86
|
-
"' class='ui-paging-info'></div>");a("td#"+
|
87
|
-
"#"+N).bind("change",function(){d.p.page=Math.round(d.p.rowNum*(d.p.page-1)/this.value-0.5)+1;d.p.rowNum=this.value;if(u)a(".ui-pg-selbox",d.p.pager).val(this.value);else d.p.toppager&&a(".ui-pg-selbox",d.p.toppager).val(this.value);if(!H("records"))return false;
|
88
|
-
this.style.cursor="default"}});a("#first"+u+", #prev"+u+", #next"+u+", #last"+u,"#"+
|
89
|
-
O;Y=true}if(Y){if(!H(this.id))return false;
|
85
|
+
w+"<td class='ui-pg-button ui-state-disabled' style='width:4px;'><span class='ui-separator'></span></td>":"";F+="<td id='"+J[2]+"' class='ui-pg-button ui-corner-all'><span class='ui-icon ui-icon-seek-next'></span></td>";F+="<td id='"+J[3]+"' class='ui-pg-button ui-corner-all'><span class='ui-icon ui-icon-seek-end'></span></td>"}else if(w!=="")F+=w;if(j=="ltr")F+=D;F+="</tr></tbody></table>";d.p.viewrecords===true&&a("td#"+r+"_"+d.p.recordpos,"#"+N).append("<div dir='"+j+"' style='text-align:"+d.p.recordpos+
|
86
|
+
"' class='ui-paging-info'></div>");a("td#"+r+"_"+d.p.pagerpos,"#"+N).append(F);D=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:"+D+";visibility:hidden;' ></div>");F=a(F).clone().appendTo("#testpg").width();a("#testpg").remove();if(F>0){if(w!="")F+=50;a("td#"+r+"_"+d.p.pagerpos,"#"+N).width(F)}d.p._nvtd=[];d.p._nvtd[0]=F?Math.floor((d.p.width-F)/2):Math.floor(d.p.width/3);d.p._nvtd[1]=0;F=null;a(".ui-pg-selbox",
|
87
|
+
"#"+N).bind("change",function(){d.p.page=Math.round(d.p.rowNum*(d.p.page-1)/this.value-0.5)+1;d.p.rowNum=this.value;if(u)a(".ui-pg-selbox",d.p.pager).val(this.value);else d.p.toppager&&a(".ui-pg-selbox",d.p.toppager).val(this.value);if(!H("records"))return false;ea();return false});if(d.p.pgbuttons===true){a(".ui-pg-button","#"+N).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");
|
88
|
+
this.style.cursor="default"}});a("#first"+u+", #prev"+u+", #next"+u+", #last"+u,"#"+r).click(function(){var K=q(d.p.page,1),O=q(d.p.lastpage,1),Y=false,ga=true,aa=true,ha=true,Q=true;if(O===0||O===1)Q=ha=aa=ga=false;else if(O>1&&K>=1)if(K===1)aa=ga=false;else{if(!(K>1&&K<O))if(K===O)Q=ha=false}else if(O>1&&K===0){Q=ha=false;K=O-1}if(this.id==="first"+u&&ga){d.p.page=1;Y=true}if(this.id==="prev"+u&&aa){d.p.page=K-1;Y=true}if(this.id==="next"+u&&ha){d.p.page=K+1;Y=true}if(this.id==="last"+u&&Q){d.p.page=
|
89
|
+
O;Y=true}if(Y){if(!H(this.id))return false;ea()}return false})}d.p.pginput===true&&a("input.ui-pg-input","#"+N).keypress(function(K){if((K.charCode?K.charCode:K.keyCode?K.keyCode:0)==13){d.p.page=a(this).val()>0?a(this).val():d.p.page;if(!H("user"))return false;ea();return false}return this})};var ba=function(r,u,w,F){if(d.p.colModel[u].sortable)if(!(d.p.savedRow.length>0)){if(!w){if(d.p.lastsort==u)if(d.p.sortorder=="asc")d.p.sortorder="desc";else{if(d.p.sortorder=="desc")d.p.sortorder="asc"}else d.p.sortorder=
|
90
90
|
d.p.colModel[u].firstsortorder||"asc";d.p.page=1}if(F)if(d.p.lastsort==u&&d.p.sortorder==F&&!w)return;else d.p.sortorder=F;w=a("thead:first",d.grid.hDiv).get(0);a("tr th:eq("+d.p.lastsort+") span.ui-grid-ico-sort",w).addClass("ui-state-disabled");a("tr th:eq("+d.p.lastsort+")",w).attr("aria-selected","false");a("tr th:eq("+u+") span.ui-icon-"+d.p.sortorder,w).removeClass("ui-state-disabled");a("tr th:eq("+u+")",w).attr("aria-selected","true");if(!d.p.viewsortcols[0])if(d.p.lastsort!=u){a("tr th:eq("+
|
91
|
-
d.p.lastsort+") span.s-ico",w).hide();a("tr th:eq("+u+") span.s-ico",w).show()}
|
92
|
-
true);d.grid.hDiv.scrollLeft=w}d.p.subGrid&&d.p.datatype=="local"&&a("td.sgexpanded","#"+d.p.id).each(function(){a(this).trigger("click")});
|
91
|
+
d.p.lastsort+") span.s-ico",w).hide();a("tr th:eq("+u+") span.s-ico",w).show()}r=r.substring(5);d.p.sortname=d.p.colModel[u].index||r;w=d.p.sortorder;if(a.isFunction(d.p.onSortCol))if(d.p.onSortCol.call(d,r,u,w)=="stop"){d.p.lastsort=u;return}if(d.p.datatype=="local")d.p.deselectAfterSort&&a(d).jqGrid("resetSelection");else{d.p.selrow=null;d.p.multiselect&&a("#cb_"+a.jgrid.jqID(d.p.id),d.grid.hDiv).attr("checked",false);d.p.selarrrow=[];d.p.savedRow=[]}if(d.p.scroll){w=d.grid.bDiv.scrollLeft;A(d.grid.bDiv,
|
92
|
+
true);d.grid.hDiv.scrollLeft=w}d.p.subGrid&&d.p.datatype=="local"&&a("td.sgexpanded","#"+d.p.id).each(function(){a(this).trigger("click")});ea();d.p.lastsort=u;if(d.p.sortname!=r&&u)d.p.lastsort=u}},sa=function(r){var u,w={},F=m?0:d.p.cellLayout;for(u=w[0]=w[1]=w[2]=0;u<=r;u++)if(d.p.colModel[u].hidden===false)w[0]+=d.p.colModel[u].width+F;if(d.p.direction=="rtl")w[0]=d.p.width-w[0];w[0]-=d.grid.bDiv.scrollLeft;if(a(d.grid.cDiv).is(":visible"))w[1]+=a(d.grid.cDiv).height()+parseInt(a(d.grid.cDiv).css("padding-top"),
|
93
93
|
10)+parseInt(a(d.grid.cDiv).css("padding-bottom"),10);if(d.p.toolbar[0]===true&&(d.p.toolbar[1]=="top"||d.p.toolbar[1]=="both"))w[1]+=a(d.grid.uDiv).height()+parseInt(a(d.grid.uDiv).css("border-top-width"),10)+parseInt(a(d.grid.uDiv).css("border-bottom-width"),10);if(d.p.toppager)w[1]+=a(d.grid.topDiv).height()+parseInt(a(d.grid.topDiv).css("border-bottom-width"),10);w[2]+=a(d.grid.bDiv).height()+a(d.grid.hDiv).height();return w};this.p.id=this.id;if(a.inArray(d.p.multikey,["shiftKey","altKey","ctrlKey"])==
|
94
|
-
-1)d.p.multikey=false;d.p.keyIndex=false;for(g=0;g<d.p.colModel.length;g++)if(d.p.colModel[g].key===true){d.p.keyIndex=g;break}d.p.sortorder=d.p.sortorder.toLowerCase();if(d.p.grouping===true){d.p.scroll=false;d.p.rownumbers=false;d.p.subGrid=false;d.p.treeGrid=false;d.p.gridview=true}if(this.p.treeGrid===true){try{a(this).jqGrid("setTreeGrid")}catch(
|
94
|
+
-1)d.p.multikey=false;d.p.keyIndex=false;for(g=0;g<d.p.colModel.length;g++)if(d.p.colModel[g].key===true){d.p.keyIndex=g;break}d.p.sortorder=d.p.sortorder.toLowerCase();if(d.p.grouping===true){d.p.scroll=false;d.p.rownumbers=false;d.p.subGrid=false;d.p.treeGrid=false;d.p.gridview=true}if(this.p.treeGrid===true){try{a(this).jqGrid("setTreeGrid")}catch(ya){}if(d.p.datatype!="local")d.p.localReader={id:"_id_"}}if(this.p.subGrid)try{a(d).jqGrid("setSubGrid")}catch(Da){}if(this.p.multiselect){this.p.colNames.unshift("<input role='checkbox' id='cb_"+
|
95
95
|
this.p.id+"' class='cbox' type='checkbox'/>");this.p.colModel.unshift({name:"cb",width:m?d.p.multiselectWidth+d.p.cellLayout:d.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:d.p.rownumWidth,sortable:false,resizable:false,hidedlg:true,search:false,align:"center",fixed:true})}d.p.xmlReader=a.extend(true,{root:"rows",row:"row",page:"rows>page",total:"rows>total",
|
96
96
|
records:"rows>records",repeatitems:true,cell:"cell",id:"[id]",userdata:"userdata",subgrid:{root:"rows",row:"row",repeatitems:true,cell:"cell"}},d.p.xmlReader);d.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"}},d.p.jsonReader);d.p.localReader=a.extend(true,{root:"rows",page:"page",total:"total",records:"records",repeatitems:false,cell:"cell",id:"id",userdata:"userdata",
|
97
|
-
subgrid:{root:"rows",repeatitems:true,cell:"cell"}},d.p.localReader);if(d.p.scroll){d.p.pgbuttons=false;d.p.pginput=false;d.p.rowList=[]}d.p.data.length&&x();var
|
98
|
-
X+" ui-state-disabled ui-icon ui-icon-triangle-1-n ui-sort-"+j+"'></span>";X+="<span sort='desc' class='ui-grid-ico-sort ui-icon-desc"+C+" ui-state-disabled ui-icon ui-icon-triangle-1-s ui-sort-"+j+"'></span></span>";for(g=0;g<this.p.colNames.length;g++){C=d.p.headertitles?' title="'+a.jgrid.stripHtml(d.p.colNames[g])+'"':"";
|
99
|
-
"<div id='jqgh_"+d.p.colModel[g].name+"' "+
|
100
|
-
this).bind("click",function(){if(this.checked){a("[id^=jqg_"+d.p.id+"_]").attr("checked","checked");a(d.rows).each(function(
|
101
|
-
|
102
|
-
h.width=
|
103
|
-
V+K*u;if(d.p.tblwidth>d.p.width){d.p.colModel[F].width-=d.p.tblwidth-parseInt(d.p.width,10);d.p.tblwidth=d.p.width}}})();a(
|
104
|
-
j+"'>";k=a("tr:first",
|
105
|
-
var u="";if(d.p.colModel[
|
106
|
-
this).removeClass("ui-state-disabled")}else if(
|
107
|
-
|
108
|
-
a(this).addClass("ui-jqgrid-btable").append(
|
109
|
-
k=null;
|
110
|
-
function(
|
111
|
-
u)a(d).jqGrid("setSelection",M[0].id,true);else{
|
112
|
-
d.p.id+"_"+a.jgrid.jqID(N)).attr("checked",false)});d.p.selarrrow=[];a("#cb_"+a.jgrid.jqID(d.p.id),d.grid.hDiv).attr("checked",false)}a(d).jqGrid("setSelection",M[0].id,true)}if(a.isFunction(d.p.onCellSelect)){
|
97
|
+
subgrid:{root:"rows",repeatitems:true,cell:"cell"}},d.p.localReader);if(d.p.scroll){d.p.pgbuttons=false;d.p.pginput=false;d.p.rowList=[]}d.p.data.length&&x();var ma="<thead><tr class='ui-jqgrid-labels' role='rowheader'>",Ea,C,P,U,L,W,M,X;C=X="";if(d.p.shrinkToFit===true&&d.p.forceFit===true)for(g=d.p.colModel.length-1;g>=0;g--)if(!d.p.colModel[g].hidden){d.p.colModel[g].resizable=false;break}if(d.p.viewsortcols[1]=="horizontal"){X=" ui-i-asc";C=" ui-i-desc"}Ea=o?"class='ui-th-div-ie'":"";X="<span class='s-ico' style='display:none'><span sort='asc' class='ui-grid-ico-sort ui-icon-asc"+
|
98
|
+
X+" ui-state-disabled ui-icon ui-icon-triangle-1-n ui-sort-"+j+"'></span>";X+="<span sort='desc' class='ui-grid-ico-sort ui-icon-desc"+C+" ui-state-disabled ui-icon ui-icon-triangle-1-s ui-sort-"+j+"'></span></span>";for(g=0;g<this.p.colNames.length;g++){C=d.p.headertitles?' title="'+a.jgrid.stripHtml(d.p.colNames[g])+'"':"";ma+="<th id='"+d.p.id+"_"+d.p.colModel[g].name+"' role='columnheader' class='ui-state-default ui-th-column ui-th-"+j+"'"+C+">";C=d.p.colModel[g].index||d.p.colModel[g].name;ma+=
|
99
|
+
"<div id='jqgh_"+d.p.colModel[g].name+"' "+Ea+">"+d.p.colNames[g];d.p.colModel[g].width=d.p.colModel[g].width?parseInt(d.p.colModel[g].width,10):150;if(typeof d.p.colModel[g].title!=="boolean")d.p.colModel[g].title=true;if(C==d.p.sortname)d.p.lastsort=g;ma+=X+"</div></th>"}ma+="</tr></thead>";X=null;a(this).append(ma);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 ja=[],Z;a("#cb_"+a.jgrid.jqID(d.p.id),
|
100
|
+
this).bind("click",function(){if(this.checked){a("[id^=jqg_"+d.p.id+"_]").attr("checked","checked");a(d.rows).each(function(r){if(r>0)if(!a(this).hasClass("subgrid")&&!a(this).hasClass("jqgroup")){a(this).addClass("ui-state-highlight").attr("aria-selected","true");d.p.selarrrow[r]=d.p.selrow=this.id}});Z=true;ja=[]}else{a("[id^=jqg_"+d.p.id+"_]").removeAttr("checked");a(d.rows).each(function(r){if(!a(this).hasClass("subgrid")){a(this).removeClass("ui-state-highlight").attr("aria-selected","false");
|
101
|
+
ja[r]=this.id}});d.p.selarrrow=[];d.p.selrow=null;Z=false}if(a.isFunction(d.p.onSelectAll))d.p.onSelectAll.call(d,Z?d.p.selarrrow:ja,Z)})}if(d.p.autowidth===true){ma=a(t).innerWidth();d.p.width=ma>0?ma:"nw"}(function(){var r=0,u=d.p.cellLayout,w=0,F,D=d.p.scrollOffset,N,J=false,S,V=0,H=0,K=0,O;if(m)u=0;a.each(d.p.colModel,function(){if(typeof this.hidden==="undefined")this.hidden=false;if(this.hidden===false){r+=q(this.width,0);if(this.fixed){V+=this.width;H+=this.width+u}else w++;K++}});if(isNaN(d.p.width))d.p.width=
|
102
|
+
h.width=r;else h.width=d.p.width;d.p.tblwidth=r;if(d.p.shrinkToFit===false&&d.p.forceFit===true)d.p.forceFit=false;if(d.p.shrinkToFit===true&&w>0){S=h.width-u*w-H;if(!isNaN(d.p.height)){S-=D;J=true}r=0;a.each(d.p.colModel,function(Y){if(this.hidden===false&&!this.fixed){this.width=N=Math.round(S*this.width/(d.p.tblwidth-V));r+=N;F=Y}});O=0;if(J){if(h.width-H-(r+u*w)!==D)O=h.width-H-(r+u*w)-D}else if(!J&&Math.abs(h.width-H-(r+u*w))!==1)O=h.width-H-(r+u*w);d.p.colModel[F].width+=O;d.p.tblwidth=r+O+
|
103
|
+
V+K*u;if(d.p.tblwidth>d.p.width){d.p.colModel[F].width-=d.p.tblwidth-parseInt(d.p.width,10);d.p.tblwidth=d.p.width}}})();a(t).css("width",h.width+"px").append("<div class='ui-jqgrid-resize-mark' id='rs_m"+d.p.id+"'> </div>");a(k).css("width",h.width+"px");ma=a("thead:first",d).get(0);var la="";if(d.p.footerrow)la+="<table role='grid' style='width:"+d.p.tblwidth+"px' class='ui-jqgrid-ftable' cellspacing='0' cellpadding='0' border='0'><tbody><tr role='row' class='ui-widget-content footrow footrow-"+
|
104
|
+
j+"'>";k=a("tr:first",ma);var fa="<tr class='jqgfirstrow' role='row' style='height:auto'>";d.p.disableClick=false;a("th",k).each(function(r){P=d.p.colModel[r].width;if(typeof d.p.colModel[r].resizable==="undefined")d.p.colModel[r].resizable=true;if(d.p.colModel[r].resizable){U=document.createElement("span");a(U).html(" ").addClass("ui-jqgrid-resize ui-jqgrid-resize-"+j);a.browser.opera||a(U).css("cursor","col-resize");a(this).addClass(d.p.resizeclass)}else U="";a(this).css("width",P+"px").prepend(U);
|
105
|
+
var u="";if(d.p.colModel[r].hidden){a(this).css("display","none");u="display:none;"}fa+="<td role='gridcell' style='height:0px;width:"+P+"px;"+u+"'></td>";h.headers[r]={width:P,el:this};L=d.p.colModel[r].sortable;if(typeof L!=="boolean")L=d.p.colModel[r].sortable=true;u=d.p.colModel[r].name;u=="cb"||u=="subgrid"||u=="rn"||d.p.viewsortcols[2]&&a("div",this).addClass("ui-jqgrid-sortable");if(L)if(d.p.viewsortcols[0]){a("div span.s-ico",this).show();r==d.p.lastsort&&a("div span.ui-icon-"+d.p.sortorder,
|
106
|
+
this).removeClass("ui-state-disabled")}else if(r==d.p.lastsort){a("div span.s-ico",this).show();a("div span.ui-icon-"+d.p.sortorder,this).removeClass("ui-state-disabled")}if(d.p.footerrow)la+="<td role='gridcell' "+s(r,0,"")+"> </td>"}).mousedown(function(r){if(a(r.target).closest("th>span.ui-jqgrid-resize").length==1){var u=a.jgrid.getCellIndex(this);if(d.p.forceFit===true){var w=d.p,F=u,D;for(D=u+1;D<d.p.colModel.length;D++)if(d.p.colModel[D].hidden!==true){F=D;break}w.nv=F-u}h.dragStart(u,
|
107
|
+
r,sa(u));return false}}).click(function(r){if(d.p.disableClick)return d.p.disableClick=false;var u="th>div.ui-jqgrid-sortable",w,F;d.p.viewsortcols[2]||(u="th>div>span>span.ui-grid-ico-sort");r=a(r.target).closest(u);if(r.length==1){u=a.jgrid.getCellIndex(this);if(!d.p.viewsortcols[2]){w=true;F=r.attr("sort")}ba(a("div",this)[0].id,u,w,F);return false}});if(d.p.sortable&&a.fn.sortable)try{a(d).jqGrid("sortableColumns",k)}catch(va){}if(d.p.footerrow)la+="</tr></tbody></table>";fa+="</tr>";this.appendChild(document.createElement("tbody"));
|
108
|
+
a(this).addClass("ui-jqgrid-btable").append(fa);fa=null;k=a("<table class='ui-jqgrid-htable' style='width:"+d.p.tblwidth+"px' role='grid' aria-labelledby='gbox_"+this.id+"' cellspacing='0' cellpadding='0' border='0'></table>").append(ma);var ca=d.p.caption&&d.p.hiddengrid===true?true:false;g=a("<div class='ui-jqgrid-hbox"+(j=="rtl"?"-rtl":"")+"'></div>");ma=null;h.hDiv=document.createElement("div");a(h.hDiv).css({width:h.width+"px"}).addClass("ui-state-default ui-jqgrid-hdiv").append(g);a(g).append(k);
|
109
|
+
k=null;ca&&a(h.hDiv).hide();if(d.p.pager){if(typeof d.p.pager=="string"){if(d.p.pager.substr(0,1)!="#")d.p.pager="#"+d.p.pager}else d.p.pager="#"+a(d.p.pager).attr("id");a(d.p.pager).css({width:h.width+"px"}).appendTo(t).addClass("ui-state-default ui-jqgrid-pager ui-corner-bottom");ca&&a(d.p.pager).hide();l(d.p.pager,"")}d.p.cellEdit===false&&d.p.hoverrows===true&&a(d).bind("mouseover",function(r){M=a(r.target).closest("tr.jqgrow");a(M).attr("class")!=="subgrid"&&a(M).addClass("ui-state-hover");return false}).bind("mouseout",
|
110
|
+
function(r){M=a(r.target).closest("tr.jqgrow");a(M).removeClass("ui-state-hover");return false});var xa,na;a(d).before(h.hDiv).click(function(r){W=r.target;var u=a(W).hasClass("cbox");M=a(W,d.rows).closest("tr.jqgrow");if(a(M).length===0)return this;var w=true;if(a.isFunction(d.p.beforeSelectRow))w=d.p.beforeSelectRow.call(d,M[0].id,r);if(W.tagName=="A"||(W.tagName=="INPUT"||W.tagName=="TEXTAREA"||W.tagName=="OPTION"||W.tagName=="SELECT")&&!u)return this;if(w===true){if(d.p.cellEdit===true)if(d.p.multiselect&&
|
111
|
+
u)a(d).jqGrid("setSelection",M[0].id,true);else{xa=M[0].rowIndex;na=a.jgrid.getCellIndex(W);try{a(d).jqGrid("editCell",xa,na,true)}catch(F){}}else if(d.p.multikey)if(r[d.p.multikey])a(d).jqGrid("setSelection",M[0].id,true);else{if(d.p.multiselect&&u){u=a("[id^=jqg_"+d.p.id+"_]").attr("checked");a("[id^=jqg_"+d.p.id+"_]").attr("checked",!u)}}else{if(d.p.multiselect&&d.p.multiboxonly)if(!u){a(d.p.selarrrow).each(function(D,N){var J=d.rows.namedItem(N);a(J).removeClass("ui-state-highlight");a("#jqg_"+
|
112
|
+
d.p.id+"_"+a.jgrid.jqID(N)).attr("checked",false)});d.p.selarrrow=[];a("#cb_"+a.jgrid.jqID(d.p.id),d.grid.hDiv).attr("checked",false)}a(d).jqGrid("setSelection",M[0].id,true)}if(a.isFunction(d.p.onCellSelect)){xa=M[0].id;na=a.jgrid.getCellIndex(W);d.p.onCellSelect.call(d,xa,na,a(W).html(),r)}r.stopPropagation()}else return this}).bind("reloadGrid",function(r,u){if(d.p.treeGrid===true)d.p.datatype=d.p.treedatatype;u&&u.current&&d.grid.selectionPreserver(d);if(d.p.datatype=="local"){a(d).jqGrid("resetSelection");
|
113
113
|
d.p.data.length&&x()}else if(!d.p.treeGrid){d.p.selrow=null;if(d.p.multiselect){d.p.selarrrow=[];a("#cb_"+a.jgrid.jqID(d.p.id),d.grid.hDiv).attr("checked",false)}d.p.savedRow=[]}d.p.scroll&&A(d.grid.bDiv,true);if(u&&u.page){var w=u.page;if(w>d.p.lastpage)w=d.p.lastpage;if(w<1)w=1;d.p.page=w;d.grid.bDiv.scrollTop=d.grid.prevRowHeight?(w-1)*d.grid.prevRowHeight*d.p.rowNum:0}if(d.grid.prevRowHeight&&d.p.scroll){delete d.p.lastpage;d.grid.populateVisible()}else d.grid.populate();return false});a.isFunction(this.p.ondblClickRow)&&
|
114
|
-
a(this).dblclick(function(
|
115
|
-
|
116
|
-
a(h.bDiv).bind("mousedown",function(){return false});
|
114
|
+
a(this).dblclick(function(r){W=r.target;M=a(W,d.rows).closest("tr.jqgrow");if(a(M).length===0)return false;xa=M[0].rowIndex;na=a.jgrid.getCellIndex(W);d.p.ondblClickRow.call(d,a(M).attr("id"),xa,na,r);return false});a.isFunction(this.p.onRightClickRow)&&a(this).bind("contextmenu",function(r){W=r.target;M=a(W,d.rows).closest("tr.jqgrow");if(a(M).length===0)return false;d.p.multiselect||a(d).jqGrid("setSelection",M[0].id,true);xa=M[0].rowIndex;na=a.jgrid.getCellIndex(W);d.p.onRightClickRow.call(d,a(M).attr("id"),
|
115
|
+
xa,na,r);return false});h.bDiv=document.createElement("div");a(h.bDiv).append(a('<div style="position:relative;'+(o&&a.browser.version<8?"height:0.01%;":"")+'"></div>').append("<div></div>").append(this)).addClass("ui-jqgrid-bdiv").css({height:d.p.height+(isNaN(d.p.height)?"":"px"),width:h.width+"px"}).scroll(h.scrollGrid);a("table:first",h.bDiv).css({width:d.p.tblwidth+"px"});if(o){a("tbody",this).size()==2&&a("tbody:gt(0)",this).remove();d.p.multikey&&a(h.bDiv).bind("selectstart",function(){return false})}else d.p.multikey&&
|
116
|
+
a(h.bDiv).bind("mousedown",function(){return false});ca&&a(h.bDiv).hide();h.cDiv=document.createElement("div");var wa=d.p.hidegrid===true?a("<a role='link' href='javascript:void(0)'/>").addClass("ui-jqgrid-titlebar-close HeaderButton").hover(function(){wa.addClass("ui-state-hover")},function(){wa.removeClass("ui-state-hover")}).append("<span class='ui-icon ui-icon-circle-triangle-n'></span>").css(j=="rtl"?"left":"right","0px"):"";a(h.cDiv).append(wa).append("<span class='ui-jqgrid-title"+(j=="rtl"?
|
117
117
|
"-rtl":"")+"'>"+d.p.caption+"</span>").addClass("ui-jqgrid-titlebar ui-widget-header ui-corner-top ui-helper-clearfix");a(h.cDiv).insertBefore(h.hDiv);if(d.p.toolbar[0]){h.uDiv=document.createElement("div");if(d.p.toolbar[1]=="top")a(h.uDiv).insertBefore(h.hDiv);else d.p.toolbar[1]=="bottom"&&a(h.uDiv).insertAfter(h.hDiv);if(d.p.toolbar[1]=="both"){h.ubDiv=document.createElement("div");a(h.uDiv).insertBefore(h.hDiv).addClass("ui-userdata ui-state-default").attr("id","t_"+this.id);a(h.ubDiv).insertAfter(h.hDiv).addClass("ui-userdata ui-state-default").attr("id",
|
118
|
-
"tb_"+this.id);
|
119
|
-
(j=="rtl"?"-rtl":"")+"'></div>");a(h.sDiv).append(g).insertAfter(h.hDiv).width(h.width);a(g).append(
|
120
|
-
d.p.pager&&a(d.p.pager).slideUp("fast");d.p.toppager&&a(d.p.toppager).slideUp("fast");if(d.p.toolbar[0]===true){d.p.toolbar[1]=="both"&&a(h.ubDiv).slideUp("fast");a(h.uDiv).slideUp("fast")}d.p.footerrow&&a(".ui-jqgrid-sdiv","#gbox_"+d.p.id).slideUp("fast");a("span",this).removeClass("ui-icon-circle-triangle-n").addClass("ui-icon-circle-triangle-s");d.p.gridstate="hidden";a("#gbox_"+d.p.id).hasClass("ui-resizable")&&a(".ui-resizable-handle","#gbox_"+d.p.id).hide();if(u)
|
121
|
-
d.p.gridstate,
|
122
|
-
|
123
|
-
return false}return true});d.formatCol=s;d.sortData=
|
124
|
-
d.p.pager?d.p.pager:"";H+=d.p.toppager?H?","+d.p.toppager:d.p.toppager:"";if(H){V=a.jgrid.formatter.integer||{};w=q(d.p.page);F=q(d.p.lastpage);a(".selbox",H).attr("disabled",false);if(d.p.pginput===true){a(".ui-pg-input",H).val(d.p.page);a("#sp_1",H).html(a.fmatter?a.fmatter.util.NumberFormat(d.p.lastpage,V):d.p.lastpage)}if(d.p.viewrecords)if(d.p.reccount===0)a(".ui-paging-info",H).html(d.p.emptyrecords);else{N=D+1;
|
125
|
-
V);
|
126
|
-
F||w===0){a("#next, #last",d.p.pager).addClass("ui-state-disabled").removeClass("ui-state-hover");d.p.toppager&&a("#next_t, #last_t",d.p.toppager).addClass("ui-state-disabled").removeClass("ui-state-hover")}else{a("#next, #last",d.p.pager).removeClass("ui-state-disabled");d.p.toppager&&a("#next_t, #last_t",d.p.toppager).removeClass("ui-state-disabled")}}}
|
127
|
-
a.isFunction(d.p.gridComplete)&&d.p.gridComplete.call(d)};d.refreshIndex=x;d.formatter=function(
|
118
|
+
"tb_"+this.id);ca&&a(h.ubDiv).hide()}else a(h.uDiv).width(h.width).addClass("ui-userdata ui-state-default").attr("id","t_"+this.id);ca&&a(h.uDiv).hide()}if(d.p.toppager){d.p.toppager=d.p.id+"_toppager";h.topDiv=a("<div id='"+d.p.toppager+"'></div>")[0];d.p.toppager="#"+d.p.toppager;a(h.topDiv).insertBefore(h.hDiv).addClass("ui-state-default ui-jqgrid-toppager").width(h.width);l(d.p.toppager,"_t")}if(d.p.footerrow){h.sDiv=a("<div class='ui-jqgrid-sdiv'></div>")[0];g=a("<div class='ui-jqgrid-hbox"+
|
119
|
+
(j=="rtl"?"-rtl":"")+"'></div>");a(h.sDiv).append(g).insertAfter(h.hDiv).width(h.width);a(g).append(la);h.footers=a(".ui-jqgrid-ftable",h.sDiv)[0].rows[0].cells;if(d.p.rownumbers)h.footers[0].className="ui-state-default jqgrid-rownum";ca&&a(h.sDiv).hide()}g=null;if(d.p.caption){var Ha=d.p.datatype;if(d.p.hidegrid===true){a(".ui-jqgrid-titlebar-close",h.cDiv).click(function(r){var u=a.isFunction(d.p.onHeaderClick);if(d.p.gridstate=="visible"){a(".ui-jqgrid-bdiv, .ui-jqgrid-hdiv","#gview_"+d.p.id).slideUp("fast");
|
120
|
+
d.p.pager&&a(d.p.pager).slideUp("fast");d.p.toppager&&a(d.p.toppager).slideUp("fast");if(d.p.toolbar[0]===true){d.p.toolbar[1]=="both"&&a(h.ubDiv).slideUp("fast");a(h.uDiv).slideUp("fast")}d.p.footerrow&&a(".ui-jqgrid-sdiv","#gbox_"+d.p.id).slideUp("fast");a("span",this).removeClass("ui-icon-circle-triangle-n").addClass("ui-icon-circle-triangle-s");d.p.gridstate="hidden";a("#gbox_"+d.p.id).hasClass("ui-resizable")&&a(".ui-resizable-handle","#gbox_"+d.p.id).hide();if(u)ca||d.p.onHeaderClick.call(d,
|
121
|
+
d.p.gridstate,r)}else if(d.p.gridstate=="hidden"){a(".ui-jqgrid-hdiv, .ui-jqgrid-bdiv","#gview_"+d.p.id).slideDown("fast");d.p.pager&&a(d.p.pager).slideDown("fast");d.p.toppager&&a(d.p.toppager).slideDown("fast");if(d.p.toolbar[0]===true){d.p.toolbar[1]=="both"&&a(h.ubDiv).slideDown("fast");a(h.uDiv).slideDown("fast")}d.p.footerrow&&a(".ui-jqgrid-sdiv","#gbox_"+d.p.id).slideDown("fast");a("span",this).removeClass("ui-icon-circle-triangle-s").addClass("ui-icon-circle-triangle-n");if(ca){d.p.datatype=
|
122
|
+
Ha;ea();ca=false}d.p.gridstate="visible";a("#gbox_"+d.p.id).hasClass("ui-resizable")&&a(".ui-resizable-handle","#gbox_"+d.p.id).show();u&&d.p.onHeaderClick.call(d,d.p.gridstate,r)}return false});if(ca){d.p.datatype="local";a(".ui-jqgrid-titlebar-close",h.cDiv).trigger("click")}}}else a(h.cDiv).hide();a(h.hDiv).after(h.bDiv).mousemove(function(r){if(h.resizing){h.dragMove(r);return false}});a(".ui-jqgrid-labels",h.hDiv).bind("selectstart",function(){return false});a(document).mouseup(function(){if(h.resizing){h.dragEnd();
|
123
|
+
return false}return true});d.formatCol=s;d.sortData=ba;d.updatepager=function(r,u){var w,F,D,N,J,S,V,H="";D=parseInt(d.p.page,10)-1;if(D<0)D=0;D*=parseInt(d.p.rowNum,10);J=D+d.p.reccount;if(d.p.scroll){w=a("tbody:first > tr:gt(0)",d.grid.bDiv);D=J-w.length;d.p.reccount=w.length;if(F=w.outerHeight()||d.grid.prevRowHeight){w=D*F;F=parseInt(d.p.records,10)*F;a(">div:first",d.grid.bDiv).css({height:F}).children("div:first").css({height:w,display:w?"":"none"})}d.grid.bDiv.scrollLeft=d.grid.hDiv.scrollLeft}H=
|
124
|
+
d.p.pager?d.p.pager:"";H+=d.p.toppager?H?","+d.p.toppager:d.p.toppager:"";if(H){V=a.jgrid.formatter.integer||{};w=q(d.p.page);F=q(d.p.lastpage);a(".selbox",H).attr("disabled",false);if(d.p.pginput===true){a(".ui-pg-input",H).val(d.p.page);a("#sp_1",H).html(a.fmatter?a.fmatter.util.NumberFormat(d.p.lastpage,V):d.p.lastpage)}if(d.p.viewrecords)if(d.p.reccount===0)a(".ui-paging-info",H).html(d.p.emptyrecords);else{N=D+1;S=d.p.records;if(a.fmatter){N=a.fmatter.util.NumberFormat(N,V);J=a.fmatter.util.NumberFormat(J,
|
125
|
+
V);S=a.fmatter.util.NumberFormat(S,V)}a(".ui-paging-info",H).html(a.jgrid.format(d.p.recordtext,N,J,S))}if(d.p.pgbuttons===true){if(w<=0)w=F=0;if(w==1||w===0){a("#first, #prev",d.p.pager).addClass("ui-state-disabled").removeClass("ui-state-hover");d.p.toppager&&a("#first_t, #prev_t",d.p.toppager).addClass("ui-state-disabled").removeClass("ui-state-hover")}else{a("#first, #prev",d.p.pager).removeClass("ui-state-disabled");d.p.toppager&&a("#first_t, #prev_t",d.p.toppager).removeClass("ui-state-disabled")}if(w==
|
126
|
+
F||w===0){a("#next, #last",d.p.pager).addClass("ui-state-disabled").removeClass("ui-state-hover");d.p.toppager&&a("#next_t, #last_t",d.p.toppager).addClass("ui-state-disabled").removeClass("ui-state-hover")}else{a("#next, #last",d.p.pager).removeClass("ui-state-disabled");d.p.toppager&&a("#next_t, #last_t",d.p.toppager).removeClass("ui-state-disabled")}}}r===true&&d.p.rownumbers===true&&a("td.jqgrid-rownum",d.rows).each(function(K){a(this).html(D+1+K)});u&&d.p.jqgdnd&&a(d).jqGrid("gridDnD","updateDnD");
|
127
|
+
a.isFunction(d.p.gridComplete)&&d.p.gridComplete.call(d)};d.refreshIndex=x;d.formatter=function(r,u,w,F,D){return p(r,u,w,F,D)};a.extend(h,{populate:ea,emptyRows:A});this.grid=h;d.addXmlData=function(r){G(r,d.grid.bDiv)};d.addJSONData=function(r){I(r,d.grid.bDiv)};this.grid.cols=this.rows[0].cells;ea();d.p.hiddengrid=false;a(window).unload(function(){d=null})}}}})};a.jgrid.extend({getGridParam:function(c){var e=this[0];if(e&&e.grid)return c?typeof e.p[c]!="undefined"?e.p[c]:null:e.p},setGridParam:function(c){return this.each(function(){this.grid&&
|
128
128
|
typeof c==="object"&&a.extend(true,this.p,c)})},getDataIDs:function(){var c=[],e=0,b,f=0;this.each(function(){if((b=this.rows.length)&&b>0)for(;e<b;){if(a(this.rows[e]).hasClass("jqgrow")){c[f]=this.rows[e].id;f++}e++}});return c},setSelection:function(c,e){return this.each(function(){function b(j){var d=a(f.grid.bDiv)[0].clientHeight,k=a(f.grid.bDiv)[0].scrollTop,l=f.rows[j].offsetTop;j=f.rows[j].clientHeight;if(l+j>=d+k)a(f.grid.bDiv)[0].scrollTop=l-(d+k)+j+k;else if(l<d+k)if(l<k)a(f.grid.bDiv)[0].scrollTop=
|
129
129
|
l}var f=this,h,g;if(c!==undefined){e=e===false?false:true;if(h=f.rows.namedItem(c+"")){if(f.p.scrollrows===true){g=f.rows.namedItem(c).rowIndex;g>=0&&b(g)}if(f.p.multiselect){f.p.selrow=h.id;g=a.inArray(f.p.selrow,f.p.selarrrow);if(g===-1){h.className!=="ui-subgrid"&&a(h).addClass("ui-state-highlight").attr("aria-selected","true");h=true;a("#jqg_"+f.p.id+"_"+a.jgrid.jqID(f.p.selrow)).attr("checked",h);f.p.selarrrow.push(f.p.selrow);f.p.onSelectRow&&e&&f.p.onSelectRow.call(f,f.p.selrow,h)}else{h.className!==
|
130
130
|
"ui-subgrid"&&a(h).removeClass("ui-state-highlight").attr("aria-selected","false");h=false;a("#jqg_"+f.p.id+"_"+a.jgrid.jqID(f.p.selrow)).attr("checked",h);f.p.selarrrow.splice(g,1);f.p.onSelectRow&&e&&f.p.onSelectRow.call(f,f.p.selrow,h);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","false");f.p.selrow=h.id;a(h).addClass("ui-state-highlight").attr("aria-selected",
|
@@ -132,20 +132,20 @@ l}var f=this,h,g;if(c!==undefined){e=e===false?false:true;if(h=f.rows.namedItem(
|
|
132
132
|
"false");c.p.selrow=null}c.p.savedRow=[]})},getRowData:function(c){var e={},b,f=false,h,g=0;this.each(function(){var j=this,d,k;if(typeof c=="undefined"){f=true;b=[];h=j.rows.length}else{k=j.rows.namedItem(c);if(!k)return e;h=2}for(;g<h;){if(f)k=j.rows[g];if(a(k).hasClass("jqgrow")){a("td",k).each(function(l){d=j.p.colModel[l].name;if(d!=="cb"&&d!=="subgrid"&&d!=="rn")if(j.p.treeGrid===true&&d==j.p.ExpandColumn)e[d]=a.jgrid.htmlDecode(a("span:first",this).html());else try{e[d]=a.unformat(this,{rowId:k.id,
|
133
133
|
colModel:j.p.colModel[l]},l)}catch(o){e[d]=a.jgrid.htmlDecode(a(this).html())}});if(f){b.push(e);e={}}}g++}});return b?b:e},delRowData:function(c){var e=false,b,f;this.each(function(){if(b=this.rows.namedItem(c)){a(b).remove();this.p.records--;this.p.reccount--;this.updatepager(true,false);e=true;if(this.p.multiselect){f=a.inArray(c,this.p.selarrrow);f!=-1&&this.p.selarrrow.splice(f,1)}if(c==this.p.selrow)this.p.selrow=null}else return false;if(this.p.datatype=="local"){var h=this.p._index[c];if(typeof h!=
|
134
134
|
"undefined"){this.p.data.splice(h,1);this.refreshIndex()}}if(this.p.altRows===true&&e){var g=this.p.altclass;a(this.rows).each(function(j){j%2==1?a(this).addClass(g):a(this).removeClass(g)})}});return e},setRowData:function(c,e,b){var f,h=true,g;this.each(function(){if(!this.grid)return false;var j=this,d,k,l=typeof b,o={};k=j.rows.namedItem(c);if(!k)return false;if(e)try{a(this.p.colModel).each(function(q){f=this.name;if(e[f]!==undefined){o[f]=this.formatter&&typeof this.formatter==="string"&&this.formatter==
|
135
|
-
"date"?a.unformat.date(e[f],this):e[f];d=j.formatter(c,e[f],q,e,"edit");g=this.title?{title:a.jgrid.stripHtml(d)}:{};j.p.treeGrid===true&&f==j.p.ExpandColumn?a("td:eq("+q+") > span:first",k).html(d).attr(g):a("td:eq("+q+")",k).html(d).attr(g)}});if(j.p.datatype=="local"){var m=j.p._index[c];if(typeof m!="undefined")j.p.data[m]=a.extend(true,j.p.data[m],o);o=null}}catch(
|
136
|
-
var h=false,g,j,d,k,l,o,m,
|
137
|
-
E;){v=e[B];j="";if(s){try{c=v[n]}catch(G){c=this.p.records+1+""}y=this.p.altRows===true?(this.rows.length-1)%2===0?p:"":""}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(d){
|
138
|
-
d+l,1);for(m=d+k+l;m<this.p.colModel.length;m++){z=this.p.colModel[m];g=z.name;A[g]=z.formatter&&typeof z.formatter==="string"&&z.formatter=="date"?a.unformat.date(v[g],z):v[g];
|
135
|
+
"date"?a.unformat.date(e[f],this):e[f];d=j.formatter(c,e[f],q,e,"edit");g=this.title?{title:a.jgrid.stripHtml(d)}:{};j.p.treeGrid===true&&f==j.p.ExpandColumn?a("td:eq("+q+") > span:first",k).html(d).attr(g):a("td:eq("+q+")",k).html(d).attr(g)}});if(j.p.datatype=="local"){var m=j.p._index[c];if(typeof m!="undefined")j.p.data[m]=a.extend(true,j.p.data[m],o);o=null}}catch(t){h=false}if(h)if(l==="string")a(k).addClass(b);else l==="object"&&a(k).css(b)});return h},addRowData:function(c,e,b,f){b||(b="last");
|
136
|
+
var h=false,g,j,d,k,l,o,m,t,q="",s,n,p,v,z;if(e){if(a.isArray(e)){s=true;b="last";n=c}else{e=[e];s=false}this.each(function(){var E=e.length;l=this.p.rownumbers===true?1:0;d=this.p.multiselect===true?1:0;k=this.p.subGrid===true?1:0;if(!s)if(typeof c!="undefined")c+="";else{c=this.p.records+1+"";if(this.p.keyIndex!==false){n=this.p.colModel[this.p.keyIndex+d+k+l].name;if(typeof e[0][n]!="undefined")c=e[0][n]}}p=this.p.altclass;for(var B=0,y="",A={},x=a.isFunction(this.p.afterInsertRow)?true:false;B<
|
137
|
+
E;){v=e[B];j="";if(s){try{c=v[n]}catch(G){c=this.p.records+1+""}y=this.p.altRows===true?(this.rows.length-1)%2===0?p:"":""}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(d){t='<input role="checkbox" type="checkbox" id="jqg_'+this.p.id+"_"+c+'" class="cbox"/>';q=this.formatCol(l,1,"");j+='<td role="gridcell" aria-describedby="'+this.p.id+'_cb" '+q+">"+t+"</td>"}if(k)j+=a(this).jqGrid("addSubGridCell",
|
138
|
+
d+l,1);for(m=d+k+l;m<this.p.colModel.length;m++){z=this.p.colModel[m];g=z.name;A[g]=z.formatter&&typeof z.formatter==="string"&&z.formatter=="date"?a.unformat.date(v[g],z):v[g];t=this.formatter(c,a.jgrid.getAccessor(v,g),m,v,"edit");q=this.formatCol(m,1,t);j+='<td role="gridcell" aria-describedby="'+this.p.id+"_"+g+'" '+q+">"+t+"</td>"}j='<tr id="'+c+'" role="row" class="ui-widget-content jqgrow ui-row-'+this.p.direction+" "+y+'">'+j+"</tr>";if(this.p.subGrid===true){j=a(j)[0];a(this).jqGrid("addSubGrid",
|
139
139
|
j,d+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]).after(j);break;case "after":if(o=this.rows.namedItem(f))a(this.rows[o.rowIndex+1]).hasClass("ui-subgrid")?a(this.rows[o.rowIndex+1]).after(j):a(o).after(j);break;case "before":if(o=this.rows.namedItem(f)){a(o).before(j);o=o.rowIndex}}this.p.records++;this.p.reccount++;x&&this.p.afterInsertRow.call(this,c,v,v);B++;if(this.p.datatype==
|
140
140
|
"local"){this.p._index[c]=this.p.data.length;this.p.data.push(A);A={}}}if(this.p.altRows===true&&!s)if(b=="last")(this.rows.length-1)%2==1&&a(this.rows[this.rows.length-1]).addClass(p);else a(this.rows).each(function(I){I%2==1?a(this).addClass(p):a(this).removeClass(p)});this.updatepager(true,true);h=true})}return h},footerData:function(c,e,b){function f(k){for(var l in k)if(k.hasOwnProperty(l))return false;return true}var h,g=false,j={},d;if(typeof c=="undefined")c="get";if(typeof b!="boolean")b=
|
141
141
|
true;c=c.toLowerCase();this.each(function(){var k=this,l;if(!k.grid||!k.p.footerrow)return false;if(c=="set")if(f(e))return false;g=true;a(this.p.colModel).each(function(o){h=this.name;if(c=="set"){if(e[h]!==undefined){l=b?k.formatter("",e[h],o,e,"edit"):e[h];d=this.title?{title:a.jgrid.stripHtml(l)}:{};a("tr.footrow td:eq("+o+")",k.grid.sDiv).html(l).attr(d);g=true}}else if(c=="get")j[h]=a("tr.footrow td:eq("+o+")",k.grid.sDiv).html()})});return c=="get"?j:g},ShowHideCol:function(c,e){return this.each(function(){var b=
|
142
142
|
this,f=false;if(b.grid){if(typeof c==="string")c=[c];e=e!="none"?"":"none";var h=e===""?true:false;a(this.p.colModel).each(function(g){if(a.inArray(this.name,c)!==-1&&this.hidden===h){a("tr",b.grid.hDiv).each(function(){a("th:eq("+g+")",this).css("display",e)});a(b.rows).each(function(j){a("td:eq("+g+")",b.rows[j]).css("display",e)});b.p.footerrow&&a("td:eq("+g+")",b.grid.sDiv).css("display",e);if(e=="none")b.p.tblwidth-=this.width+b.p.cellLayout;else b.p.tblwidth+=this.width;this.hidden=!h;f=true}});
|
143
143
|
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}b.p.shrinkToFit===true&&a(b).jqGrid("setGridWidth",b.grid.width-0.0010,true)}}})},hideCol:function(c){return this.each(function(){a(this).jqGrid("ShowHideCol",c,"none")})},showCol:function(c){return this.each(function(){a(this).jqGrid("ShowHideCol",
|
144
144
|
c,"")})},remapColumns:function(c,e,b){function f(j){var d;d=j.length?a.makeArray(j):a.extend({},j);a.each(c,function(k){j[k]=d[this]})}function h(j,d){a(">tr"+(d||""),j).each(function(){var k=this,l=a.makeArray(k.cells);a.each(c,function(){var o=l[this];o&&k.appendChild(o)})})}var g=this.get(0);f(g.p.colModel);f(g.p.colNames);f(g.grid.headers);h(a("thead:first",g.grid.hDiv),b&&":not(.ui-jqgrid-labels)");e&&h(a("#"+g.p.id+" tbody:first"),".jqgfirstrow, tr.jqgrow, tr.jqfoot");g.p.footerrow&&h(a("tbody:first",
|
145
|
-
g.grid.sDiv));if(g.p.remapColumns)if(g.p.remapColumns.length)f(g.p.remapColumns);else g.p.remapColumns=a.makeArray(c);g.p.lastsort=a.inArray(g.p.lastsort,c);if(g.p.treeGrid)g.p.expColInd=a.inArray(g.p.expColInd,c)},setGridWidth:function(c,e){return this.each(function(){if(this.grid){var b=this,f,h=0,g=b.p.cellLayout,j,d=0,k=false,l=b.p.scrollOffset,o,m=0,
|
145
|
+
g.grid.sDiv));if(g.p.remapColumns)if(g.p.remapColumns.length)f(g.p.remapColumns);else g.p.remapColumns=a.makeArray(c);g.p.lastsort=a.inArray(g.p.lastsort,c);if(g.p.treeGrid)g.p.expColInd=a.inArray(g.p.expColInd,c)},setGridWidth:function(c,e){return this.each(function(){if(this.grid){var b=this,f,h=0,g=b.p.cellLayout,j,d=0,k=false,l=b.p.scrollOffset,o,m=0,t=0,q=0,s;if(typeof e!="boolean")e=b.p.shrinkToFit;if(!isNaN(c)){c=parseInt(c,10);b.grid.width=b.p.width=c;a("#gbox_"+b.p.id).css("width",c+"px");
|
146
146
|
a("#gview_"+b.p.id).css("width",c+"px");a(b.grid.bDiv).css("width",c+"px");a(b.grid.hDiv).css("width",c+"px");b.p.pager&&a(b.p.pager).css("width",c+"px");b.p.toppager&&a(b.p.toppager).css("width",c+"px");if(b.p.toolbar[0]===true){a(b.grid.uDiv).css("width",c+"px");b.p.toolbar[1]=="both"&&a(b.grid.ubDiv).css("width",c+"px")}b.p.footerrow&&a(b.grid.sDiv).css("width",c+"px");if(e===false&&b.p.forceFit===true)b.p.forceFit=false;if(e===true){if(a.browser.safari)g=0;a.each(b.p.colModel,function(){if(this.hidden===
|
147
|
-
false){h+=parseInt(this.width,10);if(this.fixed){
|
148
|
-
f+"px";if(n)b.grid.cols[p].style.width=f+"px";j=p}}});s=0;if(k){if(c-m-(h+g*d)!==l)s=c-m-(h+g*d)-l}else if(Math.abs(c-m-(h+g*d))!==1)s=c-m-(h+g*d);b.p.colModel[j].width+=s;b.p.tblwidth=h+s+
|
147
|
+
false){h+=parseInt(this.width,10);if(this.fixed){t+=this.width;m+=this.width+g}else d++;q++}});if(d!==0){b.p.tblwidth=h;o=c-g*d-m;if(!isNaN(b.p.height))if(a(b.grid.bDiv)[0].clientHeight<a(b.grid.bDiv)[0].scrollHeight||b.rows.length===1){k=true;o-=l}h=0;var n=b.grid.cols.length>0;a.each(b.p.colModel,function(p){if(this.hidden===false&&!this.fixed){f=Math.round(o*this.width/(b.p.tblwidth-t));if(!(f<0)){this.width=f;h+=f;b.grid.headers[p].width=f;b.grid.headers[p].el.style.width=f+"px";if(b.p.footerrow)b.grid.footers[p].style.width=
|
148
|
+
f+"px";if(n)b.grid.cols[p].style.width=f+"px";j=p}}});s=0;if(k){if(c-m-(h+g*d)!==l)s=c-m-(h+g*d)-l}else if(Math.abs(c-m-(h+g*d))!==1)s=c-m-(h+g*d);b.p.colModel[j].width+=s;b.p.tblwidth=h+s+t+g*q;if(b.p.tblwidth>c){k=b.p.tblwidth-parseInt(c,10);b.p.tblwidth=c;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(n)b.grid.cols[j].style.width=f+"px";a("table:first",b.grid.bDiv).css("width",b.p.tblwidth+"px");a("table:first",b.grid.hDiv).css("width",
|
149
149
|
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(c){return this.each(function(){if(this.grid){a(this.grid.bDiv).css({height:c+(isNaN(c)?"":"px")});this.p.height=c;this.p.scroll&&this.grid.populateVisible()}})},setCaption:function(c){return this.each(function(){this.p.caption=c;a("span.ui-jqgrid-title",this.grid.cDiv).html(c);a(this.grid.cDiv).show()})},
|
150
150
|
setLabel:function(c,e,b,f){return this.each(function(){var h=-1;if(this.grid){if(isNaN(c))a(this.p.colModel).each(function(d){if(this.name==c){h=d;return false}});else h=parseInt(c,10);if(h>=0){var g=a("tr.ui-jqgrid-labels th:eq("+h+")",this.grid.hDiv);if(e){var j=a(".s-ico",g);a("[id^=jqgh_]",g).empty().html(e).append(j);this.p.colNames[h]=e}if(b)typeof b==="string"?a(g).addClass(b):a(g).css(b);typeof f==="object"&&a(g).attr(f)}}})},setCell:function(c,e,b,f,h,g){return this.each(function(){var j=
|
151
151
|
-1,d,k;if(this.grid){if(isNaN(e))a(this.p.colModel).each(function(o){if(this.name==e){j=o;return false}});else j=parseInt(e,10);if(j>=0)if(d=this.rows.namedItem(c)){var l=a("td:eq("+j+")",d);if(b!==""||g===true){d=this.formatter(c,b,j,d,"edit");k=this.p.colModel[j].title?{title:a.jgrid.stripHtml(d)}:{};this.p.treeGrid&&a(".tree-wrap",a(l)).length>0?a("span",a(l)).html(d).attr(k):a(l).html(d).attr(k);if(this.p.datatype=="local"){d=this.p.colModel[j];b=d.formatter&&typeof d.formatter==="string"&&d.formatter==
|
@@ -157,11 +157,11 @@ var showModal=function(a){a.w.show()},closeModal=function(a){a.w.hide().attr("ar
|
|
157
157
|
function findPos(a){var c=0,e=0;if(a.offsetParent){do{c+=a.offsetLeft;e+=a.offsetTop}while(a=a.offsetParent)}return[c,e]}
|
158
158
|
var createModal=function(a,c,e,b,f,h){var g=document.createElement("div"),j;j=jQuery(e.gbox).attr("dir")=="rtl"?true:false;g.className="ui-widget ui-widget-content ui-corner-all ui-jqdialog";g.id=a.themodal;var d=document.createElement("div");d.className="ui-jqdialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix";d.id=a.modalhead;jQuery(d).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")},
|
159
159
|
function(){k.removeClass("ui-state-hover")}).append("<span class='ui-icon ui-icon-closethick'></span>");jQuery(d).append(k);if(j){g.dir="rtl";jQuery(".ui-jqdialog-title",d).css("float","right");jQuery(".ui-jqdialog-titlebar-close",d).css("left","0.3em")}else{g.dir="ltr";jQuery(".ui-jqdialog-title",d).css("float","left");jQuery(".ui-jqdialog-titlebar-close",d).css("right","0.3em")}var l=document.createElement("div");jQuery(l).addClass("ui-jqdialog-content ui-widget-content").attr("id",a.modalcontent);
|
160
|
-
jQuery(l).append(c);g.appendChild(l);jQuery(g).prepend(d);h===true?jQuery("body").append(g):jQuery(g).insertBefore(b);if(typeof e.jqModal==="undefined")e.jqModal=true;c={};if(jQuery.fn.jqm&&e.jqModal===true){if(e.left===0&&e.top===0){
|
161
|
-
e.gbox;hideModal("#"+a.themodal,{gb:q,jqm:e.jqModal,onClose:
|
162
|
-
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(d).css("cursor","move");if(jQuery.fn.jqDrag)jQuery(g).jqDrag(d);else try{jQuery(g).draggable({handle:jQuery("#"+d.id)})}catch(o){}}if(e.resize)if(jQuery.fn.jqResize){jQuery(g).append("<div class='jqResize ui-resizable-handle ui-resizable-se ui-icon ui-icon-gripsmall-diagonal-se ui-icon-grip-diagonal-se'></div>");
|
163
|
-
a.scrollelm?"#"+a.scrollelm:false)}else try{jQuery(g).resizable({handles:"se, sw",alsoResize:a.scrollelm?"#"+a.scrollelm:false})}catch(m){}e.closeOnEscape===true&&jQuery(g).keydown(function(
|
164
|
-
"false").jqm(c).jqmShow():jQuery(a).attr("aria-hidden","false").jqmShow();else{if(c.gbox!==""){jQuery(".jqgrid-overlay:first",c.gbox).show();jQuery(a).data("gbox",c.gbox)}jQuery(a).show().attr("aria-hidden","false");try{jQuery(":input:visible",a)[0].focus()}catch(e){}}};
|
160
|
+
jQuery(l).append(c);g.appendChild(l);jQuery(g).prepend(d);h===true?jQuery("body").append(g):jQuery(g).insertBefore(b);if(typeof e.jqModal==="undefined")e.jqModal=true;c={};if(jQuery.fn.jqm&&e.jqModal===true){if(e.left===0&&e.top===0){l=[];l=findPos(f);e.left=l[0]+4;e.top=l[1]+4}c.top=e.top+"px";c.left=e.left}else if(e.left!==0||e.top!==0){c.left=e.left;c.top=e.top+"px"}jQuery("a.ui-jqdialog-titlebar-close",d).click(function(){var t=jQuery("#"+a.themodal).data("onClose")||e.onClose,q=jQuery("#"+a.themodal).data("gbox")||
|
161
|
+
e.gbox;hideModal("#"+a.themodal,{gb:q,jqm:e.jqModal,onClose:t});return false});if(e.width===0||!e.width)e.width=300;if(e.height===0||!e.height)e.height=200;if(!e.zIndex){b=$(b).parents("*[role=dialog]").first().css("z-index");e.zIndex=b?parseInt(b)+1:950}b=0;if(j&&c.left&&!h){b=jQuery(e.gbox).width()-(!isNaN(e.width)?parseInt(e.width,10):0)-8;c.left=parseInt(c.left,10)+parseInt(b,10)}if(c.left)c.left+="px";jQuery(g).css(jQuery.extend({width:isNaN(e.width)?"auto":e.width+"px",height:isNaN(e.height)?
|
162
|
+
"auto":e.height+"px",zIndex:e.zIndex,overflow:"hidden"},c)).attr({tabIndex:"-1",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(d).css("cursor","move");if(jQuery.fn.jqDrag)jQuery(g).jqDrag(d);else try{jQuery(g).draggable({handle:jQuery("#"+d.id)})}catch(o){}}if(e.resize)if(jQuery.fn.jqResize){jQuery(g).append("<div class='jqResize ui-resizable-handle ui-resizable-se ui-icon ui-icon-gripsmall-diagonal-se ui-icon-grip-diagonal-se'></div>");
|
163
|
+
jQuery("#"+a.themodal).jqResize(".jqResize",a.scrollelm?"#"+a.scrollelm:false)}else try{jQuery(g).resizable({handles:"se, sw",alsoResize:a.scrollelm?"#"+a.scrollelm:false})}catch(m){}e.closeOnEscape===true&&jQuery(g).keydown(function(t){if(t.which==27){t=jQuery("#"+a.themodal).data("onClose")||e.onClose;hideModal(this,{gb:e.gbox,jqm:e.jqModal,onClose:t})}})},viewModal=function(a,c){c=jQuery.extend({toTop:true,overlay:10,modal:false,onShow:showModal,onHide:closeModal,gbox:"",jqm:true,jqM:true},c||
|
164
|
+
{});if(jQuery.fn.jqm&&c.jqm===true)c.jqM?jQuery(a).attr("aria-hidden","false").jqm(c).jqmShow():jQuery(a).attr("aria-hidden","false").jqmShow();else{if(c.gbox!==""){jQuery(".jqgrid-overlay:first",c.gbox).show();jQuery(a).data("gbox",c.gbox)}jQuery(a).show().attr("aria-hidden","false");try{jQuery(":input:visible",a)[0].focus()}catch(e){}}};
|
165
165
|
function info_dialog(a,c,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 h=f.jqModal;if(jQuery.fn.jqm&&!h)h=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'>"+
|
166
166
|
f.buttons[b].text+"</a>"}b=isNaN(f.dataheight)?f.dataheight:f.dataheight+"px";var g="<div id='info_id'>";g+="<div id='infocnt' style='margin:0px;padding-bottom:1em;width:100%;overflow:auto;position:relative;height:"+b+";"+("text-align:"+f.align+";")+"'>"+c+"</div>";g+=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'>"+
|
167
167
|
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>":"";g+="</div>";try{jQuery("#info_dialog").attr("aria-hidden")=="false"&&hideModal("#info_dialog",{jqm:h});jQuery("#info_dialog").remove()}catch(j){}createModal({themodal:"info_dialog",modalhead:"info_head",modalcontent:"info_content",scrollelm:"infocnt"},g,f,"","",true);a&&jQuery.each(f.buttons,
|
@@ -174,8 +174,8 @@ e}else g.value="on";jQuery(g).attr("offval","off")}c=h(g,c);jQuery(g).attr(c).at
|
|
174
174
|
l)>-1){this.selected="selected";if(!k)return false}})},0)}}},f||{}));else if(c.value){if(k){l=e.split(",");l=jQuery.map(l,function(q){return jQuery.trim(q)});if(typeof c.size==="undefined")c.size=3}else c.size=1;if(typeof c.value==="function")c.value=c.value();if(typeof c.value==="string"){b=c.value.split(";");for(j=0;j<b.length;j++){f=b[j].split(":");if(f.length>2)f[1]=jQuery.map(f,function(q,s){if(s>0)return q}).join(":");a=document.createElement("option");a.setAttribute("role","option");a.value=
|
175
175
|
f[0];a.innerHTML=f[1];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";g.appendChild(a)}}else if(typeof c.value==="object"){b=c.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=
|
176
176
|
"selected";if(k&&(jQuery.inArray(jQuery.trim(b[j]),l)>-1||jQuery.inArray(jQuery.trim(j),l)>-1))a.selected="selected";g.appendChild(a)}}c=h(g,c);try{delete c.value}catch(o){}jQuery(g).attr(c)}break;case "text":case "password":case "button":j=a=="button"?"button":"textbox";g=document.createElement("input");g.type=a;g.value=e;c=h(g,c);if(a!="button")if(b)c.size||jQuery(g).css({width:"98%"});else if(!c.size)c.size=20;jQuery(g).attr(c).attr("role",j);break;case "image":case "file":g=document.createElement("input");
|
177
|
-
g.type=a;c=h(g,c);jQuery(g).attr(c);break;case "custom":g=document.createElement("span");try{if(jQuery.isFunction(c.custom_element)){var m=c.custom_element.call(this,e,c);if(m){m=jQuery(m).addClass("customelement").attr({id:c.id,name:c.name});jQuery(g).empty().append(m)}else throw"e2";}else throw"e1";}catch(
|
178
|
-
jQuery.jgrid.edit.msg.novalue,jQuery.jgrid.edit.bClose):info_dialog(jQuery.jgrid.errors.errcap,typeof
|
177
|
+
g.type=a;c=h(g,c);jQuery(g).attr(c);break;case "custom":g=document.createElement("span");try{if(jQuery.isFunction(c.custom_element)){var m=c.custom_element.call(this,e,c);if(m){m=jQuery(m).addClass("customelement").attr({id:c.id,name:c.name});jQuery(g).empty().append(m)}else throw"e2";}else throw"e1";}catch(t){t=="e1"&&info_dialog(jQuery.jgrid.errors.errcap,"function 'custom_element' "+jQuery.jgrid.edit.msg.nodefined,jQuery.jgrid.edit.bClose);t=="e2"?info_dialog(jQuery.jgrid.errors.errcap,"function 'custom_element' "+
|
178
|
+
jQuery.jgrid.edit.msg.novalue,jQuery.jgrid.edit.bClose):info_dialog(jQuery.jgrid.errors.errcap,typeof t==="string"?t:t.message,jQuery.jgrid.edit.bClose)}}return g}function daysInFebruary(a){return a%4===0&&(a%100!==0||a%400===0)?29:28}function DaysArray(a){for(var c=1;c<=a;c++){this[c]=31;if(c==4||c==6||c==9||c==11)this[c]=30;if(c==2)this[c]=29}return this}
|
179
179
|
function checkDate(a,c){var e={},b;a=a.toLowerCase();b=a.indexOf("/")!=-1?"/":a.indexOf("-")!=-1?"-":a.indexOf(".")!=-1?".":"/";a=a.split(b);c=c.split(b);if(c.length!=3)return false;b=-1;for(var f,h=-1,g=-1,j=0;j<a.length;j++){f=isNaN(c[j])?0:parseInt(c[j],10);e[a[j]]=f;f=a[j];if(f.indexOf("y")!=-1)b=j;if(f.indexOf("m")!=-1)g=j;if(f.indexOf("d")!=-1)h=j}f=a[b]=="y"||a[b]=="yyyy"?4:a[b]=="yy"?2:-1;j=DaysArray(12);var d;if(b===-1)return false;else{d=e[a[b]].toString();if(f==2&&d.length==1)f=1;if(d.length!=
|
180
180
|
f||e[a[b]]===0&&c[b]!="00")return false}if(g===-1)return false;else{d=e[a[g]].toString();if(d.length<1||e[a[g]]<1||e[a[g]]>12)return false}if(h===-1)return false;else{d=e[a[h]].toString();if(d.length<1||e[a[h]]<1||e[a[h]]>31||e[a[g]]==2&&e[a[h]]>daysInFebruary(e[a[b]])||e[a[h]]>j[e[a[g]]])return false}return true}function isEmpty(a){return a.match(/^\s+$/)||a===""?true:false}
|
181
181
|
function checkTime(a){var c=/^(\d{1,2}):(\d{2})([ap]m)?$/;if(!isEmpty(a))if(a=a.match(c)){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}
|
@@ -188,98 +188,98 @@ a:[false,jQuery.jgrid.edit.msg.customarray,""]}else return[false,jQuery.jgrid.ed
|
|
188
188
|
E){var B=z.p.postData[E.sFilter];if(typeof B=="string")B=a.jgrid.parse(B);if(B){B.groupOp&&z.SearchFilter.setGroupOp(B.groupOp);if(B.rules){var y,A=0,x=B.rules.length;for(y=false;A<x;A++){y=B.rules[A];if(y.field!==undefined&&y.op!==undefined&&y.data!==undefined)(y=z.SearchFilter.setFilter({sfref:z.SearchFilter.$.find(".sf:last"),filter:a.extend({},y)}))&&z.SearchFilter.add()}}}}function f(z){if(e.onClose){var E=e.onClose(z);if(typeof E=="boolean"&&!E)return}z.hide();e.overlay===true&&a(".jqgrid-overlay:first",
|
189
189
|
"#gbox_"+d.p.id).hide()}function h(){var z=a(".ui-searchFilter").length;if(z>1){var E=a("#"+k).css("zIndex");a("#"+k).css({zIndex:parseInt(E,10)+z})}a("#"+k).show();e.overlay===true&&a(".jqgrid-overlay:first","#gbox_"+d.p.id).show();try{a(":input:visible","#"+k)[0].focus()}catch(B){}}function g(z){var E=z!==undefined,B=a("#"+d.p.id),y={};if(e.multipleSearch===false){y[e.sField]=z.rules[0].field;y[e.sValue]=z.rules[0].data;y[e.sOper]=z.rules[0].op}else y[e.sFilter]=z;B[0].p.search=E;a.extend(B[0].p.postData,
|
190
190
|
y);B.trigger("reloadGrid",[{page:1}]);e.closeAfterSearch&&f(a("#"+k))}function j(z){z=z&&z.hasOwnProperty("reload")?z.reload:true;var E=a("#"+d.p.id),B={};E[0].p.search=false;if(e.multipleSearch===false)B[e.sField]=B[e.sValue]=B[e.sOper]="";else B[e.sFilter]="";a.extend(E[0].p.postData,B);z&&E.trigger("reloadGrid",[{page:1}]);e.closeAfterReset&&f(a("#"+k))}var d=this;if(d.grid){var k="fbox_"+d.p.id;if(a.fn.searchFilter){e.recreateFilter===true&&a("#"+k).remove();if(a("#"+k).html()!=null){a.isFunction(e.beforeShowSearch)&&
|
191
|
-
e.beforeShowSearch(a("#"+k));h();a.isFunction(e.afterShowSearch)&&e.afterShowSearch(a("#"+k))}else{var l=[],o=a("#"+d.p.id).jqGrid("getGridParam","colNames"),m=a("#"+d.p.id).jqGrid("getGridParam","colModel"),
|
192
|
-
typeof E.search==="undefined"?true:E.search,y=E.hidden===true,A=a.extend({},{text:o[z],itemval:E.index||E.name},this.searchoptions),x=A.searchhidden===true;if(typeof A.sopt!=="undefined"){n=0;A.ops=[];if(A.sopt.length>0)for(q=0;q<A.sopt.length;q++)if((s=a.inArray(A.sopt[q],
|
191
|
+
e.beforeShowSearch(a("#"+k));h();a.isFunction(e.afterShowSearch)&&e.afterShowSearch(a("#"+k))}else{var l=[],o=a("#"+d.p.id).jqGrid("getGridParam","colNames"),m=a("#"+d.p.id).jqGrid("getGridParam","colModel"),t=["eq","ne","lt","le","gt","ge","bw","bn","in","ni","ew","en","cn","nc"],q,s,n,p=[];if(e.sopt!==null)for(q=n=0;q<e.sopt.length;q++){if((s=a.inArray(e.sopt[q],t))!=-1){p[n]={op:e.sopt[q],text:e.odata[s]};n++}}else for(q=0;q<t.length;q++)p[q]={op:t[q],text:e.odata[q]};a.each(m,function(z,E){var B=
|
192
|
+
typeof E.search==="undefined"?true:E.search,y=E.hidden===true,A=a.extend({},{text:o[z],itemval:E.index||E.name},this.searchoptions),x=A.searchhidden===true;if(typeof A.sopt!=="undefined"){n=0;A.ops=[];if(A.sopt.length>0)for(q=0;q<A.sopt.length;q++)if((s=a.inArray(A.sopt[q],t))!=-1){A.ops[n]={op:A.sopt[q],text:e.odata[s]};n++}}if(typeof this.stype==="undefined")this.stype="text";if(this.stype=="select")if(A.dataUrl===undefined){var G;if(A.value)G=A.value;else if(this.editoptions)G=this.editoptions.value;
|
193
193
|
if(G){A.dataValues=[];if(typeof G==="string"){G=G.split(";");var I;for(q=0;q<G.length;q++){I=G[q].split(":");A.dataValues[q]={value:I[0],text:I[1]}}}else if(typeof G==="object"){q=0;for(I in G)if(G.hasOwnProperty(I)){A.dataValues[q]={value:I,text:G[I]};q++}}}}if(x&&B||B&&!y)l.push(A)});if(l.length>0){a("<div id='"+k+"' role='dialog' tabindex='-1'></div>").insertBefore("#gview_"+d.p.id);if(e.stringResult===undefined)e.stringResult=e.multipleSearch;d.SearchFilter=a("#"+k).searchFilter(l,{groupOps:e.groupOps,
|
194
194
|
operators:p,onClose:f,resetText:e.Reset,searchText:e.Find,windowTitle:e.caption,rulesText:e.rulesText,matchText:e.matchText,onSearch:g,onReset:j,stringResult:e.stringResult,ajaxSelectOptions:a.extend({},a.jgrid.ajaxOptions,d.p.ajaxSelectOptions||{}),clone:e.cloneSearchRowOnAdd});a(".ui-widget-overlay","#"+k).remove();d.p.direction=="rtl"&&a(".ui-closer","#"+k).css("float","left");if(e.drag===true){a("#"+k+" table thead tr:first td:first").css("cursor","move");if(jQuery.fn.jqDrag)a("#"+k).jqDrag(a("#"+
|
195
195
|
k+" table thead tr:first td:first"));else try{a("#"+k).draggable({handle:a("#"+k+" table thead tr:first td:first")})}catch(v){}}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(d,e);a.isFunction(e.onInitializeSearch)&&e.onInitializeSearch(a("#"+k));a.isFunction(e.beforeShowSearch)&&e.beforeShowSearch(a("#"+k));h();a.isFunction(e.afterShowSearch)&&
|
196
|
-
e.afterShowSearch(a("#"+k));e.closeOnEscape===true&&a("#"+k).keydown(function(z){z.which==27&&f(a("#"+k))})}}}}})},editGridRow:function(e,b){c=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,afterComplete:null,onclickPgButtons:null,
|
196
|
+
e.afterShowSearch(a("#"+k));e.closeOnEscape===true&&a("#"+k).keydown(function(z){z.which==27&&f(a("#"+k))})}}}}})},editGridRow:function(e,b){c=b=a.extend({top:0,left:0,width:300,height:"auto",dataheight:"auto",modal:false,overlay:10,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,afterComplete:null,onclickPgButtons:null,
|
197
197
|
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(){a(".FormElement","#"+s).each(function(){var C=a(".customelement",this);if(C.length){var P=a(C[0]).attr("name");
|
198
198
|
a.each(m.p.colModel,function(){if(this.name==P&&this.editoptions&&a.isFunction(this.editoptions.custom_value)){try{x[P]=this.editoptions.custom_value(a("#"+P,"#"+s),"get");if(x[P]===undefined)throw"e1";}catch(L){L=="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,L.message,jQuery.jgrid.edit.bClose)}return true}})}else{switch(a(this).get(0).type){case "checkbox":if(a(this).attr("checked"))x[this.name]=
|
199
199
|
a(this).val();else{C=a(this).attr("offval");x[this.name]=C}break;case "select-one":x[this.name]=a("option:selected",this).val();G[this.name]=a("option:selected",this).text();break;case "select-multiple":x[this.name]=a(this).val();x[this.name]=x[this.name]?x[this.name].join(","):"";var U=[];a("option:selected",this).each(function(L,W){U[L]=a(W).text()});G[this.name]=U.join(",");break;case "password":case "text":case "textarea":case "button":x[this.name]=a(this).val()}if(m.p.autoencode)x[this.name]=
|
200
|
-
a.jgrid.htmlEncode(x[this.name])}});return true}function h(C,P,U,L){for(var W,M,X,
|
201
|
-
true&&W!=="rn"){if(
|
202
|
-
a.isFunction(
|
203
|
-
L*2+"'>"+u.rowcontent+"</td></tr>");a(U).append(
|
204
|
-
P.p.id+"_id' value='"+C+"'/></td></tr>");
|
205
|
-
if(X[0].type=="checkbox"){
|
206
|
-
C,true);if(
|
207
|
-
" "||M==" "||M.length==1&&M.charCodeAt(0)==160)M="";a("#"+L,"#"+U).val(M);break;case "select":var
|
208
|
-
M){a("#"+L,"#"+U).attr("checked",true);a("#"+L,"#"+U).attr("defaultChecked",true)}else{a("#"+L,"#"+U).attr("checked",false);a("#"+L,"#"+U).attr("defaultChecked","")}else{M=M.toLowerCase();if(M.search(/(false|0|no|off|undefined)/i)<0&&M!==""){a("#"+L,"#"+U).attr("checked",true);a("#"+L,"#"+U).attr("defaultChecked",true)}else{a("#"+L,"#"+U).attr("checked",false);a("#"+L,"#"+U).attr("defaultChecked","")}}break;case "custom":try{if(
|
209
|
-
L,"#"+U),"set",M);else throw"e1";}catch(
|
200
|
+
a.jgrid.htmlEncode(x[this.name])}});return true}function h(C,P,U,L){for(var W,M,X,ja=0,Z,la,fa,va=[],ca=false,xa="",na=1;na<=L;na++)xa+="<td class='CaptionTD ui-widget-content'> </td><td class='DataTD ui-widget-content' style='white-space:pre'> </td>";if(C!="_empty")ca=a(P).jqGrid("getInd",C);a(P.p.colModel).each(function(wa){W=this.name;la=(M=this.editrules&&this.editrules.edithidden===true?false:this.hidden===true?true:false)?"style='display:none'":"";if(W!=="cb"&&W!=="subgrid"&&this.editable===
|
201
|
+
true&&W!=="rn"){if(ca===false)Z="";else if(W==P.p.ExpandColumn&&P.p.treeGrid===true)Z=a("td:eq("+wa+")",P.rows[ca]).text();else try{Z=a.unformat(a("td:eq("+wa+")",P.rows[ca]),{rowId:C,colModel:this},wa)}catch(Ha){Z=a("td:eq("+wa+")",P.rows[ca]).html()}var r=a.extend({},this.editoptions||{},{id:W,name:W}),u=a.extend({},{elmprefix:"",elmsuffix:"",rowabove:false,rowcontent:""},this.formoptions||{}),w=parseInt(u.rowpos,10)||ja+1,F=parseInt((parseInt(u.colpos,10)||1)*2,10);if(C=="_empty"&&r.defaultValue)Z=
|
202
|
+
a.isFunction(r.defaultValue)?r.defaultValue():r.defaultValue;if(!this.edittype)this.edittype="text";if(m.p.autoencode)Z=a.jgrid.htmlDecode(Z);fa=createEl(this.edittype,r,Z,false,a.extend({},a.jgrid.ajaxOptions,P.p.ajaxSelectOptions||{}));if(Z===""&&this.edittype=="checkbox")Z=a(fa).attr("offval");if(Z===""&&this.edittype=="select")Z=a("option:eq(0)",fa).text();if(c.checkOnSubmit||c.checkOnUpdate)c._savedData[W]=Z;a(fa).addClass("FormElement");X=a(U).find("tr[rowpos="+w+"]");if(u.rowabove){r=a("<tr><td class='contentinfo' colspan='"+
|
203
|
+
L*2+"'>"+u.rowcontent+"</td></tr>");a(U).append(r);r[0].rp=w}if(X.length===0){X=a("<tr "+la+" rowpos='"+w+"'></tr>").addClass("FormData").attr("id","tr_"+W);a(X).append(xa);a(U).append(X);X[0].rp=w}a("td:eq("+(F-2)+")",X[0]).html(typeof u.label==="undefined"?P.p.colNames[wa]:u.label);a("td:eq("+(F-1)+")",X[0]).append(u.elmprefix).append(fa).append(u.elmsuffix);va[ja]=wa;ja++}});if(ja>0){na=a("<tr class='FormData' style='display:none'><td class='CaptionTD'></td><td colspan='"+(L*2-1)+"' class='DataTD'><input class='FormElement' id='id_g' type='text' name='"+
|
204
|
+
P.p.id+"_id' value='"+C+"'/></td></tr>");na[0].rp=ja+999;a(U).append(na);if(c.checkOnSubmit||c.checkOnUpdate)c._savedData[P.p.id+"_id"]=C}return va}function g(C,P,U){var L,W=0,M,X,ja,Z,la;if(c.checkOnSubmit||c.checkOnUpdate){c._savedData={};c._savedData[P.p.id+"_id"]=C}var fa=P.p.colModel;if(C=="_empty"){a(fa).each(function(){L=this.name;ja=a.extend({},this.editoptions||{});X=a("#"+a.jgrid.jqID(L),"#"+U);if(X[0]!=null){Z="";if(ja.defaultValue){Z=a.isFunction(ja.defaultValue)?ja.defaultValue():ja.defaultValue;
|
205
|
+
if(X[0].type=="checkbox"){la=Z.toLowerCase();if(la.search(/(false|0|no|off|undefined)/i)<0&&la!==""){X[0].checked=true;X[0].defaultChecked=true;X[0].value=Z}else X.attr({checked:"",defaultChecked:""})}else X.val(Z)}else if(X[0].type=="checkbox"){X[0].checked=false;X[0].defaultChecked=false;Z=a(X).attr("offval")}else if(X[0].type&&X[0].type.substr(0,6)=="select")X[0].selectedIndex=0;else X.val(Z);if(c.checkOnSubmit===true||c.checkOnUpdate)c._savedData[L]=Z}});a("#id_g","#"+U).val(C)}else{var va=a(P).jqGrid("getInd",
|
206
|
+
C,true);if(va){a("td",va).each(function(ca){L=fa[ca].name;if(L!=="cb"&&L!=="subgrid"&&L!=="rn"&&fa[ca].editable===true){if(L==P.p.ExpandColumn&&P.p.treeGrid===true)M=a(this).text();else try{M=a.unformat(a(this),{rowId:C,colModel:fa[ca]},ca)}catch(xa){M=a(this).html()}if(m.p.autoencode)M=a.jgrid.htmlDecode(M);if(c.checkOnSubmit===true||c.checkOnUpdate)c._savedData[L]=M;L=a.jgrid.jqID(L);switch(fa[ca].edittype){case "password":case "text":case "button":case "image":a("#"+L,"#"+U).val(M);break;case "textarea":if(M==
|
207
|
+
" "||M==" "||M.length==1&&M.charCodeAt(0)==160)M="";a("#"+L,"#"+U).val(M);break;case "select":var na=M.split(",");na=a.map(na,function(Ha){return a.trim(Ha)});a("#"+L+" option","#"+U).each(function(){this.selected=!fa[ca].editoptions.multiple&&(na[0]==a.trim(a(this).text())||na[0]==a.trim(a(this).val()))?true:fa[ca].editoptions.multiple?a.inArray(a.trim(a(this).text()),na)>-1||a.inArray(a.trim(a(this).val()),na)>-1?true:false:false});break;case "checkbox":M+="";if(fa[ca].editoptions&&fa[ca].editoptions.value)if(fa[ca].editoptions.value.split(":")[0]==
|
208
|
+
M){a("#"+L,"#"+U).attr("checked",true);a("#"+L,"#"+U).attr("defaultChecked",true)}else{a("#"+L,"#"+U).attr("checked",false);a("#"+L,"#"+U).attr("defaultChecked","")}else{M=M.toLowerCase();if(M.search(/(false|0|no|off|undefined)/i)<0&&M!==""){a("#"+L,"#"+U).attr("checked",true);a("#"+L,"#"+U).attr("defaultChecked",true)}else{a("#"+L,"#"+U).attr("checked",false);a("#"+L,"#"+U).attr("defaultChecked","")}}break;case "custom":try{if(fa[ca].editoptions&&a.isFunction(fa[ca].editoptions.custom_value))fa[ca].editoptions.custom_value(a("#"+
|
209
|
+
L,"#"+U),"set",M);else throw"e1";}catch(wa){wa=="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,wa.message,jQuery.jgrid.edit.bClose)}}W++}});W>0&&a("#id_g","#"+s).val(C)}}}function j(){var C=[true,"",""],P={},U=m.p.prmNames,L,W;if(a.isFunction(c.beforeCheckValues)){var M=c.beforeCheckValues(x,a("#"+q),x[m.p.id+"_id"]=="_empty"?U.addoper:U.editoper);if(M&&typeof M==="object")x=M}for(var X in x)if(x.hasOwnProperty(X)){C=
|
210
210
|
checkValues(x[X],X,m);if(C[0]===false)break}if(C[0]){if(a.isFunction(c.onclickSubmit))P=c.onclickSubmit(c,x)||{};if(a.isFunction(c.beforeSubmit))C=c.beforeSubmit(x,a("#"+q))}if(C[0]&&!c.processing){c.processing=true;a("#sData","#"+s+"_2").addClass("ui-state-active");W=U.oper;L=U.id;x[W]=a.trim(x[m.p.id+"_id"])=="_empty"?U.addoper:U.editoper;if(x[W]!=U.addoper)x[L]=x[m.p.id+"_id"];else if(x[L]===undefined)x[L]=x[m.p.id+"_id"];delete x[m.p.id+"_id"];x=a.extend(x,c.editData,P);if(m.p.restful){c.mtype=
|
211
|
-
x.id=="_empty"?"POST":"PUT";c.url=x.id=="_empty"?m.p.url:m.p.url+"/"+x.id}P=a.extend({url:c.url?c.url:a(m).jqGrid("getGridParam","editurl"),type:c.mtype,data:a.isFunction(c.serializeEditData)?c.serializeEditData(x):x,complete:function(
|
212
|
-
"#"+s).show()}else{a.each(m.p.colModel,function(){if(G[this.name]&&this.formatter&&this.formatter=="select")try{delete G[this.name]}catch(
|
213
|
-
C[2])}hideModal("#"+n.themodal,{gb:"#gbox_"+
|
214
|
-
a(m).jqGrid("setRowData",x[L],x);c.closeAfterEdit&&hideModal("#"+n.themodal,{gb:"#gbox_"+
|
215
|
-
error:function(
|
211
|
+
x.id=="_empty"?"POST":"PUT";c.url=x.id=="_empty"?m.p.url:m.p.url+"/"+x.id}P=a.extend({url:c.url?c.url:a(m).jqGrid("getGridParam","editurl"),type:c.mtype,data:a.isFunction(c.serializeEditData)?c.serializeEditData(x):x,complete:function(ja,Z){if(Z!="success"){C[0]=false;C[1]=a.isFunction(c.errorTextFormat)?c.errorTextFormat(ja):Z+" Status: '"+ja.statusText+"'. Error code: "+ja.status}else if(a.isFunction(c.afterSubmit))C=c.afterSubmit(ja,x);if(C[0]===false){a("#FormError>td","#"+s).html(C[1]);a("#FormError",
|
212
|
+
"#"+s).show()}else{a.each(m.p.colModel,function(){if(G[this.name]&&this.formatter&&this.formatter=="select")try{delete G[this.name]}catch(va){}});x=a.extend(x,G);m.p.autoencode&&a.each(x,function(va,ca){x[va]=a.jgrid.htmlDecode(ca)});c.reloadAfterSubmit=c.reloadAfterSubmit&&m.p.datatype!="local";if(x[W]==U.addoper){C[2]||(C[2]=parseInt(m.p.records,10)+1+"");x[L]=C[2];if(c.closeAfterAdd){if(c.reloadAfterSubmit)a(m).trigger("reloadGrid");else{a(m).jqGrid("addRowData",C[2],x,b.addedrow);a(m).jqGrid("setSelection",
|
213
|
+
C[2])}hideModal("#"+n.themodal,{gb:"#gbox_"+t,jqm:b.jqModal,onClose:c.onClose})}else if(c.clearAfterAdd){c.reloadAfterSubmit?a(m).trigger("reloadGrid"):a(m).jqGrid("addRowData",C[2],x,b.addedrow);g("_empty",m,q)}else c.reloadAfterSubmit?a(m).trigger("reloadGrid"):a(m).jqGrid("addRowData",C[2],x,b.addedrow)}else{if(c.reloadAfterSubmit){a(m).trigger("reloadGrid");c.closeAfterEdit||setTimeout(function(){a(m).jqGrid("setSelection",x[L])},1E3)}else m.p.treeGrid===true?a(m).jqGrid("setTreeRow",x[L],x):
|
214
|
+
a(m).jqGrid("setRowData",x[L],x);c.closeAfterEdit&&hideModal("#"+n.themodal,{gb:"#gbox_"+t,jqm:b.jqModal,onClose:c.onClose})}if(a.isFunction(c.afterComplete)){B=ja;setTimeout(function(){c.afterComplete(B,x,a("#"+q));B=null},500)}}c.processing=false;if(c.checkOnSubmit||c.checkOnUpdate){a("#"+q).data("disabled",false);if(c._savedData[m.p.id+"_id"]!="_empty")for(var la in c._savedData)if(x[la])c._savedData[la]=x[la]}a("#sData","#"+s+"_2").removeClass("ui-state-active");try{a(":input:visible","#"+q)[0].focus()}catch(fa){}},
|
215
|
+
error:function(ja,Z,la){a("#FormError>td","#"+s).html(Z+" : "+la);a("#FormError","#"+s).show();c.processing=false;a("#"+q).data("disabled",false);a("#sData","#"+s+"_2").removeClass("ui-state-active")}},a.jgrid.ajaxOptions,c.ajaxEditOptions);if(!P.url&&!c.useDataProxy)if(a.isFunction(m.p.dataProxy))c.useDataProxy=true;else{C[0]=false;C[1]+=" "+a.jgrid.errors.nourl}if(C[0])c.useDataProxy?m.p.dataProxy.call(m,P,"set_"+m.p.id):a.ajax(P)}if(C[0]===false){a("#FormError>td","#"+s).html(C[1]);a("#FormError",
|
216
216
|
"#"+s).show()}}function d(C,P){var U=false,L;for(L in C)if(C[L]!=P[L]){U=true;break}return U}function k(){var C=true;a("#FormError","#"+s).hide();if(c.checkOnUpdate){x={};G={};f();I=a.extend({},x,G);if(R=d(I,c._savedData)){a("#"+q).data("disabled",true);a(".confirm","#"+n.themodal).show();C=false}}return C}function l(C,P){C===0?a("#pData","#"+s+"_2").addClass("ui-state-disabled"):a("#pData","#"+s+"_2").removeClass("ui-state-disabled");C==P?a("#nData","#"+s+"_2").addClass("ui-state-disabled"):a("#nData",
|
217
|
-
"#"+s+"_2").removeClass("ui-state-disabled")}function o(){var C=a(m).jqGrid("getDataIDs"),P=a("#id_g","#"+s).val();return[a.inArray(P,C),C]}var m=this;if(m.grid&&e){var
|
218
|
-
false,B=null,y=1,A=0,x,G,I,R;if(e=="new"){e="_empty";b.caption=b.addCaption}else b.caption=b.editCaption;b.recreateForm===true&&a("#"+n.themodal).html()!=null&&a("#"+n.themodal).remove();var
|
217
|
+
"#"+s+"_2").removeClass("ui-state-disabled")}function o(){var C=a(m).jqGrid("getDataIDs"),P=a("#id_g","#"+s).val();return[a.inArray(P,C),C]}var m=this;if(m.grid&&e){var t=m.p.id,q="FrmGrid_"+t,s="TblGrid_"+t,n={themodal:"editmod"+t,modalhead:"edithd"+t,modalcontent:"editcnt"+t,scrollelm:q},p=a.isFunction(c.beforeShowForm)?c.beforeShowForm:false,v=a.isFunction(c.afterShowForm)?c.afterShowForm:false,z=a.isFunction(c.beforeInitData)?c.beforeInitData:false,E=a.isFunction(c.onInitializeForm)?c.onInitializeForm:
|
218
|
+
false,B=null,y=1,A=0,x,G,I,R;if(e=="new"){e="_empty";b.caption=b.addCaption}else b.caption=b.editCaption;b.recreateForm===true&&a("#"+n.themodal).html()!=null&&a("#"+n.themodal).remove();var T=true;if(b.checkOnUpdate&&b.jqModal&&!b.modal)T=false;if(a("#"+n.themodal).html()!=null){a(".ui-jqdialog-title","#"+n.modalhead).html(b.caption);a("#FormError","#"+s).hide();if(c.topinfo){a(".topinfo","#"+s+"_2").html(c.topinfo);a(".tinfo","#"+s+"_2").show()}else a(".tinfo","#"+s+"_2").hide();if(c.bottominfo){a(".bottominfo",
|
219
219
|
"#"+s+"_2").html(c.bottominfo);a(".binfo","#"+s+"_2").show()}else a(".binfo","#"+s+"_2").hide();z&&z(a("#"+q));g(e,m,q);e=="_empty"||!c.viewPagerButtons?a("#pData, #nData","#"+s+"_2").hide():a("#pData, #nData","#"+s+"_2").show();if(c.processing===true){c.processing=false;a("#sData","#"+s+"_2").removeClass("ui-state-active")}if(a("#"+q).data("disabled")===true){a(".confirm","#"+n.themodal).hide();a("#"+q).data("disabled",false)}p&&p(a("#"+q));a("#"+n.themodal).data("onClose",c.onClose);viewModal("#"+
|
220
|
-
n.themodal,{gbox:"#gbox_"+
|
221
|
-
|
222
|
-
"pData";var
|
223
|
-
b.bCancel+"</a>";
|
224
|
-
function(C,P){a("tbody",
|
225
|
-
true)return false;if(c.savekey[0]===true&&C.which==c.savekey[1])if(P.tagName!="TEXTAREA"){a("#sData","#"+s+"_2").trigger("click");return false}if(C.which===27){if(!k())return false;
|
226
|
-
"#"+n.themodal).removeClass("jqmClose");a("a.ui-jqdialog-titlebar-close","#"+n.themodal).unbind("click").click(function(){if(!k())return false;hideModal("#"+n.themodal,{gb:"#gbox_"+
|
227
|
-
b.saveicon[2]+"'></span>");if(b.closeicon[0]===true)a("#cData","#"+s+"_2").addClass(b.closeicon[1]=="right"?"fm-button-icon-right":"fm-button-icon-left").append("<span class='ui-icon "+b.closeicon[2]+"'></span>");if(c.checkOnSubmit||c.checkOnUpdate){
|
228
|
-
|
229
|
-
"'>"+b.saveData+"<br/><br/>"+
|
230
|
-
n.themodal,{gb:"#gbox_"+
|
220
|
+
n.themodal,{gbox:"#gbox_"+t,jqm:b.jqModal,jqM:false,overlay:b.overlay,modal:b.modal});T||a(".jqmOverlay").click(function(){if(!k())return false;hideModal("#"+n.themodal,{gb:"#gbox_"+t,jqm:b.jqModal,onClose:c.onClose});return false});v&&v(a("#"+q))}else{a(m.p.colModel).each(function(){var C=this.formoptions;y=Math.max(y,C?C.colpos||0:0);A=Math.max(A,C?C.rowpos||0:0)});var da=isNaN(b.dataheight)?b.dataheight:b.dataheight+"px";da=a("<form name='FormPost' id='"+q+"' class='FormGrid' onSubmit='return false;' style='width:100%;overflow:auto;position:relative;height:"+
|
221
|
+
da+";'></form>").data("disabled",false);var ea=a("<table id='"+s+"' class='EditTable' cellspacing='0' cellpading='0' border='0'><tbody></tbody></table>");a(da).append(ea);var ba=a("<tr id='FormError' style='display:none'><td class='ui-state-error' colspan='"+y*2+"'></td></tr>");ba[0].rp=0;a(ea).append(ba);ba=a("<tr style='display:none' class='tinfo'><td class='topinfo' colspan='"+y*2+"'>"+c.topinfo+"</td></tr>");ba[0].rp=0;a(ea).append(ba);z&&z(a("#"+q));ba=(z=m.p.direction=="rtl"?true:false)?"nData":
|
222
|
+
"pData";var sa=z?"pData":"nData";h(e,m,ea,y);ba="<a href='javascript:void(0)' id='"+ba+"' class='fm-button ui-state-default ui-corner-left'><span class='ui-icon ui-icon-triangle-1-w'></span></div>";sa="<a href='javascript:void(0)' id='"+sa+"' class='fm-button ui-state-default ui-corner-right'><span class='ui-icon ui-icon-triangle-1-e'></span></div>";var ya="<a href='javascript:void(0)' id='sData' class='fm-button ui-state-default ui-corner-all'>"+b.bSubmit+"</a>",Da="<a href='javascript:void(0)' id='cData' class='fm-button ui-state-default ui-corner-all'>"+
|
223
|
+
b.bCancel+"</a>";ba="<table border='0' class='EditTable' id='"+s+"_2'><tbody><tr id='Act_Buttons'><td class='navButton ui-widget-content'>"+(z?sa+ba:ba+sa)+"</td><td class='EditButton ui-widget-content'>"+ya+Da+"</td></tr>";ba+="<tr style='display:none' class='binfo'><td class='bottominfo' colspan='2'>"+c.bottominfo+"</td></tr>";ba+="</tbody></table>";if(A>0){var ma=[];a.each(a(ea)[0].rows,function(C,P){ma[C]=P});ma.sort(function(C,P){if(C.rp>P.rp)return 1;if(C.rp<P.rp)return-1;return 0});a.each(ma,
|
224
|
+
function(C,P){a("tbody",ea).append(P)})}b.gbox="#gbox_"+t;var Ea=false;if(b.closeOnEscape===true){b.closeOnEscape=false;Ea=true}da=a("<span></span>").append(da).append(ba);createModal(n,da,b,"#gview_"+m.p.id,a("#gbox_"+m.p.id)[0]);if(z){a("#pData, #nData","#"+s+"_2").css("float","right");a(".EditButton","#"+s+"_2").css("text-align","left")}c.topinfo&&a(".tinfo","#"+s+"_2").show();c.bottominfo&&a(".binfo","#"+s+"_2").show();ba=da=null;a("#"+n.themodal).keydown(function(C){var P=C.target;if(a("#"+q).data("disabled")===
|
225
|
+
true)return false;if(c.savekey[0]===true&&C.which==c.savekey[1])if(P.tagName!="TEXTAREA"){a("#sData","#"+s+"_2").trigger("click");return false}if(C.which===27){if(!k())return false;Ea&&hideModal(this,{gb:b.gbox,jqm:b.jqModal,onClose:c.onClose});return false}if(c.navkeys[0]===true){if(a("#id_g","#"+s).val()=="_empty")return true;if(C.which==c.navkeys[1]){a("#pData","#"+s+"_2").trigger("click");return false}if(C.which==c.navkeys[2]){a("#nData","#"+s+"_2").trigger("click");return false}}});if(b.checkOnUpdate){a("a.ui-jqdialog-titlebar-close span",
|
226
|
+
"#"+n.themodal).removeClass("jqmClose");a("a.ui-jqdialog-titlebar-close","#"+n.themodal).unbind("click").click(function(){if(!k())return false;hideModal("#"+n.themodal,{gb:"#gbox_"+t,jqm:b.jqModal,onClose:c.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);if(b.saveicon[0]===true)a("#sData","#"+s+"_2").addClass(b.saveicon[1]=="right"?"fm-button-icon-right":"fm-button-icon-left").append("<span class='ui-icon "+
|
227
|
+
b.saveicon[2]+"'></span>");if(b.closeicon[0]===true)a("#cData","#"+s+"_2").addClass(b.closeicon[1]=="right"?"fm-button-icon-right":"fm-button-icon-left").append("<span class='ui-icon "+b.closeicon[2]+"'></span>");if(c.checkOnSubmit||c.checkOnUpdate){ya="<a href='javascript:void(0)' id='sNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+b.bYes+"</a>";sa="<a href='javascript:void(0)' id='nNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+b.bNo+"</a>";
|
228
|
+
Da="<a href='javascript:void(0)' id='cNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+b.bExit+"</a>";da=b.zIndex||999;da++;a("<div class='ui-widget-overlay jqgrid-overlay confirm' style='z-index:"+da+";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>':"")+"</div><div class='confirm ui-widget-content ui-jqconfirm' style='z-index:"+(da+1)+
|
229
|
+
"'>"+b.saveData+"<br/><br/>"+ya+sa+Da+"</div>").insertAfter("#"+q);a("#sNew","#"+n.themodal).click(function(){j();a("#"+q).data("disabled",false);a(".confirm","#"+n.themodal).hide();return false});a("#nNew","#"+n.themodal).click(function(){a(".confirm","#"+n.themodal).hide();a("#"+q).data("disabled",false);setTimeout(function(){a(":input","#"+q)[0].focus()},0);return false});a("#cNew","#"+n.themodal).click(function(){a(".confirm","#"+n.themodal).hide();a("#"+q).data("disabled",false);hideModal("#"+
|
230
|
+
n.themodal,{gb:"#gbox_"+t,jqm:b.jqModal,onClose:c.onClose});return false})}E&&E(a("#"+q));e=="_empty"||!c.viewPagerButtons?a("#pData,#nData","#"+s+"_2").hide():a("#pData,#nData","#"+s+"_2").show();p&&p(a("#"+q));a("#"+n.themodal).data("onClose",c.onClose);viewModal("#"+n.themodal,{gbox:"#gbox_"+t,jqm:b.jqModal,overlay:b.overlay,modal:b.modal});T||a(".jqmOverlay").click(function(){if(!k())return false;hideModal("#"+n.themodal,{gb:"#gbox_"+t,jqm:b.jqModal,onClose:c.onClose});return false});v&&v(a("#"+
|
231
231
|
q));a(".fm-button","#"+n.themodal).hover(function(){a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")});a("#sData","#"+s+"_2").click(function(){x={};G={};a("#FormError","#"+s).hide();f();if(x[m.p.id+"_id"]=="_empty")j();else if(b.checkOnSubmit===true){I=a.extend({},x,G);if(R=d(I,c._savedData)){a("#"+q).data("disabled",true);a(".confirm","#"+n.themodal).show()}else j()}else j();return false});a("#cData","#"+s+"_2").click(function(){if(!k())return false;hideModal("#"+
|
232
|
-
n.themodal,{gb:"#gbox_"+
|
232
|
+
n.themodal,{gb:"#gbox_"+t,jqm:b.jqModal,onClose:c.onClose});return false});a("#nData","#"+s+"_2").click(function(){if(!k())return false;a("#FormError","#"+s).hide();var C=o();C[0]=parseInt(C[0],10);if(C[0]!=-1&&C[1][C[0]+1]){a.isFunction(b.onclickPgButtons)&&b.onclickPgButtons("next",a("#"+q),C[1][C[0]]);g(C[1][C[0]+1],m,q);a(m).jqGrid("setSelection",C[1][C[0]+1]);a.isFunction(b.afterclickPgButtons)&&b.afterclickPgButtons("next",a("#"+q),C[1][C[0]+1]);l(C[0]+1,C[1].length-1)}return false});a("#pData",
|
233
233
|
"#"+s+"_2").click(function(){if(!k())return false;a("#FormError","#"+s).hide();var C=o();if(C[0]!=-1&&C[1][C[0]-1]){a.isFunction(b.onclickPgButtons)&&b.onclickPgButtons("prev",a("#"+q),C[1][C[0]]);g(C[1][C[0]-1],m,q);a(m).jqGrid("setSelection",C[1][C[0]-1]);a.isFunction(b.afterclickPgButtons)&&b.afterclickPgButtons("prev",a("#"+q),C[1][C[0]-1]);l(C[0]-1,C[1].length-1)}return false})}p=o();l(p[0],p[1].length-1)}})},viewGridRow:function(e,b){b=a.extend({top:0,left:0,width:0,height:"auto",dataheight:"auto",
|
234
|
-
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","#"+
|
235
|
-
"'> </td><td class='DataTD form-view-data ui-helper-reset ui-widget-content'> </td>",C="",P=["integer","number","currency"],U=0,L=0,W,M,X,
|
236
|
-
P)!==-1)U=Math.max(U,parseInt(this.width,10));else L=Math.max(L,parseInt(this.width,10))});W=U!==0?U:L!==0?L:0;
|
237
|
-
Z+")",G.rows[
|
238
|
-
"trv_"+
|
239
|
-
x+"'/></td></tr>");x[0].rp=
|
240
|
-
"#"+m).html(
|
241
|
-
k.p.id,o="ViewGrid_"+l,m="ViewTbl_"+l,
|
242
|
-
x?x.rowpos||0:0)});var n=isNaN(b.dataheight)?b.dataheight:b.dataheight+"px",p=a("<form name='FormPost' id='"+o+"' class='FormGrid' style='width:100%;overflow:auto;position:relative;height:"+n+";'></form>"),v=a("<table id='"+m+"' class='EditTable' cellspacing='1' cellpading='2' border='0' style='table-layout:fixed'><tbody></tbody></table>");a(p).append(v);h(e,k,v,q);n=k.p.direction=="rtl"?true:false;var z="<a href='javascript:void(0)' id='"+(n?"nData":"pData")+"' class='fm-button ui-state-default ui-corner-left'><span class='ui-icon ui-icon-triangle-1-w'></span></a>",
|
234
|
+
modal:false,overlay:10,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","#"+t.modalhead).focus()},0)}function h(x,G,I,R){for(var T,da,ea,ba=0,sa,ya,Da=[],ma=false,Ea="<td class='CaptionTD form-view-label ui-widget-content' width='"+
|
235
|
+
b.labelswidth+"'> </td><td class='DataTD form-view-data ui-helper-reset ui-widget-content'> </td>",C="",P=["integer","number","currency"],U=0,L=0,W,M,X,ja=1;ja<=R;ja++)C+=ja==1?Ea:"<td class='CaptionTD form-view-label ui-widget-content'> </td><td class='DataTD form-view-data ui-widget-content'> </td>";a(G.p.colModel).each(function(){da=this.editrules&&this.editrules.edithidden===true?false:this.hidden===true?true:false;if(!da&&this.align==="right")if(this.formatter&&a.inArray(this.formatter,
|
236
|
+
P)!==-1)U=Math.max(U,parseInt(this.width,10));else L=Math.max(L,parseInt(this.width,10))});W=U!==0?U:L!==0?L:0;ma=a(G).jqGrid("getInd",x);a(G.p.colModel).each(function(Z){T=this.name;M=false;ya=(da=this.editrules&&this.editrules.edithidden===true?false:this.hidden===true?true:false)?"style='display:none'":"";X=typeof this.viewable!="boolean"?true:this.viewable;if(T!=="cb"&&T!=="subgrid"&&T!=="rn"&&X){sa=ma===false?"":T==G.p.ExpandColumn&&G.p.treeGrid===true?a("td:eq("+Z+")",G.rows[ma]).text():a("td:eq("+
|
237
|
+
Z+")",G.rows[ma]).html();M=this.align==="right"&&W!==0?true:false;a.extend({},this.editoptions||{},{id:T,name:T});var la=a.extend({},{rowabove:false,rowcontent:""},this.formoptions||{}),fa=parseInt(la.rowpos,10)||ba+1,va=parseInt((parseInt(la.colpos,10)||1)*2,10);if(la.rowabove){var ca=a("<tr><td class='contentinfo' colspan='"+R*2+"'>"+la.rowcontent+"</td></tr>");a(I).append(ca);ca[0].rp=fa}ea=a(I).find("tr[rowpos="+fa+"]");if(ea.length===0){ea=a("<tr "+ya+" rowpos='"+fa+"'></tr>").addClass("FormData").attr("id",
|
238
|
+
"trv_"+T);a(ea).append(C);a(I).append(ea);ea[0].rp=fa}a("td:eq("+(va-2)+")",ea[0]).html("<b>"+(typeof la.label==="undefined"?G.p.colNames[Z]:la.label)+"</b>");a("td:eq("+(va-1)+")",ea[0]).append("<span>"+sa+"</span>").attr("id","v_"+T);M&&a("td:eq("+(va-1)+") span",ea[0]).css({"text-align":"right",width:W+"px"});Da[ba]=Z;ba++}});if(ba>0){x=a("<tr class='FormData' style='display:none'><td class='CaptionTD'></td><td colspan='"+(R*2-1)+"' class='DataTD'><input class='FormElement' id='id_g' type='text' name='id' value='"+
|
239
|
+
x+"'/></td></tr>");x[0].rp=ba+99;a(I).append(x)}return Da}function g(x,G){var I,R,T=0,da,ea;if(ea=a(G).jqGrid("getInd",x,true)){a("td",ea).each(function(ba){I=G.p.colModel[ba].name;R=G.p.colModel[ba].editrules&&G.p.colModel[ba].editrules.edithidden===true?false:G.p.colModel[ba].hidden===true?true:false;if(I!=="cb"&&I!=="subgrid"&&I!=="rn"){da=I==G.p.ExpandColumn&&G.p.treeGrid===true?a(this).text():a(this).html();a.extend({},G.p.colModel[ba].editoptions||{});I=a.jgrid.jqID("v_"+I);a("#"+I+" span",
|
240
|
+
"#"+m).html(da);R&&a("#"+I,"#"+m).parents("tr:first").hide();T++}});T>0&&a("#id_g","#"+m).val(x)}}function j(x,G){x===0?a("#pData","#"+m+"_2").addClass("ui-state-disabled"):a("#pData","#"+m+"_2").removeClass("ui-state-disabled");x==G?a("#nData","#"+m+"_2").addClass("ui-state-disabled"):a("#nData","#"+m+"_2").removeClass("ui-state-disabled")}function d(){var x=a(k).jqGrid("getDataIDs"),G=a("#id_g","#"+m).val();return[a.inArray(G,x),x]}var k=this;if(k.grid&&e){if(!b.imgpath)b.imgpath=k.p.imgpath;var l=
|
241
|
+
k.p.id,o="ViewGrid_"+l,m="ViewTbl_"+l,t={themodal:"viewmod"+l,modalhead:"viewhd"+l,modalcontent:"viewcnt"+l,scrollelm:o},q=1,s=0;if(a("#"+t.themodal).html()!=null){a(".ui-jqdialog-title","#"+t.modalhead).html(b.caption);a("#FormError","#"+m).hide();g(e,k);a.isFunction(b.beforeShowForm)&&b.beforeShowForm(a("#"+o));viewModal("#"+t.themodal,{gbox:"#gbox_"+l,jqm:b.jqModal,jqM:false,overlay:b.overlay,modal:b.modal});f()}else{a(k.p.colModel).each(function(){var x=this.formoptions;q=Math.max(q,x?x.colpos||
|
242
|
+
0:0);s=Math.max(s,x?x.rowpos||0:0)});var n=isNaN(b.dataheight)?b.dataheight:b.dataheight+"px",p=a("<form name='FormPost' id='"+o+"' class='FormGrid' style='width:100%;overflow:auto;position:relative;height:"+n+";'></form>"),v=a("<table id='"+m+"' class='EditTable' cellspacing='1' cellpading='2' border='0' style='table-layout:fixed'><tbody></tbody></table>");a(p).append(v);h(e,k,v,q);n=k.p.direction=="rtl"?true:false;var z="<a href='javascript:void(0)' id='"+(n?"nData":"pData")+"' class='fm-button ui-state-default ui-corner-left'><span class='ui-icon ui-icon-triangle-1-w'></span></a>",
|
243
243
|
E="<a href='javascript:void(0)' id='"+(n?"pData":"nData")+"' class='fm-button ui-state-default ui-corner-right'><span class='ui-icon ui-icon-triangle-1-e'></span></a>",B="<a href='javascript:void(0)' id='cData' class='fm-button ui-state-default ui-corner-all'>"+b.bClose+"</a>";if(s>0){var y=[];a.each(a(v)[0].rows,function(x,G){y[x]=G});y.sort(function(x,G){if(x.rp>G.rp)return 1;if(x.rp<G.rp)return-1;return 0});a.each(y,function(x,G){a("tbody",v).append(G)})}b.gbox="#gbox_"+l;var A=false;if(b.closeOnEscape===
|
244
|
-
true){b.closeOnEscape=false;A=true}p=a("<span></span>").append(p).append("<table border='0' class='EditTable' id='"+m+"_2'><tbody><tr id='Act_Buttons'><td class='navButton ui-widget-content' width='"+b.labelswidth+"'>"+(n?E+z:z+E)+"</td><td class='EditButton ui-widget-content'>"+B+"</td></tr></tbody></table>");createModal(
|
245
|
-
a("#pData, #nData","#"+m+"_2").hide();p=null;a("#"+
|
246
|
-
"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("#"+o));viewModal("#"+
|
244
|
+
true){b.closeOnEscape=false;A=true}p=a("<span></span>").append(p).append("<table border='0' class='EditTable' id='"+m+"_2'><tbody><tr id='Act_Buttons'><td class='navButton ui-widget-content' width='"+b.labelswidth+"'>"+(n?E+z:z+E)+"</td><td class='EditButton ui-widget-content'>"+B+"</td></tr></tbody></table>");createModal(t,p,b,"#gview_"+k.p.id,a("#gview_"+k.p.id)[0]);if(n){a("#pData, #nData","#"+m+"_2").css("float","right");a(".EditButton","#"+m+"_2").css("text-align","left")}b.viewPagerButtons||
|
245
|
+
a("#pData, #nData","#"+m+"_2").hide();p=null;a("#"+t.themodal).keydown(function(x){if(x.which===27){A&&hideModal(this,{gb:b.gbox,jqm:b.jqModal,onClose:b.onClose});return false}if(b.navkeys[0]===true){if(x.which===b.navkeys[1]){a("#pData","#"+m+"_2").trigger("click");return false}if(x.which===b.navkeys[2]){a("#nData","#"+m+"_2").trigger("click");return false}}});b.closeicon=a.extend([true,"left","ui-icon-close"],b.closeicon);if(b.closeicon[0]===true)a("#cData","#"+m+"_2").addClass(b.closeicon[1]==
|
246
|
+
"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("#"+o));viewModal("#"+t.themodal,{gbox:"#gbox_"+l,jqm:b.jqModal,modal:b.modal});a(".fm-button:not(.ui-state-disabled)","#"+m+"_2").hover(function(){a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")});f();a("#cData","#"+m+"_2").click(function(){hideModal("#"+t.themodal,{gb:"#gbox_"+l,jqm:b.jqModal,onClose:b.onClose});
|
247
247
|
return false});a("#nData","#"+m+"_2").click(function(){a("#FormError","#"+m).hide();var x=d();x[0]=parseInt(x[0],10);if(x[0]!=-1&&x[1][x[0]+1]){a.isFunction(b.onclickPgButtons)&&b.onclickPgButtons("next",a("#"+o),x[1][x[0]]);g(x[1][x[0]+1],k);a(k).jqGrid("setSelection",x[1][x[0]+1]);a.isFunction(b.afterclickPgButtons)&&b.afterclickPgButtons("next",a("#"+o),x[1][x[0]+1]);j(x[0]+1,x[1].length-1)}f();return false});a("#pData","#"+m+"_2").click(function(){a("#FormError","#"+m).hide();var x=d();if(x[0]!=
|
248
|
-
-1&&x[1][x[0]-1]){a.isFunction(b.onclickPgButtons)&&b.onclickPgButtons("prev",a("#"+o),x[1][x[0]]);g(x[1][x[0]-1],k);a(k).jqGrid("setSelection",x[1][x[0]-1]);a.isFunction(b.afterclickPgButtons)&&b.afterclickPgButtons("prev",a("#"+o),x[1][x[0]-1]);j(x[0]-1,x[1].length-1)}f();return false})}n=d();j(n[0],n[1].length-1)}})},delGridRow:function(e,b){c=b=a.extend({top:0,left:0,width:240,height:"auto",dataheight:"auto",modal:false,drag:true,resize:true,url:"",mtype:"POST",reloadAfterSubmit:true,
|
249
|
-
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 h=typeof b.beforeShowForm==="function"?true:false,g=typeof b.afterShowForm==="function"?true:false,j=f.p.id,d={},k="DelTbl_"+j,l,o,m,
|
250
|
-
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(c.processing===true){c.processing=false;a("#dData","#"+k).removeClass("ui-state-active")}h&&b.beforeShowForm(a("#"+k));viewModal("#"+q.themodal,{gbox:"#gbox_"+j,jqm:b.jqModal,jqM:false,modal:b.modal})}else{var s=isNaN(b.dataheight)?b.dataheight:b.dataheight+"px";s="<div id='"+k+"' class='formdata' style='width:100%;overflow:auto;position:relative;height:"+
|
248
|
+
-1&&x[1][x[0]-1]){a.isFunction(b.onclickPgButtons)&&b.onclickPgButtons("prev",a("#"+o),x[1][x[0]]);g(x[1][x[0]-1],k);a(k).jqGrid("setSelection",x[1][x[0]-1]);a.isFunction(b.afterclickPgButtons)&&b.afterclickPgButtons("prev",a("#"+o),x[1][x[0]-1]);j(x[0]-1,x[1].length-1)}f();return false})}n=d();j(n[0],n[1].length-1)}})},delGridRow:function(e,b){c=b=a.extend({top:0,left:0,width:240,height:"auto",dataheight:"auto",modal:false,overlay:10,drag:true,resize:true,url:"",mtype:"POST",reloadAfterSubmit:true,
|
249
|
+
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 h=typeof b.beforeShowForm==="function"?true:false,g=typeof b.afterShowForm==="function"?true:false,j=f.p.id,d={},k="DelTbl_"+j,l,o,m,t,q={themodal:"delmod"+j,modalhead:"delhd"+
|
250
|
+
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(c.processing===true){c.processing=false;a("#dData","#"+k).removeClass("ui-state-active")}h&&b.beforeShowForm(a("#"+k));viewModal("#"+q.themodal,{gbox:"#gbox_"+j,jqm:b.jqModal,jqM:false,overlay:b.overlay,modal:b.modal})}else{var s=isNaN(b.dataheight)?b.dataheight:b.dataheight+"px";s="<div id='"+k+"' class='formdata' style='width:100%;overflow:auto;position:relative;height:"+
|
251
251
|
s+";'>";s+="<table class='DelTable'><tbody>";s+="<tr id='DelError' style='display:none'><td class='ui-state-error'></td></tr>";s+="<tr id='DelData' style='display:none'><td >"+e+"</td></tr>";s+='<tr><td class="delmsg" style="white-space:pre;">'+b.msg+"</td></tr><tr><td > </td></tr>";s+="</tbody></table></div>";s+="<table cellspacing='0' cellpadding='0' border='0' class='EditTable' id='"+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'>"+
|
252
252
|
("<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,s,b,"#gview_"+f.p.id,a("#gview_"+f.p.id)[0]);a(".fm-button","#"+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"],
|
253
253
|
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]=="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 n=[true,""];
|
254
|
-
d={};var p=a("#DelData>td","#"+k).text();if(typeof b.onclickSubmit==="function")d=b.onclickSubmit(c,p)||{};if(typeof b.beforeSubmit==="function")n=b.beforeSubmit(p);if(n[0]&&!c.processing){c.processing=true;a(this).addClass("ui-state-active");m=f.p.prmNames;l=a.extend({},c.delData,d);
|
254
|
+
d={};var p=a("#DelData>td","#"+k).text();if(typeof b.onclickSubmit==="function")d=b.onclickSubmit(c,p)||{};if(typeof b.beforeSubmit==="function")n=b.beforeSubmit(p);if(n[0]&&!c.processing){c.processing=true;a(this).addClass("ui-state-active");m=f.p.prmNames;l=a.extend({},c.delData,d);t=m.oper;l[t]=m.deloper;o=m.id;l[o]=p;if(f.p.restful){b.mtype="DELETE";c.url=f.p.url+"/"+p}var v=a.extend({url:c.url?c.url:a(f).jqGrid("getGridParam","editurl"),type:b.mtype,data:a.isFunction(b.serializeDelData)?b.serializeDelData(l):
|
255
255
|
l,complete:function(z,E){if(E!="success"){n[0]=false;n[1]=a.isFunction(c.errorTextFormat)?c.errorTextFormat(z):E+" Status: '"+z.statusText+"'. Error code: "+z.status}else if(typeof c.afterSubmit==="function")n=c.afterSubmit(z,l);if(n[0]===false){a("#DelError>td","#"+k).html(n[1]);a("#DelError","#"+k).show()}else{if(c.reloadAfterSubmit&&f.p.datatype!="local")a(f).trigger("reloadGrid");else{var B=[];B=p.split(",");if(f.p.treeGrid===true)try{a(f).jqGrid("delTreeNode",B[0])}catch(y){}else for(var A=0;A<
|
256
256
|
B.length;A++)a(f).jqGrid("delRowData",B[A]);f.p.selrow=null;f.p.selarrrow=[]}a.isFunction(c.afterComplete)&&setTimeout(function(){c.afterComplete(z,p)},500)}c.processing=false;a("#dData","#"+k+"_2").removeClass("ui-state-active");n[0]&&hideModal("#"+q.themodal,{gb:"#gbox_"+j,jqm:b.jqModal,onClose:c.onClose})},error:function(z,E,B){a("#DelError>td","#"+k).html(E+" : "+B);a("#DelError","#"+k).show();c.processing=false;a("#dData","#"+k+"_2").removeClass("ui-state-active")}},a.jgrid.ajaxOptions,b.ajaxDelOptions);
|
257
257
|
if(!v.url&&!c.useDataProxy)if(a.isFunction(f.p.dataProxy))c.useDataProxy=true;else{n[0]=false;n[1]+=" "+a.jgrid.errors.nourl}if(n[0])c.useDataProxy?f.p.dataProxy.call(f,v,"del_"+f.p.id):a.ajax(v)}if(n[0]===false){a("#DelError>td","#"+k).html(n[1]);a("#DelError","#"+k).show()}return false});a("#eData","#"+k+"_2").click(function(){hideModal("#"+q.themodal,{gb:"#gbox_"+j,jqm:b.jqModal,onClose:c.onClose});return false});h&&b.beforeShowForm(a("#"+k));viewModal("#"+q.themodal,{gbox:"#gbox_"+j,jqm:b.jqModal,
|
258
|
-
modal:b.modal})}g&&b.afterShowForm(a("#"+k));b.closeOnEscape===true&&setTimeout(function(){a(".ui-jqdialog-titlebar-close","#"+q.modalhead).focus()},0)}})},navGrid:function(e,b,f,h,g,j,d){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",refresh:true,refreshicon:"ui-icon-refresh",refreshstate:"firstpage",view:false,viewicon:"ui-icon-document",position:"left",closeOnEscape:true,
|
259
|
-
afterRefresh:null,cloneToTop:false},a.jgrid.nav,b||{});return this.each(function(){var k={themodal:"alertmod",modalhead:"alerthd",modalcontent:"alertcnt"},l=this,o,m,
|
258
|
+
overlay:b.overlay,modal:b.modal})}g&&b.afterShowForm(a("#"+k));b.closeOnEscape===true&&setTimeout(function(){a(".ui-jqdialog-titlebar-close","#"+q.modalhead).focus()},0)}})},navGrid:function(e,b,f,h,g,j,d){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",refresh:true,refreshicon:"ui-icon-refresh",refreshstate:"firstpage",view:false,viewicon:"ui-icon-document",position:"left",closeOnEscape:true,
|
259
|
+
beforeRefresh:null,afterRefresh:null,cloneToTop:false},a.jgrid.nav,b||{});return this.each(function(){var k={themodal:"alertmod",modalhead:"alerthd",modalcontent:"alertcnt"},l=this,o,m,t;if(!(!l.grid||typeof e!="string")){if(a("#"+k.themodal).html()===null){if(typeof window.innerWidth!="undefined"){o=window.innerWidth;m=window.innerHeight}else if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!==0){o=document.documentElement.clientWidth;
|
260
260
|
m=document.documentElement.clientHeight}else{o=1024;m=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:m/2-25,left:o/2-100,width:200,height:"auto",closeOnEscape:b.closeOnEscape},"","",true)}o=1;if(b.cloneToTop&&l.p.toppager)o=2;for(m=0;m<o;m++){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>"),
|
261
|
-
s,n;if(m===0){s=e;n=l.p.id;if(s==l.p.toppager){n+="_top";o=1}}else{s=l.p.toppager;n=l.p.id+"_top"}l.p.direction=="rtl"&&a(q).attr("dir","rtl").css("float","right");if(b.add){h=h||{};
|
262
|
-
a(l).jqGrid("editGridRow","new",h));return false}).hover(function(){a(this).hasClass("ui-state-disabled")||a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")});
|
263
|
-
l.p.selrow;if(p)typeof b.editfunc=="function"?b.editfunc(p):a(l).jqGrid("editGridRow",p,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")});
|
264
|
-
"</div>");a("tr",q).append(
|
265
|
-
g=g||{};a(
|
266
|
-
a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")});
|
267
|
-
n}).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")});
|
261
|
+
s,n;if(m===0){s=e;n=l.p.id;if(s==l.p.toppager){n+="_top";o=1}}else{s=l.p.toppager;n=l.p.id+"_top"}l.p.direction=="rtl"&&a(q).attr("dir","rtl").css("float","right");if(b.add){h=h||{};t=a("<td class='ui-pg-button ui-corner-all'></td>");a(t).append("<div class='ui-pg-div'><span class='ui-icon "+b.addicon+"'></span>"+b.addtext+"</div>");a("tr",q).append(t);a(t,q).attr({title:b.addtitle||"",id:h.id||"add_"+n}).click(function(){a(this).hasClass("ui-state-disabled")||(typeof b.addfunc=="function"?b.addfunc():
|
262
|
+
a(l).jqGrid("editGridRow","new",h));return false}).hover(function(){a(this).hasClass("ui-state-disabled")||a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")});t=null}if(b.edit){t=a("<td class='ui-pg-button ui-corner-all'></td>");f=f||{};a(t).append("<div class='ui-pg-div'><span class='ui-icon "+b.editicon+"'></span>"+b.edittext+"</div>");a("tr",q).append(t);a(t,q).attr({title:b.edittitle||"",id:f.id||"edit_"+n}).click(function(){if(!a(this).hasClass("ui-state-disabled")){var p=
|
263
|
+
l.p.selrow;if(p)typeof b.editfunc=="function"?b.editfunc(p):a(l).jqGrid("editGridRow",p,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")});t=null}if(b.view){t=a("<td class='ui-pg-button ui-corner-all'></td>");d=d||{};a(t).append("<div class='ui-pg-div'><span class='ui-icon "+b.viewicon+"'></span>"+b.viewtext+
|
264
|
+
"</div>");a("tr",q).append(t);a(t,q).attr({title:b.viewtitle||"",id:d.id||"view_"+n}).click(function(){if(!a(this).hasClass("ui-state-disabled")){var p=l.p.selrow;if(p)a(l).jqGrid("viewGridRow",p,d);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")});t=null}if(b.del){t=a("<td class='ui-pg-button ui-corner-all'></td>");
|
265
|
+
g=g||{};a(t).append("<div class='ui-pg-div'><span class='ui-icon "+b.delicon+"'></span>"+b.deltext+"</div>");a("tr",q).append(t);a(t,q).attr({title:b.deltitle||"",id:g.id||"del_"+n}).click(function(){if(!a(this).hasClass("ui-state-disabled")){var p;if(l.p.multiselect){p=l.p.selarrrow;if(p.length===0)p=null}else p=l.p.selrow;if(p)"function"==typeof b.delfunc?b.delfunc(p):a(l).jqGrid("delGridRow",p,g);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")||
|
266
|
+
a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")});t=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){t=a("<td class='ui-pg-button ui-corner-all'></td>");j=j||{};a(t).append("<div class='ui-pg-div'><span class='ui-icon "+b.searchicon+"'></span>"+b.searchtext+"</div>");a("tr",q).append(t);a(t,q).attr({title:b.searchtitle||"",id:j.id||"search_"+
|
267
|
+
n}).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")});t=null}if(b.refresh){t=a("<td class='ui-pg-button ui-corner-all'></td>");a(t).append("<div class='ui-pg-div'><span class='ui-icon "+b.refreshicon+"'></span>"+b.refreshtext+"</div>");a("tr",q).append(t);a(t,q).attr({title:b.refreshtitle||"",id:"refresh_"+n}).click(function(){if(!a(this).hasClass("ui-state-disabled")){a.isFunction(b.beforeRefresh)&&
|
268
268
|
b.beforeRefresh();l.p.search=false;try{a("#fbox_"+l.p.id).searchFilter().reset({reload:false});a.isFunction(l.clearToolbar)&&l.clearToolbar(false)}catch(p){}switch(b.refreshstate){case "firstpage":a(l).trigger("reloadGrid",[{page:1}]);break;case "current":a(l).trigger("reloadGrid",[{current:true}])}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")});
|
269
|
-
|
269
|
+
t=null}t=a(".ui-jqgrid").css("font-size")||"11px";a("body").append("<div id='testpg2' class='ui-jqgrid ui-widget ui-widget-content' style='font-size:"+t+";visibility:hidden;' ></div>");t=a(q).clone().appendTo("#testpg2").width();a("#testpg2").remove();a(s+"_"+b.position,s).append(q);if(l.p._nvtd){if(t>l.p._nvtd[0]){a(s+"_"+b.position,s).width(t);l.p._nvtd[0]=t}l.p._nvtd[1]=t}q=t=t=null}}})},navButtonAdd:function(e,b){b=a.extend({caption:"newButton",title:"",buttonicon:"ui-icon-newwin",onClickButton:null,
|
270
270
|
position:"last",cursor:"pointer"},b||{});return this.each(function(){if(this.grid){if(e.indexOf("#")!==0)e="#"+e;var f=a(".navtable",e)[0],h=this;if(f){var g=a("<td></td>");b.buttonicon.toString().toUpperCase()=="NONE"?a(g).addClass("ui-pg-button ui-corner-all").append("<div class='ui-pg-div'>"+b.caption+"</div>"):a(g).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(g).attr("id",b.id);if(b.position==
|
271
271
|
"first")f.rows[0].cells.length===0?a("tr",f).append(g):a("tr td:eq(0)",f).before(g);else a("tr",f).append(g);a(g,f).attr("title",b.title||"").click(function(j){a(this).hasClass("ui-state-disabled")||a.isFunction(b.onClickButton)&&b.onClickButton.call(h,j);return false}).hover(function(){a(this).hasClass("ui-state-disabled")||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||
|
272
272
|
{});return this.each(function(){if(this.grid){if(e.indexOf("#")!==0)e="#"+e;var f=a(".navtable",e)[0];if(f){var h="<td class='ui-pg-button ui-state-disabled' style='width:4px;'><span class='"+b.sepclass+"'></span>"+b.sepcontent+"</td>";a("tr",f).append(h)}}})},GridToForm:function(e,b){return this.each(function(){if(this.grid){var f=a(this).jqGrid("getRowData",e);if(f)for(var h in f)a("[name="+h+"]",b).is("input:radio")||a("[name="+h+"]",b).is("input:checkbox")?a("[name="+h+"]",b).each(function(){a(this).val()==
|
273
273
|
f[h]?a(this).attr("checked","checked"):a(this).attr("checked","")}):a("[name="+h+"]",b).val(f[h])}})},FormToGrid:function(e,b,f,h){return this.each(function(){if(this.grid){f||(f="set");h||(h="first");var g=a(b).serializeArray(),j={};a.each(g,function(d,k){j[k.name]=k.value});if(f=="add")a(this).jqGrid("addRowData",e,j,h);else f=="set"&&a(this).jqGrid("setRowData",e,j)}})}})})(jQuery);
|
274
|
-
(function(a){a.jgrid.extend({editRow:function(c,e,b,f,h,g,j,d,k){return this.each(function(){var l=this,o,m,
|
274
|
+
(function(a){a.jgrid.extend({editRow:function(c,e,b,f,h,g,j,d,k){return this.each(function(){var l=this,o,m,t=0,q=null,s={},n,p;if(l.grid){n=a(l).jqGrid("getInd",c,true);if(n!==false)if((a(n).attr("editable")||"0")=="0"&&!a(n).hasClass("not-editable-row")){p=l.p.colModel;a("td",n).each(function(v){o=p[v].name;var z=l.p.treeGrid===true&&o==l.p.ExpandColumn;if(z)m=a("span:first",this).html();else try{m=a.unformat(this,{rowId:c,colModel:p[v]},v)}catch(E){m=a(this).html()}if(o!="cb"&&o!="subgrid"&&o!=
|
275
275
|
"rn"){if(l.p.autoencode)m=a.jgrid.htmlDecode(m);s[o]=m;if(p[v].editable===true){if(q===null)q=v;z?a("span:first",this).html(""):a(this).html("");var B=a.extend({},p[v].editoptions||{},{id:c+"_"+o,name:o});if(!p[v].edittype)p[v].edittype="text";B=createEl(p[v].edittype,B,m,true,a.extend({},a.jgrid.ajaxOptions,l.p.ajaxSelectOptions||{}));a(B).addClass("editable");z?a("span:first",this).append(B):a(this).append(B);p[v].edittype=="select"&&p[v].editoptions.multiple===true&&a.browser.msie&&a(B).width(a(B).width());
|
276
|
-
|
276
|
+
t++}}});if(t>0){s.id=c;l.p.savedRow.push(s);a(n).attr("editable","1");a("td:eq("+q+") input",n).focus();e===true&&a(n).bind("keydown",function(v){v.keyCode===27&&a(l).jqGrid("restoreRow",c,k);if(v.keyCode===13){if(v.target.tagName=="TEXTAREA")return true;a(l).jqGrid("saveRow",c,f,h,g,j,d,k);return false}v.stopPropagation()});a.isFunction(b)&&b.call(l,c)}}}})},saveRow:function(c,e,b,f,h,g,j){return this.each(function(){var d=this,k,l={},o={},m,t,q,s;if(d.grid){s=a(d).jqGrid("getInd",c,true);if(s!==
|
277
277
|
false){m=a(s).attr("editable");b=b?b:d.p.editurl;if(m==="1"){var n;a("td",s).each(function(E){n=d.p.colModel[E];k=n.name;if(k!="cb"&&k!="subgrid"&&n.editable===true&&k!="rn"){switch(n.edittype){case "checkbox":var B=["Yes","No"];if(n.editoptions)B=n.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(n.editoptions.multiple){B=a("select",this);var y=[];
|
278
278
|
l[k]=a(B).val();l[k]=l[k]?l[k].join(","):"";a("select > option:selected",this).each(function(x,G){y[x]=a(G).text()});o[k]=y.join(",")}else{l[k]=a("select>option:selected",this).val();o[k]=a("select>option:selected",this).text()}if(n.formatter&&n.formatter=="select")o={};break;case "custom":try{if(n.editoptions&&a.isFunction(n.editoptions.custom_value)){l[k]=n.editoptions.custom_value.call(d,a(".customelement",this),"get");if(l[k]===undefined)throw"e2";}else throw"e1";}catch(A){A=="e1"&&info_dialog(jQuery.jgrid.errors.errcap,
|
279
279
|
"function 'custom_value' "+a.jgrid.edit.msg.nodefined,jQuery.jgrid.edit.bClose);A=="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,A.message,jQuery.jgrid.edit.bClose)}}q=checkValues(l[k],E,d);if(q[0]===false){q[1]=l[k]+" "+q[1];return false}if(d.p.autoencode)l[k]=a.jgrid.htmlEncode(l[k])}});if(q[0]===false)try{var p=findPos(a("#"+a.jgrid.jqID(c),d.grid.bDiv)[0]);info_dialog(a.jgrid.errors.errcap,
|
280
|
-
q[1],a.jgrid.edit.bClose,{left:p[0],top:p[1]})}catch(v){alert(q[1])}else{if(l){var z;p=d.p.prmNames;z=p.oper;m=p.id;l[z]=p.editoper;l[m]=c;if(typeof d.p.inlineData=="undefined")d.p.inlineData={};if(typeof f=="undefined")f={};l=a.extend({},l,d.p.inlineData,f)}if(b=="clientArray"){l=a.extend({},l,o);d.p.autoencode&&a.each(l,function(E,B){l[E]=a.jgrid.htmlDecode(B)});m=a(d).jqGrid("setRowData",c,l);a(s).attr("editable","0");for(p=0;p<d.p.savedRow.length;p++)if(d.p.savedRow[p].id==c){
|
281
|
-
d.p.savedRow.splice(
|
282
|
-
for(var y=0;y<d.p.savedRow.length;y++)if(d.p.savedRow[y].id==c){
|
280
|
+
q[1],a.jgrid.edit.bClose,{left:p[0],top:p[1]})}catch(v){alert(q[1])}else{if(l){var z;p=d.p.prmNames;z=p.oper;m=p.id;l[z]=p.editoper;l[m]=c;if(typeof d.p.inlineData=="undefined")d.p.inlineData={};if(typeof f=="undefined")f={};l=a.extend({},l,d.p.inlineData,f)}if(b=="clientArray"){l=a.extend({},l,o);d.p.autoencode&&a.each(l,function(E,B){l[E]=a.jgrid.htmlDecode(B)});m=a(d).jqGrid("setRowData",c,l);a(s).attr("editable","0");for(p=0;p<d.p.savedRow.length;p++)if(d.p.savedRow[p].id==c){t=p;break}t>=0&&
|
281
|
+
d.p.savedRow.splice(t,1);a.isFunction(h)&&h.call(d,c,m)}else{a("#lui_"+d.p.id).show();if(d.p.restful){mtype="PUT";b=b+"/"+c}else mtype="POST";a.ajax(a.extend({url:b,data:a.isFunction(d.p.serializeRowData)?d.p.serializeRowData.call(d,l):l,type:mtype,complete:function(E,B){a("#lui_"+d.p.id).hide();if(B==="success")if((a.isFunction(e)?e.call(d,E):true)===true){d.p.autoencode&&a.each(l,function(A,x){l[A]=a.jgrid.htmlDecode(x)});l=a.extend({},l,o);a(d).jqGrid("setRowData",c,l);a(s).attr("editable","0");
|
282
|
+
for(var y=0;y<d.p.savedRow.length;y++)if(d.p.savedRow[y].id==c){t=y;break}t>=0&&d.p.savedRow.splice(t,1);a.isFunction(h)&&h.call(d,c,E)}else{a.isFunction(g)&&g.call(d,c,E,B);a(d).jqGrid("restoreRow",c,j)}},error:function(E,B){a("#lui_"+d.p.id).hide();a.isFunction(g)?g.call(d,c,E,B):alert("Error Row: "+c+" Result: "+E.status+":"+E.statusText+" Status: "+B);a(d).jqGrid("restoreRow",c,j)}},a.jgrid.ajaxOptions,d.p.ajaxRowOptions||{}))}a(s).unbind("keydown")}}}}})},restoreRow:function(c,e){return this.each(function(){var b=
|
283
283
|
this,f,h,g={};if(b.grid){h=a(b).jqGrid("getInd",c,true);if(h!==false){for(var j=0;j<b.p.savedRow.length;j++)if(b.p.savedRow[j].id==c){f=j;break}if(f>=0){if(a.isFunction(a.fn.datepicker))try{a("input.hasDatepicker","#"+a.jgrid.jqID(h.id)).datepicker("hide")}catch(d){}a.each(b.p.colModel,function(){if(this.editable===true&&this.name in b.p.savedRow[f])g[this.name]=b.p.savedRow[f][this.name]});a(b).jqGrid("setRowData",c,g);a(h).attr("editable","0").unbind("keydown");b.p.savedRow.splice(f,1)}a.isFunction(e)&&
|
284
284
|
e.call(b,c)}}})}})})(jQuery);
|
285
285
|
(function(a){a.jgrid.extend({editCell:function(c,e,b){return this.each(function(){var f=this,h,g,j;if(!(!f.grid||f.p.cellEdit!==true)){e=parseInt(e,10);f.p.selrow=f.rows[c].id;f.p.knv||a(f).jqGrid("GridNav");if(f.p.savedRow.length>0){if(b===true)if(c==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);h=f.p.colModel[e].name;if(!(h=="subgrid"||h=="cb"||h=="rn")){j=a("td:eq("+e+
|
@@ -289,7 +289,7 @@ a.jgrid.htmlDecode(g);if(!f.p.colModel[e].edittype)f.p.colModel[e].edittype="tex
|
|
289
289
|
a.isFunction(f.p.afterEditCell)&&f.p.afterEditCell.call(f,f.rows[c].id,h,g,c,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[c]).addClass("selected-row ui-state-hover");if(a.isFunction(f.p.onSelectCell)){g=j.html().replace(/\ \;/ig,"");f.p.onSelectCell.call(f,f.rows[c].id,h,g,c,e)}}f.p.iCol=
|
290
290
|
e;f.p.iRow=c}}})},saveCell:function(c,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 h=a("td:eq("+e+")",b.rows[c]),g,j,d=b.p.colModel[e],k=d.name,l=a.jgrid.jqID(k);switch(d.edittype){case "select":if(d.editoptions.multiple){l=a("#"+c+"_"+l,b.rows[c]);var o=[];if(g=a(l).val())g.join(",");else g="";a("option:selected",l).each(function(v,z){o[v]=a(z).text()});j=o.join(",")}else{g=a("#"+c+"_"+l+">option:selected",b.rows[c]).val();
|
291
291
|
j=a("#"+c+"_"+l+">option:selected",b.rows[c]).text()}if(d.formatter)j=g;break;case "checkbox":var m=["Yes","No"];if(d.editoptions)m=d.editoptions.value.split(":");j=g=a("#"+c+"_"+l,b.rows[c]).attr("checked")?m[0]:m[1];break;case "password":case "text":case "textarea":case "button":j=g=a("#"+c+"_"+l,b.rows[c]).val();break;case "custom":try{if(d.editoptions&&a.isFunction(d.editoptions.custom_value)){g=d.editoptions.custom_value.call(b,a(".customelement",h),"get");if(g===undefined)throw"e2";else j=g}else throw"e1";
|
292
|
-
}catch(
|
292
|
+
}catch(t){t=="e1"&&info_dialog(jQuery.jgrid.errors.errcap,"function 'custom_value' "+a.jgrid.edit.msg.nodefined,jQuery.jgrid.edit.bClose);t=="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,t.message,jQuery.jgrid.edit.bClose)}}if(j!=b.p.savedRow[f].v){if(a.isFunction(b.p.beforeSaveCell))if(f=b.p.beforeSaveCell.call(b,b.rows[c].id,k,g,c,e))j=g=f;var q=checkValues(g,e,b);if(q[0]===true){f=
|
293
293
|
{};if(a.isFunction(b.p.beforeSubmitCell))(f=b.p.beforeSubmitCell.call(b,b.rows[c].id,k,g,c,e))||(f={});a("input.hasDatepicker",h).length>0&&a("input.hasDatepicker",h).datepicker("hide");if(b.p.cellsubmit=="remote")if(b.p.cellurl){var s={};if(b.p.autoencode)g=a.jgrid.htmlEncode(g);s[k]=g;m=b.p.prmNames;d=m.id;l=m.oper;s[d]=b.rows[c].id;s[l]=m.editoper;s=a.extend(f,s);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.call(b,
|
294
294
|
s):s,type:"POST",complete:function(v,z){a("#lui_"+b.p.id).hide();b.grid.hDiv.loading=false;if(z=="success")if(a.isFunction(b.p.afterSubmitCell)){var E=b.p.afterSubmitCell.call(b,v,s.id,k,g,c,e);if(E[0]===true){a(h).empty();a(b).jqGrid("setCell",b.rows[c].id,e,j,false,false,true);a(h).addClass("dirty-cell");a(b.rows[c]).addClass("edited");a.isFunction(b.p.afterSaveCell)&&b.p.afterSaveCell.call(b,b.rows[c].id,k,g,c,e);b.p.savedRow.splice(0,1)}else{info_dialog(a.jgrid.errors.errcap,E[1],a.jgrid.edit.bClose);
|
295
295
|
a(b).jqGrid("restoreCell",c,e)}}else{a(h).empty();a(b).jqGrid("setCell",b.rows[c].id,e,j,false,false,true);a(h).addClass("dirty-cell");a(b.rows[c]).addClass("edited");a.isFunction(b.p.afterSaveCell)&&b.p.afterSaveCell.call(b,b.rows[c].id,k,g,c,e);b.p.savedRow.splice(0,1)}},error:function(v,z){a("#lui_"+b.p.id).hide();b.grid.hDiv.loading=false;a.isFunction(b.p.errorCell)?b.p.errorCell.call(b,v,z):info_dialog(a.jgrid.errors.errcap,v.status+" : "+v.statusText+"<br/>"+z,a.jgrid.edit.bClose);a(b).jqGrid("restoreCell",
|
@@ -297,7 +297,7 @@ c,e)}},a.jgrid.ajaxOptions,b.p.ajaxCellOptions||{}))}else try{info_dialog(a.jgri
|
|
297
297
|
g+" "+q[1],a.jgrid.edit.bClose)},100);a(b).jqGrid("restoreCell",c,e)}catch(p){}}else a(b).jqGrid("restoreCell",c,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(c,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 h=a("td:eq("+e+")",b.rows[c]);if(a.isFunction(a.fn.datepicker))try{a("input.hasDatepicker",
|
298
298
|
h).datepicker("hide")}catch(g){}a(h).empty().attr("tabindex","-1");a(b).jqGrid("setCell",b.rows[c].id,e,b.p.savedRow[f].v,false,false,true);a.isFunction(b.p.afterRestoreCell)&&b.p.afterRestoreCell.call(b,b.rows[c].id,b.p.savedRow[f].v,c,e);b.p.savedRow.splice(0,1)}window.setTimeout(function(){a("#"+b.p.knv).attr("tabindex","-1").focus()},0)}})},nextCell:function(c,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===
|
299
299
|
true){b=f;break}if(b!==false)a(this).jqGrid("editCell",c,b,true);else this.p.savedRow.length>0&&a(this).jqGrid("saveCell",c,e)}})},prevCell:function(c,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",c,b,true);else this.p.savedRow.length>0&&a(this).jqGrid("saveCell",c,e)}})},GridNav:function(){return this.each(function(){function c(j,d,k){if(k.substr(0,
|
300
|
-
1)=="v"){var l=a(b.grid.bDiv)[0].clientHeight,o=a(b.grid.bDiv)[0].scrollTop,m=b.rows[j].offsetTop+b.rows[j].clientHeight,
|
300
|
+
1)=="v"){var l=a(b.grid.bDiv)[0].clientHeight,o=a(b.grid.bDiv)[0].scrollTop,m=b.rows[j].offsetTop+b.rows[j].clientHeight,t=b.rows[j].offsetTop;if(k=="vd")if(m>=l)a(b.grid.bDiv)[0].scrollTop=a(b.grid.bDiv)[0].scrollTop+b.rows[j].clientHeight;if(k=="vu")if(t<o)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;o=b.rows[j].cells[d].offsetLeft;if(b.rows[j].cells[d].offsetLeft+b.rows[j].cells[d].clientWidth>=
|
301
301
|
k+parseInt(l,10))a(b.grid.bDiv)[0].scrollLeft=a(b.grid.bDiv)[0].scrollLeft+b.rows[j].cells[d].clientWidth;else if(o<l)a(b.grid.bDiv)[0].scrollLeft=a(b.grid.bDiv)[0].scrollLeft-b.rows[j].cells[d].clientWidth}}function e(j,d){var k,l;if(d=="lft"){k=j+1;for(l=j;l>=0;l--)if(b.p.colModel[l].hidden!==true){k=l;break}}if(d=="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='"+
|
302
302
|
b.p.knv+"'></span></span>"),h,g;a(f).insertBefore(b.grid.cDiv);a("#"+b.p.knv).focus().keydown(function(j){g=j.keyCode;if(b.p.direction=="rtl")if(g==37)g=39;else if(g==39)g=37;switch(g){case 38:if(b.p.iRow-1>0){c(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){c(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){h=e(b.p.iCol-1,"lft");c(b.p.iRow,h,"h");a(b).jqGrid("editCell",
|
303
303
|
b.p.iRow,h,false)}break;case 39:if(b.p.iCol+1<=b.p.colModel.length-1){h=e(b.p.iCol+1,"rgt");c(b.p.iRow,h,"h");a(b).jqGrid("editCell",b.p.iRow,h,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)}return false})}})},getChangedCells:function(c){var e=[];c||(c="all");this.each(function(){var b=this,f;!b.grid||b.p.cellEdit!==true||a(b.rows).each(function(h){var g={};if(a(this).hasClass("edited")){a("td",this).each(function(j){f=b.p.colModel[j].name;
|
@@ -309,8 +309,8 @@ this).each(function(A){f(B,a(this).text()||" ",A)});else{var y=b.p.subGridM
|
|
309
309
|
a("<th class='ui-state-default ui-th-subgrid ui-th-column ui-th-"+b.p.direction+"'></th>");a(p).html(b.p.subGridModel[0].name[v]);a(p).width(b.p.subGridModel[0].width[v]);a(A).append(p)}a(y).append(A);if(s){E=b.p.jsonReader.subgrid;p=s[E.root];if(typeof p!=="undefined")for(v=0;v<p.length;v++){z=p[v];A=a("<tr class='ui-widget-content ui-subtblcell'></tr>");if(E.repeatitems===true){if(E.cell)z=z[E.cell];for(B=0;B<z.length;B++)f(A,z[B]||" ",B)}else{var x=b.p.subGridModel[0].mapping||b.p.subGridModel[0].name;
|
310
310
|
if(x.length)for(B=0;B<x.length;B++)f(A,z[x[B]]||" ",B)}a(y).append(A)}}v=a("table:first",b.grid.bDiv).attr("id")+"_";a("#"+v+n).append(y);b.grid.hDiv.loading=false;a("#load_"+b.p.id).hide();return false},j=function(s){var n,p,v,z;n=a(s).attr("id");p={nd_:(new Date).getTime()};p[b.p.prmNames.subgridid]=n;if(!b.p.subGridModel[0])return false;if(b.p.subGridModel[0].params)for(z=0;z<b.p.subGridModel[0].params.length;z++)for(v=0;v<b.p.colModel.length;v++)if(b.p.colModel[v].name==b.p.subGridModel[0].params[z])p[b.p.colModel[v].name]=
|
311
311
|
a("td:eq("+v+")",s).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.call(b,p);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(b,p):p,complete:function(E){b.p.subgridtype==
|
312
|
-
"xml"?h(E.responseXML,n):g(a.jgrid.parse(E.responseText),n)}},a.jgrid.ajaxOptions,b.p.ajaxSubgridOptions||{}))}}return false},d,k,l,o,m,
|
313
|
-
"cb")m++});
|
312
|
+
"xml"?h(E.responseXML,n):g(a.jgrid.parse(E.responseText),n)}},a.jgrid.ajaxOptions,b.p.ajaxSubgridOptions||{}))}}return false},d,k,l,o,m,t,q;a("td:eq("+e+")",c).click(function(){if(a(this).hasClass("sgcollapsed")){l=b.p.id;d=a(this).parent();o=e>=1?"<td colspan='"+e+"'> </td>":"";k=a(d).attr("id");q=true;if(a.isFunction(b.p.subGridBeforeExpand))q=b.p.subGridBeforeExpand.call(b,l+"_"+k,k);if(q===false)return false;m=0;a.each(b.p.colModel,function(){if(this.hidden===true||this.name=="rn"||this.name==
|
313
|
+
"cb")m++});t="<tr role='row' class='ui-subgrid'>"+o+"<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-m,10)+"' class='ui-widget-content subgrid-data'><div id="+l+"_"+k+" class='tablediv'>";a(this).parent().after(t+"</div></td></tr>");a.isFunction(b.p.subGridRowExpanded)?b.p.subGridRowExpanded.call(b,l+"_"+k,k):j(d);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")){q=
|
314
314
|
true;if(a.isFunction(b.p.subGridRowColapsed)){d=a(this).parent();k=a(d).attr("id");q=b.p.subGridRowColapsed.call(b,l+"_"+k,k)}if(q===false)return false;a(this).parent().next().remove(".ui-subgrid");a(this).html("<a href='javascript:void(0);'><span class='ui-icon ui-icon-plus'></span></a>").removeClass("sgexpanded").addClass("sgcollapsed")}return false});b.subGridXml=function(s,n){h(s,n)};b.subGridJson=function(s,n){g(s,n)}}})},expandSubGridRow:function(c){return this.each(function(){if(this.grid||
|
315
315
|
c)if(this.p.subGrid===true){var e=a(this).jqGrid("getInd",c,true);if(e)(e=a("td.sgcollapsed",e)[0])&&a(e).trigger("click")}})},collapseSubGridRow:function(c){return this.each(function(){if(this.grid||c)if(this.p.subGrid===true){var e=a(this).jqGrid("getInd",c,true);if(e)(e=a("td.sgexpanded",e)[0])&&a(e).trigger("click")}})},toggleSubGridRow:function(c){return this.each(function(){if(this.grid||c)if(this.p.subGrid===true){var e=a(this).jqGrid("getInd",c,true);if(e){var b=a("td.sgcollapsed",e)[0];if(b)a(b).trigger("click");
|
316
316
|
else(b=a("td.sgexpanded",e)[0])&&a(b).trigger("click")}}})}})})(jQuery);
|
@@ -330,44 +330,44 @@ a(this.p.data).each(function(m){b=e.length;for(m=0;m<b;m++)if(e[m][o]==this[l]){
|
|
330
330
|
e&&this[f];if(!e)return false})}});return e},isNodeLoaded:function(c){var e;this.each(function(){if(this.grid&&this.p.treeGrid){var b=this.p.treeReader.leaf_field;e=c.loaded!==undefined?c.loaded:c[b]||a(this).jqGrid("getNodeChildren",c).length>0?true:false}});return e},expandNode:function(c){return this.each(function(){if(this.grid&&this.p.treeGrid){var e=this.p.treeReader.expanded_field;if(!c[e]){var b=a.jgrid.getAccessor(c,this.p.localReader.id),f=a("#"+b,this.grid.bDiv)[0],h=this.p._index[b];if(a(this).jqGrid("isNodeLoaded",
|
331
331
|
this.p.data[h])){c[e]=true;a("div.treeclick",f).removeClass(this.p.treeIcons.plus+" tree-plus").addClass(this.p.treeIcons.minus+" tree-minus")}else{c[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:c.lft,n_right:c.rgt,n_level:c.level}}):a(this).jqGrid("setGridParam",{postData:{nodeid:b,
|
332
332
|
parentid:c.parent_id,n_level:c.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(c){return this.each(function(){if(this.grid&&this.p.treeGrid)if(c.expanded){c.expanded=false;var e=a.jgrid.getAccessor(c,this.p.localReader.id);e=a("#"+e,this.grid.bDiv)[0];a("div.treeclick",e).removeClass(this.p.treeIcons.minus+
|
333
|
-
" tree-minus").addClass(this.p.treeIcons.plus+" tree-plus")}})},SortTree:function(c,e,b,f){return this.each(function(){if(this.grid&&this.p.treeGrid){var h,g,j,d=[],k=this,l;h=a(this).jqGrid("getRootNodes");h=a.jgrid.from(h);h.orderBy(c,e,b,f);l=h.select();h=0;for(g=l.length;h<g;h++){j=l[h];d.push(j);a(this).jqGrid("collectChildrenSortTree",d,j,c,e,b,f)}a.each(d,function(o){var m=a.jgrid.getAccessor(this,k.p.localReader.id);
|
334
|
-
|
335
|
-
this.p.treeGrid)
|
333
|
+
" tree-minus").addClass(this.p.treeIcons.plus+" tree-plus")}})},SortTree:function(c,e,b,f){return this.each(function(){if(this.grid&&this.p.treeGrid){var h,g,j,d=[],k=this,l;h=a(this).jqGrid("getRootNodes");h=a.jgrid.from(h);h.orderBy(c,e,b,f);l=h.select();h=0;for(g=l.length;h<g;h++){j=l[h];d.push(j);a(this).jqGrid("collectChildrenSortTree",d,j,c,e,b,f)}a.each(d,function(o){var m=a.jgrid.getAccessor(this,k.p.localReader.id);a("#"+k.p.id+" tbody tr:eq("+o+")").after(a("tr#"+m,k.grid.bDiv))});d=l=h=
|
334
|
+
null}})},collectChildrenSortTree:function(c,e,b,f,h,g){return this.each(function(){if(this.grid&&this.p.treeGrid){var j,d,k,l;j=a(this).jqGrid("getNodeChildren",e);j=a.jgrid.from(j);j.orderBy(b,f,h,g);l=j.select();j=0;for(d=l.length;j<d;j++){k=l[j];c.push(k);a(this).jqGrid("collectChildrenSortTree",c,k,b,f,h,g)}}})},setTreeRow:function(c,e){var b=false;this.each(function(){if(this.grid&&this.p.treeGrid)b=a(this).jqGrid("setRowData",c,e)});return b},delTreeNode:function(c){return this.each(function(){if(this.grid&&
|
335
|
+
this.p.treeGrid){var e=a(this).jqGrid("getInd",c,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);
|
336
336
|
(function(a){a.jgrid.extend({getColProp:function(c){var e={},b=this[0];if(b.grid){b=b.p.colModel;for(var f=0;f<b.length;f++)if(b[f].name==c){e=b[f];break}return e}},setColProp:function(c,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==c){a.extend(this.p.colModel[f],e);break}})},sortGrid:function(c,e,b){return this.each(function(){var f=-1;if(this.grid){if(!c)c=this.p.sortname;for(var h=0;h<this.p.colModel.length;h++)if(this.p.colModel[h].index==
|
337
337
|
c||this.p.colModel[h].name==c){f=h;break}if(f!=-1){h=this.p.colModel[f].sortable;if(typeof h!=="boolean")h=true;if(typeof e!=="boolean")e=false;h&&this.sortData("jqgh_"+c,f,e,b)}}})},GridDestroy:function(){return this.each(function(){if(this.grid){this.p.pager&&a(this.p.pager).remove();var c=this.id;try{a("#gbox_"+c).remove()}catch(e){}}})},GridUnload:function(){return this.each(function(){if(this.grid){var c={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");
|
338
338
|
var e=document.createElement("table");a(e).attr({id:c.id});e.className=c.cl;c=this.id;a(e).removeClass("ui-jqgrid-btable");if(a(this.p.pager).parents("#gbox_"+c).length===1){a(e).insertBefore("#gbox_"+c).show();a(this.p.pager).insertBefore("#gbox_"+c)}else a(e).insertBefore("#gbox_"+c).show();a("#gbox_"+c).remove()}})},setGridState:function(c){return this.each(function(){if(this.grid)if(c=="hidden"){a(".ui-jqgrid-bdiv, .ui-jqgrid-hdiv","#gview_"+this.p.id).slideUp("fast");this.p.pager&&a(this.p.pager).slideUp("fast");
|
339
339
|
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(c=="visible"){a(".ui-jqgrid-hdiv, .ui-jqgrid-bdiv","#gview_"+this.p.id).slideDown("fast");
|
340
340
|
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(c,e,b){var f,
|
341
341
|
h=false,g;this.each(function(){var j=this,d,k,l,o;if(!j.grid)return false;e||(e="id");c&&c.length>0&&a(c).each(function(){l=this;if(k=j.rows.namedItem(l[e])){o=l[e];if(b===true)if(j.p.jsonReader.repeatitems===true){if(j.p.jsonReader.cell)l=l[j.p.jsonReader.cell];for(var m=0;m<l.length;m++){d=j.formatter(o,l[m],m,l,"edit");g=j.p.colModel[m].title?{title:a.jgrid.stripHtml(d)}:{};j.p.treeGrid===true&&f==j.p.ExpandColumn?a("td:eq("+m+") > span:first",k).html(d).attr(g):a("td:eq("+m+")",k).html(d).attr(g)}return h=
|
342
|
-
true}a(j.p.colModel).each(function(
|
342
|
+
true}a(j.p.colModel).each(function(t){f=b===true?this.jsonmap||this.name:this.name;if(l[f]!==undefined){d=j.formatter(o,l[f],t,l,"edit");g=this.title?{title:a.jgrid.stripHtml(d)}:{};j.p.treeGrid===true&&f==j.p.ExpandColumn?a("td:eq("+t+") > span:first",k).html(d).attr(g):a("td:eq("+t+")",k).html(d).attr(g);h=true}})}})});return h},filterGrid:function(c,e){e=a.extend({gridModel:false,gridNames:false,gridToolbar:false,filterModel:[],formtype:"horizontal",autosearch:true,formclass:"filterform",tableclass:"filtertable",
|
343
343
|
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(c){this.p.gridid=c.indexOf("#")!=-1?c:"#"+c;var f=a(this.p.gridid).jqGrid("getGridParam","colModel");if(f){if(this.p.gridModel===true){var h=a(this.p.gridid)[0],
|
344
344
|
g;a.each(f,function(o){var m=[];this.search=this.search===false?false:true;g=this.editrules&&this.editrules.searchhidden===true?true:this.hidden===true?false:true;if(this.search===true&&g===true){m.label=b.p.gridNames===true?h.p.colNames[o]:"";m.name=this.name;m.index=this.index||this.name;m.stype=this.edittype||"text";if(m.stype!="select")m.stype="text";m.defval=this.defval||"";m.surl=this.surl||"";m.sopt=this.editoptions||{};m.width=this.width;b.p.filterModel.push(m)}})}else a.each(b.p.filterModel,
|
345
|
-
function(){for(var o=0;o<f.length;o++)if(this.name==f[o].name){this.index=f[o].index||this.name;break}if(!this.index)this.index=this.name});var j=function(){var o={},m=0,
|
346
|
-
q.grid.hDiv).removeClass("dirty-cell");try{delete q.p.postData[this.index]}catch(v){}}break;default:if(
|
347
|
-
{search:n}).trigger("reloadGrid",[{page:1}]);p&&a(q).jqGrid("setGridParam",{url:p});a.isFunction(b.p.afterSearch)&&b.p.afterSearch()},d=function(){var o={},m,
|
348
|
-
a(this).val();return false}});if(v){o[s]=v;b.p.marksearched&&a("#jqgh_"+this.name,q.grid.hDiv).addClass("dirty-cell");
|
349
|
-
var n=
|
350
|
-
a(l).append(k);(function(){var o=document.createElement("tr"),m,
|
345
|
+
function(){for(var o=0;o<f.length;o++)if(this.name==f[o].name){this.index=f[o].index||this.name;break}if(!this.index)this.index=this.name});var j=function(){var o={},m=0,t,q=a(b.p.gridid)[0],s;q.p.searchdata={};a.isFunction(b.p.beforeSearch)&&b.p.beforeSearch();a.each(b.p.filterModel,function(){s=this.index;switch(this.stype){case "select":if(t=a("select[name="+s+"]",b).val()){o[s]=t;b.p.marksearched&&a("#jqgh_"+this.name,q.grid.hDiv).addClass("dirty-cell");m++}else{b.p.marksearched&&a("#jqgh_"+this.name,
|
346
|
+
q.grid.hDiv).removeClass("dirty-cell");try{delete q.p.postData[this.index]}catch(v){}}break;default:if(t=a("input[name="+s+"]",b).val()){o[s]=t;b.p.marksearched&&a("#jqgh_"+this.name,q.grid.hDiv).addClass("dirty-cell");m++}else{b.p.marksearched&&a("#jqgh_"+this.name,q.grid.hDiv).removeClass("dirty-cell");try{delete q.p.postData[this.index]}catch(z){}}}});var n=m>0?true:false;a.extend(q.p.postData,o);var p;if(b.p.url){p=a(q).jqGrid("getGridParam","url");a(q).jqGrid("setGridParam",{url:b.p.url})}a(q).jqGrid("setGridParam",
|
347
|
+
{search:n}).trigger("reloadGrid",[{page:1}]);p&&a(q).jqGrid("setGridParam",{url:p});a.isFunction(b.p.afterSearch)&&b.p.afterSearch()},d=function(){var o={},m,t=0,q=a(b.p.gridid)[0],s;a.isFunction(b.p.beforeClear)&&b.p.beforeClear();a.each(b.p.filterModel,function(){s=this.index;m=this.defval?this.defval:"";if(!this.stype)this.stype="text";switch(this.stype){case "select":var v;a("select[name="+s+"] option",b).each(function(B){if(B===0)this.selected=true;if(a(this).text()==m){this.selected=true;v=
|
348
|
+
a(this).val();return false}});if(v){o[s]=v;b.p.marksearched&&a("#jqgh_"+this.name,q.grid.hDiv).addClass("dirty-cell");t++}else{b.p.marksearched&&a("#jqgh_"+this.name,q.grid.hDiv).removeClass("dirty-cell");try{delete q.p.postData[this.index]}catch(z){}}break;case "text":a("input[name="+s+"]",b).val(m);if(m){o[s]=m;b.p.marksearched&&a("#jqgh_"+this.name,q.grid.hDiv).addClass("dirty-cell");t++}else{b.p.marksearched&&a("#jqgh_"+this.name,q.grid.hDiv).removeClass("dirty-cell");try{delete q.p.postData[this.index]}catch(E){}}}});
|
349
|
+
var n=t>0?true:false;a.extend(q.p.postData,o);var p;if(b.p.url){p=a(q).jqGrid("getGridParam","url");a(q).jqGrid("setGridParam",{url:b.p.url})}a(q).jqGrid("setGridParam",{search:n}).trigger("reloadGrid",[{page:1}]);p&&a(q).jqGrid("setGridParam",{url:p});a.isFunction(b.p.afterClear)&&b.p.afterClear()},k,l=a("<form name='SearchForm' style=display:inline;' class='"+this.p.formclass+"'></form>");k=a("<table class='"+this.p.tableclass+"' cellspacing='0' cellpading='0' border='0'><tbody></tbody></table>");
|
350
|
+
a(l).append(k);(function(){var o=document.createElement("tr"),m,t,q,s;b.p.formtype=="horizontal"&&a(k).append(o);a.each(b.p.filterModel,function(n){q=document.createElement("td");a(q).append("<label for='"+this.name+"'>"+this.label+"</label>");s=document.createElement("td");var p=this;if(!this.stype)this.stype="text";switch(this.stype){case "select":if(this.surl)a(s).load(this.surl,function(){p.defval&&a("select",this).val(p.defval);a("select",this).attr({name:p.index||p.name,id:"sg_"+p.name});p.sopt&&
|
351
351
|
a("select",this).attr(p.sopt);b.p.gridToolbar===true&&p.width&&a("select",this).width(p.width);b.p.autosearch===true&&a("select",this).change(function(){j();return false})});else if(p.sopt.value){var v=p.sopt.value,z=document.createElement("select");a(z).attr({name:p.index||p.name,id:"sg_"+p.name}).attr(p.sopt);var E;if(typeof v==="string"){n=v.split(";");for(var B=0;B<n.length;B++){v=n[B].split(":");E=document.createElement("option");E.value=v[0];E.innerHTML=v[1];if(v[1]==p.defval)E.selected="selected";
|
352
352
|
z.appendChild(E)}}else if(typeof v==="object")for(B in v)if(v.hasOwnProperty(B)){n++;E=document.createElement("option");E.value=B;E.innerHTML=v[B];if(v[B]==p.defval)E.selected="selected";z.appendChild(E)}b.p.gridToolbar===true&&p.width&&a(z).width(p.width);a(s).append(z);b.p.autosearch===true&&a(z).change(function(){j();return false})}break;case "text":z=this.defval?this.defval:"";a(s).append("<input type='text' name='"+(this.index||this.name)+"' id='sg_"+this.name+"' value='"+z+"'/>");p.sopt&&a("input",
|
353
353
|
s).attr(p.sopt);if(b.p.gridToolbar===true&&p.width)a.browser.msie?a("input",s).width(p.width-4):a("input",s).width(p.width-2);b.p.autosearch===true&&a("input",s).keypress(function(y){if((y.charCode?y.charCode:y.keyCode?y.keyCode:0)==13){j();return false}return this})}if(b.p.formtype=="horizontal"){b.p.gridToolbar===true&&b.p.gridNames===false?a(o).append(s):a(o).append(q).append(s);a(o).append(s)}else{m=document.createElement("tr");a(m).append(q).append(s);a(k).append(m)}});s=document.createElement("td");
|
354
|
-
if(b.p.enableSearch===true){
|
354
|
+
if(b.p.enableSearch===true){t="<input type='button' id='sButton' class='"+b.p.buttonclass+"' value='"+b.p.searchButton+"'/>";a(s).append(t);a("input#sButton",s).click(function(){j();return false})}if(b.p.enableClear===true){t="<input type='button' id='cButton' class='"+b.p.buttonclass+"' value='"+b.p.clearButton+"'/>";a(s).append(t);a("input#cButton",s).click(function(){d();return false})}if(b.p.enableClear===true||b.p.enableSearch===true)if(b.p.formtype=="horizontal")a(o).append(s);else{m=document.createElement("tr");
|
355
355
|
a(m).append("<td> </td>").append(s);a(k).append(m)}})();a(this).append(l);this.triggerSearch=j;this.clearSearch=d}else alert("Could not get grid colModel")}else alert("No target grid is set!")})},filterToolbar:function(c){c=a.extend({autosearch:true,searchOnEnter:true,beforeSearch:null,afterSearch:null,beforeClear:null,afterClear:null,searchurl:"",stringResult:false,groupOp:"AND",defaultSearch:"bw"},c||{});return this.each(function(){function e(j,d){var k=a(j);k[0]&&jQuery.each(d,function(){this.data!==
|
356
|
-
undefined?k.bind(this.type,this.data,this.fn):k.bind(this.type,this.fn)})}var b=this,f=function(){var j={},d=0,k,l,o={};a.each(b.p.colModel,function(){l=this.index||this.name;
|
357
|
-
var
|
358
|
-
[{page:1}]);
|
359
|
-
"undefined")this.stype="text";l=a.extend({},this.searchoptions||{});if(this.search)switch(this.stype){case "select":if(o=this.surl||l.dataUrl)a.ajax(a.extend({url:o,dataType:"html",complete:function(n){if(l.buildSelect!==undefined)(n=l.buildSelect(n))&&a(d).append(n);else a(d).append(n.responseText);l.defaultValue&&a("select",d).val(l.defaultValue);a("select",d).attr({name:j.index||j.name,
|
360
|
-
l.dataInit(a("select",d)[0]);l.dataEvents!==undefined&&e(a("select",d)[0],l.dataEvents);c.autosearch===true&&a("select",d).change(function(){f();return false});n=null}},a.jgrid.ajaxOptions,b.p.ajaxSelectOptions||{}));else{var m;if(j.searchoptions&&j.searchoptions.value)m=j.searchoptions.value;else if(j.editoptions&&j.editoptions.value)m=j.editoptions.value;if(m){o=document.createElement("select");
|
361
|
-
m.split(";");for(var s=0;s<m.length;s++){
|
362
|
-
case "text":o=l.defaultValue?l.defaultValue:"";a(d).append("<input type='text' style='width:95%;padding:0px;' name='"+(j.index||j.name)+"' id='gs_"+j.name+"' value='"+o+"'/>");l.attr&&a("input",d).attr(l.attr);l.dataInit!==undefined&&l.dataInit(a("input",d)[0]);l.dataEvents!==undefined&&e(a("input",d)[0],l.dataEvents);if(c.autosearch===true)c.searchOnEnter?a("input",d).keypress(function(n){if((n.charCode?
|
363
|
-
case 9:case 16:case 37:case 38:case 39:case 40:case 27:break;default:g&&clearTimeout(g);g=setTimeout(function(){f()},500)}})}a(k).append(d);a(h).append(k)});a("table thead",b.grid.hDiv).append(h);this.triggerToolbar=f;this.clearToolbar=function(j){var d={},k,l=0,o;j=typeof j!="boolean"?true:j;a.each(b.p.colModel,function(){k=this.searchoptions&&this.searchoptions.defaultValue?
|
364
|
-
b.grid.hDiv).each(function(E){if(E===0)this.selected=true;if(a(this).text()==k){this.selected=true;p=a(this).val();return false}});if(p){d[o]=p;l++}else try{delete b.p.postData[o]}catch(v){}break;case "text":a("input[name="+o+"]",b.grid.hDiv).val(k);if(k){d[o]=k;l++}else try{delete b.p.postData[o]}catch(z){}}});var m=l>0?true:false;if(c.stringResult===true||b.p.datatype==
|
365
|
-
|
366
|
-
"none"?j.show():j.hide()}})}})})(jQuery);
|
356
|
+
undefined?k.bind(this.type,this.data,this.fn):k.bind(this.type,this.fn)})}var b=this,f=function(){var j={},d=0,k,l,o={},m;a.each(b.p.colModel,function(){l=this.index||this.name;switch(this.stype){case "select":m=this.searchoptions&&this.searchoptions.sopt?this.searchoptions.sopt[0]:"eq";if(k=a("select[name="+l+"]",b.grid.hDiv).val()){j[l]=k;o[l]=m;d++}else try{delete b.p.postData[l]}catch(v){}break;case "text":m=this.searchoptions&&this.searchoptions.sopt?this.searchoptions.sopt[0]:c.defaultSearch;
|
357
|
+
if(k=a("input[name="+l+"]",b.grid.hDiv).val()){j[l]=k;o[l]=m;d++}else try{delete b.p.postData[l]}catch(z){}}});var t=d>0?true:false;if(c.stringResult===true||b.p.datatype=="local"){var q='{"groupOp":"'+c.groupOp+'","rules":[',s=0;a.each(j,function(v,z){if(s>0)q+=",";q+='{"field":"'+v+'",';q+='"op":"'+o[v]+'",';q+='"data":"'+z+'"}';s++});q+="]}";a.extend(b.p.postData,{filters:q})}else a.extend(b.p.postData,j);var n;if(b.p.searchurl){n=b.p.url;a(b).jqGrid("setGridParam",{url:b.p.searchurl})}var p=false;
|
358
|
+
if(a.isFunction(c.beforeSearch))p=c.beforeSearch.call(b);p||a(b).jqGrid("setGridParam",{search:t}).trigger("reloadGrid",[{page:1}]);n&&a(b).jqGrid("setGridParam",{url:n});a.isFunction(c.afterSearch)&&c.afterSearch()},h=a("<tr class='ui-search-toolbar' role='rowheader'></tr>"),g;a.each(b.p.colModel,function(){var j=this,d,k,l,o;k=a("<th role='columnheader' class='ui-state-default ui-th-column ui-th-"+b.p.direction+"'></th>");d=a("<div style='width:100%;position:relative;height:100%;padding-right:0.3em;'></div>");
|
359
|
+
this.hidden===true&&a(k).css("display","none");this.search=this.search===false?false:true;if(typeof this.stype=="undefined")this.stype="text";l=a.extend({},this.searchoptions||{});if(this.search)switch(this.stype){case "select":if(o=this.surl||l.dataUrl)a.ajax(a.extend({url:o,dataType:"html",complete:function(n){if(l.buildSelect!==undefined)(n=l.buildSelect(n))&&a(d).append(n);else a(d).append(n.responseText);l.defaultValue&&a("select",d).val(l.defaultValue);a("select",d).attr({name:j.index||j.name,
|
360
|
+
id:"gs_"+j.name});l.attr&&a("select",d).attr(l.attr);a("select",d).css({width:"100%"});l.dataInit!==undefined&&l.dataInit(a("select",d)[0]);l.dataEvents!==undefined&&e(a("select",d)[0],l.dataEvents);c.autosearch===true&&a("select",d).change(function(){f();return false});n=null}},a.jgrid.ajaxOptions,b.p.ajaxSelectOptions||{}));else{var m;if(j.searchoptions&&j.searchoptions.value)m=j.searchoptions.value;else if(j.editoptions&&j.editoptions.value)m=j.editoptions.value;if(m){o=document.createElement("select");
|
361
|
+
o.style.width="100%";a(o).attr({name:j.index||j.name,id:"gs_"+j.name});var t,q;if(typeof m==="string"){m=m.split(";");for(var s=0;s<m.length;s++){t=m[s].split(":");q=document.createElement("option");q.value=t[0];q.innerHTML=t[1];o.appendChild(q)}}else if(typeof m==="object")for(t in m)if(m.hasOwnProperty(t)){q=document.createElement("option");q.value=t;q.innerHTML=m[t];o.appendChild(q)}l.defaultValue&&a(o).val(l.defaultValue);l.attr&&a(o).attr(l.attr);l.dataInit!==undefined&&l.dataInit(o);l.dataEvents!==
|
362
|
+
undefined&&e(o,l.dataEvents);a(d).append(o);c.autosearch===true&&a(o).change(function(){f();return false})}}break;case "text":o=l.defaultValue?l.defaultValue:"";a(d).append("<input type='text' style='width:95%;padding:0px;' name='"+(j.index||j.name)+"' id='gs_"+j.name+"' value='"+o+"'/>");l.attr&&a("input",d).attr(l.attr);l.dataInit!==undefined&&l.dataInit(a("input",d)[0]);l.dataEvents!==undefined&&e(a("input",d)[0],l.dataEvents);if(c.autosearch===true)c.searchOnEnter?a("input",d).keypress(function(n){if((n.charCode?
|
363
|
+
n.charCode:n.keyCode?n.keyCode:0)==13){f();return false}return this}):a("input",d).keydown(function(n){switch(n.which){case 13:return false;case 9:case 16:case 37:case 38:case 39:case 40:case 27:break;default:g&&clearTimeout(g);g=setTimeout(function(){f()},500)}})}a(k).append(d);a(h).append(k)});a("table thead",b.grid.hDiv).append(h);this.triggerToolbar=f;this.clearToolbar=function(j){var d={},k,l=0,o;j=typeof j!="boolean"?true:j;a.each(b.p.colModel,function(){k=this.searchoptions&&this.searchoptions.defaultValue?
|
364
|
+
this.searchoptions.defaultValue:"";o=this.index||this.name;switch(this.stype){case "select":var p;a("select[name="+o+"] option",b.grid.hDiv).each(function(E){if(E===0)this.selected=true;if(a(this).text()==k){this.selected=true;p=a(this).val();return false}});if(p){d[o]=p;l++}else try{delete b.p.postData[o]}catch(v){}break;case "text":a("input[name="+o+"]",b.grid.hDiv).val(k);if(k){d[o]=k;l++}else try{delete b.p.postData[o]}catch(z){}}});var m=l>0?true:false;if(c.stringResult===true||b.p.datatype==
|
365
|
+
"local"){var t='{"groupOp":"'+c.groupOp+'","rules":[',q=0;a.each(d,function(p,v){if(q>0)t+=",";t+='{"field":"'+p+'",';t+='"op":"eq",';t+='"data":"'+v+'"}';q++});t+="]}";a.extend(b.p.postData,{filters:t})}else a.extend(b.p.postData,d);var s;if(b.p.searchurl){s=b.p.url;a(b).jqGrid("setGridParam",{url:b.p.searchurl})}var n=false;if(a.isFunction(c.beforeClear))n=c.beforeClear.call(b);n||j&&a(b).jqGrid("setGridParam",{search:m}).trigger("reloadGrid",[{page:1}]);s&&a(b).jqGrid("setGridParam",{url:s});a.isFunction(c.afterClear)&&
|
366
|
+
c.afterClear()};this.toggleToolbar=function(){var j=a("tr.ui-search-toolbar",b.grid.hDiv);j.css("display")=="none"?j.show():j.hide()}})}})})(jQuery);
|
367
367
|
(function(a){a.jgrid.extend({getPostData:function(){var c=this[0];if(c.grid)return c.p.postData},setPostData:function(c){var e=this[0];if(e.grid)if(typeof c==="object")e.p.postData=c;else alert("Error: cannot add a non-object postData value. postData unchanged.")},appendPostData:function(c){var e=this[0];if(e.grid)typeof c==="object"?a.extend(e.p.postData,c):alert("Error: cannot append a non-object postData value. postData unchanged.")},setPostDataItem:function(c,e){var b=this[0];if(b.grid)b.p.postData[c]=
|
368
368
|
e},getPostDataItem:function(c){var e=this[0];if(e.grid)return e.p.postData[c]},removePostDataItem:function(c){var e=this[0];e.grid&&delete e.p.postData[c]},getUserData:function(){var c=this[0];if(c.grid)return c.p.userData},getUserDataItem:function(c){var e=this[0];if(e.grid)return e.p.userData[c]}})})(jQuery);
|
369
369
|
function tableToGrid(a,c){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));b=b.length>0;f=!b&&f.length>0;var h=b||f,g=[],j=[];jQuery("th",jQuery(this)).each(function(){if(g.length===0&&h){g.push({name:"__selection__",index:"__selection__",width:0,hidden:true});j.push("__selection__")}else{g.push({name:jQuery(this).attr("id")||jQuery.trim(jQuery.jgrid.stripHtml(jQuery(this).html())).split(" ").join("_"),
|
370
|
-
index:jQuery(this).attr("id")||jQuery.trim(jQuery.jgrid.stripHtml(jQuery(this).html())).split(" ").join("_"),width:jQuery(this).width()||150});j.push(jQuery(this).html())}});var d=[],k=[],l=[];jQuery("tbody > tr",jQuery(this)).each(function(){var o={},m=0;jQuery("td",jQuery(this)).each(function(){if(m===0&&h){var
|
370
|
+
index:jQuery(this).attr("id")||jQuery.trim(jQuery.jgrid.stripHtml(jQuery(this).html())).split(" ").join("_"),width:jQuery(this).width()||150});j.push(jQuery(this).html())}});var d=[],k=[],l=[];jQuery("tbody > tr",jQuery(this)).each(function(){var o={},m=0;jQuery("td",jQuery(this)).each(function(){if(m===0&&h){var t=jQuery("input",jQuery(this)),q=t.attr("value");k.push(q||d.length);t.attr("checked")&&l.push(q);o[g[m].name]=t.attr("value")}else o[g[m].name]=jQuery(this).html();m++});m>0&&d.push(o)});
|
371
371
|
jQuery(this).empty();jQuery(this).addClass("scroll");jQuery(this).jqGrid(jQuery.extend({datatype:"local",width:e,colNames:j,colModel:g,multiselect:b},c||{}));for(e=0;e<d.length;e++){f=null;if(k.length>0)if((f=k[e])&&f.replace)f=encodeURIComponent(f).replace(/[.\-%]/g,"_");if(f===null)f=e+1;jQuery(this).jqGrid("addRowData",f,d[e])}for(e=0;e<l.length;e++)jQuery(this).jqGrid("setSelection",l[e])}})}
|
372
372
|
(function(a){a.jgrid.extend({setColumns:function(c){c=a.extend({top:0,left:0,width:200,height:"auto",dataheight:"auto",modal:false,drag:true,beforeShowForm:null,afterShowForm:null,afterSubmitForm:null,closeOnEscape:true,ShrinkToFit:false,jqModal:false,saveicon:[true,"left","ui-icon-disk"],closeicon:[true,"left","ui-icon-close"],onClose:null,colnameview:true,closeAfterSubmit:true,updateAfterCheck:false,recreateForm:false},a.jgrid.col,c||{});return this.each(function(){var e=this;if(e.grid){var b=typeof c.beforeShowForm===
|
373
373
|
"function"?true:false,f=typeof c.afterShowForm==="function"?true:false,h=typeof c.afterSubmitForm==="function"?true:false,g=e.p.id,j="ColTbl_"+g,d={themodal:"colmod"+g,modalhead:"colhd"+g,modalcontent:"colcnt"+g,scrollelm:j};c.recreateForm===true&&a("#"+d.themodal).html()!=null&&a("#"+d.themodal).remove();if(a("#"+d.themodal).html()!=null){b&&c.beforeShowForm(a("#"+j));viewModal("#"+d.themodal,{gbox:"#gbox_"+g,jqm:c.jqModal,jqM:false,modal:c.modal})}else{var k=isNaN(c.dataheight)?c.dataheight:c.dataheight+
|
@@ -387,8 +387,8 @@ return e},excelExport:function(c){c=a.extend({exptype:"remote",url:null,oper:"op
|
|
387
387
|
this.isValue(c))return false;else if(!this.isValue(c))return true;c=a.trim(c).replace(/\ \;/ig,"").replace(/\ \;/ig,"");return c===""}});a.fn.fmatter=function(c,e,b,f,h){var g=e;b=a.extend({},a.jgrid.formatter,b);if(a.fn.fmatter[c])g=a.fn.fmatter[c](e,b,f,h);return g};a.fmatter.util={NumberFormat:function(c,e){a.fmatter.isNumber(c)||(c*=1);if(a.fmatter.isNumber(c)){var b=c<0,f=c+"",h=e.decimalSeparator?e.decimalSeparator:".",g;if(a.fmatter.isNumber(e.decimalPlaces)){var j=e.decimalPlaces;
|
388
388
|
f=Math.pow(10,j);f=Math.round(c*f)/f+"";g=f.lastIndexOf(".");if(j>0){if(g<0){f+=h;g=f.length-1}else if(h!==".")f=f.replace(".",h);for(;f.length-1-g<j;)f+="0"}}if(e.thousandsSeparator){j=e.thousandsSeparator;g=f.lastIndexOf(h);g=g>-1?g:f.length;h=f.substring(g);for(var d=-1,k=g;k>0;k--){d++;if(d%3===0&&k!==g&&(!b||k>1))h=j+h;h=f.charAt(k-1)+h}f=h}f=e.prefix?e.prefix+f:f;return f=e.suffix?f+e.suffix:f}else return c},DateFormat:function(c,e,b,f){var h=function(v,z){v=String(v);for(z=parseInt(z,10)||
|
389
389
|
2;v.length<z;)v="0"+v;return v},g={m:1,d:1,y:1970,h:0,i:0,s:0,u:0},j=0,d,k,l=["i18n"];l.i18n={dayNames:f.dayNames,monthNames:f.monthNames};if(c in f.masks)c=f.masks[c];if(e.constructor===Number)j=new Date(e);else if(e.constructor===Date)j=e;else{e=e.split(/[\\\/:_;.,\t\T\s-]/);c=c.split(/[\\\/:_;.,\t\T\s-]/);d=0;for(k=c.length;d<k;d++){if(c[d]=="M"){j=a.inArray(e[d],l.i18n.monthNames);if(j!==-1&&j<12)e[d]=j+1}if(c[d]=="F"){j=a.inArray(e[d],l.i18n.monthNames);if(j!==-1&&j>11)e[d]=j+1-12}if(e[d])g[c[d].toLowerCase()]=
|
390
|
-
parseInt(e[d],10)}if(g.f)g.m=g.f;if(g.m===0&&g.y===0&&g.d===0)return" ";g.m=parseInt(g.m,10)-1;j=g.y;if(j>=70&&j<=99)g.y=1900+g.y;else if(j>=0&&j<=69)g.y=2E3+g.y;j=new Date(g.y,g.m,g.d,g.h,g.i,g.s,g.u)}if(b in f.masks)b=f.masks[b];else b||(b="Y-m-d");g=j.getHours();c=j.getMinutes();e=j.getDate();d=j.getMonth()+1;k=j.getTimezoneOffset();var o=j.getSeconds(),m=j.getMilliseconds(),
|
391
|
-
j:e,l:l.i18n.dayNames[
|
390
|
+
parseInt(e[d],10)}if(g.f)g.m=g.f;if(g.m===0&&g.y===0&&g.d===0)return" ";g.m=parseInt(g.m,10)-1;j=g.y;if(j>=70&&j<=99)g.y=1900+g.y;else if(j>=0&&j<=69)g.y=2E3+g.y;j=new Date(g.y,g.m,g.d,g.h,g.i,g.s,g.u)}if(b in f.masks)b=f.masks[b];else b||(b="Y-m-d");g=j.getHours();c=j.getMinutes();e=j.getDate();d=j.getMonth()+1;k=j.getTimezoneOffset();var o=j.getSeconds(),m=j.getMilliseconds(),t=j.getDay(),q=j.getFullYear(),s=(t+6)%7+1,n=(new Date(q,d-1,e)-new Date(q,0,1))/864E5,p={d:h(e),D:l.i18n.dayNames[t],
|
391
|
+
j:e,l:l.i18n.dayNames[t+7],N:s,S:f.S(e),w:t,z:n,W:s<5?Math.floor((n+s-1)/7)+1:Math.floor((n+s-1)/7)||(((new Date(q-1,0,1)).getDay()+6)%7<4?53:52),F:l.i18n.monthNames[d-1+12],m:h(d),M:l.i18n.monthNames[d-1],n:d,t:"?",L:"?",o:"?",Y:q,y:String(q).substring(2),a:g<12?f.AmPm[0]:f.AmPm[1],A:g<12?f.AmPm[2]:f.AmPm[3],B:"?",g:g%12||12,G:g,h:h(g%12||12),H:h(g),i:h(c),s:h(o),u:m,e:"?",I:"?",O:(k>0?"-":"+")+h(Math.floor(Math.abs(k)/60)*100+Math.abs(k)%60,4),P:"?",T:(String(j).match(/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g)||
|
392
392
|
[""]).pop().replace(/[^-+\dA-Z]/g,""),Z:"?",c:"?",r:"?",U:Math.floor(j/1E3)};return b.replace(/\\.|[dDjlNSwzWFmMntLoYyaABgGhHisueIOPTZcrU]/g,function(v){return v in p?p[v]:v.substring(1)})}};a.fn.fmatter.defaultFormat=function(c,e){return a.fmatter.isValue(c)&&c!==""?c:e.defaultValue?e.defaultValue:" "};a.fn.fmatter.email=function(c,e){return a.fmatter.isEmpty(c)?a.fn.fmatter.defaultFormat(c,e):'<a href="mailto:'+c+'">'+c+"</a>"};a.fn.fmatter.checkbox=function(c,e){var b=a.extend({},e.checkbox),
|
393
393
|
f;a.fmatter.isUndefined(e.colModel.formatoptions)||(b=a.extend({},b,e.colModel.formatoptions));f=b.disabled===true?'disabled="disabled"':"";if(a.fmatter.isEmpty(c)||a.fmatter.isUndefined(c))c=a.fn.fmatter.defaultFormat(c,b);c+="";c=c.toLowerCase();return'<input type="checkbox" '+(c.search(/(false|0|no|off)/i)<0?" checked='checked' ":"")+' value="'+c+'" offval="no" '+f+"/>"};a.fn.fmatter.link=function(c,e){var b={target:e.target},f="";a.fmatter.isUndefined(e.colModel.formatoptions)||(b=a.extend({},
|
394
394
|
b,e.colModel.formatoptions));if(b.target)f="target="+b.target;return a.fmatter.isEmpty(c)?a.fn.fmatter.defaultFormat(c,e):"<a "+f+' href="'+c+'">'+c+"</a>"};a.fn.fmatter.showlink=function(c,e){var b={baseLinkUrl:e.baseLinkUrl,showAction:e.showAction,addParam:e.addParam||"",target:e.target,idName:e.idName},f="";a.fmatter.isUndefined(e.colModel.formatoptions)||(b=a.extend({},b,e.colModel.formatoptions));if(b.target)f="target="+b.target;b=b.baseLinkUrl+b.showAction+"?"+b.idName+"="+e.rowId+b.addParam;
|
@@ -403,25 +403,25 @@ c+" div.ui-inline-cancel","#"+e).hide();break;case "cancel":a("#"+e).jqGrid("res
|
|
403
403
|
a.unformat=function(c,e,b,f){var h,g=e.colModel.formatter,j=e.colModel.formatoptions||{},d=/([\.\*\_\'\(\)\{\}\+\?\\])/g,k=e.colModel.unformat||a.fn.fmatter[g]&&a.fn.fmatter[g].unformat;if(typeof k!=="undefined"&&a.isFunction(k))h=k(a(c).text(),e,c);else if(!a.fmatter.isUndefined(g)&&a.fmatter.isString(g)){h=a.jgrid.formatter||{};switch(g){case "integer":j=a.extend({},h.integer,j);e=j.thousandsSeparator.replace(d,"\\$1");e=RegExp(e,"g");h=a(c).text().replace(e,"");break;case "number":j=a.extend({},
|
404
404
|
h.number,j);e=j.thousandsSeparator.replace(d,"\\$1");e=RegExp(e,"g");h=a(c).text().replace(e,"").replace(j.decimalSeparator,".");break;case "currency":j=a.extend({},h.currency,j);e=j.thousandsSeparator.replace(d,"\\$1");e=RegExp(e,"g");h=a(c).text().replace(e,"").replace(j.decimalSeparator,".").replace(j.prefix,"").replace(j.suffix,"");break;case "checkbox":j=e.colModel.editoptions?e.colModel.editoptions.value.split(":"):["Yes","No"];h=a("input",c).attr("checked")?j[0]:j[1];break;case "select":h=
|
405
405
|
a.unformat.select(c,e,b,f);break;case "actions":return"";default:h=a(c).text()}}return h?h:f===true?a(c).text():a.jgrid.htmlDecode(a(c).html())};a.unformat.select=function(c,e,b,f){b=[];c=a(c).text();if(f===true)return c;e=a.extend({},e.colModel.editoptions);if(e.value){var h=e.value;e=e.multiple===true?true:false;f=[];var g;if(e){f=c.split(",");f=a.map(f,function(l){return a.trim(l)})}if(a.fmatter.isString(h))for(var j=h.split(";"),d=0,k=0;k<j.length;k++){g=j[k].split(":");if(g.length>2)g[1]=jQuery.map(g,
|
406
|
-
function(l,o){if(o>0)return l}).join(":");if(e){if(jQuery.inArray(g[1],f)>-1){b[d]=g[0];d++}}else if(a.trim(g[1])==a.trim(c)){b[0]=g[0];break}}else if(a.fmatter.isObject(h)||a.isArray(h)){e||(f[0]=c);b=jQuery.map(f,function(l){var o;a.each(h,function(m,
|
406
|
+
function(l,o){if(o>0)return l}).join(":");if(e){if(jQuery.inArray(g[1],f)>-1){b[d]=g[0];d++}}else if(a.trim(g[1])==a.trim(c)){b[0]=g[0];break}}else if(a.fmatter.isObject(h)||a.isArray(h)){e||(f[0]=c);b=jQuery.map(f,function(l){var o;a.each(h,function(m,t){if(t==l){o=m;return false}});if(typeof o!="undefined")return o})}return b.join(", ")}else return c||""};a.unformat.date=function(c,e){var b=a.jgrid.formatter.date||{};a.fmatter.isUndefined(e.formatoptions)||(b=a.extend({},b,e.formatoptions));return a.fmatter.isEmpty(c)?
|
407
407
|
a.fn.fmatter.defaultFormat(c,e):a.fmatter.util.DateFormat(b.newformat,c,b.srcformat,b)}})(jQuery);
|
408
408
|
(function(a){a.jgrid.extend({groupingSetup:function(){return this.each(function(){var c=this.p.groupingView;if(c!==null&&(typeof c==="object"||a.isFunction(c)))if(c.groupField.length){for(var e=0;e<c.groupField.length;e++){c.groupOrder[e]||(c.groupOrder[e]="asc");c.groupText[e]||(c.groupText[e]="{0}");if(typeof c.groupColumnShow[e]!="boolean")c.groupColumnShow[e]=true;if(typeof c.groupSummary[e]!="boolean")c.groupSummary[e]=false;c.groupColumnShow[e]===true?a(this).jqGrid("showCol",c.groupField[e]):
|
409
|
-
a(this).jqGrid("hideCol",c.groupField[e]);c.sortitems[e]=[];c.sortnames[e]=[];c.summaryval[e]=[];if(c.groupSummary[e]){c.summary[e]=[];for(var b=this.p.colModel,f=0,h=b.length;f<h;f++)b[f].summaryType&&c.summary[e].push({nm:b[f].name,st:b[f].summaryType,v:""})}}this.p.scroll=false;this.p.rownumbers=false;this.p.subGrid=false;this.p.treeGrid=false;this.p.gridview=true}else this.p.grouping=false;else this.p.grouping=false})},groupingPrepare:function(c,e,b,f){this.each(function(){var h=e[0]?e[0].split(" ").join(""):
|
410
|
-
"",g=this.p.groupingView,j=this;if(b.hasOwnProperty(h))b[h].push(c);else{b[h]=[];b[h].push(c);g.sortitems[0].push(h);g.sortnames[0].push(a.trim(e[0]));g.summaryval[0][h]=a.extend(true,
|
411
|
-
b+1);b=parseInt(c.substring(b+1),10)+1;var h=e.minusicon,g=e.plusicon;if(a("#"+c+" span").hasClass(h)){e.showSummaryOnHide&&e.groupSummary[0]?a("#"+c).nextUntil(".jqfoot").hide():a("#"+c).nextUntil("#"+f+String(b)).hide();a("#"+c+" span").removeClass(h).addClass(g)}else{a("#"+c).nextUntil("#"+f+String(b)).show();a("#"+c+" span").removeClass(g).addClass(h)}});return false},groupingRender:function(c,e){return this.each(function(){var b=this,f=b.p.groupingView,h="",g="",j,d="";if(!f.groupDataSorted){f.sortitems[0].sort();
|
412
|
-
f.sortnames[0].sort();f.groupOrder[0].toLowerCase()=="desc"
|
413
|
-
f.sortnames[0][k],c[l].length)+"</td></tr>";for(var o=0;o<c[l].length;o++)h+=c[l][o].join("");if(f.groupSummary[0]){o="";if(f.groupCollapse&&!f.showSummaryOnHide)o=' style="display:none;"';h+="<tr"+o+' role="row" class="ui-widget-content jqfoot ui-row-'+b.p.direction+'">';o=f.summaryval[0][l];for(var m=b.p.colModel,
|
414
|
-
q>0)this.v/=q;try{
|
415
|
-
b.groupField=c;a(this).trigger("reloadGrid")})},groupingRemove:function(c){return this.each(function(){if(typeof c=="undefined")c=true;this.p.grouping=false;c===true
|
416
|
-
0);return Math.max(parseFloat(c),parseFloat(b[e]||0))},count:function(c,e,b){if(c==="")c=0;return b.hasOwnProperty(e)?c+1:0},avg:function(c,e,b){return parseFloat(c||0)+parseFloat(b[e]||0)}}})})(jQuery);
|
409
|
+
a(this).jqGrid("hideCol",c.groupField[e]);c.sortitems[e]=[];c.sortnames[e]=[];c.summaryval[e]=[];if(c.groupSummary[e]){c.summary[e]=[];for(var b=this.p.colModel,f=0,h=b.length;f<h;f++)b[f].summaryType&&c.summary[e].push({nm:b[f].name,st:b[f].summaryType,v:""})}}this.p.scroll=false;this.p.rownumbers=false;this.p.subGrid=false;this.p.treeGrid=false;this.p.gridview=true}else this.p.grouping=false;else this.p.grouping=false})},groupingPrepare:function(c,e,b,f){this.each(function(){var h=e[0]?e[0].toString().split(" ").join(""):
|
410
|
+
"",g=this.p.groupingView,j=this;if(b.hasOwnProperty(h))b[h].push(c);else{b[h]=[];b[h].push(c);g.sortitems[0].push(h);g.sortnames[0].push(a.trim(e[0].toString()));g.summaryval[0][h]=a.extend(true,[],g.summary[0])}g.groupSummary[0]&&a.each(g.summaryval[0][h],function(){this.v=a.isFunction(this.st)?this.st.call(j,this.v,this.nm,f):a(j).jqGrid("groupingCalculations."+this.st,this.v,this.nm,f)})});return b},groupingToggle:function(c){this.each(function(){var e=this.p.groupingView,b=c.lastIndexOf("_"),
|
411
|
+
f=c.substring(0,b+1);b=parseInt(c.substring(b+1),10)+1;var h=e.minusicon,g=e.plusicon;if(a("#"+c+" span").hasClass(h)){e.showSummaryOnHide&&e.groupSummary[0]?a("#"+c).nextUntil(".jqfoot").hide():a("#"+c).nextUntil("#"+f+String(b)).hide();a("#"+c+" span").removeClass(h).addClass(g)}else{a("#"+c).nextUntil("#"+f+String(b)).show();a("#"+c+" span").removeClass(g).addClass(h)}});return false},groupingRender:function(c,e){return this.each(function(){var b=this,f=b.p.groupingView,h="",g="",j,d="";if(!f.groupDataSorted){f.sortitems[0].sort();
|
412
|
+
f.sortnames[0].sort();if(f.groupOrder[0].toLowerCase()=="desc"){f.sortitems[0].reverse();f.sortnames[0].reverse()}}d=f.groupCollapse?f.plusicon:f.minusicon;d+=" tree-wrap-"+b.p.direction;a.each(f.sortitems[0],function(k,l){j=b.p.id+"ghead_"+k;g="<span style='cursor:pointer;' class='ui-icon "+d+"' onclick=\"jQuery('#"+b.p.id+"').jqGrid('groupingToggle','"+j+"');return false;\"></span>";h+='<tr id="'+j+'" role="row" class= "ui-widget-content jqgroup ui-row-'+b.p.direction+'"><td colspan="'+e+'">'+g+
|
413
|
+
a.jgrid.format(f.groupText[0],f.sortnames[0][k],c[l].length)+"</td></tr>";for(var o=0;o<c[l].length;o++)h+=c[l][o].join("");if(f.groupSummary[0]){o="";if(f.groupCollapse&&!f.showSummaryOnHide)o=' style="display:none;"';h+="<tr"+o+' role="row" class="ui-widget-content jqfoot ui-row-'+b.p.direction+'">';o=f.summaryval[0][l];for(var m=b.p.colModel,t,q=c[l].length,s=0;s<e;s++){var n="<td "+b.formatCol(s,1,"")+"> </td>",p="{0}";a.each(o,function(){if(this.nm==m[s].name){if(m[s].summaryTpl)p=m[s].summaryTpl;
|
414
|
+
if(this.st=="avg")if(this.v&&q>0)this.v/=q;try{t=b.formatter("",this.v,s,this)}catch(v){t=this.v}n="<td "+b.formatCol(s,1,"")+">"+a.jgrid.format(p,t)+"</td>";return false}});h+=n}h+="</tr>"}});a("#"+b.p.id+" tbody:first").append(h);h=null})},groupingGroupBy:function(c,e){return this.each(function(){if(typeof c=="string")c=[c];var b=this.p.groupingView;this.p.grouping=true;for(var f=0;f<b.groupField.length;f++)b.groupColumnShow[f]||a(this).jqGrid("showCol",b.groupField[f]);this.p.groupingView=a.extend(this.p.groupingView,
|
415
|
+
e||{});b.groupField=c;a(this).trigger("reloadGrid")})},groupingRemove:function(c){return this.each(function(){if(typeof c=="undefined")c=true;this.p.grouping=false;if(c===true){a("tr.jqgroup, tr.jqfoot","#"+this.p.id+" tbody:first").remove();a("tr.jqgrow:hidden","#"+this.p.id+" tbody:first").show()}else a(this).trigger("reloadGrid")})},groupingCalculations:{sum:function(c,e,b){return parseFloat(c||0)+parseFloat(b[e]||0)},min:function(c,e,b){if(c==="")return parseFloat(b[e]||0);return Math.min(parseFloat(c),
|
416
|
+
parseFloat(b[e]||0))},max:function(c,e,b){if(c==="")return parseFloat(b[e]||0);return Math.max(parseFloat(c),parseFloat(b[e]||0))},count:function(c,e,b){if(c==="")c=0;return b.hasOwnProperty(e)?c+1:0},avg:function(c,e,b){return parseFloat(c||0)+parseFloat(b[e]||0)}}})})(jQuery);
|
417
417
|
(function(a){a.fn.jqm=function(o){var m={overlay:50,closeoverlay:true,overlayClass:"jqmOverlay",closeClass:"jqmClose",trigger:".jqModal",ajax:h,ajaxText:"",target:h,modal:h,toTop:h,onShow:h,onHide:h,onLoad:h};return this.each(function(){if(this._jqm)return e[this._jqm].c=a.extend({},e[this._jqm].c,o);c++;this._jqm=c;e[c]={c:a.extend(m,a.jqm.params,o),a:h,w:a(this).addClass("jqmID"+c),s:c};m.trigger&&a(this).jqmAddTrigger(m.trigger)})};a.fn.jqmAddClose=function(o){return l(this,o,"jqmHide")};a.fn.jqmAddTrigger=
|
418
|
-
function(o){return l(this,o,"jqmShow")};a.fn.jqmShow=function(o){return this.each(function(){a.jqm.open(this._jqm,o)})};a.fn.jqmHide=function(o){return this.each(function(){a.jqm.close(this._jqm,o)})};a.jqm={hash:{},open:function(o,m){var
|
419
|
-
setTimeout(function(){d("bind")},1);b.push(o)}else if(q.overlay>0)q.closeoverlay&&
|
420
|
-
p;n.html(q.ajaxText).load(p,function(){q.onLoad&&q.onLoad.call(this,
|
418
|
+
function(o){return l(this,o,"jqmShow")};a.fn.jqmShow=function(o){return this.each(function(){a.jqm.open(this._jqm,o)})};a.fn.jqmHide=function(o){return this.each(function(){a.jqm.close(this._jqm,o)})};a.jqm={hash:{},open:function(o,m){var t=e[o],q=t.c,s="."+q.closeClass,n=parseInt(t.w.css("z-index"));n=n>0?n:3E3;var p=a("<div></div>").css({height:"100%",width:"100%",position:"fixed",left:0,top:0,"z-index":n-1,opacity:q.overlay/100});if(t.a)return h;t.t=m;t.a=true;t.w.css("z-index",n);if(q.modal){b[0]||
|
419
|
+
setTimeout(function(){d("bind")},1);b.push(o)}else if(q.overlay>0)q.closeoverlay&&t.w.jqmAddClose(p);else p=h;t.o=p?p.addClass(q.overlayClass).prependTo("body"):h;if(f){a("html,body").css({height:"100%",width:"100%"});if(p){p=p.css({position:"absolute"})[0];for(var v in{Top:1,Left:1})p.style.setExpression(v.toLowerCase(),"(_=(document.documentElement.scroll"+v+" || document.body.scroll"+v+"))+'px'")}}if(q.ajax){n=q.target||t.w;p=q.ajax;n=typeof n=="string"?a(n,t.w):a(n);p=p.substr(0,1)=="@"?a(m).attr(p.substring(1)):
|
420
|
+
p;n.html(q.ajaxText).load(p,function(){q.onLoad&&q.onLoad.call(this,t);s&&t.w.jqmAddClose(a(s,t.w));g(t)})}else s&&t.w.jqmAddClose(a(s,t.w));q.toTop&&t.o&&t.w.before('<span id="jqmP'+t.w[0]._jqm+'"></span>').insertAfter(t.o);q.onShow?q.onShow(t):t.w.show();g(t);return h},close:function(o){o=e[o];if(!o.a)return h;o.a=h;if(b[0]){b.pop();b[0]||d("unbind")}o.c.toTop&&o.o&&a("#jqmP"+o.w[0]._jqm).after(o.w).remove();if(o.c.onHide)o.c.onHide(o);else{o.w.hide();o.o&&o.o.remove()}return h},params:{}};var c=
|
421
421
|
0,e=a.jqm.hash,b=[],f=a.browser.msie&&a.browser.version=="6.0",h=false,g=function(o){var m=a('<iframe src="javascript:false;document.write(\'\');" class="jqm"></iframe>').css({opacity:0});if(f)if(o.o)o.o.html('<p style="width:100%;height:100%"/>').prepend(m);else a("iframe.jqm",o.w)[0]||o.w.prepend(m);j(o)},j=function(o){try{a(":input:visible",o.w)[0].focus()}catch(m){}},d=function(o){a(document)[o]("keypress",k)[o]("keydown",k)[o]("mousedown",k)},k=function(o){var m=e[b[b.length-1]];(o=!a(o.target).parents(".jqmID"+
|
422
|
-
m.s)[0])&&j(m);return!o},l=function(o,m,
|
422
|
+
m.s)[0])&&j(m);return!o},l=function(o,m,t){return o.each(function(){var q=this._jqm;a(m).each(function(){if(!this[t]){this[t]=[];a(this).click(function(){for(var s in{jqmShow:1,jqmHide:1})for(var n in this[s])e[this[s][n]]&&e[this[s][n]].w[s](this);return h})}this[t].push(q)})})}})(jQuery);
|
423
423
|
(function(a){a.fn.jqDrag=function(j){return h(this,j,"d")};a.fn.jqResize=function(j,d){return h(this,j,"r",d)};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",c.drag).unbind("mouseup",c.stop)}};var c=a.jqDnR,e=c.dnr,
|
424
|
-
b=c.e,f,h=function(j,d,k,l){return j.each(function(){d=d?a(d,j):j;d.bind("mousedown",{e:j,k:k},function(o){var m=o.data,
|
424
|
+
b=c.e,f,h=function(j,d,k,l){return j.each(function(){d=d?a(d,j):j;d.bind("mousedown",{e:j,k:k},function(o){var m=o.data,t={};b=m.e;f=l?a(l):false;if(b.css("position")!="relative")try{b.position(t)}catch(q){}e={X:t.left||g("left")||0,Y:t.top||g("top")||0,W:g("width")||b[0].scrollWidth||0,H:g("height")||b[0].scrollHeight||0,pX:o.pageX,pY:o.pageY,k:m.k};M1=f&&m.k!="d"?{X:t.left||f1("left")||0,Y:t.top||f1("top")||0,W:f[0].offsetWidth||f1("width")||0,H:f[0].offsetHeight||f1("height")||0,pX:o.pageX,pY:o.pageY,
|
425
425
|
k:m.k}:false;try{a("input.hasDatepicker",b[0]).datepicker("hide")}catch(s){}a(document).mousemove(a.jqDnR.drag).mouseup(a.jqDnR.stop);return false})})},g=function(j){return parseInt(b.css(j))||false};f1=function(j){return parseInt(f.css(j))||false}})(jQuery);
|
426
426
|
var xmlJsonClass={xml2json:function(a,c){if(a.nodeType===9)a=a.documentElement;var e=this.toJson(this.toObj(this.removeWhite(a)),a.nodeName,"\t");return"{\n"+c+(c?e.replace(/\t/g,c):e.replace(/\t|\n/g,""))+"\n}"},json2xml:function(a,c){var e=function(h,g,j){var d="",k,l;if(h instanceof Array)if(h.length===0)d+=j+"<"+g+">__EMPTY_ARRAY_</"+g+">\n";else{k=0;for(l=h.length;k<l;k+=1){var o=j+e(h[k],g,j+"\t")+"\n";d+=o}}else if(typeof h==="object"){k=false;d+=j+"<"+g;for(l in h)if(h.hasOwnProperty(l))if(l.charAt(0)===
|
427
427
|
"@")d+=" "+l.substr(1)+'="'+h[l].toString()+'"';else k=true;d+=k?">":"/>";if(k){for(l in h)if(h.hasOwnProperty(l))if(l==="#text")d+=h[l];else if(l==="#cdata")d+="<![CDATA["+h[l]+"]]\>";else if(l.charAt(0)!=="@")d+=e(h[l],l,j+"\t");d+=(d.charAt(d.length-1)==="\n"?j:"")+"</"+g+">"}}else d+=typeof h==="function"?j+"<"+g+"><![CDATA["+h+"]]\></"+g+">":h.toString()==='""'||h.toString().length===0?j+"<"+g+">__EMPTY_STRING_</"+g+">":j+"<"+g+">"+h.toString()+"</"+g+">";return d},b="",f;for(f in a)if(a.hasOwnProperty(f))b+=
|
@@ -436,37 +436,37 @@ c=e}else{c.nodeType===1&&this.removeWhite(c);c=c.nextSibling}return a}};
|
|
436
436
|
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,h={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+
|
437
437
|
" ui-sortable-placeholder ui-state-highlight").removeClass("ui-sortable-helper")[0]},update:function(j,d){d.height(j.currentItem.innerHeight()-parseInt(j.currentItem.css("paddingTop")||0,10)-parseInt(j.currentItem.css("paddingBottom")||0,10));d.width(j.currentItem.innerWidth()-parseInt(j.currentItem.css("paddingLeft")||0,10)-parseInt(j.currentItem.css("paddingRight")||0,10))}},update:function(j,d){var k=a(d.item).parent();k=a(">th",k);var l={};a.each(f.p.colModel,function(m){l[this.name]=m});var o=
|
438
438
|
[];k.each(function(){var m=a(">div",this).get(0).id.replace(/^jqgh_/,"");m in l&&o.push(l[m])});a(f).jqGrid("remapColumns",o,true,true);a.isFunction(f.p.sortable.update)&&f.p.sortable.update(o);setTimeout(function(){f.p.disableClick=false},50)}};if(f.p.sortable.options)a.extend(h,f.p.sortable.options);else if(a.isFunction(f.p.sortable))f.p.sortable={update:f.p.sortable};if(h.start){var g=h.start;h.start=function(j,d){b();g.call(this,j,d)}}else h.start=b;if(f.p.sortable.exclude)h.items+=":not("+f.p.sortable.exclude+
|
439
|
-
")";e.sortable(h).data("sortable").floating=true})},columnChooser:function(e){function b(m,
|
440
|
-
done:function(m){m&&f.jqGrid("remapColumns",m,true)},msel:"multiselect",dlog:"dialog",dlog_opts:function(m){var
|
441
|
-
10))});a.each(m,function(){delete k[j[parseInt(this,10)].name]});a.each(k,function(){var
|
439
|
+
")";e.sortable(h).data("sortable").floating=true})},columnChooser:function(e){function b(m,t){if(m)if(typeof m=="string")a.fn[m]&&a.fn[m].apply(t,a.makeArray(arguments).slice(2));else a.isFunction(m)&&m.apply(t,a.makeArray(arguments).slice(2))}var f=this;if(!a("#colchooser_"+f[0].p.id).length){var h=a('<div id="colchooser_'+f[0].p.id+'" style="position:relative;overflow:hidden"><div><select multiple="multiple"></select></div></div>'),g=a("select",h);e=a.extend({width:420,height:240,classname:null,
|
440
|
+
done:function(m){m&&f.jqGrid("remapColumns",m,true)},msel:"multiselect",dlog:"dialog",dlog_opts:function(m){var t={};t[m.bSubmit]=function(){m.apply_perm();m.cleanup(false)};t[m.bCancel]=function(){m.cleanup(true)};return{buttons:t,close:function(){m.cleanup(true)},modal:false,resizable:false,width:m.width+20}},apply_perm:function(){a("option",g).each(function(){this.selected?f.jqGrid("showCol",j[this.value].name):f.jqGrid("hideCol",j[this.value].name)});var m=[];a("option[selected]",g).each(function(){m.push(parseInt(this.value,
|
441
|
+
10))});a.each(m,function(){delete k[j[parseInt(this,10)].name]});a.each(k,function(){var t=parseInt(this,10);var q=m,s=t;if(s>=0){var n=q.slice(),p=n.splice(s,Math.max(q.length-s,s));if(s>q.length)s=q.length;n[s]=t;m=n.concat(p)}else m=void 0});e.done&&e.done.call(f,m)},cleanup:function(m){b(e.dlog,h,"destroy");b(e.msel,g,"destroy");h.remove();m&&e.done&&e.done.call(f)},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!");
|
442
442
|
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);g.addClass(e.classname)}if(e.width){a(">div",h).css({width:e.width,margin:"0 auto"});g.css("width",e.width)}if(e.height){a(">div",h).css("height",e.height);g.css("height",e.height-10)}var j=f.jqGrid("getGridParam","colModel"),d=f.jqGrid("getGridParam","colNames"),k={},l=[];g.empty();a.each(j,function(m){k[this.name]=m;if(this.hidedlg)this.hidden||l.push(m);
|
443
443
|
else g.append("<option value='"+m+"' "+(this.hidden?"":"selected='selected'")+">"+d[m]+"</option>")});var o=a.isFunction(e.dlog_opts)?e.dlog_opts.call(f,e):e.dlog_opts;b(e.dlog,h,o);o=a.isFunction(e.msel_opts)?e.msel_opts.call(f,e):e.msel_opts;b(e.msel,g,o)}},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_=
|
444
444
|
false;if(e.update&&a.isFunction(e.update)){e._update_=e.update;delete e.update}else e._update_=false;e.start=function(f,h){a(h.item).css("border-width","0px");a("td",h.item).each(function(d){this.style.width=b.grid.cols[d].style.width});if(b.p.subGrid){var g=a(h.item).attr("id");try{a(b).jqGrid("collapseSubGridRow",g)}catch(j){}}e._start_&&e._start_.apply(this,[f,h])};e.update=function(f,h){a(h.item).css("border-width","");b.p.rownumbers===true&&a("td.jqgrid-rownum",b.rows).each(function(g){a(this).html(g+
|
445
445
|
1)});e._update_&&e._update_.apply(this,[f,h])};a("tbody:first",b).sortable(e);a("tbody:first",b).disableSelection()}})},gridDnD:function(e){return this.each(function(){function b(){var g=a.data(f,"dnd");a("tr.jqgrow:not(.ui-draggable)",f).draggable(a.isFunction(g.drag)?g.drag.call(a(f),g):g.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==
|
446
446
|
"updateDnD"&&f.p.jqgdnd===true)b();else{e=a.extend({drag:function(g){return a.extend({start:function(j,d){if(f.p.subGrid){var k=a(d.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",{});d.helper.addClass("ui-state-highlight");a("td",d.helper).each(function(o){this.style.width=f.grid.headers[o].width+
|
447
|
-
"px"});g.onstart&&a.isFunction(g.onstart)&&g.onstart.call(a(f),j,d)},stop:function(j,d){if(d.helper.dropped){var k=a(d.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");g.onstop&&a.isFunction(g.onstop)&&g.onstop.call(a(f),j,d)}},g.drag_opts||{})},drop:function(g){return a.extend({accept:function(j){var d=a(j).closest("table.ui-jqgrid-btable");if(
|
448
|
-
"dnd").connectWith;return a.inArray("#"+this.id,j)!=-1?true:false}return j},drop:function(j,d){var k=a(d.draggable).attr("id");k=
|
449
|
-
"object")k=m}if(d.helper.dropped){var n;if(g.autoid)if(a.isFunction(g.autoid))n=g.autoid.call(this,k);else{n=Math.ceil(Math.random()*1E3);n=g.autoidprefix+n}a("#"+this.id).jqGrid("addRowData",n,k,g.droppos)}g.ondrop&&a.isFunction(g.ondrop)&&g.ondrop.call(this,j,d,k)}},g.drop_opts||{})},onstart:null,onstop:null,beforedrop:null,ondrop:null,drop_opts:{activeClass:"ui-state-active",hoverClass:"ui-state-hover"},
|
450
|
-
dropbyname:false,droppos:"first",autoid:true,autoidprefix:"dnd_"},e||{});if(e.connectWith){e.connectWith=e.connectWith.split(",");e.connectWith=a.map(e.connectWith,function(g){return a.trim(g)});a.data(f,"dnd",e);f.p.reccount!="0"&&!f.p.jqgdnd&&b();f.p.jqgdnd=true;for(var h=0;h<e.connectWith.length;h++)a(e.connectWith[h]).droppable(a.isFunction(e.drop)?e.drop.call(a(f),e):e.drop)}}}})},gridResize:function(e){return this.each(function(){var b=
|
451
|
-
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,h){a(b).jqGrid("setGridParam",{height:a("#gview_"+b.p.id+" .ui-jqgrid-bdiv").height()});a(b).jqGrid("setGridWidth",h.size.width,e.shrinkToFit);e._stop_&&e._stop_.call(b,f,h)};e.alsoResize=e._alsoResize_?eval("("+("{'#gview_"+b.p.id+" .ui-jqgrid-bdiv':true,'"+
|
452
|
-
a("#gbox_"+b.p.id).resizable(e)}})}})})(jQuery);
|
447
|
+
"px"});g.onstart&&a.isFunction(g.onstart)&&g.onstart.call(a(f),j,d)},stop:function(j,d){if(d.helper.dropped){var k=a(d.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");g.onstop&&a.isFunction(g.onstop)&&g.onstop.call(a(f),j,d)}},g.drag_opts||{})},drop:function(g){return a.extend({accept:function(j){if(!a(j).hasClass("jqgrow"))return j;var d=a(j).closest("table.ui-jqgrid-btable");if(d.length>
|
448
|
+
0&&a.data(d[0],"dnd")!==undefined){j=a.data(d[0],"dnd").connectWith;return a.inArray("#"+this.id,j)!=-1?true:false}return j},drop:function(j,d){if(a(d.draggable).hasClass("jqgrow")){var k=a(d.draggable).attr("id");k=d.draggable.parent().parent().jqGrid("getRowData",k);if(!g.dropbyname){var l=0,o={},m,t=a("#"+this.id).jqGrid("getGridParam","colModel");try{for(var q in k){if(k.hasOwnProperty(q)&&t[l]){m=t[l].name;o[m]=k[q]}l++}k=o}catch(s){}}d.helper.dropped=true;if(g.beforedrop&&a.isFunction(g.beforedrop)){m=
|
449
|
+
g.beforedrop.call(this,j,d,k,a("#"+f.id),a(this));if(typeof m!="undefined"&&m!==null&&typeof m=="object")k=m}if(d.helper.dropped){var n;if(g.autoid)if(a.isFunction(g.autoid))n=g.autoid.call(this,k);else{n=Math.ceil(Math.random()*1E3);n=g.autoidprefix+n}a("#"+this.id).jqGrid("addRowData",n,k,g.droppos)}g.ondrop&&a.isFunction(g.ondrop)&&g.ondrop.call(this,j,d,k)}}},g.drop_opts||{})},onstart:null,onstop:null,beforedrop:null,ondrop:null,drop_opts:{activeClass:"ui-state-active",hoverClass:"ui-state-hover"},
|
450
|
+
drag_opts:{revert:"invalid",helper:"clone",cursor:"move",appendTo:"#jqgrid_dnd",zIndex:5E3},dropbyname:false,droppos:"first",autoid:true,autoidprefix:"dnd_"},e||{});if(e.connectWith){e.connectWith=e.connectWith.split(",");e.connectWith=a.map(e.connectWith,function(g){return a.trim(g)});a.data(f,"dnd",e);f.p.reccount!="0"&&!f.p.jqgdnd&&b();f.p.jqgdnd=true;for(var h=0;h<e.connectWith.length;h++)a(e.connectWith[h]).droppable(a.isFunction(e.drop)?e.drop.call(a(f),e):e.drop)}}}})},gridResize:function(e){return this.each(function(){var b=
|
451
|
+
this;if(b.grid&&a.fn.resizable){e=a.extend({},e||{});if(e.alsoResize){e._alsoResize_=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,h){a(b).jqGrid("setGridParam",{height:a("#gview_"+b.p.id+" .ui-jqgrid-bdiv").height()});a(b).jqGrid("setGridWidth",h.size.width,e.shrinkToFit);e._stop_&&e._stop_.call(b,f,h)};e.alsoResize=e._alsoResize_?eval("("+("{'#gview_"+b.p.id+" .ui-jqgrid-bdiv':true,'"+
|
452
|
+
e._alsoResize_+"':true}")+")"):a(".ui-jqgrid-bdiv","#gview_"+b.p.id);delete e._alsoResize_;a("#gbox_"+b.p.id).resizable(e)}})}})})(jQuery);
|
453
453
|
jQuery.fn.searchFilter=function(a,c){return new function(e,b,f){this.$=e;this.add=function(y){y==null?e.find(".ui-add-last").click():e.find(".sf:eq("+y+") .ui-add").click();return this};this.del=function(y){y==null?e.find(".sf:last .ui-del").click():e.find(".sf:eq("+y+") .ui-del").click();return this};this.search=function(){e.find(".ui-search").click();return this};this.reset=function(y){if(y===undefined)y=false;e.find(".ui-reset").trigger("click",[y]);return this};this.close=function(){e.find(".ui-closer").click();
|
454
454
|
return this};if(b!=null){var h=function(){jQuery(this).toggleClass("ui-state-hover");return false},g=function(y){jQuery(this).toggleClass("ui-state-active",y.type=="mousedown");return false},j=function(y,A){return"<option value='"+y+"'>"+A+"</option>"},d=function(y,A,x){return"<select class='"+y+"'"+(x?" style='display:none;'":"")+">"+A+"</select>"},k=function(y,A){var x=e.find("tr.sf td.data "+y);x[0]!=null&&A(x)},l=function(y,A){var x=e.find("tr.sf td.data "+y);x[0]!=null&&jQuery.each(A,function(){this.data!=
|
455
|
-
null?x.bind(this.type,this.data,this.fn):x.bind(this.type,this.fn)})},o=jQuery.extend({},jQuery.fn.searchFilter.defaults,f),m=-1,
|
455
|
+
null?x.bind(this.type,this.data,this.fn):x.bind(this.type,this.fn)})},o=jQuery.extend({},jQuery.fn.searchFilter.defaults,f),m=-1,t="";jQuery.each(o.groupOps,function(){t+=j(this.op,this.text)});t="<select name='groupOp'>"+t+"</select>";e.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>"+
|
456
456
|
o.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;'>"+
|
457
|
-
o.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;'>"+o.searchText+"</span></span><span class='matchText'>"+o.matchText+"</span> "+
|
457
|
+
o.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;'>"+o.searchText+"</span></span><span class='matchText'>"+o.matchText+"</span> "+t+" <span class='rulesText'>"+o.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>");
|
458
458
|
var q=e.find("tr.sf"),s=q.find("td.fields"),n=q.find("td.ops"),p=q.find("td.data"),v="";jQuery.each(o.operators,function(){v+=j(this.op,this.text)});v=d("default",v,true);n.append(v);p.append("<input type='text' class='default' style='display:none;' />");var z="",E=false,B=false;jQuery.each(b,function(y){z+=j(this.itemval,this.text);if(this.ops!=null){E=true;var A="";jQuery.each(this.ops,function(){A+=j(this.op,this.text)});A=d("field"+y,A,true);n.append(A)}if(this.dataUrl!=null){if(y>m)m=y;B=true;
|
459
|
-
var x=this.dataEvents,G=this.dataInit,I=this.buildSelect;jQuery.ajax(jQuery.extend({url:this.dataUrl,complete:function(
|
459
|
+
var x=this.dataEvents,G=this.dataInit,I=this.buildSelect;jQuery.ajax(jQuery.extend({url:this.dataUrl,complete:function(T){T=I!=null?jQuery("<div />").append(I(T)):jQuery("<div />").append(T.responseText);T.find("select").addClass("field"+y).hide();p.append(T.html());G&&k(".field"+y,G);x&&l(".field"+y,x);y==m&&e.find("tr.sf td.fields select[name='field']").change()}},o.ajaxSelectOptions))}else if(this.dataValues!=null){B=true;var R="";jQuery.each(this.dataValues,function(){R+=j(this.value,this.text)});
|
460
460
|
R=d("field"+y,R,true);p.append(R)}else if(this.dataEvents!=null||this.dataInit!=null){B=true;R="<input type='text' class='field"+y+"' />";p.append(R)}this.dataInit!=null&&y!=m&&k(".field"+y,this.dataInit);this.dataEvents!=null&&y!=m&&l(".field"+y,this.dataEvents)});z="<select name='field'>"+z+"</select>";s.append(z);b=s.find("select[name='field']");E?b.change(function(y){var A=y.target.selectedIndex;y=jQuery(y.target).parents("tr.sf").find("td.ops");y.find("select").removeAttr("name").hide();A=y.find(".field"+
|
461
461
|
A);if(A[0]==null)A=y.find(".default");A.attr("name","op").show();return false}):n.find(".default").attr("name","op").show();B?b.change(function(y){var A=y.target.selectedIndex;y=jQuery(y.target).parents("tr.sf").find("td.data");y.find("select,input").removeClass("vdata").hide();A=y.find(".field"+A);if(A[0]==null)A=y.find(".default");A.show().addClass("vdata");return false}):p.find(".default").show().addClass("vdata");if(E||B)b.change();e.find(".ui-state-default").hover(h,h).mousedown(g).mouseup(g);
|
462
462
|
e.find(".ui-closer").click(function(){o.onClose(jQuery(e.selector));return false});e.find(".ui-del").click(function(y){y=jQuery(y.target).parents(".sf");if(y.siblings(".sf").length>0){o.datepickerFix===true&&jQuery.fn.datepicker!==undefined&&y.find(".hasDatepicker").datepicker("destroy");y.remove()}else{y.find("select[name='field']")[0].selectedIndex=0;y.find("select[name='op']")[0].selectedIndex=0;y.find(".data input").val("");y.find(".data select").each(function(){this.selectedIndex=0});y.find("select[name='field']").change(function(A){A.stopPropagation()})}return false});
|
463
463
|
e.find(".ui-add").click(function(y){y=jQuery(y.target).parents(".sf");var A=y.clone(true).insertAfter(y);A.find(".ui-state-default").removeClass("ui-state-hover ui-state-active");if(o.clone){A.find("select[name='field']")[0].selectedIndex=y.find("select[name='field']")[0].selectedIndex;if(A.find("select[name='op']")[0]!=null)A.find("select[name='op']").focus()[0].selectedIndex=y.find("select[name='op']")[0].selectedIndex;var x=A.find("select.vdata");if(x[0]!=null)x[0].selectedIndex=y.find("select.vdata")[0].selectedIndex}else{A.find(".data input").val("");
|
464
464
|
A.find("select[name='field']").focus()}o.datepickerFix===true&&jQuery.fn.datepicker!==undefined&&y.find(".hasDatepicker").each(function(){var G=jQuery.data(this,"datepicker").settings;A.find("#"+this.id).unbind().removeAttr("id").removeClass("hasDatepicker").datepicker(G)});A.find("select[name='field']").change(function(G){G.stopPropagation()});return false});e.find(".ui-search").click(function(){var y=jQuery(e.selector),A,x=y.find("select[name='groupOp'] :selected").val();A=o.stringResult?'{"groupOp":"'+
|
465
|
-
x+'","rules":[':{groupOp:x,rules:[]};y.find(".sf").each(function(G){var I=jQuery(this).find("select[name='field'] :selected").val(),R=jQuery(this).find("select[name='op'] :selected").val(),
|
465
|
+
x+'","rules":[':{groupOp:x,rules:[]};y.find(".sf").each(function(G){var I=jQuery(this).find("select[name='field'] :selected").val(),R=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(o.stringResult){if(G>0)A+=",";A+='{"field":"'+I+'",';A+='"op":"'+R+'",';A+='"data":"'+T+'"}'}else A.rules.push({field:I,op:R,data:T})});if(o.stringResult)A+="]}";o.onSearch(A);return false});e.find(".ui-reset").click(function(y,
|
466
466
|
A){var x=jQuery(e.selector);x.find(".ui-del").click();x.find("select[name='groupOp']")[0].selectedIndex=0;o.onReset(A);return false});e.find(".ui-add-last").click(function(){var y=jQuery(e.selector+" .sf:last"),A=y.clone(true).insertAfter(y);A.find(".ui-state-default").removeClass("ui-state-hover ui-state-active");A.find(".data input").val("");A.find("select[name='field']").focus();o.datepickerFix===true&&jQuery.fn.datepicker!==undefined&&y.find(".hasDatepicker").each(function(){var x=jQuery.data(this,
|
467
467
|
"datepicker").settings;A.find("#"+this.id).unbind().removeAttr("id").removeClass("hasDatepicker").datepicker(x)});A.find("select[name='field']").change(function(x){x.stopPropagation()});return false});this.setGroupOp=function(y){selDOMobj=e.find("select[name='groupOp']")[0];var A={},x=selDOMobj.options.length,G;for(G=0;G<x;G++)A[selDOMobj.options[G].value]=G;selDOMobj.selectedIndex=A[y];jQuery(selDOMobj).change(function(I){I.stopPropagation()})};this.setFilter=function(y){var A=y.sfref;y=y.filter;
|
468
|
-
var x=[],G,I,R,
|
469
|
-
I}}var
|
468
|
+
var x=[],G,I,R,T,da={};selDOMobj=A.find("select[name='field']")[0];G=0;for(R=selDOMobj.options.length;G<R;G++){da[selDOMobj.options[G].value]={index:G,ops:{}};x.push(selDOMobj.options[G].value)}G=0;for(R=x.length;G<R;G++){if(selDOMobj=A.find(".ops > select[class='field"+G+"']")[0]){I=0;for(T=selDOMobj.options.length;I<T;I++)da[x[G]].ops[selDOMobj.options[I].value]=I}if(selDOMobj=A.find(".data > select[class='field"+G+"']")[0]){da[x[G]].data={};I=0;for(T=selDOMobj.options.length;I<T;I++)da[x[G]].data[selDOMobj.options[I].value]=
|
469
|
+
I}}var ea,ba,sa,ya;x=y.field;if(da[x])ea=da[x].index;if(ea!=null){ba=da[x].ops[y.op];if(ba===undefined){G=0;for(R=f.operators.length;G<R;G++)if(f.operators[G].op==y.op){ba=G;break}}sa=y.data;ya=da[x].data==null?-1:da[x].data[sa]}if(ea!=null&&ba!=null&&ya!=null){A.find("select[name='field']")[0].selectedIndex=ea;A.find("select[name='field']").change();A.find("select[name='op']")[0].selectedIndex=ba;A.find("input.vdata").val(sa);if(A=A.find("select.vdata")[0])A.selectedIndex=ya;return true}else return false}}}(this,
|
470
470
|
a,c)};jQuery.fn.searchFilter.version="1.2.9";
|
471
471
|
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"},
|
472
472
|
{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:{}};
|