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
Binary file
|
@@ -0,0 +1,15 @@
|
|
1
|
+
// Generated by compass-jquery-plugin/gem-tasks/emulators.rake
|
2
|
+
|
3
|
+
.iphone .emulator {
|
4
|
+
background: image_url("emulators/iphone.landscape.png") no-repeat;
|
5
|
+
width: 740px;
|
6
|
+
height: 420px;
|
7
|
+
.display-area {
|
8
|
+
position: relative;
|
9
|
+
top: 50px;
|
10
|
+
width: 460px;
|
11
|
+
height: 320px;
|
12
|
+
max-height: 320px;
|
13
|
+
color: #ffffff;
|
14
|
+
a {
|
15
|
+
color: #ff5500; } } }
|
Binary file
|
@@ -0,0 +1,15 @@
|
|
1
|
+
// Generated by compass-jquery-plugin/gem-tasks/emulators.rake
|
2
|
+
|
3
|
+
.iphone .emulator {
|
4
|
+
background: image_url("emulators/iphone.portrait.png") no-repeat;
|
5
|
+
width: 390px;
|
6
|
+
height: 732px;
|
7
|
+
.display-area {
|
8
|
+
position: relative;
|
9
|
+
top: 138px;
|
10
|
+
width: 320px;
|
11
|
+
height: 460px;
|
12
|
+
max-height: 460px;
|
13
|
+
color: #ffffff;
|
14
|
+
a {
|
15
|
+
color: #ff5500; } } }
|
@@ -0,0 +1,15 @@
|
|
1
|
+
// Generated by compass-jquery-plugin/gem-tasks/emulators.rake
|
2
|
+
|
3
|
+
.palm .emulator {
|
4
|
+
background: image_url("emulators/palm.pre.landscape.png") no-repeat;
|
5
|
+
width: 770px;
|
6
|
+
height: 432px;
|
7
|
+
.display-area {
|
8
|
+
position: relative;
|
9
|
+
top: 56px;
|
10
|
+
width: 460px;
|
11
|
+
height: 320px;
|
12
|
+
max-height: 320px;
|
13
|
+
color: #ffffff;
|
14
|
+
a {
|
15
|
+
color: #ff5500; } } }
|
@@ -0,0 +1,15 @@
|
|
1
|
+
// Generated by compass-jquery-plugin/gem-tasks/emulators.rake
|
2
|
+
|
3
|
+
.palm .emulator {
|
4
|
+
background: image_url("emulators/palm.pre.portrait.png") no-repeat;
|
5
|
+
width: 416px;
|
6
|
+
height: 730px;
|
7
|
+
.display-area {
|
8
|
+
position: relative;
|
9
|
+
top: 123px;
|
10
|
+
width: 320px;
|
11
|
+
height: 460px;
|
12
|
+
max-height: 460px;
|
13
|
+
color: #ffffff;
|
14
|
+
a {
|
15
|
+
color: #ff5500; } } }
|
Binary file
|
Binary file
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Generated by compass-jquery-plugin/gem-tasks/emulators.rake
|
2
|
+
# Install with: compass install jquery/emulators
|
3
|
+
|
4
|
+
file 'config/initializers/emulators.rb'
|
5
|
+
stylesheet 'emulators/blackberry.landscape.scss'
|
6
|
+
stylesheet 'emulators/blackberry.portrait.scss'
|
7
|
+
stylesheet 'emulators/ipad.landscape.scss'
|
8
|
+
stylesheet 'emulators/ipad.portrait.scss'
|
9
|
+
stylesheet 'emulators/iphone.landscape.scss'
|
10
|
+
stylesheet 'emulators/iphone.portrait.scss'
|
11
|
+
stylesheet 'emulators/palm.landscape.scss'
|
12
|
+
stylesheet 'emulators/palm.portrait.scss'
|
13
|
+
image 'emulators/blackberry.torch.landscape.png'
|
14
|
+
image 'emulators/blackberry.torch.portrait.png'
|
15
|
+
image 'emulators/ipad.landscape.png'
|
16
|
+
image 'emulators/ipad.portrait.png'
|
17
|
+
image 'emulators/iphone.landscape.png'
|
18
|
+
image 'emulators/iphone.portrait.png'
|
19
|
+
image 'emulators/palm.pre.landscape.png'
|
20
|
+
image 'emulators/palm.pre.portrait.png'
|
@@ -1,4 +1,4 @@
|
|
1
1
|
require 'jquery/jqgrid'
|
2
2
|
require 'jquery/gridify'
|
3
3
|
|
4
|
-
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :jqgrid => ['compiled/jquery
|
4
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :jqgrid => ['compiled/jquery/jqGrid.css']
|
@@ -1,4 +1,4 @@
|
|
1
|
-
(function(b){b.jgrid={defaults:{recordtext:"Mostrant {0} - {1} de {2}",emptyrecords:"Sense registres que mostrar",loadtext:"Carregant...",pgtext:"
|
1
|
+
(function(b){b.jgrid={defaults:{recordtext:"Mostrant {0} - {1} de {2}",emptyrecords:"Sense registres que mostrar",loadtext:"Carregant...",pgtext:"Pàgina {0} de {1}"},search:{caption:"Cerca...",Find:"Cercar",Reset:"Buidar",odata:["equal","not equal","less","less or equal","greater","greater or equal","begins with","does not begin with","is in","is not in","ends with","does not end with","contains","does not contain"],groupOps:[{op:"AND",text:"tot"},{op:"OR",text:"qualsevol"}],matchText:" match",rulesText:" rules"},
|
2
2
|
edit:{addCaption:"Afegir registre",editCaption:"Modificar registre",bSubmit:"Guardar",bCancel:"Cancelar",bClose:"Tancar",saveData:"Les dades han canviat. Guardar canvis?",bYes:"Yes",bNo:"No",bExit:"Cancel",msg:{required:"Camp obligatori",number:"Introdueixi un nombre",minValue:"El valor ha de ser major o igual que ",maxValue:"El valor ha de ser menor o igual a ",email:"no és una direcció de correu vàlida",integer:"Introdueixi un valor enter",date:"Introdueixi una data correcta ",url:"no és una URL vàlida. Prefix requerit ('http://' or 'https://')",
|
3
3
|
nodefined:" is not defined!",novalue:" return value is required!",customarray:"Custom function should return array!",customfcheck:"Custom function should be present in case of custom checking!"}},view:{caption:"Veure registre",bClose:"Tancar"},del:{caption:"Eliminar",msg:"¿Desitja eliminar els registres seleccionats?",bSubmit:"Eliminar",bCancel:"Cancelar"},nav:{edittext:" ",edittitle:"Modificar fila seleccionada",addtext:" ",addtitle:"Agregar nova fila",deltext:" ",deltitle:"Eliminar fila seleccionada",
|
4
4
|
searchtext:" ",searchtitle:"Cercar informació",refreshtext:"",refreshtitle:"Refrescar taula",alertcap:"Avís",alerttext:"Seleccioni una fila",viewtext:" ",viewtitle:"Veure fila seleccionada"},col:{caption:"Mostrar/ocultar columnes",bSubmit:"Enviar",bCancel:"Cancelar"},errors:{errcap:"Error",nourl:"No s'ha especificat una URL",norecords:"No hi ha dades per processar",model:"Les columnes de noms són diferents de les columnes del model"},formatter:{integer:{thousandsSeparator:".",defaultValue:"0"},number:{decimalSeparator:",",
|
@@ -4,6 +4,11 @@
|
|
4
4
|
* Version 1.0.0 (developed for jQuery Grid 3.3.1)
|
5
5
|
* Olaf Klöppel opensource@blue-hit.de
|
6
6
|
* http://blue-hit.de/
|
7
|
+
*
|
8
|
+
* Updated for jqGrid 3.8
|
9
|
+
* Andreas Flack
|
10
|
+
* http://www.contentcontrol-berlin.de
|
11
|
+
*
|
7
12
|
* Dual licensed under the MIT and GPL licenses:
|
8
13
|
* http://www.opensource.org/licenses/mit-license.php
|
9
14
|
* http://www.gnu.org/licenses/gpl.html
|
@@ -17,12 +22,12 @@ $.jgrid = {
|
|
17
22
|
},
|
18
23
|
search : {
|
19
24
|
caption: "Suche...",
|
20
|
-
Find: "
|
25
|
+
Find: "Suchen",
|
21
26
|
Reset: "Zurücksetzen",
|
22
27
|
odata : ['gleich', 'ungleich', 'kleiner', 'kleiner gleich','größer','größer gleich', 'beginnt mit','beginnt nicht mit','ist in','ist nicht in','endet mit','endet nicht mit','enthält','enthält nicht'],
|
23
|
-
groupOps: [ { op: "AND", text: "alle" }, { op: "OR", text: "mindestens
|
24
|
-
matchText: "
|
25
|
-
rulesText: "
|
28
|
+
groupOps: [ { op: "AND", text: "alle" }, { op: "OR", text: "mindestens eine" } ],
|
29
|
+
matchText: " erfülle",
|
30
|
+
rulesText: " Bedingung(en)"
|
26
31
|
},
|
27
32
|
edit : {
|
28
33
|
addCaption: "Datensatz hinzufügen",
|
@@ -39,10 +44,10 @@ $.jgrid = {
|
|
39
44
|
number: "Bitte geben Sie eine Zahl ein",
|
40
45
|
minValue:"Wert muss größer oder gleich sein, als ",
|
41
46
|
maxValue:"Wert muss kleiner oder gleich sein, als ",
|
42
|
-
email: "ist keine
|
47
|
+
email: "ist keine gültige E-Mail-Adresse",
|
43
48
|
integer: "Bitte geben Sie eine Ganzzahl ein",
|
44
49
|
date: "Bitte geben Sie ein gültiges Datum ein",
|
45
|
-
url: "ist keine gültige URL.
|
50
|
+
url: "ist keine gültige URL. Präfix muss eingegeben werden ('http://' oder 'https://')",
|
46
51
|
nodefined : " ist nicht definiert!",
|
47
52
|
novalue : " Rückgabewert ist erforderlich!",
|
48
53
|
customarray : "Benutzerdefinierte Funktion sollte ein Array zurückgeben!",
|
@@ -50,7 +55,7 @@ $.jgrid = {
|
|
50
55
|
}
|
51
56
|
},
|
52
57
|
view : {
|
53
|
-
caption: "Datensatz
|
58
|
+
caption: "Datensatz anzeigen",
|
54
59
|
bClose: "Schließen"
|
55
60
|
},
|
56
61
|
del : {
|
@@ -61,13 +66,13 @@ $.jgrid = {
|
|
61
66
|
},
|
62
67
|
nav : {
|
63
68
|
edittext: " ",
|
64
|
-
edittitle: "
|
69
|
+
edittitle: "Ausgewählte Zeile editieren",
|
65
70
|
addtext:" ",
|
66
|
-
addtitle: "
|
71
|
+
addtitle: "Neue Zeile einfügen",
|
67
72
|
deltext: " ",
|
68
73
|
deltitle: "Ausgewählte Zeile löschen",
|
69
74
|
searchtext: " ",
|
70
|
-
searchtitle: "Datensatz
|
75
|
+
searchtitle: "Datensatz suchen",
|
71
76
|
refreshtext: "",
|
72
77
|
refreshtitle: "Tabelle neu laden",
|
73
78
|
alertcap: "Warnung",
|
@@ -76,18 +81,18 @@ $.jgrid = {
|
|
76
81
|
viewtitle: "Ausgewählte Zeile anzeigen"
|
77
82
|
},
|
78
83
|
col : {
|
79
|
-
caption: "Spalten
|
84
|
+
caption: "Spalten auswählen",
|
80
85
|
bSubmit: "Speichern",
|
81
86
|
bCancel: "Abbrechen"
|
82
87
|
},
|
83
88
|
errors : {
|
84
89
|
errcap : "Fehler",
|
85
90
|
nourl : "Keine URL angegeben",
|
86
|
-
norecords: "Keine Datensätze
|
91
|
+
norecords: "Keine Datensätze zu bearbeiten",
|
87
92
|
model : "colNames und colModel sind unterschiedlich lang!"
|
88
93
|
},
|
89
94
|
formatter : {
|
90
|
-
integer : {thousandsSeparator: "
|
95
|
+
integer : {thousandsSeparator: ".", defaultValue: '0'},
|
91
96
|
number : {decimalSeparator:",", thousandsSeparator: ".", decimalPlaces: 2, defaultValue: '0,00'},
|
92
97
|
currency : {decimalSeparator:",", thousandsSeparator: ".", decimalPlaces: 2, prefix: "", suffix:" €", defaultValue: '0,00'},
|
93
98
|
date : {
|
@@ -100,14 +105,14 @@ $.jgrid = {
|
|
100
105
|
"Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"
|
101
106
|
],
|
102
107
|
AmPm : ["am","pm","AM","PM"],
|
103
|
-
S: function (j) {return
|
108
|
+
S: function (j) {return 'ter'},
|
104
109
|
srcformat: 'Y-m-d',
|
105
|
-
newformat: 'd
|
110
|
+
newformat: 'd.m.Y',
|
106
111
|
masks : {
|
107
|
-
ISO8601Long:"d
|
108
|
-
ISO8601Short:"d
|
112
|
+
ISO8601Long: "Y-m-d H:i:s",
|
113
|
+
ISO8601Short: "Y-m-d",
|
109
114
|
ShortDate: "j.n.Y",
|
110
|
-
LongDate: "l,
|
115
|
+
LongDate: "l, j. F Y",
|
111
116
|
FullDateTime: "l, d. F Y G:i:s",
|
112
117
|
MonthDay: "d. F",
|
113
118
|
ShortTime: "G:i",
|
@@ -1,7 +1,7 @@
|
|
1
|
-
(function(
|
2
|
-
edit:{addCaption:"Datensatz hinzufügen",editCaption:"Datensatz bearbeiten",bSubmit:"Speichern",bCancel:"Abbrechen",bClose:"Schließen",saveData:"Daten wurden geändert! Änderungen speichern?",bYes:"ja",bNo:"nein",bExit:"abbrechen",msg:{required:"Feld ist erforderlich",number:"Bitte geben Sie eine Zahl ein",minValue:"Wert muss größer oder gleich sein, als ",maxValue:"Wert muss kleiner oder gleich sein, als ",email:"ist keine
|
3
|
-
url:"ist keine gültige URL.
|
4
|
-
nav:{edittext:" ",edittitle:"
|
5
|
-
model:"colNames und colModel sind unterschiedlich lang!"},formatter:{integer:{thousandsSeparator:"
|
6
|
-
"Aug","Sep","Okt","Nov","Dez","Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],AmPm:["am","pm","AM","PM"],S:function(
|
1
|
+
(function(a){a.jgrid={defaults:{recordtext:"Zeige {0} - {1} von {2}",emptyrecords:"Keine Datensätze vorhanden",loadtext:"Lädt...",pgtext:"Seite {0} von {1}"},search:{caption:"Suche...",Find:"Suchen",Reset:"Zurücksetzen",odata:["gleich","ungleich","kleiner","kleiner gleich","größer","größer gleich","beginnt mit","beginnt nicht mit","ist in","ist nicht in","endet mit","endet nicht mit","enthält","enthält nicht"],groupOps:[{op:"AND",text:"alle"},{op:"OR",text:"mindestens eine"}],matchText:" erfülle",
|
2
|
+
rulesText:" Bedingung(en)"},edit:{addCaption:"Datensatz hinzufügen",editCaption:"Datensatz bearbeiten",bSubmit:"Speichern",bCancel:"Abbrechen",bClose:"Schließen",saveData:"Daten wurden geändert! Änderungen speichern?",bYes:"ja",bNo:"nein",bExit:"abbrechen",msg:{required:"Feld ist erforderlich",number:"Bitte geben Sie eine Zahl ein",minValue:"Wert muss größer oder gleich sein, als ",maxValue:"Wert muss kleiner oder gleich sein, als ",email:"ist keine gültige E-Mail-Adresse",integer:"Bitte geben Sie eine Ganzzahl ein",
|
3
|
+
date:"Bitte geben Sie ein gültiges Datum ein",url:"ist keine gültige URL. Präfix muss eingegeben werden ('http://' oder 'https://')",nodefined:" ist nicht definiert!",novalue:" Rückgabewert ist erforderlich!",customarray:"Benutzerdefinierte Funktion sollte ein Array zurückgeben!",customfcheck:"Benutzerdefinierte Funktion sollte im Falle der benutzerdefinierten Überprüfung vorhanden sein!"}},view:{caption:"Datensatz anzeigen",bClose:"Schließen"},del:{caption:"Löschen",msg:"Ausgewählte Datensätze löschen?",
|
4
|
+
bSubmit:"Löschen",bCancel:"Abbrechen"},nav:{edittext:" ",edittitle:"Ausgewählte Zeile editieren",addtext:" ",addtitle:"Neue Zeile einfügen",deltext:" ",deltitle:"Ausgewählte Zeile löschen",searchtext:" ",searchtitle:"Datensatz suchen",refreshtext:"",refreshtitle:"Tabelle neu laden",alertcap:"Warnung",alerttext:"Bitte Zeile auswählen",viewtext:"",viewtitle:"Ausgewählte Zeile anzeigen"},col:{caption:"Spalten auswählen",bSubmit:"Speichern",bCancel:"Abbrechen"},errors:{errcap:"Fehler",nourl:"Keine URL angegeben",
|
5
|
+
norecords:"Keine Datensätze zu bearbeiten",model:"colNames und colModel sind unterschiedlich lang!"},formatter:{integer:{thousandsSeparator:".",defaultValue:"0"},number:{decimalSeparator:",",thousandsSeparator:".",decimalPlaces:2,defaultValue:"0,00"},currency:{decimalSeparator:",",thousandsSeparator:".",decimalPlaces:2,prefix:"",suffix:" €",defaultValue:"0,00"},date:{dayNames:["So","Mo","Di","Mi","Do","Fr","Sa","Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],monthNames:["Jan",
|
6
|
+
"Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez","Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],AmPm:["am","pm","AM","PM"],S:function(){return"ter"},srcformat:"Y-m-d",newformat:"d.m.Y",masks:{ISO8601Long:"Y-m-d H:i:s",ISO8601Short:"Y-m-d",ShortDate:"j.n.Y",LongDate:"l, j. F Y",FullDateTime:"l, d. F Y G:i:s",MonthDay:"d. F",ShortTime:"G:i",LongTime:"G:i:s",SortableDateTime:"Y-m-d\\TH:i:s",UniversalSortableDateTime:"Y-m-d H:i:sO",
|
7
7
|
YearMonth:"F Y"},reformatAfterEdit:false},baseLinkUrl:"",showAction:"",target:"",checkbox:{disabled:true},idName:"id"}}})(jQuery);
|
@@ -36,8 +36,8 @@ $.jgrid = {
|
|
36
36
|
msg: {
|
37
37
|
required: "Champ obligatoire",
|
38
38
|
number: "Saisissez un nombre correct",
|
39
|
-
minValue: "La valeur doit être supérieure ou égale à
|
40
|
-
maxValue: "La valeur doit être inférieure ou égale à
|
39
|
+
minValue: "La valeur doit être supérieure ou égale à",
|
40
|
+
maxValue: "La valeur doit être inférieure ou égale à",
|
41
41
|
email: "n'est pas un email correct",
|
42
42
|
integer: "Saisissez un entier correct",
|
43
43
|
url: "n'est pas une adresse correcte. Préfixe requis ('http://' or 'https://')",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
(function(a){a.jgrid={defaults:{recordtext:"Enregistrements {0} - {1} sur {2}",emptyrecords:"Aucun enregistrement à afficher",loadtext:"Chargement...",pgtext:"Page {0} sur {1}"},search:{caption:"Recherche...",Find:"Chercher",Reset:"Annuler",odata:["égal","différent","inférieur","inférieur ou égal","supérieur","supérieur ou égal","commence par","ne commence pas par","est dans","n'est pas dans","finit par","ne finit pas par","contient","ne contient pas"],groupOps:[{op:"AND",text:"tous"},{op:"OR",text:"aucun"}],
|
2
|
-
matchText:" correspondance",rulesText:" règles"},edit:{addCaption:"Ajouter",editCaption:"Editer",bSubmit:"Valider",bCancel:"Annuler",bClose:"Fermer",saveData:"Les données ont changé ! Enregistrer les modifications ?",bYes:"Oui",bNo:"Non",bExit:"Annuler",msg:{required:"Champ obligatoire",number:"Saisissez un nombre correct",minValue:"La valeur doit être supérieure ou égale à
|
2
|
+
matchText:" correspondance",rulesText:" règles"},edit:{addCaption:"Ajouter",editCaption:"Editer",bSubmit:"Valider",bCancel:"Annuler",bClose:"Fermer",saveData:"Les données ont changé ! Enregistrer les modifications ?",bYes:"Oui",bNo:"Non",bExit:"Annuler",msg:{required:"Champ obligatoire",number:"Saisissez un nombre correct",minValue:"La valeur doit être supérieure ou égale à",maxValue:"La valeur doit être inférieure ou égale à",email:"n'est pas un email correct",integer:"Saisissez un entier correct",
|
3
3
|
url:"n'est pas une adresse correcte. Préfixe requis ('http://' or 'https://')",nodefined:" n'est pas défini!",novalue:" la valeur de retour est requise!",customarray:"Une fonction personnalisée devrait retourner un tableau (array)!",customfcheck:"Une fonction personnalisée devrait être présente dans le cas d'une vérification personnalisée!"}},view:{caption:"Voir les enregistrement",bClose:"Fermer"},del:{caption:"Supprimer",msg:"Supprimer les enregistrements sélectionnés ?",bSubmit:"Supprimer",bCancel:"Annuler"},
|
4
4
|
nav:{edittext:" ",edittitle:"Editer la ligne sélectionnée",addtext:" ",addtitle:"Ajouter une ligne",deltext:" ",deltitle:"Supprimer la ligne sélectionnée",searchtext:" ",searchtitle:"Chercher un enregistrement",refreshtext:"",refreshtitle:"Recharger le tableau",alertcap:"Avertissement",alerttext:"Veuillez sélectionner une ligne",viewtext:"",viewtitle:"Afficher la ligne sélectionnée"},col:{caption:"Afficher/Masquer les colonnes",bSubmit:"Valider",bCancel:"Annuler"},errors:{errcap:"Erreur",nourl:"Aucune adresse n'est paramétrée",
|
5
5
|
norecords:"Aucun enregistrement à traiter",model:"Nombre de titres (colNames) <> Nombre de données (colModel)!"},formatter:{integer:{thousandsSeparator:" ",defaultValue:"0"},number:{decimalSeparator:",",thousandsSeparator:" ",decimalPlaces:2,defaultValue:"0,00"},currency:{decimalSeparator:",",thousandsSeparator:" ",decimalPlaces:2,prefix:"",suffix:"",defaultValue:"0,00"},date:{dayNames:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],monthNames:["Jan",
|
@@ -700,12 +700,12 @@ $.extend($.ui.multiselect, {
|
|
700
700
|
|
701
701
|
;(function ($) {
|
702
702
|
/*
|
703
|
-
* jqGrid 3.8 - jQuery Grid
|
703
|
+
* jqGrid 3.8.1 - jQuery Grid
|
704
704
|
* Copyright (c) 2008, Tony Tomov, tony@trirand.com
|
705
705
|
* Dual licensed under the MIT and GPL licenses
|
706
706
|
* http://www.opensource.org/licenses/mit-license.php
|
707
707
|
* http://www.gnu.org/licenses/gpl-2.0.html
|
708
|
-
* Date: 2010-
|
708
|
+
* Date: 2010-10-24
|
709
709
|
*/
|
710
710
|
$.jgrid = $.jgrid || {};
|
711
711
|
$.extend($.jgrid,{
|
@@ -1788,9 +1788,9 @@ $.fn.jqGrid = function( pin ) {
|
|
1788
1788
|
}
|
1789
1789
|
if(ts.p.gridview === false ) {
|
1790
1790
|
if( ts.p.treeGrid === true) {
|
1791
|
-
fpos = ts.p.treeANode
|
1791
|
+
fpos = ts.p.treeANode > -1 ? ts.p.treeANode: 0;
|
1792
1792
|
row = $(rowData.join(''))[0]; // speed overhead
|
1793
|
-
$(ts.rows[j+fpos
|
1793
|
+
$(ts.rows[j+fpos]).after(row);
|
1794
1794
|
try {$(ts).jqGrid("setTreeNode",rd,row);} catch (e) {}
|
1795
1795
|
} else {
|
1796
1796
|
$("tbody:first",t).append(rowData.join(''));
|
@@ -1952,9 +1952,9 @@ $.fn.jqGrid = function( pin ) {
|
|
1952
1952
|
if(locdata) { rd[locid] = idr; ts.p.data.push(rd); }
|
1953
1953
|
if(ts.p.gridview === false ) {
|
1954
1954
|
if( ts.p.treeGrid === true) {
|
1955
|
-
fpos = ts.p.treeANode
|
1955
|
+
fpos = ts.p.treeANode > -1 ? ts.p.treeANode: 0;
|
1956
1956
|
row = $(rowData.join(''))[0];
|
1957
|
-
$(ts.rows[i+fpos
|
1957
|
+
$(ts.rows[i+fpos]).after(row);
|
1958
1958
|
try {$(ts).jqGrid("setTreeNode",rd,row);} catch (e) {}
|
1959
1959
|
} else {
|
1960
1960
|
$("#"+ts.p.id+" tbody:first").append(rowData.join(''));
|
@@ -3862,7 +3862,14 @@ var createModal = function(aIDs, content, p, insertSelector, posSelector, append
|
|
3862
3862
|
});
|
3863
3863
|
if (p.width === 0 || !p.width) {p.width = 300;}
|
3864
3864
|
if(p.height === 0 || !p.height) {p.height =200;}
|
3865
|
-
if(!p.zIndex) {
|
3865
|
+
if(!p.zIndex) {
|
3866
|
+
var parentZ = $(insertSelector).parents("*[role=dialog]").first().css("z-index")
|
3867
|
+
if(parentZ)
|
3868
|
+
p.zIndex = parseInt(parentZ)+1
|
3869
|
+
else
|
3870
|
+
p.zIndex = 950;
|
3871
|
+
|
3872
|
+
}
|
3866
3873
|
var rtlt = 0;
|
3867
3874
|
if( rtlsup && coord.left && !appendsel) {
|
3868
3875
|
rtlt = jQuery(p.gbox).width()- (!isNaN(p.width) ? parseInt(p.width,10) :0) - 8; // to do
|
@@ -4415,63 +4422,63 @@ function checkValues(val, valref,g) {
|
|
4415
4422
|
**/
|
4416
4423
|
var rp_ge = null;
|
4417
4424
|
$.jgrid.extend({
|
4418
|
-
|
4419
|
-
|
4420
|
-
|
4421
|
-
|
4422
|
-
|
4423
|
-
|
4424
|
-
|
4425
|
-
|
4425
|
+
searchGrid : function (p) {
|
4426
|
+
p = $.extend({
|
4427
|
+
recreateFilter: false,
|
4428
|
+
drag: true,
|
4429
|
+
sField:'searchField',
|
4430
|
+
sValue:'searchString',
|
4431
|
+
sOper: 'searchOper',
|
4432
|
+
sFilter: 'filters',
|
4426
4433
|
loadDefaults: true, // this options activates loading of default filters from grid's postData for Multipe Search only.
|
4427
|
-
|
4428
|
-
|
4429
|
-
|
4430
|
-
|
4431
|
-
|
4432
|
-
|
4433
|
-
|
4434
|
-
|
4435
|
-
|
4436
|
-
|
4437
|
-
|
4438
|
-
|
4439
|
-
|
4440
|
-
|
4441
|
-
|
4442
|
-
|
4443
|
-
|
4444
|
-
|
4445
|
-
|
4446
|
-
|
4447
|
-
|
4448
|
-
|
4449
|
-
|
4450
|
-
|
4451
|
-
|
4452
|
-
|
4453
|
-
|
4454
|
-
|
4455
|
-
|
4456
|
-
|
4457
|
-
|
4458
|
-
|
4459
|
-
|
4460
|
-
|
4461
|
-
|
4462
|
-
|
4463
|
-
|
4464
|
-
|
4465
|
-
|
4466
|
-
|
4467
|
-
|
4468
|
-
|
4469
|
-
|
4470
|
-
|
4471
|
-
|
4472
|
-
|
4434
|
+
beforeShowSearch: null,
|
4435
|
+
afterShowSearch : null,
|
4436
|
+
onInitializeSearch: null,
|
4437
|
+
closeAfterSearch : false,
|
4438
|
+
closeAfterReset: false,
|
4439
|
+
closeOnEscape : false,
|
4440
|
+
multipleSearch : false,
|
4441
|
+
cloneSearchRowOnAdd: true,
|
4442
|
+
// translation
|
4443
|
+
// if you want to change or remove the order change it in sopt
|
4444
|
+
// ['bw','eq','ne','lt','le','gt','ge','ew','cn']
|
4445
|
+
sopt: null,
|
4446
|
+
// Note: stringResult is intentionally declared "undefined by default".
|
4447
|
+
// you are velcome to define stringResult expressly in the options you pass to searchGrid()
|
4448
|
+
// stringResult is a "safeguard" measure to insure we post sensible data when communicated as form-encoded
|
4449
|
+
// see http://github.com/tonytomov/jqGrid/issues/#issue/36
|
4450
|
+
//
|
4451
|
+
// If this value is not expressly defined in the incoming options,
|
4452
|
+
// lower in the code we will infer the value based on value of multipleSearch
|
4453
|
+
stringResult: undefined,
|
4454
|
+
onClose : null,
|
4455
|
+
// useDataProxy allows ADD, EDIT and DEL code to bypass calling $.ajax
|
4456
|
+
// directly when grid's 'dataProxy' property (grid.p.dataProxy) is a function.
|
4457
|
+
// Used for "editGridRow" and "delGridRow" below and automatically flipped to TRUE
|
4458
|
+
// when ajax setting's 'url' (grid's 'editurl') property is undefined.
|
4459
|
+
// When 'useDataProxy' is true, instead of calling $.ajax.call(gridDOMobj, o, i) we call
|
4460
|
+
// gridDOMobj.p.dataProxy.call(gridDOMobj, o, i)
|
4461
|
+
//
|
4462
|
+
// Behavior is extremely similar to when 'datatype' is a function, but arguments are slightly different.
|
4463
|
+
// Normally the following is fed to datatype.call(a, b, c):
|
4464
|
+
// a = Pointer to grid's table DOM element, b = grid.p.postdata, c = "load_"+grid's ID
|
4465
|
+
// In cases of "edit" and "del" the following is fed:
|
4466
|
+
// a = Pointer to grid's table DOM element (same),
|
4467
|
+
// b = extended Ajax Options including postdata in "data" property. (different object type)
|
4468
|
+
// c = "set_"+grid's ID in case of "edit" and "del_"+grid's ID in case of "del" (same type, different content)
|
4469
|
+
// The major difference is that complete ajax options object, with attached "complete" and "error"
|
4470
|
+
// callback functions is fed instead of only post data.
|
4471
|
+
// This allows you to emulate a $.ajax call (including calling "complete"/"error"),
|
4472
|
+
// while retrieving the data locally in the browser.
|
4473
|
+
useDataProxy: false,
|
4474
|
+
overlay : true
|
4475
|
+
}, $.jgrid.search, p || {});
|
4476
|
+
return this.each(function() {
|
4477
|
+
var $t = this;
|
4478
|
+
if(!$t.grid) {return;}
|
4479
|
+
var fid = "fbox_"+$t.p.id;
|
4473
4480
|
function applyDefaultFilters(gridDOMobj, filterSettings) {
|
4474
|
-
|
4481
|
+
/*
|
4475
4482
|
gridDOMobj = ointer to grid DOM object ( $(#list)[0] )
|
4476
4483
|
What we need from gridDOMobj:
|
4477
4484
|
gridDOMobj.SearchFilter is the pointer to the Search box, once it's created.
|
@@ -4483,10 +4490,10 @@ $.jgrid.extend({
|
|
4483
4490
|
// Pulling default filter settings out of postData property of grid's properties.:
|
4484
4491
|
var defaultFilters = gridDOMobj.p.postData[filterSettings.sFilter];
|
4485
4492
|
// example of what we might get: {"groupOp":"and","rules":[{"field":"amount","op":"eq","data":"100"}]}
|
4486
|
-
|
4487
|
-
|
4488
|
-
|
4489
|
-
|
4493
|
+
// suppose we have imported this with grid import, the this is a string.
|
4494
|
+
if(typeof(defaultFilters) == "string") {
|
4495
|
+
defaultFilters = $.jgrid.parse(defaultFilters);
|
4496
|
+
}
|
4490
4497
|
if (defaultFilters) {
|
4491
4498
|
if (defaultFilters.groupOp) {
|
4492
4499
|
gridDOMobj.SearchFilter.setGroupOp(defaultFilters.groupOp);
|
@@ -4501,1790 +4508,1793 @@ $.jgrid.extend({
|
|
4501
4508
|
'sfref':gridDOMobj.SearchFilter.$.find(".sf:last"),
|
4502
4509
|
'filter':$.extend({},f)
|
4503
4510
|
});
|
4504
|
-
|
4511
|
+
if (success) { gridDOMobj.SearchFilter.add(); }
|
4505
4512
|
}
|
4506
4513
|
}
|
4507
4514
|
}
|
4508
|
-
|
4515
|
+
}
|
4509
4516
|
} // end of applyDefaultFilters
|
4510
|
-
|
4511
|
-
|
4512
|
-
|
4513
|
-
|
4514
|
-
|
4515
|
-
|
4516
|
-
|
4517
|
-
|
4518
|
-
|
4519
|
-
|
4520
|
-
|
4521
|
-
|
4522
|
-
|
4523
|
-
|
4524
|
-
|
4525
|
-
|
4526
|
-
|
4527
|
-
|
4528
|
-
|
4529
|
-
|
4530
|
-
|
4531
|
-
|
4532
|
-
|
4533
|
-
|
4534
|
-
|
4535
|
-
|
4536
|
-
|
4537
|
-
|
4538
|
-
|
4539
|
-
|
4540
|
-
|
4541
|
-
|
4542
|
-
|
4543
|
-
|
4544
|
-
|
4545
|
-
|
4546
|
-
|
4547
|
-
|
4548
|
-
|
4549
|
-
|
4550
|
-
|
4551
|
-
|
4552
|
-
|
4553
|
-
|
4554
|
-
|
4555
|
-
|
4556
|
-
|
4557
|
-
|
4558
|
-
|
4559
|
-
|
4560
|
-
|
4561
|
-
|
4562
|
-
|
4563
|
-
|
4564
|
-
|
4565
|
-
|
4566
|
-
|
4567
|
-
|
4568
|
-
|
4569
|
-
|
4570
|
-
|
4571
|
-
|
4572
|
-
|
4573
|
-
|
4574
|
-
|
4575
|
-
|
4576
|
-
|
4577
|
-
|
4578
|
-
|
4579
|
-
|
4580
|
-
|
4581
|
-
|
4582
|
-
|
4583
|
-
|
4584
|
-
|
4585
|
-
|
4586
|
-
|
4587
|
-
|
4588
|
-
|
4589
|
-
|
4590
|
-
|
4591
|
-
|
4592
|
-
|
4593
|
-
|
4594
|
-
|
4595
|
-
|
4596
|
-
|
4597
|
-
|
4598
|
-
|
4599
|
-
|
4600
|
-
|
4601
|
-
|
4602
|
-
|
4603
|
-
|
4604
|
-
|
4605
|
-
|
4606
|
-
|
4607
|
-
|
4608
|
-
|
4609
|
-
|
4610
|
-
|
4611
|
-
|
4612
|
-
|
4613
|
-
|
4614
|
-
|
4615
|
-
|
4616
|
-
|
4617
|
-
|
4618
|
-
|
4619
|
-
|
4620
|
-
|
4621
|
-
|
4622
|
-
|
4623
|
-
|
4624
|
-
|
4625
|
-
|
4626
|
-
|
4627
|
-
|
4628
|
-
|
4629
|
-
|
4630
|
-
|
4631
|
-
|
4632
|
-
|
4633
|
-
|
4634
|
-
|
4635
|
-
|
4636
|
-
|
4637
|
-
|
4638
|
-
|
4639
|
-
|
4640
|
-
|
4641
|
-
|
4642
|
-
|
4643
|
-
|
4644
|
-
|
4645
|
-
|
4646
|
-
|
4647
|
-
|
4648
|
-
|
4649
|
-
|
4650
|
-
|
4651
|
-
|
4652
|
-
|
4653
|
-
|
4654
|
-
|
4655
|
-
|
4656
|
-
|
4657
|
-
|
4658
|
-
|
4659
|
-
|
4660
|
-
|
4661
|
-
|
4662
|
-
|
4663
|
-
|
4664
|
-
|
4665
|
-
|
4666
|
-
|
4517
|
+
function hideFilter(selector) {
|
4518
|
+
if(p.onClose){
|
4519
|
+
var fclm = p.onClose(selector);
|
4520
|
+
if(typeof fclm == 'boolean' && !fclm) { return; }
|
4521
|
+
}
|
4522
|
+
selector.hide();
|
4523
|
+
if(p.overlay === true) {
|
4524
|
+
$(".jqgrid-overlay:first","#gbox_"+$t.p.id).hide();
|
4525
|
+
}
|
4526
|
+
}
|
4527
|
+
function showFilter(){
|
4528
|
+
var fl = $(".ui-searchFilter").length;
|
4529
|
+
if(fl > 1) {
|
4530
|
+
var zI = $("#"+fid).css("zIndex");
|
4531
|
+
$("#"+fid).css({zIndex:parseInt(zI,10)+fl});
|
4532
|
+
}
|
4533
|
+
$("#"+fid).show();
|
4534
|
+
if(p.overlay === true) {
|
4535
|
+
$(".jqgrid-overlay:first","#gbox_"+$t.p.id).show();
|
4536
|
+
}
|
4537
|
+
try{$(':input:visible',"#"+fid)[0].focus();}catch(_){}
|
4538
|
+
}
|
4539
|
+
function searchFilters(filters) {
|
4540
|
+
var hasFilters = (filters !== undefined),
|
4541
|
+
grid = $("#"+$t.p.id),
|
4542
|
+
sdata={};
|
4543
|
+
if(p.multipleSearch===false) {
|
4544
|
+
sdata[p.sField] = filters.rules[0].field;
|
4545
|
+
sdata[p.sValue] = filters.rules[0].data;
|
4546
|
+
sdata[p.sOper] = filters.rules[0].op;
|
4547
|
+
} else {
|
4548
|
+
sdata[p.sFilter] = filters;
|
4549
|
+
}
|
4550
|
+
grid[0].p.search = hasFilters;
|
4551
|
+
$.extend(grid[0].p.postData,sdata);
|
4552
|
+
grid.trigger("reloadGrid",[{page:1}]);
|
4553
|
+
if(p.closeAfterSearch) { hideFilter($("#"+fid)); }
|
4554
|
+
}
|
4555
|
+
function resetFilters(op) {
|
4556
|
+
var reload = op && op.hasOwnProperty("reload") ? op.reload : true,
|
4557
|
+
grid = $("#"+$t.p.id),
|
4558
|
+
sdata={};
|
4559
|
+
grid[0].p.search = false;
|
4560
|
+
if(p.multipleSearch===false) {
|
4561
|
+
sdata[p.sField] = sdata[p.sValue] = sdata[p.sOper] = "";
|
4562
|
+
} else {
|
4563
|
+
sdata[p.sFilter] = "";
|
4564
|
+
}
|
4565
|
+
$.extend(grid[0].p.postData,sdata);
|
4566
|
+
if(reload) {
|
4567
|
+
grid.trigger("reloadGrid",[{page:1}]);
|
4568
|
+
}
|
4569
|
+
if(p.closeAfterReset) { hideFilter($("#"+fid)); }
|
4570
|
+
}
|
4571
|
+
if($.fn.searchFilter) {
|
4572
|
+
if(p.recreateFilter===true) {$("#"+fid).remove();}
|
4573
|
+
if( $("#"+fid).html() != null ) {
|
4574
|
+
if ( $.isFunction(p.beforeShowSearch) ) { p.beforeShowSearch($("#"+fid)); }
|
4575
|
+
showFilter();
|
4576
|
+
if( $.isFunction(p.afterShowSearch) ) { p.afterShowSearch($("#"+fid)); }
|
4577
|
+
} else {
|
4578
|
+
var fields = [],
|
4579
|
+
colNames = $("#"+$t.p.id).jqGrid("getGridParam","colNames"),
|
4580
|
+
colModel = $("#"+$t.p.id).jqGrid("getGridParam","colModel"),
|
4581
|
+
stempl = ['eq','ne','lt','le','gt','ge','bw','bn','in','ni','ew','en','cn','nc'],
|
4582
|
+
j,pos,k,oprtr=[];
|
4583
|
+
if (p.sopt !==null) {
|
4584
|
+
k=0;
|
4585
|
+
for(j=0;j<p.sopt.length;j++) {
|
4586
|
+
if( (pos= $.inArray(p.sopt[j],stempl)) != -1 ){
|
4587
|
+
oprtr[k] = {op:p.sopt[j],text: p.odata[pos]};
|
4588
|
+
k++;
|
4589
|
+
}
|
4590
|
+
}
|
4591
|
+
} else {
|
4592
|
+
for(j=0;j<stempl.length;j++) {
|
4593
|
+
oprtr[j] = {op:stempl[j],text: p.odata[j]};
|
4594
|
+
}
|
4595
|
+
}
|
4596
|
+
$.each(colModel, function(i, v) {
|
4597
|
+
var searchable = (typeof v.search === 'undefined') ? true: v.search ,
|
4598
|
+
hidden = (v.hidden === true),
|
4599
|
+
soptions = $.extend({}, {text: colNames[i], itemval: v.index || v.name}, this.searchoptions),
|
4600
|
+
ignoreHiding = (soptions.searchhidden === true);
|
4601
|
+
if(typeof soptions.sopt !== 'undefined') {
|
4602
|
+
k=0;
|
4603
|
+
soptions.ops =[];
|
4604
|
+
if(soptions.sopt.length>0) {
|
4605
|
+
for(j=0;j<soptions.sopt.length;j++) {
|
4606
|
+
if( (pos= $.inArray(soptions.sopt[j],stempl)) != -1 ){
|
4607
|
+
soptions.ops[k] = {op:soptions.sopt[j],text: p.odata[pos]};
|
4608
|
+
k++;
|
4609
|
+
}
|
4610
|
+
}
|
4611
|
+
}
|
4612
|
+
}
|
4613
|
+
if(typeof(this.stype) === 'undefined') { this.stype='text'; }
|
4614
|
+
if(this.stype == 'select') {
|
4615
|
+
if ( soptions.dataUrl !== undefined) {}
|
4616
|
+
else {
|
4617
|
+
var eov;
|
4618
|
+
if(soptions.value) {
|
4619
|
+
eov = soptions.value;
|
4620
|
+
} else if(this.editoptions) {
|
4621
|
+
eov = this.editoptions.value;
|
4622
|
+
}
|
4623
|
+
if(eov) {
|
4624
|
+
soptions.dataValues =[];
|
4625
|
+
if(typeof(eov) === 'string') {
|
4626
|
+
var so = eov.split(";"),sv;
|
4627
|
+
for(j=0;j<so.length;j++) {
|
4628
|
+
sv = so[j].split(":");
|
4629
|
+
soptions.dataValues[j] ={value:sv[0],text:sv[1]};
|
4630
|
+
}
|
4631
|
+
} else if (typeof(eov) === 'object') {
|
4632
|
+
j=0;
|
4633
|
+
for (var key in eov) {
|
4634
|
+
if(eov.hasOwnProperty(key)) {
|
4635
|
+
soptions.dataValues[j] ={value:key,text:eov[key]};
|
4636
|
+
j++;
|
4637
|
+
}
|
4638
|
+
}
|
4639
|
+
}
|
4640
|
+
}
|
4641
|
+
}
|
4642
|
+
}
|
4643
|
+
if ((ignoreHiding && searchable) || (searchable && !hidden)) {
|
4644
|
+
fields.push(soptions);
|
4645
|
+
}
|
4646
|
+
});
|
4647
|
+
if(fields.length>0){
|
4648
|
+
$("<div id='"+fid+"' role='dialog' tabindex='-1'></div>").insertBefore("#gview_"+$t.p.id);
|
4649
|
+
// Before we create searchFilter we need to decide if we want to get back a string or a JS object.
|
4650
|
+
// see http://github.com/tonytomov/jqGrid/issues/#issue/36 for background on the issue.
|
4651
|
+
// If p.stringResult is defined, it was explisitly passed to us by user. Honor the choice, whatever it is.
|
4652
|
+
if (p.stringResult===undefined) {
|
4653
|
+
// to provide backward compatibility, inferring stringResult value from multipleSearch
|
4654
|
+
p.stringResult = p.multipleSearch;
|
4655
|
+
}
|
4656
|
+
// we preserve the return value here to retain access to .add() and other good methods of search form.
|
4657
|
+
$t.SearchFilter = $("#"+fid).searchFilter(fields, { groupOps: p.groupOps, operators: oprtr, onClose:hideFilter, resetText: p.Reset, searchText: p.Find, windowTitle: p.caption, rulesText:p.rulesText, matchText:p.matchText, onSearch: searchFilters, onReset: resetFilters,stringResult:p.stringResult, ajaxSelectOptions: $.extend({},$.jgrid.ajaxOptions,$t.p.ajaxSelectOptions ||{}), clone: p.cloneSearchRowOnAdd });
|
4658
|
+
$(".ui-widget-overlay","#"+fid).remove();
|
4659
|
+
if($t.p.direction=="rtl") { $(".ui-closer","#"+fid).css("float","left"); }
|
4660
|
+
if (p.drag===true) {
|
4661
|
+
$("#"+fid+" table thead tr:first td:first").css('cursor','move');
|
4662
|
+
if(jQuery.fn.jqDrag) {
|
4663
|
+
$("#"+fid).jqDrag($("#"+fid+" table thead tr:first td:first"));
|
4664
|
+
} else {
|
4665
|
+
try {
|
4666
|
+
$("#"+fid).draggable({handle: $("#"+fid+" table thead tr:first td:first")});
|
4667
|
+
} catch (e) {}
|
4668
|
+
}
|
4669
|
+
}
|
4670
|
+
if(p.multipleSearch === false) {
|
4671
|
+
$(".ui-del, .ui-add, .ui-del, .ui-add-last, .matchText, .rulesText", "#"+fid).hide();
|
4672
|
+
$("select[name='groupOp']","#"+fid).hide();
|
4673
|
+
}
|
4667
4674
|
if (p.multipleSearch === true && p.loadDefaults === true) {
|
4668
4675
|
applyDefaultFilters($t, p);
|
4669
4676
|
}
|
4670
|
-
|
4671
|
-
|
4672
|
-
|
4673
|
-
|
4674
|
-
|
4675
|
-
|
4676
|
-
|
4677
|
-
|
4678
|
-
|
4679
|
-
|
4680
|
-
|
4681
|
-
|
4682
|
-
|
4683
|
-
|
4684
|
-
|
4685
|
-
|
4686
|
-
|
4687
|
-
|
4688
|
-
|
4689
|
-
|
4690
|
-
|
4691
|
-
|
4692
|
-
|
4693
|
-
|
4694
|
-
|
4695
|
-
|
4696
|
-
|
4697
|
-
|
4698
|
-
|
4699
|
-
|
4700
|
-
|
4701
|
-
|
4702
|
-
|
4703
|
-
|
4704
|
-
|
4705
|
-
|
4706
|
-
|
4707
|
-
|
4708
|
-
|
4709
|
-
|
4710
|
-
|
4711
|
-
|
4712
|
-
|
4713
|
-
|
4714
|
-
|
4715
|
-
|
4716
|
-
|
4717
|
-
|
4718
|
-
|
4719
|
-
|
4720
|
-
|
4721
|
-
|
4722
|
-
|
4723
|
-
|
4724
|
-
|
4725
|
-
|
4726
|
-
|
4727
|
-
|
4728
|
-
|
4729
|
-
|
4730
|
-
|
4731
|
-
|
4732
|
-
|
4733
|
-
|
4734
|
-
|
4735
|
-
|
4736
|
-
|
4737
|
-
|
4738
|
-
|
4739
|
-
|
4740
|
-
|
4741
|
-
|
4742
|
-
|
4743
|
-
|
4744
|
-
|
4745
|
-
|
4746
|
-
|
4747
|
-
|
4748
|
-
|
4749
|
-
|
4750
|
-
|
4751
|
-
|
4752
|
-
|
4753
|
-
|
4754
|
-
|
4755
|
-
|
4756
|
-
|
4757
|
-
|
4758
|
-
|
4759
|
-
|
4760
|
-
|
4761
|
-
|
4762
|
-
|
4763
|
-
|
4764
|
-
|
4765
|
-
|
4766
|
-
|
4767
|
-
|
4768
|
-
|
4769
|
-
|
4770
|
-
|
4771
|
-
|
4772
|
-
|
4773
|
-
|
4774
|
-
|
4775
|
-
|
4776
|
-
|
4777
|
-
|
4778
|
-
|
4779
|
-
|
4780
|
-
|
4781
|
-
|
4782
|
-
|
4783
|
-
|
4784
|
-
|
4785
|
-
|
4786
|
-
|
4787
|
-
|
4788
|
-
|
4789
|
-
|
4790
|
-
|
4791
|
-
|
4792
|
-
|
4793
|
-
|
4794
|
-
|
4795
|
-
|
4796
|
-
|
4797
|
-
|
4798
|
-
|
4799
|
-
|
4800
|
-
|
4801
|
-
|
4802
|
-
|
4803
|
-
|
4804
|
-
|
4805
|
-
|
4806
|
-
|
4807
|
-
|
4808
|
-
|
4809
|
-
|
4810
|
-
|
4811
|
-
|
4812
|
-
|
4813
|
-
|
4814
|
-
|
4815
|
-
|
4816
|
-
|
4817
|
-
|
4818
|
-
|
4819
|
-
|
4820
|
-
|
4821
|
-
|
4822
|
-
|
4823
|
-
|
4824
|
-
|
4825
|
-
|
4826
|
-
|
4827
|
-
|
4828
|
-
|
4829
|
-
|
4830
|
-
|
4831
|
-
|
4832
|
-
|
4833
|
-
|
4834
|
-
|
4835
|
-
|
4836
|
-
|
4837
|
-
|
4838
|
-
|
4839
|
-
|
4840
|
-
|
4841
|
-
|
4842
|
-
|
4843
|
-
|
4844
|
-
|
4845
|
-
|
4846
|
-
|
4847
|
-
|
4848
|
-
|
4849
|
-
|
4850
|
-
|
4851
|
-
|
4852
|
-
|
4853
|
-
|
4854
|
-
|
4855
|
-
|
4856
|
-
|
4857
|
-
|
4858
|
-
|
4859
|
-
|
4860
|
-
|
4861
|
-
|
4862
|
-
|
4863
|
-
|
4864
|
-
|
4865
|
-
|
4866
|
-
|
4867
|
-
|
4868
|
-
|
4869
|
-
|
4870
|
-
|
4871
|
-
|
4872
|
-
|
4873
|
-
|
4874
|
-
|
4875
|
-
|
4876
|
-
|
4877
|
-
|
4878
|
-
|
4879
|
-
|
4880
|
-
|
4881
|
-
|
4882
|
-
|
4883
|
-
|
4884
|
-
|
4885
|
-
|
4886
|
-
|
4887
|
-
|
4888
|
-
|
4889
|
-
|
4890
|
-
|
4891
|
-
|
4892
|
-
|
4893
|
-
|
4894
|
-
|
4895
|
-
|
4896
|
-
|
4897
|
-
|
4898
|
-
|
4899
|
-
|
4900
|
-
|
4901
|
-
|
4902
|
-
|
4903
|
-
|
4904
|
-
|
4905
|
-
|
4906
|
-
|
4907
|
-
|
4908
|
-
|
4909
|
-
|
4910
|
-
|
4911
|
-
|
4912
|
-
|
4913
|
-
|
4914
|
-
|
4915
|
-
|
4916
|
-
|
4917
|
-
|
4918
|
-
|
4919
|
-
|
4920
|
-
|
4921
|
-
|
4922
|
-
|
4923
|
-
|
4924
|
-
|
4925
|
-
|
4926
|
-
|
4927
|
-
|
4928
|
-
|
4929
|
-
|
4930
|
-
|
4931
|
-
|
4932
|
-
|
4933
|
-
|
4934
|
-
|
4935
|
-
|
4936
|
-
|
4937
|
-
|
4938
|
-
|
4939
|
-
|
4940
|
-
|
4941
|
-
|
4942
|
-
|
4943
|
-
|
4944
|
-
|
4945
|
-
|
4946
|
-
|
4947
|
-
|
4948
|
-
|
4949
|
-
|
4950
|
-
|
4951
|
-
|
4952
|
-
|
4953
|
-
|
4954
|
-
|
4955
|
-
|
4956
|
-
|
4957
|
-
|
4958
|
-
|
4959
|
-
|
4960
|
-
|
4961
|
-
|
4962
|
-
|
4963
|
-
|
4964
|
-
|
4965
|
-
|
4966
|
-
|
4967
|
-
|
4968
|
-
|
4969
|
-
|
4970
|
-
|
4971
|
-
|
4972
|
-
|
4973
|
-
|
4974
|
-
|
4975
|
-
|
4976
|
-
|
4977
|
-
|
4978
|
-
|
4979
|
-
|
4980
|
-
|
4981
|
-
|
4982
|
-
|
4983
|
-
|
4984
|
-
|
4985
|
-
|
4986
|
-
|
4987
|
-
|
4988
|
-
|
4989
|
-
|
4990
|
-
|
4991
|
-
|
4992
|
-
|
4993
|
-
|
4994
|
-
|
4995
|
-
|
4996
|
-
|
4997
|
-
|
4998
|
-
|
4999
|
-
|
5000
|
-
|
5001
|
-
|
5002
|
-
|
5003
|
-
|
5004
|
-
|
5005
|
-
|
5006
|
-
|
5007
|
-
|
5008
|
-
|
5009
|
-
|
5010
|
-
|
5011
|
-
|
5012
|
-
|
5013
|
-
|
5014
|
-
|
5015
|
-
|
5016
|
-
|
5017
|
-
|
5018
|
-
|
5019
|
-
|
5020
|
-
|
5021
|
-
|
5022
|
-
|
5023
|
-
|
5024
|
-
|
5025
|
-
|
5026
|
-
if(ret[0] && !rp_ge.processing) {
|
5027
|
-
rp_ge.processing = true;
|
5028
|
-
$("#sData", "#"+frmtb+"_2").addClass('ui-state-active');
|
5029
|
-
oper = opers.oper;
|
5030
|
-
idname = opers.id;
|
5031
|
-
// we add to pos data array the action - the name is oper
|
5032
|
-
postdata[oper] = ($.trim(postdata[$t.p.id+"_id"]) == "_empty") ? opers.addoper : opers.editoper;
|
5033
|
-
if(postdata[oper] != opers.addoper) {
|
5034
|
-
postdata[idname] = postdata[$t.p.id+"_id"];
|
5035
|
-
} else {
|
5036
|
-
// check to see if we have allredy this field in the form and if yes lieve it
|
5037
|
-
if( postdata[idname] === undefined ) { postdata[idname] = postdata[$t.p.id+"_id"]; }
|
5038
|
-
}
|
5039
|
-
delete postdata[$t.p.id+"_id"];
|
5040
|
-
postdata = $.extend(postdata,rp_ge.editData,onCS);
|
5041
|
-
|
5042
|
-
if($t.p.restful) {
|
5043
|
-
rp_ge.mtype = postdata.id == "_empty" ? "POST" : "PUT";
|
5044
|
-
rp_ge.url = postdata.id == "_empty" ? $t.p.url : $t.p.url+"/"+postdata.id;
|
5045
|
-
}
|
5046
|
-
|
5047
|
-
var ajaxOptions = $.extend({
|
5048
|
-
url: rp_ge.url ? rp_ge.url : $($t).jqGrid('getGridParam','editurl'),
|
5049
|
-
type: rp_ge.mtype,
|
5050
|
-
data: $.isFunction(rp_ge.serializeEditData) ? rp_ge.serializeEditData(postdata) : postdata,
|
5051
|
-
complete:function(data,Status){
|
5052
|
-
if(Status != "success") {
|
5053
|
-
ret[0] = false;
|
5054
|
-
if ($.isFunction(rp_ge.errorTextFormat)) {
|
5055
|
-
ret[1] = rp_ge.errorTextFormat(data);
|
5056
|
-
} else {
|
5057
|
-
ret[1] = Status + " Status: '" + data.statusText + "'. Error code: " + data.status;
|
5058
|
-
}
|
5059
|
-
} else {
|
5060
|
-
// data is posted successful
|
5061
|
-
// execute aftersubmit with the returned data from server
|
5062
|
-
if( $.isFunction(rp_ge.afterSubmit) ) {
|
5063
|
-
ret = rp_ge.afterSubmit(data,postdata);
|
5064
|
-
}
|
5065
|
-
}
|
5066
|
-
if(ret[0] === false) {
|
5067
|
-
$("#FormError>td","#"+frmtb).html(ret[1]);
|
5068
|
-
$("#FormError","#"+frmtb).show();
|
5069
|
-
} else {
|
5070
|
-
// remove some values if formattaer select or checkbox
|
5071
|
-
$.each($t.p.colModel, function(i,n){
|
5072
|
-
if(extpost[this.name] && this.formatter && this.formatter=='select') {
|
5073
|
-
try {delete extpost[this.name];} catch (e) {}
|
5074
|
-
}
|
5075
|
-
});
|
5076
|
-
postdata = $.extend(postdata,extpost);
|
5077
|
-
if($t.p.autoencode) {
|
5078
|
-
$.each(postdata,function(n,v){
|
5079
|
-
postdata[n] = $.jgrid.htmlDecode(v);
|
5080
|
-
});
|
5081
|
-
}
|
5082
|
-
rp_ge.reloadAfterSubmit = rp_ge.reloadAfterSubmit && $t.p.datatype != "local";
|
5083
|
-
// the action is add
|
5084
|
-
if(postdata[oper] == opers.addoper ) {
|
5085
|
-
//id processing
|
5086
|
-
// user not set the id ret[2]
|
5087
|
-
if(!ret[2]) { ret[2] = (parseInt($t.p.records,10)+1)+""; }
|
5088
|
-
postdata[idname] = ret[2];
|
5089
|
-
if(rp_ge.closeAfterAdd) {
|
5090
|
-
if(rp_ge.reloadAfterSubmit) { $($t).trigger("reloadGrid"); }
|
5091
|
-
else {
|
5092
|
-
$($t).jqGrid("addRowData",ret[2],postdata,p.addedrow);
|
5093
|
-
$($t).jqGrid("setSelection",ret[2]);
|
5094
|
-
}
|
5095
|
-
hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal,onClose: rp_ge.onClose});
|
5096
|
-
} else if (rp_ge.clearAfterAdd) {
|
5097
|
-
if(rp_ge.reloadAfterSubmit) { $($t).trigger("reloadGrid"); }
|
5098
|
-
else { $($t).jqGrid("addRowData",ret[2],postdata,p.addedrow); }
|
5099
|
-
fillData("_empty",$t,frmgr);
|
5100
|
-
} else {
|
5101
|
-
if(rp_ge.reloadAfterSubmit) { $($t).trigger("reloadGrid"); }
|
5102
|
-
else { $($t).jqGrid("addRowData",ret[2],postdata,p.addedrow); }
|
5103
|
-
}
|
5104
|
-
} else {
|
5105
|
-
// the action is update
|
5106
|
-
if(rp_ge.reloadAfterSubmit) {
|
5107
|
-
$($t).trigger("reloadGrid");
|
5108
|
-
if( !rp_ge.closeAfterEdit ) { setTimeout(function(){$($t).jqGrid("setSelection",postdata[idname]);},1000); }
|
5109
|
-
} else {
|
5110
|
-
if($t.p.treeGrid === true) {
|
5111
|
-
$($t).jqGrid("setTreeRow",postdata[idname],postdata);
|
5112
|
-
} else {
|
5113
|
-
$($t).jqGrid("setRowData",postdata[idname],postdata);
|
5114
|
-
}
|
5115
|
-
}
|
5116
|
-
if(rp_ge.closeAfterEdit) { hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal,onClose: rp_ge.onClose}); }
|
5117
|
-
}
|
5118
|
-
if($.isFunction(rp_ge.afterComplete)) {
|
5119
|
-
copydata = data;
|
5120
|
-
setTimeout(function(){rp_ge.afterComplete(copydata,postdata,$("#"+frmgr));copydata=null;},500);
|
5121
|
-
}
|
5122
|
-
}
|
5123
|
-
rp_ge.processing=false;
|
5124
|
-
if(rp_ge.checkOnSubmit || rp_ge.checkOnUpdate) {
|
5125
|
-
$("#"+frmgr).data("disabled",false);
|
5126
|
-
if(rp_ge._savedData[$t.p.id+"_id"] !="_empty"){
|
5127
|
-
for(var key in rp_ge._savedData) {
|
5128
|
-
if(postdata[key]) {
|
5129
|
-
rp_ge._savedData[key] = postdata[key];
|
5130
|
-
}
|
5131
|
-
}
|
5132
|
-
}
|
5133
|
-
}
|
5134
|
-
$("#sData", "#"+frmtb+"_2").removeClass('ui-state-active');
|
5135
|
-
try{$(':input:visible',"#"+frmgr)[0].focus();} catch (e){}
|
5136
|
-
},
|
5137
|
-
error:function(xhr,st,err){
|
5138
|
-
$("#FormError>td","#"+frmtb).html(st+ " : "+err);
|
5139
|
-
$("#FormError","#"+frmtb).show();
|
5140
|
-
rp_ge.processing=false;
|
5141
|
-
$("#"+frmgr).data("disabled",false);
|
5142
|
-
$("#sData", "#"+frmtb+"_2").removeClass('ui-state-active');
|
5143
|
-
}
|
5144
|
-
}, $.jgrid.ajaxOptions, rp_ge.ajaxEditOptions );
|
5145
|
-
|
5146
|
-
if (!ajaxOptions.url && !rp_ge.useDataProxy) {
|
5147
|
-
if ($.isFunction($t.p.dataProxy)) {
|
5148
|
-
rp_ge.useDataProxy = true;
|
5149
|
-
} else {
|
5150
|
-
ret[0]=false; ret[1] += " "+$.jgrid.errors.nourl;
|
5151
|
-
}
|
5152
|
-
}
|
5153
|
-
if (ret[0]) {
|
5154
|
-
if (rp_ge.useDataProxy) { $t.p.dataProxy.call($t, ajaxOptions, "set_"+$t.p.id); }
|
5155
|
-
else { $.ajax(ajaxOptions); }
|
5156
|
-
}
|
5157
|
-
}
|
5158
|
-
if(ret[0] === false) {
|
5159
|
-
$("#FormError>td","#"+frmtb).html(ret[1]);
|
5160
|
-
$("#FormError","#"+frmtb).show();
|
5161
|
-
// return;
|
5162
|
-
}
|
5163
|
-
}
|
5164
|
-
function compareData(nObj, oObj ) {
|
5165
|
-
var ret = false,key;
|
5166
|
-
for (key in nObj) {
|
5167
|
-
if(nObj[key] != oObj[key]) {
|
5168
|
-
ret = true;
|
5169
|
-
break;
|
5170
|
-
}
|
5171
|
-
}
|
5172
|
-
return ret;
|
5173
|
-
}
|
5174
|
-
function checkUpdates () {
|
5175
|
-
var stat = true;
|
5176
|
-
$("#FormError","#"+frmtb).hide();
|
5177
|
-
if(rp_ge.checkOnUpdate) {
|
5178
|
-
postdata = {}; extpost={};
|
5179
|
-
getFormData();
|
5180
|
-
newData = $.extend({},postdata,extpost);
|
5181
|
-
diff = compareData(newData,rp_ge._savedData);
|
5182
|
-
if(diff) {
|
5183
|
-
$("#"+frmgr).data("disabled",true);
|
5184
|
-
$(".confirm","#"+IDs.themodal).show();
|
5185
|
-
stat = false;
|
5186
|
-
}
|
5187
|
-
}
|
5188
|
-
return stat;
|
5189
|
-
}
|
5190
|
-
|
5191
|
-
if ( $("#"+IDs.themodal).html() != null ) {
|
5192
|
-
$(".ui-jqdialog-title","#"+IDs.modalhead).html(p.caption);
|
5193
|
-
$("#FormError","#"+frmtb).hide();
|
5194
|
-
if(rp_ge.topinfo) {
|
5195
|
-
$(".topinfo","#"+frmtb+"_2").html(rp_ge.topinfo);
|
5196
|
-
$(".tinfo","#"+frmtb+"_2").show();
|
5197
|
-
} else {
|
5198
|
-
$(".tinfo","#"+frmtb+"_2").hide();
|
5199
|
-
}
|
5200
|
-
if(rp_ge.bottominfo) {
|
5201
|
-
$(".bottominfo","#"+frmtb+"_2").html(rp_ge.bottominfo);
|
5202
|
-
$(".binfo","#"+frmtb+"_2").show();
|
5203
|
-
} else {
|
5204
|
-
$(".binfo","#"+frmtb+"_2").hide();
|
5205
|
-
}
|
5206
|
-
if(onBeforeInit) { onBeforeInit($("#"+frmgr)); }
|
5207
|
-
// filldata
|
5208
|
-
fillData(rowid,$t,frmgr);
|
5209
|
-
///
|
5210
|
-
if(rowid=="_empty" || !rp_ge.viewPagerButtons) {
|
5211
|
-
$("#pData, #nData","#"+frmtb+"_2").hide();
|
5212
|
-
} else {
|
5213
|
-
$("#pData, #nData","#"+frmtb+"_2").show();
|
5214
|
-
}
|
5215
|
-
if(rp_ge.processing===true) {
|
5216
|
-
rp_ge.processing=false;
|
5217
|
-
$("#sData", "#"+frmtb+"_2").removeClass('ui-state-active');
|
5218
|
-
}
|
5219
|
-
if($("#"+frmgr).data("disabled")===true) {
|
5220
|
-
$(".confirm","#"+IDs.themodal).hide();
|
5221
|
-
$("#"+frmgr).data("disabled",false);
|
5222
|
-
}
|
5223
|
-
if(onBeforeShow) { onBeforeShow($("#"+frmgr)); }
|
5224
|
-
$("#"+IDs.themodal).data("onClose",rp_ge.onClose);
|
5225
|
-
viewModal("#"+IDs.themodal,{gbox:"#gbox_"+gID,jqm:p.jqModal, jqM: false, closeoverlay: closeovrl, modal:p.modal});
|
5226
|
-
if(!closeovrl) {
|
5227
|
-
$(".jqmOverlay").click(function(){
|
5228
|
-
if(!checkUpdates()) { return false; }
|
5229
|
-
hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal, onClose: rp_ge.onClose});
|
5230
|
-
return false;
|
5231
|
-
});
|
5232
|
-
}
|
5233
|
-
if(onAfterShow) { onAfterShow($("#"+frmgr)); }
|
5234
|
-
} else {
|
5235
|
-
$($t.p.colModel).each( function(i) {
|
5236
|
-
var fmto = this.formoptions;
|
5237
|
-
maxCols = Math.max(maxCols, fmto ? fmto.colpos || 0 : 0 );
|
5238
|
-
maxRows = Math.max(maxRows, fmto ? fmto.rowpos || 0 : 0 );
|
5239
|
-
});
|
5240
|
-
var dh = isNaN(p.dataheight) ? p.dataheight : p.dataheight+"px",
|
5241
|
-
frm = $("<form name='FormPost' id='"+frmgr+"' class='FormGrid' onSubmit='return false;' style='width:100%;overflow:auto;position:relative;height:"+dh+";'></form>").data("disabled",false),
|
5242
|
-
tbl = $("<table id='"+frmtb+"' class='EditTable' cellspacing='0' cellpading='0' border='0'><tbody></tbody></table>");
|
5243
|
-
$(frm).append(tbl);
|
5244
|
-
var flr = $("<tr id='FormError' style='display:none'><td class='ui-state-error' colspan='"+(maxCols*2)+"'></td></tr>");
|
5245
|
-
flr[0].rp = 0;
|
5246
|
-
$(tbl).append(flr);
|
5247
|
-
//topinfo
|
5248
|
-
flr = $("<tr style='display:none' class='tinfo'><td class='topinfo' colspan='"+(maxCols*2)+"'>"+rp_ge.topinfo+"</td></tr>");
|
5249
|
-
flr[0].rp = 0;
|
5250
|
-
$(tbl).append(flr);
|
5251
|
-
// set the id.
|
5252
|
-
// use carefull only to change here colproperties.
|
5253
|
-
if(onBeforeInit) { onBeforeInit($("#"+frmgr)); }
|
5254
|
-
// create data
|
5255
|
-
var rtlb = $t.p.direction == "rtl" ? true :false,
|
5256
|
-
bp = rtlb ? "nData" : "pData",
|
5257
|
-
bn = rtlb ? "pData" : "nData";
|
5258
|
-
createData(rowid,$t,tbl,maxCols);
|
5259
|
-
// buttons at footer
|
5260
|
-
var bP = "<a href='javascript:void(0)' id='"+bp+"' class='fm-button ui-state-default ui-corner-left'><span class='ui-icon ui-icon-triangle-1-w'></span></div>",
|
5261
|
-
bN = "<a href='javascript:void(0)' id='"+bn+"' class='fm-button ui-state-default ui-corner-right'><span class='ui-icon ui-icon-triangle-1-e'></span></div>",
|
5262
|
-
bS ="<a href='javascript:void(0)' id='sData' class='fm-button ui-state-default ui-corner-all'>"+p.bSubmit+"</a>",
|
5263
|
-
bC ="<a href='javascript:void(0)' id='cData' class='fm-button ui-state-default ui-corner-all'>"+p.bCancel+"</a>";
|
5264
|
-
var bt = "<table border='0' class='EditTable' id='"+frmtb+"_2'><tbody><tr id='Act_Buttons'><td class='navButton ui-widget-content'>"+(rtlb ? bN+bP : bP+bN)+"</td><td class='EditButton ui-widget-content'>"+bS+bC+"</td></tr>";
|
5265
|
-
bt += "<tr style='display:none' class='binfo'><td class='bottominfo' colspan='2'>"+rp_ge.bottominfo+"</td></tr>";
|
5266
|
-
bt += "</tbody></table>";
|
5267
|
-
if(maxRows > 0) {
|
5268
|
-
var sd=[];
|
5269
|
-
$.each($(tbl)[0].rows,function(i,r){
|
5270
|
-
sd[i] = r;
|
5271
|
-
});
|
5272
|
-
sd.sort(function(a,b){
|
5273
|
-
if(a.rp > b.rp) {return 1;}
|
5274
|
-
if(a.rp < b.rp) {return -1;}
|
5275
|
-
return 0;
|
5276
|
-
});
|
5277
|
-
$.each(sd, function(index, row) {
|
5278
|
-
$('tbody',tbl).append(row);
|
5279
|
-
});
|
5280
|
-
}
|
5281
|
-
p.gbox = "#gbox_"+gID;
|
5282
|
-
var cle = false;
|
5283
|
-
if(p.closeOnEscape===true){
|
5284
|
-
p.closeOnEscape = false;
|
5285
|
-
cle = true;
|
5286
|
-
}
|
5287
|
-
var tms = $("<span></span>").append(frm).append(bt);
|
5288
|
-
createModal(IDs,tms,p,"#gview_"+$t.p.id,$("#gbox_"+$t.p.id)[0]);
|
5289
|
-
if(rtlb) {
|
5290
|
-
$("#pData, #nData","#"+frmtb+"_2").css("float","right");
|
5291
|
-
$(".EditButton","#"+frmtb+"_2").css("text-align","left");
|
5292
|
-
}
|
5293
|
-
if(rp_ge.topinfo) { $(".tinfo","#"+frmtb+"_2").show(); }
|
5294
|
-
if(rp_ge.bottominfo) { $(".binfo","#"+frmtb+"_2").show(); }
|
5295
|
-
tms = null; bt=null;
|
5296
|
-
$("#"+IDs.themodal).keydown( function( e ) {
|
5297
|
-
var wkey = e.target;
|
5298
|
-
if ($("#"+frmgr).data("disabled")===true ) { return false; }//??
|
5299
|
-
if(rp_ge.savekey[0] === true && e.which == rp_ge.savekey[1]) { // save
|
5300
|
-
if(wkey.tagName != "TEXTAREA") {
|
5301
|
-
$("#sData", "#"+frmtb+"_2").trigger("click");
|
5302
|
-
return false;
|
5303
|
-
}
|
5304
|
-
}
|
5305
|
-
if(e.which === 27) {
|
5306
|
-
if(!checkUpdates()) { return false; }
|
5307
|
-
if(cle) { hideModal(this,{gb:p.gbox,jqm:p.jqModal, onClose: rp_ge.onClose}); }
|
5308
|
-
return false;
|
5309
|
-
}
|
5310
|
-
if(rp_ge.navkeys[0]===true) {
|
5311
|
-
if($("#id_g","#"+frmtb).val() == "_empty") { return true; }
|
5312
|
-
if(e.which == rp_ge.navkeys[1]){ //up
|
5313
|
-
$("#pData", "#"+frmtb+"_2").trigger("click");
|
5314
|
-
return false;
|
5315
|
-
}
|
5316
|
-
if(e.which == rp_ge.navkeys[2]){ //down
|
5317
|
-
$("#nData", "#"+frmtb+"_2").trigger("click");
|
5318
|
-
return false;
|
5319
|
-
}
|
5320
|
-
}
|
5321
|
-
});
|
5322
|
-
if(p.checkOnUpdate) {
|
5323
|
-
$("a.ui-jqdialog-titlebar-close span","#"+IDs.themodal).removeClass("jqmClose");
|
5324
|
-
$("a.ui-jqdialog-titlebar-close","#"+IDs.themodal).unbind("click")
|
5325
|
-
.click(function(){
|
5326
|
-
if(!checkUpdates()) { return false; }
|
5327
|
-
hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal,onClose: rp_ge.onClose});
|
5328
|
-
return false;
|
5329
|
-
});
|
5330
|
-
}
|
5331
|
-
p.saveicon = $.extend([true,"left","ui-icon-disk"],p.saveicon);
|
5332
|
-
p.closeicon = $.extend([true,"left","ui-icon-close"],p.closeicon);
|
5333
|
-
// beforeinitdata after creation of the form
|
5334
|
-
if(p.saveicon[0]===true) {
|
5335
|
-
$("#sData","#"+frmtb+"_2").addClass(p.saveicon[1] == "right" ? 'fm-button-icon-right' : 'fm-button-icon-left')
|
5336
|
-
.append("<span class='ui-icon "+p.saveicon[2]+"'></span>");
|
5337
|
-
}
|
5338
|
-
if(p.closeicon[0]===true) {
|
5339
|
-
$("#cData","#"+frmtb+"_2").addClass(p.closeicon[1] == "right" ? 'fm-button-icon-right' : 'fm-button-icon-left')
|
5340
|
-
.append("<span class='ui-icon "+p.closeicon[2]+"'></span>");
|
5341
|
-
}
|
5342
|
-
if(rp_ge.checkOnSubmit || rp_ge.checkOnUpdate) {
|
5343
|
-
bS ="<a href='javascript:void(0)' id='sNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+p.bYes+"</a>";
|
5344
|
-
bN ="<a href='javascript:void(0)' id='nNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+p.bNo+"</a>";
|
5345
|
-
bC ="<a href='javascript:void(0)' id='cNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+p.bExit+"</a>";
|
5346
|
-
var ii, zI = p.zIndex || 999; zI ++;
|
5347
|
-
if ($.browser.msie && $.browser.version ==6) {
|
5348
|
-
ii = '<iframe style="display:block;position:absolute;z-index:-1;filter:Alpha(Opacity=\'0\');" src="javascript:false;"></iframe>';
|
5349
|
-
} else { ii="";}
|
5350
|
-
$("<div class='ui-widget-overlay jqgrid-overlay confirm' style='z-index:"+zI+";display:none;'> "+ii+"</div><div class='confirm ui-widget-content ui-jqconfirm' style='z-index:"+(zI+1)+"'>"+p.saveData+"<br/><br/>"+bS+bN+bC+"</div>").insertAfter("#"+frmgr);
|
5351
|
-
$("#sNew","#"+IDs.themodal).click(function(){
|
5352
|
-
postIt();
|
5353
|
-
$("#"+frmgr).data("disabled",false);
|
5354
|
-
$(".confirm","#"+IDs.themodal).hide();
|
5355
|
-
return false;
|
5356
|
-
});
|
5357
|
-
$("#nNew","#"+IDs.themodal).click(function(){
|
5358
|
-
$(".confirm","#"+IDs.themodal).hide();
|
5359
|
-
$("#"+frmgr).data("disabled",false);
|
5360
|
-
setTimeout(function(){$(":input","#"+frmgr)[0].focus();},0);
|
5361
|
-
return false;
|
5362
|
-
});
|
5363
|
-
$("#cNew","#"+IDs.themodal).click(function(){
|
5364
|
-
$(".confirm","#"+IDs.themodal).hide();
|
5365
|
-
$("#"+frmgr).data("disabled",false);
|
5366
|
-
hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal,onClose: rp_ge.onClose});
|
5367
|
-
return false;
|
5368
|
-
});
|
5369
|
-
}
|
5370
|
-
// here initform - only once
|
5371
|
-
if(onInitializeForm) { onInitializeForm($("#"+frmgr)); }
|
5372
|
-
if(rowid=="_empty" || !rp_ge.viewPagerButtons) { $("#pData,#nData","#"+frmtb+"_2").hide(); } else { $("#pData,#nData","#"+frmtb+"_2").show(); }
|
5373
|
-
if(onBeforeShow) { onBeforeShow($("#"+frmgr)); }
|
5374
|
-
$("#"+IDs.themodal).data("onClose",rp_ge.onClose);
|
5375
|
-
viewModal("#"+IDs.themodal,{gbox:"#gbox_"+gID,jqm:p.jqModal,closeoverlay:closeovrl,modal:p.modal});
|
5376
|
-
if(!closeovrl) {
|
5377
|
-
$(".jqmOverlay").click(function(){
|
5378
|
-
if(!checkUpdates()) { return false; }
|
5379
|
-
hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal, onClose: rp_ge.onClose});
|
5380
|
-
return false;
|
5381
|
-
});
|
5382
|
-
}
|
5383
|
-
if(onAfterShow) { onAfterShow($("#"+frmgr)); }
|
5384
|
-
$(".fm-button","#"+IDs.themodal).hover(
|
5385
|
-
function(){$(this).addClass('ui-state-hover');},
|
5386
|
-
function(){$(this).removeClass('ui-state-hover');}
|
5387
|
-
);
|
5388
|
-
$("#sData", "#"+frmtb+"_2").click(function(e){
|
5389
|
-
postdata = {}; extpost={};
|
5390
|
-
$("#FormError","#"+frmtb).hide();
|
5391
|
-
// all depend on ret array
|
5392
|
-
//ret[0] - succes
|
5393
|
-
//ret[1] - msg if not succes
|
5394
|
-
//ret[2] - the id that will be set if reload after submit false
|
5395
|
-
getFormData();
|
5396
|
-
if(postdata[$t.p.id+"_id"] == "_empty") { postIt(); }
|
5397
|
-
else if(p.checkOnSubmit===true ) {
|
5398
|
-
newData = $.extend({},postdata,extpost);
|
5399
|
-
diff = compareData(newData,rp_ge._savedData);
|
5400
|
-
if(diff) {
|
5401
|
-
$("#"+frmgr).data("disabled",true);
|
5402
|
-
$(".confirm","#"+IDs.themodal).show();
|
5403
|
-
} else {
|
5404
|
-
postIt();
|
5405
|
-
}
|
5406
|
-
} else {
|
5407
|
-
postIt();
|
5408
|
-
}
|
5409
|
-
return false;
|
5410
|
-
});
|
5411
|
-
$("#cData", "#"+frmtb+"_2").click(function(e){
|
5412
|
-
if(!checkUpdates()) { return false; }
|
5413
|
-
hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal,onClose: rp_ge.onClose});
|
5414
|
-
return false;
|
5415
|
-
});
|
5416
|
-
$("#nData", "#"+frmtb+"_2").click(function(e){
|
5417
|
-
if(!checkUpdates()) { return false; }
|
5418
|
-
$("#FormError","#"+frmtb).hide();
|
5419
|
-
var npos = getCurrPos();
|
5420
|
-
npos[0] = parseInt(npos[0],10);
|
5421
|
-
if(npos[0] != -1 && npos[1][npos[0]+1]) {
|
5422
|
-
if($.isFunction(p.onclickPgButtons)) {
|
5423
|
-
p.onclickPgButtons('next',$("#"+frmgr),npos[1][npos[0]]);
|
5424
|
-
}
|
5425
|
-
fillData(npos[1][npos[0]+1],$t,frmgr);
|
5426
|
-
$($t).jqGrid("setSelection",npos[1][npos[0]+1]);
|
5427
|
-
if($.isFunction(p.afterclickPgButtons)) {
|
5428
|
-
p.afterclickPgButtons('next',$("#"+frmgr),npos[1][npos[0]+1]);
|
5429
|
-
}
|
5430
|
-
updateNav(npos[0]+1,npos[1].length-1);
|
5431
|
-
}
|
5432
|
-
return false;
|
5433
|
-
});
|
5434
|
-
$("#pData", "#"+frmtb+"_2").click(function(e){
|
5435
|
-
if(!checkUpdates()) { return false; }
|
5436
|
-
$("#FormError","#"+frmtb).hide();
|
5437
|
-
var ppos = getCurrPos();
|
5438
|
-
if(ppos[0] != -1 && ppos[1][ppos[0]-1]) {
|
5439
|
-
if($.isFunction(p.onclickPgButtons)) {
|
5440
|
-
p.onclickPgButtons('prev',$("#"+frmgr),ppos[1][ppos[0]]);
|
5441
|
-
}
|
5442
|
-
fillData(ppos[1][ppos[0]-1],$t,frmgr);
|
5443
|
-
$($t).jqGrid("setSelection",ppos[1][ppos[0]-1]);
|
5444
|
-
if($.isFunction(p.afterclickPgButtons)) {
|
5445
|
-
p.afterclickPgButtons('prev',$("#"+frmgr),ppos[1][ppos[0]-1]);
|
5446
|
-
}
|
5447
|
-
updateNav(ppos[0]-1,ppos[1].length-1);
|
5448
|
-
}
|
5449
|
-
return false;
|
5450
|
-
});
|
5451
|
-
}
|
5452
|
-
function updateNav(cr,totr,rid){
|
5453
|
-
if (cr===0) { $("#pData","#"+frmtb+"_2").addClass('ui-state-disabled'); } else { $("#pData","#"+frmtb+"_2").removeClass('ui-state-disabled'); }
|
5454
|
-
if (cr==totr) { $("#nData","#"+frmtb+"_2").addClass('ui-state-disabled'); } else { $("#nData","#"+frmtb+"_2").removeClass('ui-state-disabled'); }
|
5455
|
-
}
|
5456
|
-
function getCurrPos() {
|
5457
|
-
var rowsInGrid = $($t).jqGrid("getDataIDs"),
|
5458
|
-
selrow = $("#id_g","#"+frmtb).val(),
|
5459
|
-
pos = $.inArray(selrow,rowsInGrid);
|
5460
|
-
return [pos,rowsInGrid];
|
5461
|
-
}
|
4677
|
+
if ( $.isFunction(p.onInitializeSearch) ) { p.onInitializeSearch( $("#"+fid) ); }
|
4678
|
+
if ( $.isFunction(p.beforeShowSearch) ) { p.beforeShowSearch($("#"+fid)); }
|
4679
|
+
showFilter();
|
4680
|
+
if( $.isFunction(p.afterShowSearch) ) { p.afterShowSearch($("#"+fid)); }
|
4681
|
+
if(p.closeOnEscape===true){
|
4682
|
+
$("#"+fid).keydown( function( e ) {
|
4683
|
+
if( e.which == 27 ) {
|
4684
|
+
hideFilter($("#"+fid));
|
4685
|
+
}
|
4686
|
+
});
|
4687
|
+
}
|
4688
|
+
}
|
4689
|
+
}
|
4690
|
+
}
|
4691
|
+
});
|
4692
|
+
},
|
4693
|
+
editGridRow : function(rowid, p){
|
4694
|
+
p = $.extend({
|
4695
|
+
top : 0,
|
4696
|
+
left: 0,
|
4697
|
+
width: 300,
|
4698
|
+
height: 'auto',
|
4699
|
+
dataheight: 'auto',
|
4700
|
+
modal: false,
|
4701
|
+
overlay : 10,
|
4702
|
+
drag: true,
|
4703
|
+
resize: true,
|
4704
|
+
url: null,
|
4705
|
+
mtype : "POST",
|
4706
|
+
clearAfterAdd :true,
|
4707
|
+
closeAfterEdit : false,
|
4708
|
+
reloadAfterSubmit : true,
|
4709
|
+
onInitializeForm: null,
|
4710
|
+
beforeInitData: null,
|
4711
|
+
beforeShowForm: null,
|
4712
|
+
afterShowForm: null,
|
4713
|
+
beforeSubmit: null,
|
4714
|
+
afterSubmit: null,
|
4715
|
+
onclickSubmit: null,
|
4716
|
+
afterComplete: null,
|
4717
|
+
onclickPgButtons : null,
|
4718
|
+
afterclickPgButtons: null,
|
4719
|
+
editData : {},
|
4720
|
+
recreateForm : false,
|
4721
|
+
jqModal : true,
|
4722
|
+
closeOnEscape : false,
|
4723
|
+
addedrow : "first",
|
4724
|
+
topinfo : '',
|
4725
|
+
bottominfo: '',
|
4726
|
+
saveicon : [],
|
4727
|
+
closeicon : [],
|
4728
|
+
savekey: [false,13],
|
4729
|
+
navkeys: [false,38,40],
|
4730
|
+
checkOnSubmit : false,
|
4731
|
+
checkOnUpdate : false,
|
4732
|
+
_savedData : {},
|
4733
|
+
processing : false,
|
4734
|
+
onClose : null,
|
4735
|
+
ajaxEditOptions : {},
|
4736
|
+
serializeEditData : null,
|
4737
|
+
viewPagerButtons : true
|
4738
|
+
}, $.jgrid.edit, p || {});
|
4739
|
+
rp_ge = p;
|
4740
|
+
return this.each(function(){
|
4741
|
+
var $t = this;
|
4742
|
+
if (!$t.grid || !rowid) { return; }
|
4743
|
+
var gID = $t.p.id,
|
4744
|
+
frmgr = "FrmGrid_"+gID,frmtb = "TblGrid_"+gID,
|
4745
|
+
IDs = {themodal:'editmod'+gID,modalhead:'edithd'+gID,modalcontent:'editcnt'+gID, scrollelm : frmgr},
|
4746
|
+
onBeforeShow = $.isFunction(rp_ge.beforeShowForm) ? rp_ge.beforeShowForm : false,
|
4747
|
+
onAfterShow = $.isFunction(rp_ge.afterShowForm) ? rp_ge.afterShowForm : false,
|
4748
|
+
onBeforeInit = $.isFunction(rp_ge.beforeInitData) ? rp_ge.beforeInitData : false,
|
4749
|
+
onInitializeForm = $.isFunction(rp_ge.onInitializeForm) ? rp_ge.onInitializeForm : false,
|
4750
|
+
copydata = null,
|
4751
|
+
maxCols = 1, maxRows=0, postdata, extpost, newData, diff;
|
4752
|
+
if (rowid=="new") {
|
4753
|
+
rowid = "_empty";
|
4754
|
+
p.caption=p.addCaption;
|
4755
|
+
} else {
|
4756
|
+
p.caption=p.editCaption;
|
4757
|
+
}
|
4758
|
+
if(p.recreateForm===true && $("#"+IDs.themodal).html() != null) {
|
4759
|
+
$("#"+IDs.themodal).remove();
|
4760
|
+
}
|
4761
|
+
var closeovrl = true;
|
4762
|
+
if(p.checkOnUpdate && p.jqModal && !p.modal) {
|
4763
|
+
closeovrl = false;
|
4764
|
+
}
|
4765
|
+
function getFormData(){
|
4766
|
+
$(".FormElement", "#"+frmtb).each(function(i) {
|
4767
|
+
var celm = $(".customelement", this);
|
4768
|
+
if (celm.length) {
|
4769
|
+
var elem = celm[0], nm = $(elem).attr('name');
|
4770
|
+
$.each($t.p.colModel, function(i,n){
|
4771
|
+
if(this.name == nm && this.editoptions && $.isFunction(this.editoptions.custom_value)) {
|
4772
|
+
try {
|
4773
|
+
postdata[nm] = this.editoptions.custom_value($("#"+nm,"#"+frmtb),'get');
|
4774
|
+
if (postdata[nm] === undefined) { throw "e1"; }
|
4775
|
+
} catch (e) {
|
4776
|
+
if (e=="e1") { info_dialog(jQuery.jgrid.errors.errcap,"function 'custom_value' "+$.jgrid.edit.msg.novalue,jQuery.jgrid.edit.bClose);}
|
4777
|
+
else { info_dialog(jQuery.jgrid.errors.errcap,e.message,jQuery.jgrid.edit.bClose); }
|
4778
|
+
}
|
4779
|
+
return true;
|
4780
|
+
}
|
4781
|
+
});
|
4782
|
+
} else {
|
4783
|
+
switch ($(this).get(0).type) {
|
4784
|
+
case "checkbox":
|
4785
|
+
if($(this).attr("checked")) {
|
4786
|
+
postdata[this.name]= $(this).val();
|
4787
|
+
}else {
|
4788
|
+
var ofv = $(this).attr("offval");
|
4789
|
+
postdata[this.name]= ofv;
|
4790
|
+
}
|
4791
|
+
break;
|
4792
|
+
case "select-one":
|
4793
|
+
postdata[this.name]= $("option:selected",this).val();
|
4794
|
+
extpost[this.name]= $("option:selected",this).text();
|
4795
|
+
break;
|
4796
|
+
case "select-multiple":
|
4797
|
+
postdata[this.name]= $(this).val();
|
4798
|
+
if(postdata[this.name]) { postdata[this.name] = postdata[this.name].join(","); }
|
4799
|
+
else { postdata[this.name] =""; }
|
4800
|
+
var selectedText = [];
|
4801
|
+
$("option:selected",this).each(
|
4802
|
+
function(i,selected){
|
4803
|
+
selectedText[i] = $(selected).text();
|
4804
|
+
}
|
4805
|
+
);
|
4806
|
+
extpost[this.name]= selectedText.join(",");
|
4807
|
+
break;
|
4808
|
+
case "password":
|
4809
|
+
case "text":
|
4810
|
+
case "textarea":
|
4811
|
+
case "button":
|
4812
|
+
postdata[this.name] = $(this).val();
|
4813
|
+
|
4814
|
+
break;
|
4815
|
+
}
|
4816
|
+
if($t.p.autoencode) { postdata[this.name] = $.jgrid.htmlEncode(postdata[this.name]); }
|
4817
|
+
}
|
4818
|
+
});
|
4819
|
+
return true;
|
4820
|
+
}
|
4821
|
+
function createData(rowid,obj,tb,maxcols){
|
4822
|
+
var nm, hc,trdata, cnt=0,tmp, dc,elc, retpos=[], ind=false,
|
4823
|
+
tdtmpl = "<td class='CaptionTD ui-widget-content'> </td><td class='DataTD ui-widget-content' style='white-space:pre'> </td>", tmpl=""; //*2
|
4824
|
+
for (var i =1;i<=maxcols;i++) {
|
4825
|
+
tmpl += tdtmpl;
|
4826
|
+
}
|
4827
|
+
if(rowid != '_empty') {
|
4828
|
+
ind = $(obj).jqGrid("getInd",rowid);
|
4829
|
+
}
|
4830
|
+
$(obj.p.colModel).each( function(i) {
|
4831
|
+
nm = this.name;
|
4832
|
+
// hidden fields are included in the form
|
4833
|
+
if(this.editrules && this.editrules.edithidden === true) {
|
4834
|
+
hc = false;
|
4835
|
+
} else {
|
4836
|
+
hc = this.hidden === true ? true : false;
|
4837
|
+
}
|
4838
|
+
dc = hc ? "style='display:none'" : "";
|
4839
|
+
if ( nm !== 'cb' && nm !== 'subgrid' && this.editable===true && nm !== 'rn') {
|
4840
|
+
if(ind === false) {
|
4841
|
+
tmp = "";
|
4842
|
+
} else {
|
4843
|
+
if(nm == obj.p.ExpandColumn && obj.p.treeGrid === true) {
|
4844
|
+
tmp = $("td:eq("+i+")",obj.rows[ind]).text();
|
4845
|
+
} else {
|
4846
|
+
try {
|
4847
|
+
tmp = $.unformat($("td:eq("+i+")",obj.rows[ind]),{rowId:rowid, colModel:this},i);
|
4848
|
+
} catch (_) {
|
4849
|
+
tmp = $("td:eq("+i+")",obj.rows[ind]).html();
|
4850
|
+
}
|
4851
|
+
}
|
4852
|
+
}
|
4853
|
+
var opt = $.extend({}, this.editoptions || {} ,{id:nm,name:nm}),
|
4854
|
+
frmopt = $.extend({}, {elmprefix:'',elmsuffix:'',rowabove:false,rowcontent:''}, this.formoptions || {}),
|
4855
|
+
rp = parseInt(frmopt.rowpos,10) || cnt+1,
|
4856
|
+
cp = parseInt((parseInt(frmopt.colpos,10) || 1)*2,10);
|
4857
|
+
if(rowid == "_empty" && opt.defaultValue ) {
|
4858
|
+
tmp = $.isFunction(opt.defaultValue) ? opt.defaultValue() : opt.defaultValue;
|
4859
|
+
}
|
4860
|
+
if(!this.edittype) { this.edittype = "text"; }
|
4861
|
+
if($t.p.autoencode) { tmp = $.jgrid.htmlDecode(tmp); }
|
4862
|
+
elc = createEl(this.edittype,opt,tmp,false,$.extend({},$.jgrid.ajaxOptions,obj.p.ajaxSelectOptions || {}));
|
4863
|
+
if(tmp === "" && this.edittype == "checkbox") {tmp = $(elc).attr("offval");}
|
4864
|
+
if(tmp === "" && this.edittype == "select") {tmp = $("option:eq(0)",elc).text();}
|
4865
|
+
if(rp_ge.checkOnSubmit || rp_ge.checkOnUpdate) { rp_ge._savedData[nm] = tmp; }
|
4866
|
+
$(elc).addClass("FormElement");
|
4867
|
+
trdata = $(tb).find("tr[rowpos="+rp+"]");
|
4868
|
+
if(frmopt.rowabove) {
|
4869
|
+
var newdata = $("<tr><td class='contentinfo' colspan='"+(maxcols*2)+"'>"+frmopt.rowcontent+"</td></tr>");
|
4870
|
+
$(tb).append(newdata);
|
4871
|
+
newdata[0].rp = rp;
|
4872
|
+
}
|
4873
|
+
if ( trdata.length===0 ) {
|
4874
|
+
trdata = $("<tr "+dc+" rowpos='"+rp+"'></tr>").addClass("FormData").attr("id","tr_"+nm);
|
4875
|
+
$(trdata).append(tmpl);
|
4876
|
+
$(tb).append(trdata);
|
4877
|
+
trdata[0].rp = rp;
|
4878
|
+
}
|
4879
|
+
$("td:eq("+(cp-2)+")",trdata[0]).html( typeof frmopt.label === 'undefined' ? obj.p.colNames[i]: frmopt.label);
|
4880
|
+
$("td:eq("+(cp-1)+")",trdata[0]).append(frmopt.elmprefix).append(elc).append(frmopt.elmsuffix);
|
4881
|
+
retpos[cnt] = i;
|
4882
|
+
cnt++;
|
4883
|
+
}
|
4884
|
+
});
|
4885
|
+
if( cnt > 0) {
|
4886
|
+
var idrow = $("<tr class='FormData' style='display:none'><td class='CaptionTD'></td><td colspan='"+ (maxcols*2-1)+"' class='DataTD'><input class='FormElement' id='id_g' type='text' name='"+obj.p.id+"_id' value='"+rowid+"'/></td></tr>");
|
4887
|
+
idrow[0].rp = cnt+999;
|
4888
|
+
$(tb).append(idrow);
|
4889
|
+
if(rp_ge.checkOnSubmit || rp_ge.checkOnUpdate) { rp_ge._savedData[obj.p.id+"_id"] = rowid; }
|
4890
|
+
}
|
4891
|
+
return retpos;
|
4892
|
+
}
|
4893
|
+
function fillData(rowid,obj,fmid){
|
4894
|
+
var nm,cnt=0,tmp, fld,opt,vl,vlc;
|
4895
|
+
if(rp_ge.checkOnSubmit || rp_ge.checkOnUpdate) {rp_ge._savedData = {};rp_ge._savedData[obj.p.id+"_id"]=rowid;}
|
4896
|
+
var cm = obj.p.colModel;
|
4897
|
+
if(rowid == '_empty') {
|
4898
|
+
$(cm).each(function(i){
|
4899
|
+
nm = this.name;
|
4900
|
+
opt = $.extend({}, this.editoptions || {} );
|
4901
|
+
fld = $("#"+$.jgrid.jqID(nm),"#"+fmid);
|
4902
|
+
if(fld[0] != null) {
|
4903
|
+
vl = "";
|
4904
|
+
if(opt.defaultValue ) {
|
4905
|
+
vl = $.isFunction(opt.defaultValue) ? opt.defaultValue() : opt.defaultValue;
|
4906
|
+
if(fld[0].type=='checkbox') {
|
4907
|
+
vlc = vl.toLowerCase();
|
4908
|
+
if(vlc.search(/(false|0|no|off|undefined)/i)<0 && vlc!=="") {
|
4909
|
+
fld[0].checked = true;
|
4910
|
+
fld[0].defaultChecked = true;
|
4911
|
+
fld[0].value = vl;
|
4912
|
+
} else {
|
4913
|
+
fld.attr({checked:"",defaultChecked:""});
|
4914
|
+
}
|
4915
|
+
} else {fld.val(vl); }
|
4916
|
+
} else {
|
4917
|
+
if( fld[0].type=='checkbox' ) {
|
4918
|
+
fld[0].checked = false;
|
4919
|
+
fld[0].defaultChecked = false;
|
4920
|
+
vl = $(fld).attr("offval");
|
4921
|
+
} else if (fld[0].type && fld[0].type.substr(0,6)=='select') {
|
4922
|
+
fld[0].selectedIndex = 0;
|
4923
|
+
} else {
|
4924
|
+
fld.val(vl);
|
4925
|
+
}
|
4926
|
+
}
|
4927
|
+
if(rp_ge.checkOnSubmit===true || rp_ge.checkOnUpdate) { rp_ge._savedData[nm] = vl; }
|
4928
|
+
}
|
4929
|
+
});
|
4930
|
+
$("#id_g","#"+fmid).val(rowid);
|
4931
|
+
return;
|
4932
|
+
}
|
4933
|
+
var tre = $(obj).jqGrid("getInd",rowid,true);
|
4934
|
+
if(!tre) { return; }
|
4935
|
+
$('td',tre).each( function(i) {
|
4936
|
+
nm = cm[i].name;
|
4937
|
+
// hidden fields are included in the form
|
4938
|
+
if ( nm !== 'cb' && nm !== 'subgrid' && nm !== 'rn' && cm[i].editable===true) {
|
4939
|
+
if(nm == obj.p.ExpandColumn && obj.p.treeGrid === true) {
|
4940
|
+
tmp = $(this).text();
|
4941
|
+
} else {
|
4942
|
+
try {
|
4943
|
+
tmp = $.unformat($(this),{rowId:rowid, colModel:cm[i]},i);
|
4944
|
+
} catch (_) {
|
4945
|
+
tmp = $(this).html();
|
4946
|
+
}
|
4947
|
+
}
|
4948
|
+
if($t.p.autoencode) { tmp = $.jgrid.htmlDecode(tmp); }
|
4949
|
+
if(rp_ge.checkOnSubmit===true || rp_ge.checkOnUpdate) { rp_ge._savedData[nm] = tmp; }
|
4950
|
+
nm = $.jgrid.jqID(nm);
|
4951
|
+
switch (cm[i].edittype) {
|
4952
|
+
case "password":
|
4953
|
+
case "text":
|
4954
|
+
case "button" :
|
4955
|
+
case "image":
|
4956
|
+
$("#"+nm,"#"+fmid).val(tmp);
|
4957
|
+
break;
|
4958
|
+
case "textarea":
|
4959
|
+
if(tmp == " " || tmp == " " || (tmp.length==1 && tmp.charCodeAt(0)==160) ) {tmp='';}
|
4960
|
+
$("#"+nm,"#"+fmid).val(tmp);
|
4961
|
+
break;
|
4962
|
+
case "select":
|
4963
|
+
var opv = tmp.split(",");
|
4964
|
+
opv = $.map(opv,function(n){return $.trim(n);});
|
4965
|
+
$("#"+nm+" option","#"+fmid).each(function(j){
|
4966
|
+
if (!cm[i].editoptions.multiple && (opv[0] == $.trim($(this).text()) || opv[0] == $.trim($(this).val())) ){
|
4967
|
+
this.selected= true;
|
4968
|
+
} else if (cm[i].editoptions.multiple){
|
4969
|
+
if( $.inArray($.trim($(this).text()), opv ) > -1 || $.inArray($.trim($(this).val()), opv ) > -1 ){
|
4970
|
+
this.selected = true;
|
4971
|
+
}else{
|
4972
|
+
this.selected = false;
|
4973
|
+
}
|
4974
|
+
} else {
|
4975
|
+
this.selected = false;
|
4976
|
+
}
|
4977
|
+
});
|
4978
|
+
break;
|
4979
|
+
case "checkbox":
|
4980
|
+
tmp = tmp+"";
|
4981
|
+
if(cm[i].editoptions && cm[i].editoptions.value) {
|
4982
|
+
var cb = cm[i].editoptions.value.split(":");
|
4983
|
+
if(cb[0] == tmp) {
|
4984
|
+
$("#"+nm,"#"+fmid).attr("checked",true);
|
4985
|
+
$("#"+nm,"#"+fmid).attr("defaultChecked",true); //ie
|
4986
|
+
} else {
|
4987
|
+
$("#"+nm,"#"+fmid).attr("checked",false);
|
4988
|
+
$("#"+nm,"#"+fmid).attr("defaultChecked",""); //ie
|
4989
|
+
}
|
4990
|
+
} else {
|
4991
|
+
tmp = tmp.toLowerCase();
|
4992
|
+
if(tmp.search(/(false|0|no|off|undefined)/i)<0 && tmp!=="") {
|
4993
|
+
$("#"+nm,"#"+fmid).attr("checked",true);
|
4994
|
+
$("#"+nm,"#"+fmid).attr("defaultChecked",true); //ie
|
4995
|
+
} else {
|
4996
|
+
$("#"+nm,"#"+fmid).attr("checked",false);
|
4997
|
+
$("#"+nm,"#"+fmid).attr("defaultChecked",""); //ie
|
4998
|
+
}
|
4999
|
+
}
|
5000
|
+
break;
|
5001
|
+
case 'custom' :
|
5002
|
+
try {
|
5003
|
+
if(cm[i].editoptions && $.isFunction(cm[i].editoptions.custom_value)) {
|
5004
|
+
cm[i].editoptions.custom_value($("#"+nm,"#"+fmid),'set',tmp);
|
5005
|
+
} else { throw "e1"; }
|
5006
|
+
} catch (e) {
|
5007
|
+
if (e=="e1") { info_dialog(jQuery.jgrid.errors.errcap,"function 'custom_value' "+$.jgrid.edit.msg.nodefined,jQuery.jgrid.edit.bClose);}
|
5008
|
+
else { info_dialog(jQuery.jgrid.errors.errcap,e.message,jQuery.jgrid.edit.bClose); }
|
5009
|
+
}
|
5010
|
+
break;
|
5011
|
+
}
|
5012
|
+
cnt++;
|
5013
|
+
}
|
5014
|
+
});
|
5015
|
+
if(cnt>0) { $("#id_g","#"+frmtb).val(rowid); }
|
5016
|
+
}
|
5017
|
+
function postIt() {
|
5018
|
+
var ret=[true,"",""], onCS = {}, opers = $t.p.prmNames, idname, oper;
|
5019
|
+
if($.isFunction(rp_ge.beforeCheckValues)) {
|
5020
|
+
var retvals = rp_ge.beforeCheckValues(postdata,$("#"+frmgr),postdata[$t.p.id+"_id"] == "_empty" ? opers.addoper : opers.editoper);
|
5021
|
+
if(retvals && typeof(retvals) === 'object') { postdata = retvals; }
|
5022
|
+
}
|
5023
|
+
for( var key in postdata ){
|
5024
|
+
if(postdata.hasOwnProperty(key)) {
|
5025
|
+
ret = checkValues(postdata[key],key,$t);
|
5026
|
+
if(ret[0] === false) { break; }
|
5027
|
+
}
|
5028
|
+
}
|
5029
|
+
if(ret[0]) {
|
5030
|
+
if( $.isFunction( rp_ge.onclickSubmit)) { onCS = rp_ge.onclickSubmit(rp_ge,postdata) || {}; }
|
5031
|
+
if( $.isFunction(rp_ge.beforeSubmit)) { ret = rp_ge.beforeSubmit(postdata,$("#"+frmgr)); }
|
5032
|
+
}
|
5462
5033
|
|
5463
|
-
|
5464
|
-
|
5034
|
+
if(ret[0] && !rp_ge.processing) {
|
5035
|
+
rp_ge.processing = true;
|
5036
|
+
$("#sData", "#"+frmtb+"_2").addClass('ui-state-active');
|
5037
|
+
oper = opers.oper;
|
5038
|
+
idname = opers.id;
|
5039
|
+
// we add to pos data array the action - the name is oper
|
5040
|
+
postdata[oper] = ($.trim(postdata[$t.p.id+"_id"]) == "_empty") ? opers.addoper : opers.editoper;
|
5041
|
+
if(postdata[oper] != opers.addoper) {
|
5042
|
+
postdata[idname] = postdata[$t.p.id+"_id"];
|
5043
|
+
} else {
|
5044
|
+
// check to see if we have allredy this field in the form and if yes lieve it
|
5045
|
+
if( postdata[idname] === undefined ) { postdata[idname] = postdata[$t.p.id+"_id"]; }
|
5046
|
+
}
|
5047
|
+
delete postdata[$t.p.id+"_id"];
|
5048
|
+
postdata = $.extend(postdata,rp_ge.editData,onCS);
|
5465
5049
|
|
5466
|
-
|
5467
|
-
|
5468
|
-
|
5469
|
-
|
5470
|
-
top : 0,
|
5471
|
-
left: 0,
|
5472
|
-
width: 0,
|
5473
|
-
height: 'auto',
|
5474
|
-
dataheight: 'auto',
|
5475
|
-
modal: false,
|
5476
|
-
drag: true,
|
5477
|
-
resize: true,
|
5478
|
-
jqModal: true,
|
5479
|
-
closeOnEscape : false,
|
5480
|
-
labelswidth: '30%',
|
5481
|
-
closeicon: [],
|
5482
|
-
navkeys: [false,38,40],
|
5483
|
-
onClose: null,
|
5484
|
-
beforeShowForm : null,
|
5485
|
-
viewPagerButtons : true
|
5486
|
-
}, $.jgrid.view, p || {});
|
5487
|
-
return this.each(function(){
|
5488
|
-
var $t = this;
|
5489
|
-
if (!$t.grid || !rowid) { return; }
|
5490
|
-
if(!p.imgpath) { p.imgpath= $t.p.imgpath; }
|
5491
|
-
// I hate to rewrite code, but ...
|
5492
|
-
var gID = $t.p.id,
|
5493
|
-
frmgr = "ViewGrid_"+gID , frmtb = "ViewTbl_"+gID,
|
5494
|
-
IDs = {themodal:'viewmod'+gID,modalhead:'viewhd'+gID,modalcontent:'viewcnt'+gID, scrollelm : frmgr},
|
5495
|
-
maxCols = 1, maxRows=0;
|
5496
|
-
function focusaref(){ //Sfari 3 issues
|
5497
|
-
if(p.closeOnEscape===true || p.navkeys[0]===true) {
|
5498
|
-
setTimeout(function(){$(".ui-jqdialog-titlebar-close","#"+IDs.modalhead).focus();},0);
|
5499
|
-
}
|
5500
|
-
}
|
5501
|
-
function createData(rowid,obj,tb,maxcols){
|
5502
|
-
var nm, hc,trdata, cnt=0,tmp, dc, retpos=[], ind=false,
|
5503
|
-
tdtmpl = "<td class='CaptionTD form-view-label ui-widget-content' width='"+p.labelswidth+"'> </td><td class='DataTD form-view-data ui-helper-reset ui-widget-content'> </td>", tmpl="",
|
5504
|
-
tdtmpl2 = "<td class='CaptionTD form-view-label ui-widget-content'> </td><td class='DataTD form-view-data ui-widget-content'> </td>",
|
5505
|
-
fmtnum = ['integer','number','currency'],max1 =0, max2=0 ,maxw,setme, viewfld;
|
5506
|
-
for (var i =1;i<=maxcols;i++) {
|
5507
|
-
tmpl += i == 1 ? tdtmpl : tdtmpl2;
|
5508
|
-
}
|
5509
|
-
// find max number align rigth with property formatter
|
5510
|
-
$(obj.p.colModel).each( function(i) {
|
5511
|
-
if(this.editrules && this.editrules.edithidden === true) {
|
5512
|
-
hc = false;
|
5513
|
-
} else {
|
5514
|
-
hc = this.hidden === true ? true : false;
|
5515
|
-
}
|
5516
|
-
if(!hc && this.align==='right') {
|
5517
|
-
if(this.formatter && $.inArray(this.formatter,fmtnum) !== -1 ) {
|
5518
|
-
max1 = Math.max(max1,parseInt(this.width,10));
|
5519
|
-
} else {
|
5520
|
-
max2 = Math.max(max2,parseInt(this.width,10));
|
5521
|
-
}
|
5522
|
-
}
|
5523
|
-
});
|
5524
|
-
maxw = max1 !==0 ? max1 : max2 !==0 ? max2 : 0;
|
5525
|
-
ind = $(obj).jqGrid("getInd",rowid);
|
5526
|
-
$(obj.p.colModel).each( function(i) {
|
5527
|
-
nm = this.name;
|
5528
|
-
setme = false;
|
5529
|
-
// hidden fields are included in the form
|
5530
|
-
if(this.editrules && this.editrules.edithidden === true) {
|
5531
|
-
hc = false;
|
5532
|
-
} else {
|
5533
|
-
hc = this.hidden === true ? true : false;
|
5534
|
-
}
|
5535
|
-
dc = hc ? "style='display:none'" : "";
|
5536
|
-
viewfld = (typeof this.viewable != 'boolean') ? true : this.viewable;
|
5537
|
-
if ( nm !== 'cb' && nm !== 'subgrid' && nm !== 'rn' && viewfld) {
|
5538
|
-
if(ind === false) {
|
5539
|
-
tmp = "";
|
5540
|
-
} else {
|
5541
|
-
if(nm == obj.p.ExpandColumn && obj.p.treeGrid === true) {
|
5542
|
-
tmp = $("td:eq("+i+")",obj.rows[ind]).text();
|
5543
|
-
} else {
|
5544
|
-
tmp = $("td:eq("+i+")",obj.rows[ind]).html();
|
5545
|
-
}
|
5546
|
-
}
|
5547
|
-
setme = this.align === 'right' && maxw !==0 ? true : false;
|
5548
|
-
var opt = $.extend({}, this.editoptions || {} ,{id:nm,name:nm}),
|
5549
|
-
frmopt = $.extend({},{rowabove:false,rowcontent:''}, this.formoptions || {}),
|
5550
|
-
rp = parseInt(frmopt.rowpos,10) || cnt+1,
|
5551
|
-
cp = parseInt((parseInt(frmopt.colpos,10) || 1)*2,10);
|
5552
|
-
if(frmopt.rowabove) {
|
5553
|
-
var newdata = $("<tr><td class='contentinfo' colspan='"+(maxcols*2)+"'>"+frmopt.rowcontent+"</td></tr>");
|
5554
|
-
$(tb).append(newdata);
|
5555
|
-
newdata[0].rp = rp;
|
5556
|
-
}
|
5557
|
-
trdata = $(tb).find("tr[rowpos="+rp+"]");
|
5558
|
-
if ( trdata.length===0 ) {
|
5559
|
-
trdata = $("<tr "+dc+" rowpos='"+rp+"'></tr>").addClass("FormData").attr("id","trv_"+nm);
|
5560
|
-
$(trdata).append(tmpl);
|
5561
|
-
$(tb).append(trdata);
|
5562
|
-
trdata[0].rp = rp;
|
5563
|
-
}
|
5564
|
-
$("td:eq("+(cp-2)+")",trdata[0]).html('<b>'+ (typeof frmopt.label === 'undefined' ? obj.p.colNames[i]: frmopt.label)+'</b>');
|
5565
|
-
$("td:eq("+(cp-1)+")",trdata[0]).append("<span>"+tmp+"</span>").attr("id","v_"+nm);
|
5566
|
-
if(setme){
|
5567
|
-
$("td:eq("+(cp-1)+") span",trdata[0]).css({'text-align':'right',width:maxw+"px"});
|
5568
|
-
}
|
5569
|
-
retpos[cnt] = i;
|
5570
|
-
cnt++;
|
5571
|
-
}
|
5572
|
-
});
|
5573
|
-
if( cnt > 0) {
|
5574
|
-
var idrow = $("<tr class='FormData' style='display:none'><td class='CaptionTD'></td><td colspan='"+ (maxcols*2-1)+"' class='DataTD'><input class='FormElement' id='id_g' type='text' name='id' value='"+rowid+"'/></td></tr>");
|
5575
|
-
idrow[0].rp = cnt+99;
|
5576
|
-
$(tb).append(idrow);
|
5577
|
-
}
|
5578
|
-
return retpos;
|
5579
|
-
}
|
5580
|
-
function fillData(rowid,obj){
|
5581
|
-
var nm, hc,cnt=0,tmp, opt,trv;
|
5582
|
-
trv = $(obj).jqGrid("getInd",rowid,true);
|
5583
|
-
if(!trv) { return; }
|
5584
|
-
$('td',trv).each( function(i) {
|
5585
|
-
nm = obj.p.colModel[i].name;
|
5586
|
-
// hidden fields are included in the form
|
5587
|
-
if(obj.p.colModel[i].editrules && obj.p.colModel[i].editrules.edithidden === true) {
|
5588
|
-
hc = false;
|
5589
|
-
} else {
|
5590
|
-
hc = obj.p.colModel[i].hidden === true ? true : false;
|
5591
|
-
}
|
5592
|
-
if ( nm !== 'cb' && nm !== 'subgrid' && nm !== 'rn') {
|
5593
|
-
if(nm == obj.p.ExpandColumn && obj.p.treeGrid === true) {
|
5594
|
-
tmp = $(this).text();
|
5595
|
-
} else {
|
5596
|
-
tmp = $(this).html();
|
5597
|
-
}
|
5598
|
-
opt = $.extend({},obj.p.colModel[i].editoptions || {});
|
5599
|
-
nm = $.jgrid.jqID("v_"+nm);
|
5600
|
-
$("#"+nm+" span","#"+frmtb).html(tmp);
|
5601
|
-
if (hc) { $("#"+nm,"#"+frmtb).parents("tr:first").hide(); }
|
5602
|
-
cnt++;
|
5603
|
-
}
|
5604
|
-
});
|
5605
|
-
if(cnt>0) { $("#id_g","#"+frmtb).val(rowid); }
|
5606
|
-
}
|
5607
|
-
if ( $("#"+IDs.themodal).html() != null ) {
|
5608
|
-
$(".ui-jqdialog-title","#"+IDs.modalhead).html(p.caption);
|
5609
|
-
$("#FormError","#"+frmtb).hide();
|
5610
|
-
fillData(rowid,$t);
|
5611
|
-
if($.isFunction(p.beforeShowForm)) { p.beforeShowForm($("#"+frmgr)); }
|
5612
|
-
viewModal("#"+IDs.themodal,{gbox:"#gbox_"+gID,jqm:p.jqModal, jqM: false, modal:p.modal});
|
5613
|
-
focusaref();
|
5614
|
-
} else {
|
5615
|
-
$($t.p.colModel).each( function(i) {
|
5616
|
-
var fmto = this.formoptions;
|
5617
|
-
maxCols = Math.max(maxCols, fmto ? fmto.colpos || 0 : 0 );
|
5618
|
-
maxRows = Math.max(maxRows, fmto ? fmto.rowpos || 0 : 0 );
|
5619
|
-
});
|
5620
|
-
var dh = isNaN(p.dataheight) ? p.dataheight : p.dataheight+"px";
|
5621
|
-
var frm = $("<form name='FormPost' id='"+frmgr+"' class='FormGrid' style='width:100%;overflow:auto;position:relative;height:"+dh+";'></form>"),
|
5622
|
-
tbl =$("<table id='"+frmtb+"' class='EditTable' cellspacing='1' cellpading='2' border='0' style='table-layout:fixed'><tbody></tbody></table>");
|
5623
|
-
// set the id.
|
5624
|
-
$(frm).append(tbl);
|
5625
|
-
createData(rowid, $t, tbl, maxCols);
|
5626
|
-
var rtlb = $t.p.direction == "rtl" ? true :false,
|
5627
|
-
bp = rtlb ? "nData" : "pData",
|
5628
|
-
bn = rtlb ? "pData" : "nData",
|
5629
|
-
|
5630
|
-
// buttons at footer
|
5631
|
-
bP = "<a href='javascript:void(0)' id='"+bp+"' class='fm-button ui-state-default ui-corner-left'><span class='ui-icon ui-icon-triangle-1-w'></span></a>",
|
5632
|
-
bN = "<a href='javascript:void(0)' id='"+bn+"' class='fm-button ui-state-default ui-corner-right'><span class='ui-icon ui-icon-triangle-1-e'></span></a>",
|
5633
|
-
bC ="<a href='javascript:void(0)' id='cData' class='fm-button ui-state-default ui-corner-all'>"+p.bClose+"</a>";
|
5634
|
-
if(maxRows > 0) {
|
5635
|
-
var sd=[];
|
5636
|
-
$.each($(tbl)[0].rows,function(i,r){
|
5637
|
-
sd[i] = r;
|
5638
|
-
});
|
5639
|
-
sd.sort(function(a,b){
|
5640
|
-
if(a.rp > b.rp) {return 1;}
|
5641
|
-
if(a.rp < b.rp) {return -1;}
|
5642
|
-
return 0;
|
5643
|
-
});
|
5644
|
-
$.each(sd, function(index, row) {
|
5645
|
-
$('tbody',tbl).append(row);
|
5646
|
-
});
|
5647
|
-
}
|
5648
|
-
p.gbox = "#gbox_"+gID;
|
5649
|
-
var cle = false;
|
5650
|
-
if(p.closeOnEscape===true){
|
5651
|
-
p.closeOnEscape = false;
|
5652
|
-
cle = true;
|
5653
|
-
}
|
5654
|
-
var bt = $("<span></span>").append(frm).append("<table border='0' class='EditTable' id='"+frmtb+"_2'><tbody><tr id='Act_Buttons'><td class='navButton ui-widget-content' width='"+p.labelswidth+"'>"+(rtlb ? bN+bP : bP+bN)+"</td><td class='EditButton ui-widget-content'>"+bC+"</td></tr></tbody></table>");
|
5655
|
-
createModal(IDs,bt,p,"#gview_"+$t.p.id,$("#gview_"+$t.p.id)[0]);
|
5656
|
-
if(rtlb) {
|
5657
|
-
$("#pData, #nData","#"+frmtb+"_2").css("float","right");
|
5658
|
-
$(".EditButton","#"+frmtb+"_2").css("text-align","left");
|
5659
|
-
}
|
5660
|
-
if(!p.viewPagerButtons) { $("#pData, #nData","#"+frmtb+"_2").hide(); }
|
5661
|
-
bt = null;
|
5662
|
-
$("#"+IDs.themodal).keydown( function( e ) {
|
5663
|
-
if(e.which === 27) {
|
5664
|
-
if(cle) { hideModal(this,{gb:p.gbox,jqm:p.jqModal, onClose: p.onClose}); }
|
5665
|
-
return false;
|
5666
|
-
}
|
5667
|
-
if(p.navkeys[0]===true) {
|
5668
|
-
if(e.which === p.navkeys[1]){ //up
|
5669
|
-
$("#pData", "#"+frmtb+"_2").trigger("click");
|
5670
|
-
return false;
|
5671
|
-
}
|
5672
|
-
if(e.which === p.navkeys[2]){ //down
|
5673
|
-
$("#nData", "#"+frmtb+"_2").trigger("click");
|
5674
|
-
return false;
|
5675
|
-
}
|
5676
|
-
}
|
5677
|
-
});
|
5678
|
-
p.closeicon = $.extend([true,"left","ui-icon-close"],p.closeicon);
|
5679
|
-
if(p.closeicon[0]===true) {
|
5680
|
-
$("#cData","#"+frmtb+"_2").addClass(p.closeicon[1] == "right" ? 'fm-button-icon-right' : 'fm-button-icon-left')
|
5681
|
-
.append("<span class='ui-icon "+p.closeicon[2]+"'></span>");
|
5682
|
-
}
|
5683
|
-
if($.isFunction(p.beforeShowForm)) { p.beforeShowForm($("#"+frmgr)); }
|
5684
|
-
viewModal("#"+IDs.themodal,{gbox:"#gbox_"+gID,jqm:p.jqModal, modal:p.modal});
|
5685
|
-
$(".fm-button:not(.ui-state-disabled)","#"+frmtb+"_2").hover(
|
5686
|
-
function(){$(this).addClass('ui-state-hover');},
|
5687
|
-
function(){$(this).removeClass('ui-state-hover');}
|
5688
|
-
);
|
5689
|
-
focusaref();
|
5690
|
-
$("#cData", "#"+frmtb+"_2").click(function(e){
|
5691
|
-
hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal, onClose: p.onClose});
|
5692
|
-
return false;
|
5693
|
-
});
|
5694
|
-
$("#nData", "#"+frmtb+"_2").click(function(e){
|
5695
|
-
$("#FormError","#"+frmtb).hide();
|
5696
|
-
var npos = getCurrPos();
|
5697
|
-
npos[0] = parseInt(npos[0],10);
|
5698
|
-
if(npos[0] != -1 && npos[1][npos[0]+1]) {
|
5699
|
-
if($.isFunction(p.onclickPgButtons)) {
|
5700
|
-
p.onclickPgButtons('next',$("#"+frmgr),npos[1][npos[0]]);
|
5701
|
-
}
|
5702
|
-
fillData(npos[1][npos[0]+1],$t);
|
5703
|
-
$($t).jqGrid("setSelection",npos[1][npos[0]+1]);
|
5704
|
-
if($.isFunction(p.afterclickPgButtons)) {
|
5705
|
-
p.afterclickPgButtons('next',$("#"+frmgr),npos[1][npos[0]+1]);
|
5706
|
-
}
|
5707
|
-
updateNav(npos[0]+1,npos[1].length-1);
|
5708
|
-
}
|
5709
|
-
focusaref();
|
5710
|
-
return false;
|
5711
|
-
});
|
5712
|
-
$("#pData", "#"+frmtb+"_2").click(function(e){
|
5713
|
-
$("#FormError","#"+frmtb).hide();
|
5714
|
-
var ppos = getCurrPos();
|
5715
|
-
if(ppos[0] != -1 && ppos[1][ppos[0]-1]) {
|
5716
|
-
if($.isFunction(p.onclickPgButtons)) {
|
5717
|
-
p.onclickPgButtons('prev',$("#"+frmgr),ppos[1][ppos[0]]);
|
5718
|
-
}
|
5719
|
-
fillData(ppos[1][ppos[0]-1],$t);
|
5720
|
-
$($t).jqGrid("setSelection",ppos[1][ppos[0]-1]);
|
5721
|
-
if($.isFunction(p.afterclickPgButtons)) {
|
5722
|
-
p.afterclickPgButtons('prev',$("#"+frmgr),ppos[1][ppos[0]-1]);
|
5723
|
-
}
|
5724
|
-
updateNav(ppos[0]-1,ppos[1].length-1);
|
5725
|
-
}
|
5726
|
-
focusaref();
|
5727
|
-
return false;
|
5728
|
-
});
|
5729
|
-
}
|
5730
|
-
function updateNav(cr,totr,rid){
|
5731
|
-
if (cr===0) { $("#pData","#"+frmtb+"_2").addClass('ui-state-disabled'); } else { $("#pData","#"+frmtb+"_2").removeClass('ui-state-disabled'); }
|
5732
|
-
if (cr==totr) { $("#nData","#"+frmtb+"_2").addClass('ui-state-disabled'); } else { $("#nData","#"+frmtb+"_2").removeClass('ui-state-disabled'); }
|
5733
|
-
}
|
5734
|
-
function getCurrPos() {
|
5735
|
-
var rowsInGrid = $($t).jqGrid("getDataIDs"),
|
5736
|
-
selrow = $("#id_g","#"+frmtb).val(),
|
5737
|
-
pos = $.inArray(selrow,rowsInGrid);
|
5738
|
-
return [pos,rowsInGrid];
|
5739
|
-
}
|
5050
|
+
if($t.p.restful) {
|
5051
|
+
rp_ge.mtype = postdata.id == "_empty" ? "POST" : "PUT";
|
5052
|
+
rp_ge.url = postdata.id == "_empty" ? $t.p.url : $t.p.url+"/"+postdata.id;
|
5053
|
+
}
|
5740
5054
|
|
5741
|
-
|
5742
|
-
|
5743
|
-
|
5744
|
-
|
5745
|
-
|
5746
|
-
|
5747
|
-
|
5748
|
-
|
5749
|
-
|
5750
|
-
|
5751
|
-
|
5752
|
-
|
5753
|
-
|
5754
|
-
|
5755
|
-
|
5756
|
-
|
5757
|
-
|
5758
|
-
|
5759
|
-
|
5760
|
-
|
5761
|
-
|
5762
|
-
|
5763
|
-
|
5764
|
-
|
5765
|
-
|
5766
|
-
|
5767
|
-
|
5768
|
-
|
5769
|
-
|
5770
|
-
|
5771
|
-
|
5772
|
-
|
5773
|
-
|
5774
|
-
|
5775
|
-
|
5776
|
-
|
5777
|
-
|
5778
|
-
|
5779
|
-
|
5780
|
-
|
5781
|
-
|
5782
|
-
|
5783
|
-
|
5784
|
-
|
5785
|
-
|
5786
|
-
|
5787
|
-
|
5788
|
-
|
5789
|
-
|
5790
|
-
|
5791
|
-
|
5792
|
-
|
5793
|
-
|
5794
|
-
|
5795
|
-
|
5796
|
-
|
5797
|
-
|
5798
|
-
|
5799
|
-
|
5800
|
-
|
5801
|
-
|
5802
|
-
|
5803
|
-
|
5804
|
-
|
5805
|
-
|
5806
|
-
|
5807
|
-
|
5808
|
-
|
5809
|
-
|
5810
|
-
|
5811
|
-
|
5812
|
-
|
5813
|
-
|
5814
|
-
|
5815
|
-
|
5816
|
-
|
5817
|
-
|
5818
|
-
|
5819
|
-
|
5820
|
-
|
5821
|
-
|
5822
|
-
|
5823
|
-
|
5824
|
-
|
5825
|
-
|
5826
|
-
|
5827
|
-
|
5828
|
-
|
5829
|
-
|
5830
|
-
|
5831
|
-
|
5832
|
-
|
5833
|
-
|
5834
|
-
|
5835
|
-
|
5836
|
-
|
5837
|
-
|
5838
|
-
|
5839
|
-
|
5840
|
-
|
5841
|
-
|
5842
|
-
|
5055
|
+
var ajaxOptions = $.extend({
|
5056
|
+
url: rp_ge.url ? rp_ge.url : $($t).jqGrid('getGridParam','editurl'),
|
5057
|
+
type: rp_ge.mtype,
|
5058
|
+
data: $.isFunction(rp_ge.serializeEditData) ? rp_ge.serializeEditData(postdata) : postdata,
|
5059
|
+
complete:function(data,Status){
|
5060
|
+
if(Status != "success") {
|
5061
|
+
ret[0] = false;
|
5062
|
+
if ($.isFunction(rp_ge.errorTextFormat)) {
|
5063
|
+
ret[1] = rp_ge.errorTextFormat(data);
|
5064
|
+
} else {
|
5065
|
+
ret[1] = Status + " Status: '" + data.statusText + "'. Error code: " + data.status;
|
5066
|
+
}
|
5067
|
+
} else {
|
5068
|
+
// data is posted successful
|
5069
|
+
// execute aftersubmit with the returned data from server
|
5070
|
+
if( $.isFunction(rp_ge.afterSubmit) ) {
|
5071
|
+
ret = rp_ge.afterSubmit(data,postdata);
|
5072
|
+
}
|
5073
|
+
}
|
5074
|
+
if(ret[0] === false) {
|
5075
|
+
$("#FormError>td","#"+frmtb).html(ret[1]);
|
5076
|
+
$("#FormError","#"+frmtb).show();
|
5077
|
+
} else {
|
5078
|
+
// remove some values if formattaer select or checkbox
|
5079
|
+
$.each($t.p.colModel, function(i,n){
|
5080
|
+
if(extpost[this.name] && this.formatter && this.formatter=='select') {
|
5081
|
+
try {delete extpost[this.name];} catch (e) {}
|
5082
|
+
}
|
5083
|
+
});
|
5084
|
+
postdata = $.extend(postdata,extpost);
|
5085
|
+
if($t.p.autoencode) {
|
5086
|
+
$.each(postdata,function(n,v){
|
5087
|
+
postdata[n] = $.jgrid.htmlDecode(v);
|
5088
|
+
});
|
5089
|
+
}
|
5090
|
+
rp_ge.reloadAfterSubmit = rp_ge.reloadAfterSubmit && $t.p.datatype != "local";
|
5091
|
+
// the action is add
|
5092
|
+
if(postdata[oper] == opers.addoper ) {
|
5093
|
+
//id processing
|
5094
|
+
// user not set the id ret[2]
|
5095
|
+
if(!ret[2]) { ret[2] = (parseInt($t.p.records,10)+1)+""; }
|
5096
|
+
postdata[idname] = ret[2];
|
5097
|
+
if(rp_ge.closeAfterAdd) {
|
5098
|
+
if(rp_ge.reloadAfterSubmit) { $($t).trigger("reloadGrid"); }
|
5099
|
+
else {
|
5100
|
+
$($t).jqGrid("addRowData",ret[2],postdata,p.addedrow);
|
5101
|
+
$($t).jqGrid("setSelection",ret[2]);
|
5102
|
+
}
|
5103
|
+
hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal,onClose: rp_ge.onClose});
|
5104
|
+
} else if (rp_ge.clearAfterAdd) {
|
5105
|
+
if(rp_ge.reloadAfterSubmit) { $($t).trigger("reloadGrid"); }
|
5106
|
+
else { $($t).jqGrid("addRowData",ret[2],postdata,p.addedrow); }
|
5107
|
+
fillData("_empty",$t,frmgr);
|
5108
|
+
} else {
|
5109
|
+
if(rp_ge.reloadAfterSubmit) { $($t).trigger("reloadGrid"); }
|
5110
|
+
else { $($t).jqGrid("addRowData",ret[2],postdata,p.addedrow); }
|
5111
|
+
}
|
5112
|
+
} else {
|
5113
|
+
// the action is update
|
5114
|
+
if(rp_ge.reloadAfterSubmit) {
|
5115
|
+
$($t).trigger("reloadGrid");
|
5116
|
+
if( !rp_ge.closeAfterEdit ) { setTimeout(function(){$($t).jqGrid("setSelection",postdata[idname]);},1000); }
|
5117
|
+
} else {
|
5118
|
+
if($t.p.treeGrid === true) {
|
5119
|
+
$($t).jqGrid("setTreeRow",postdata[idname],postdata);
|
5120
|
+
} else {
|
5121
|
+
$($t).jqGrid("setRowData",postdata[idname],postdata);
|
5122
|
+
}
|
5123
|
+
}
|
5124
|
+
if(rp_ge.closeAfterEdit) { hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal,onClose: rp_ge.onClose}); }
|
5125
|
+
}
|
5126
|
+
if($.isFunction(rp_ge.afterComplete)) {
|
5127
|
+
copydata = data;
|
5128
|
+
setTimeout(function(){rp_ge.afterComplete(copydata,postdata,$("#"+frmgr));copydata=null;},500);
|
5129
|
+
}
|
5130
|
+
}
|
5131
|
+
rp_ge.processing=false;
|
5132
|
+
if(rp_ge.checkOnSubmit || rp_ge.checkOnUpdate) {
|
5133
|
+
$("#"+frmgr).data("disabled",false);
|
5134
|
+
if(rp_ge._savedData[$t.p.id+"_id"] !="_empty"){
|
5135
|
+
for(var key in rp_ge._savedData) {
|
5136
|
+
if(postdata[key]) {
|
5137
|
+
rp_ge._savedData[key] = postdata[key];
|
5138
|
+
}
|
5139
|
+
}
|
5140
|
+
}
|
5141
|
+
}
|
5142
|
+
$("#sData", "#"+frmtb+"_2").removeClass('ui-state-active');
|
5143
|
+
try{$(':input:visible',"#"+frmgr)[0].focus();} catch (e){}
|
5144
|
+
},
|
5145
|
+
error:function(xhr,st,err){
|
5146
|
+
$("#FormError>td","#"+frmtb).html(st+ " : "+err);
|
5147
|
+
$("#FormError","#"+frmtb).show();
|
5148
|
+
rp_ge.processing=false;
|
5149
|
+
$("#"+frmgr).data("disabled",false);
|
5150
|
+
$("#sData", "#"+frmtb+"_2").removeClass('ui-state-active');
|
5151
|
+
}
|
5152
|
+
}, $.jgrid.ajaxOptions, rp_ge.ajaxEditOptions );
|
5153
|
+
|
5154
|
+
if (!ajaxOptions.url && !rp_ge.useDataProxy) {
|
5155
|
+
if ($.isFunction($t.p.dataProxy)) {
|
5156
|
+
rp_ge.useDataProxy = true;
|
5157
|
+
} else {
|
5158
|
+
ret[0]=false; ret[1] += " "+$.jgrid.errors.nourl;
|
5159
|
+
}
|
5160
|
+
}
|
5161
|
+
if (ret[0]) {
|
5162
|
+
if (rp_ge.useDataProxy) { $t.p.dataProxy.call($t, ajaxOptions, "set_"+$t.p.id); }
|
5163
|
+
else { $.ajax(ajaxOptions); }
|
5164
|
+
}
|
5165
|
+
}
|
5166
|
+
if(ret[0] === false) {
|
5167
|
+
$("#FormError>td","#"+frmtb).html(ret[1]);
|
5168
|
+
$("#FormError","#"+frmtb).show();
|
5169
|
+
// return;
|
5170
|
+
}
|
5171
|
+
}
|
5172
|
+
function compareData(nObj, oObj ) {
|
5173
|
+
var ret = false,key;
|
5174
|
+
for (key in nObj) {
|
5175
|
+
if(nObj[key] != oObj[key]) {
|
5176
|
+
ret = true;
|
5177
|
+
break;
|
5178
|
+
}
|
5179
|
+
}
|
5180
|
+
return ret;
|
5181
|
+
}
|
5182
|
+
function checkUpdates () {
|
5183
|
+
var stat = true;
|
5184
|
+
$("#FormError","#"+frmtb).hide();
|
5185
|
+
if(rp_ge.checkOnUpdate) {
|
5186
|
+
postdata = {}; extpost={};
|
5187
|
+
getFormData();
|
5188
|
+
newData = $.extend({},postdata,extpost);
|
5189
|
+
diff = compareData(newData,rp_ge._savedData);
|
5190
|
+
if(diff) {
|
5191
|
+
$("#"+frmgr).data("disabled",true);
|
5192
|
+
$(".confirm","#"+IDs.themodal).show();
|
5193
|
+
stat = false;
|
5194
|
+
}
|
5195
|
+
}
|
5196
|
+
return stat;
|
5197
|
+
}
|
5198
|
+
|
5199
|
+
if ( $("#"+IDs.themodal).html() != null ) {
|
5200
|
+
$(".ui-jqdialog-title","#"+IDs.modalhead).html(p.caption);
|
5201
|
+
$("#FormError","#"+frmtb).hide();
|
5202
|
+
if(rp_ge.topinfo) {
|
5203
|
+
$(".topinfo","#"+frmtb+"_2").html(rp_ge.topinfo);
|
5204
|
+
$(".tinfo","#"+frmtb+"_2").show();
|
5205
|
+
} else {
|
5206
|
+
$(".tinfo","#"+frmtb+"_2").hide();
|
5207
|
+
}
|
5208
|
+
if(rp_ge.bottominfo) {
|
5209
|
+
$(".bottominfo","#"+frmtb+"_2").html(rp_ge.bottominfo);
|
5210
|
+
$(".binfo","#"+frmtb+"_2").show();
|
5211
|
+
} else {
|
5212
|
+
$(".binfo","#"+frmtb+"_2").hide();
|
5213
|
+
}
|
5214
|
+
if(onBeforeInit) { onBeforeInit($("#"+frmgr)); }
|
5215
|
+
// filldata
|
5216
|
+
fillData(rowid,$t,frmgr);
|
5217
|
+
///
|
5218
|
+
if(rowid=="_empty" || !rp_ge.viewPagerButtons) {
|
5219
|
+
$("#pData, #nData","#"+frmtb+"_2").hide();
|
5220
|
+
} else {
|
5221
|
+
$("#pData, #nData","#"+frmtb+"_2").show();
|
5222
|
+
}
|
5223
|
+
if(rp_ge.processing===true) {
|
5224
|
+
rp_ge.processing=false;
|
5225
|
+
$("#sData", "#"+frmtb+"_2").removeClass('ui-state-active');
|
5226
|
+
}
|
5227
|
+
if($("#"+frmgr).data("disabled")===true) {
|
5228
|
+
$(".confirm","#"+IDs.themodal).hide();
|
5229
|
+
$("#"+frmgr).data("disabled",false);
|
5230
|
+
}
|
5231
|
+
if(onBeforeShow) { onBeforeShow($("#"+frmgr)); }
|
5232
|
+
$("#"+IDs.themodal).data("onClose",rp_ge.onClose);
|
5233
|
+
viewModal("#"+IDs.themodal,{gbox:"#gbox_"+gID,jqm:p.jqModal, jqM: false, overlay: p.overlay, modal:p.modal});
|
5234
|
+
if(!closeovrl) {
|
5235
|
+
$(".jqmOverlay").click(function(){
|
5236
|
+
if(!checkUpdates()) { return false; }
|
5237
|
+
hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal, onClose: rp_ge.onClose});
|
5238
|
+
return false;
|
5239
|
+
});
|
5240
|
+
}
|
5241
|
+
if(onAfterShow) { onAfterShow($("#"+frmgr)); }
|
5242
|
+
} else {
|
5243
|
+
$($t.p.colModel).each( function(i) {
|
5244
|
+
var fmto = this.formoptions;
|
5245
|
+
maxCols = Math.max(maxCols, fmto ? fmto.colpos || 0 : 0 );
|
5246
|
+
maxRows = Math.max(maxRows, fmto ? fmto.rowpos || 0 : 0 );
|
5247
|
+
});
|
5248
|
+
var dh = isNaN(p.dataheight) ? p.dataheight : p.dataheight+"px",
|
5249
|
+
frm = $("<form name='FormPost' id='"+frmgr+"' class='FormGrid' onSubmit='return false;' style='width:100%;overflow:auto;position:relative;height:"+dh+";'></form>").data("disabled",false),
|
5250
|
+
tbl = $("<table id='"+frmtb+"' class='EditTable' cellspacing='0' cellpading='0' border='0'><tbody></tbody></table>");
|
5251
|
+
$(frm).append(tbl);
|
5252
|
+
var flr = $("<tr id='FormError' style='display:none'><td class='ui-state-error' colspan='"+(maxCols*2)+"'></td></tr>");
|
5253
|
+
flr[0].rp = 0;
|
5254
|
+
$(tbl).append(flr);
|
5255
|
+
//topinfo
|
5256
|
+
flr = $("<tr style='display:none' class='tinfo'><td class='topinfo' colspan='"+(maxCols*2)+"'>"+rp_ge.topinfo+"</td></tr>");
|
5257
|
+
flr[0].rp = 0;
|
5258
|
+
$(tbl).append(flr);
|
5259
|
+
// set the id.
|
5260
|
+
// use carefull only to change here colproperties.
|
5261
|
+
if(onBeforeInit) { onBeforeInit($("#"+frmgr)); }
|
5262
|
+
// create data
|
5263
|
+
var rtlb = $t.p.direction == "rtl" ? true :false,
|
5264
|
+
bp = rtlb ? "nData" : "pData",
|
5265
|
+
bn = rtlb ? "pData" : "nData";
|
5266
|
+
createData(rowid,$t,tbl,maxCols);
|
5267
|
+
// buttons at footer
|
5268
|
+
var bP = "<a href='javascript:void(0)' id='"+bp+"' class='fm-button ui-state-default ui-corner-left'><span class='ui-icon ui-icon-triangle-1-w'></span></div>",
|
5269
|
+
bN = "<a href='javascript:void(0)' id='"+bn+"' class='fm-button ui-state-default ui-corner-right'><span class='ui-icon ui-icon-triangle-1-e'></span></div>",
|
5270
|
+
bS ="<a href='javascript:void(0)' id='sData' class='fm-button ui-state-default ui-corner-all'>"+p.bSubmit+"</a>",
|
5271
|
+
bC ="<a href='javascript:void(0)' id='cData' class='fm-button ui-state-default ui-corner-all'>"+p.bCancel+"</a>";
|
5272
|
+
var bt = "<table border='0' class='EditTable' id='"+frmtb+"_2'><tbody><tr id='Act_Buttons'><td class='navButton ui-widget-content'>"+(rtlb ? bN+bP : bP+bN)+"</td><td class='EditButton ui-widget-content'>"+bS+bC+"</td></tr>";
|
5273
|
+
bt += "<tr style='display:none' class='binfo'><td class='bottominfo' colspan='2'>"+rp_ge.bottominfo+"</td></tr>";
|
5274
|
+
bt += "</tbody></table>";
|
5275
|
+
if(maxRows > 0) {
|
5276
|
+
var sd=[];
|
5277
|
+
$.each($(tbl)[0].rows,function(i,r){
|
5278
|
+
sd[i] = r;
|
5279
|
+
});
|
5280
|
+
sd.sort(function(a,b){
|
5281
|
+
if(a.rp > b.rp) {return 1;}
|
5282
|
+
if(a.rp < b.rp) {return -1;}
|
5283
|
+
return 0;
|
5284
|
+
});
|
5285
|
+
$.each(sd, function(index, row) {
|
5286
|
+
$('tbody',tbl).append(row);
|
5287
|
+
});
|
5288
|
+
}
|
5289
|
+
p.gbox = "#gbox_"+gID;
|
5290
|
+
var cle = false;
|
5291
|
+
if(p.closeOnEscape===true){
|
5292
|
+
p.closeOnEscape = false;
|
5293
|
+
cle = true;
|
5294
|
+
}
|
5295
|
+
var tms = $("<span></span>").append(frm).append(bt);
|
5296
|
+
createModal(IDs,tms,p,"#gview_"+$t.p.id,$("#gbox_"+$t.p.id)[0]);
|
5297
|
+
if(rtlb) {
|
5298
|
+
$("#pData, #nData","#"+frmtb+"_2").css("float","right");
|
5299
|
+
$(".EditButton","#"+frmtb+"_2").css("text-align","left");
|
5300
|
+
}
|
5301
|
+
if(rp_ge.topinfo) { $(".tinfo","#"+frmtb+"_2").show(); }
|
5302
|
+
if(rp_ge.bottominfo) { $(".binfo","#"+frmtb+"_2").show(); }
|
5303
|
+
tms = null; bt=null;
|
5304
|
+
$("#"+IDs.themodal).keydown( function( e ) {
|
5305
|
+
var wkey = e.target;
|
5306
|
+
if ($("#"+frmgr).data("disabled")===true ) { return false; }//??
|
5307
|
+
if(rp_ge.savekey[0] === true && e.which == rp_ge.savekey[1]) { // save
|
5308
|
+
if(wkey.tagName != "TEXTAREA") {
|
5309
|
+
$("#sData", "#"+frmtb+"_2").trigger("click");
|
5310
|
+
return false;
|
5311
|
+
}
|
5312
|
+
}
|
5313
|
+
if(e.which === 27) {
|
5314
|
+
if(!checkUpdates()) { return false; }
|
5315
|
+
if(cle) { hideModal(this,{gb:p.gbox,jqm:p.jqModal, onClose: rp_ge.onClose}); }
|
5316
|
+
return false;
|
5317
|
+
}
|
5318
|
+
if(rp_ge.navkeys[0]===true) {
|
5319
|
+
if($("#id_g","#"+frmtb).val() == "_empty") { return true; }
|
5320
|
+
if(e.which == rp_ge.navkeys[1]){ //up
|
5321
|
+
$("#pData", "#"+frmtb+"_2").trigger("click");
|
5322
|
+
return false;
|
5323
|
+
}
|
5324
|
+
if(e.which == rp_ge.navkeys[2]){ //down
|
5325
|
+
$("#nData", "#"+frmtb+"_2").trigger("click");
|
5326
|
+
return false;
|
5327
|
+
}
|
5328
|
+
}
|
5329
|
+
});
|
5330
|
+
if(p.checkOnUpdate) {
|
5331
|
+
$("a.ui-jqdialog-titlebar-close span","#"+IDs.themodal).removeClass("jqmClose");
|
5332
|
+
$("a.ui-jqdialog-titlebar-close","#"+IDs.themodal).unbind("click")
|
5333
|
+
.click(function(){
|
5334
|
+
if(!checkUpdates()) { return false; }
|
5335
|
+
hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal,onClose: rp_ge.onClose});
|
5336
|
+
return false;
|
5337
|
+
});
|
5338
|
+
}
|
5339
|
+
p.saveicon = $.extend([true,"left","ui-icon-disk"],p.saveicon);
|
5340
|
+
p.closeicon = $.extend([true,"left","ui-icon-close"],p.closeicon);
|
5341
|
+
// beforeinitdata after creation of the form
|
5342
|
+
if(p.saveicon[0]===true) {
|
5343
|
+
$("#sData","#"+frmtb+"_2").addClass(p.saveicon[1] == "right" ? 'fm-button-icon-right' : 'fm-button-icon-left')
|
5344
|
+
.append("<span class='ui-icon "+p.saveicon[2]+"'></span>");
|
5345
|
+
}
|
5346
|
+
if(p.closeicon[0]===true) {
|
5347
|
+
$("#cData","#"+frmtb+"_2").addClass(p.closeicon[1] == "right" ? 'fm-button-icon-right' : 'fm-button-icon-left')
|
5348
|
+
.append("<span class='ui-icon "+p.closeicon[2]+"'></span>");
|
5349
|
+
}
|
5350
|
+
if(rp_ge.checkOnSubmit || rp_ge.checkOnUpdate) {
|
5351
|
+
bS ="<a href='javascript:void(0)' id='sNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+p.bYes+"</a>";
|
5352
|
+
bN ="<a href='javascript:void(0)' id='nNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+p.bNo+"</a>";
|
5353
|
+
bC ="<a href='javascript:void(0)' id='cNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+p.bExit+"</a>";
|
5354
|
+
var ii, zI = p.zIndex || 999; zI ++;
|
5355
|
+
if ($.browser.msie && $.browser.version ==6) {
|
5356
|
+
ii = '<iframe style="display:block;position:absolute;z-index:-1;filter:Alpha(Opacity=\'0\');" src="javascript:false;"></iframe>';
|
5357
|
+
} else { ii="";}
|
5358
|
+
$("<div class='ui-widget-overlay jqgrid-overlay confirm' style='z-index:"+zI+";display:none;'> "+ii+"</div><div class='confirm ui-widget-content ui-jqconfirm' style='z-index:"+(zI+1)+"'>"+p.saveData+"<br/><br/>"+bS+bN+bC+"</div>").insertAfter("#"+frmgr);
|
5359
|
+
$("#sNew","#"+IDs.themodal).click(function(){
|
5360
|
+
postIt();
|
5361
|
+
$("#"+frmgr).data("disabled",false);
|
5362
|
+
$(".confirm","#"+IDs.themodal).hide();
|
5363
|
+
return false;
|
5364
|
+
});
|
5365
|
+
$("#nNew","#"+IDs.themodal).click(function(){
|
5366
|
+
$(".confirm","#"+IDs.themodal).hide();
|
5367
|
+
$("#"+frmgr).data("disabled",false);
|
5368
|
+
setTimeout(function(){$(":input","#"+frmgr)[0].focus();},0);
|
5369
|
+
return false;
|
5370
|
+
});
|
5371
|
+
$("#cNew","#"+IDs.themodal).click(function(){
|
5372
|
+
$(".confirm","#"+IDs.themodal).hide();
|
5373
|
+
$("#"+frmgr).data("disabled",false);
|
5374
|
+
hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal,onClose: rp_ge.onClose});
|
5375
|
+
return false;
|
5376
|
+
});
|
5377
|
+
}
|
5378
|
+
// here initform - only once
|
5379
|
+
if(onInitializeForm) { onInitializeForm($("#"+frmgr)); }
|
5380
|
+
if(rowid=="_empty" || !rp_ge.viewPagerButtons) { $("#pData,#nData","#"+frmtb+"_2").hide(); } else { $("#pData,#nData","#"+frmtb+"_2").show(); }
|
5381
|
+
if(onBeforeShow) { onBeforeShow($("#"+frmgr)); }
|
5382
|
+
$("#"+IDs.themodal).data("onClose",rp_ge.onClose);
|
5383
|
+
viewModal("#"+IDs.themodal,{gbox:"#gbox_"+gID,jqm:p.jqModal, overlay: p.overlay,modal:p.modal});
|
5384
|
+
if(!closeovrl) {
|
5385
|
+
$(".jqmOverlay").click(function(){
|
5386
|
+
if(!checkUpdates()) { return false; }
|
5387
|
+
hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal, onClose: rp_ge.onClose});
|
5388
|
+
return false;
|
5389
|
+
});
|
5390
|
+
}
|
5391
|
+
if(onAfterShow) { onAfterShow($("#"+frmgr)); }
|
5392
|
+
$(".fm-button","#"+IDs.themodal).hover(
|
5393
|
+
function(){$(this).addClass('ui-state-hover');},
|
5394
|
+
function(){$(this).removeClass('ui-state-hover');}
|
5395
|
+
);
|
5396
|
+
$("#sData", "#"+frmtb+"_2").click(function(e){
|
5397
|
+
postdata = {}; extpost={};
|
5398
|
+
$("#FormError","#"+frmtb).hide();
|
5399
|
+
// all depend on ret array
|
5400
|
+
//ret[0] - succes
|
5401
|
+
//ret[1] - msg if not succes
|
5402
|
+
//ret[2] - the id that will be set if reload after submit false
|
5403
|
+
getFormData();
|
5404
|
+
if(postdata[$t.p.id+"_id"] == "_empty") { postIt(); }
|
5405
|
+
else if(p.checkOnSubmit===true ) {
|
5406
|
+
newData = $.extend({},postdata,extpost);
|
5407
|
+
diff = compareData(newData,rp_ge._savedData);
|
5408
|
+
if(diff) {
|
5409
|
+
$("#"+frmgr).data("disabled",true);
|
5410
|
+
$(".confirm","#"+IDs.themodal).show();
|
5411
|
+
} else {
|
5412
|
+
postIt();
|
5413
|
+
}
|
5414
|
+
} else {
|
5415
|
+
postIt();
|
5416
|
+
}
|
5417
|
+
return false;
|
5418
|
+
});
|
5419
|
+
$("#cData", "#"+frmtb+"_2").click(function(e){
|
5420
|
+
if(!checkUpdates()) { return false; }
|
5421
|
+
hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal,onClose: rp_ge.onClose});
|
5422
|
+
return false;
|
5423
|
+
});
|
5424
|
+
$("#nData", "#"+frmtb+"_2").click(function(e){
|
5425
|
+
if(!checkUpdates()) { return false; }
|
5426
|
+
$("#FormError","#"+frmtb).hide();
|
5427
|
+
var npos = getCurrPos();
|
5428
|
+
npos[0] = parseInt(npos[0],10);
|
5429
|
+
if(npos[0] != -1 && npos[1][npos[0]+1]) {
|
5430
|
+
if($.isFunction(p.onclickPgButtons)) {
|
5431
|
+
p.onclickPgButtons('next',$("#"+frmgr),npos[1][npos[0]]);
|
5432
|
+
}
|
5433
|
+
fillData(npos[1][npos[0]+1],$t,frmgr);
|
5434
|
+
$($t).jqGrid("setSelection",npos[1][npos[0]+1]);
|
5435
|
+
if($.isFunction(p.afterclickPgButtons)) {
|
5436
|
+
p.afterclickPgButtons('next',$("#"+frmgr),npos[1][npos[0]+1]);
|
5437
|
+
}
|
5438
|
+
updateNav(npos[0]+1,npos[1].length-1);
|
5439
|
+
}
|
5440
|
+
return false;
|
5441
|
+
});
|
5442
|
+
$("#pData", "#"+frmtb+"_2").click(function(e){
|
5443
|
+
if(!checkUpdates()) { return false; }
|
5444
|
+
$("#FormError","#"+frmtb).hide();
|
5445
|
+
var ppos = getCurrPos();
|
5446
|
+
if(ppos[0] != -1 && ppos[1][ppos[0]-1]) {
|
5447
|
+
if($.isFunction(p.onclickPgButtons)) {
|
5448
|
+
p.onclickPgButtons('prev',$("#"+frmgr),ppos[1][ppos[0]]);
|
5449
|
+
}
|
5450
|
+
fillData(ppos[1][ppos[0]-1],$t,frmgr);
|
5451
|
+
$($t).jqGrid("setSelection",ppos[1][ppos[0]-1]);
|
5452
|
+
if($.isFunction(p.afterclickPgButtons)) {
|
5453
|
+
p.afterclickPgButtons('prev',$("#"+frmgr),ppos[1][ppos[0]-1]);
|
5454
|
+
}
|
5455
|
+
updateNav(ppos[0]-1,ppos[1].length-1);
|
5456
|
+
}
|
5457
|
+
return false;
|
5458
|
+
});
|
5459
|
+
}
|
5460
|
+
function updateNav(cr,totr,rid){
|
5461
|
+
if (cr===0) { $("#pData","#"+frmtb+"_2").addClass('ui-state-disabled'); } else { $("#pData","#"+frmtb+"_2").removeClass('ui-state-disabled'); }
|
5462
|
+
if (cr==totr) { $("#nData","#"+frmtb+"_2").addClass('ui-state-disabled'); } else { $("#nData","#"+frmtb+"_2").removeClass('ui-state-disabled'); }
|
5463
|
+
}
|
5464
|
+
function getCurrPos() {
|
5465
|
+
var rowsInGrid = $($t).jqGrid("getDataIDs"),
|
5466
|
+
selrow = $("#id_g","#"+frmtb).val(),
|
5467
|
+
pos = $.inArray(selrow,rowsInGrid);
|
5468
|
+
return [pos,rowsInGrid];
|
5469
|
+
}
|
5470
|
+
|
5471
|
+
var posInit =getCurrPos();
|
5472
|
+
updateNav(posInit[0],posInit[1].length-1);
|
5473
|
+
|
5474
|
+
});
|
5475
|
+
},
|
5476
|
+
viewGridRow : function(rowid, p){
|
5477
|
+
p = $.extend({
|
5478
|
+
top : 0,
|
5479
|
+
left: 0,
|
5480
|
+
width: 0,
|
5481
|
+
height: 'auto',
|
5482
|
+
dataheight: 'auto',
|
5483
|
+
modal: false,
|
5484
|
+
overlay: 10,
|
5485
|
+
drag: true,
|
5486
|
+
resize: true,
|
5487
|
+
jqModal: true,
|
5488
|
+
closeOnEscape : false,
|
5489
|
+
labelswidth: '30%',
|
5490
|
+
closeicon: [],
|
5491
|
+
navkeys: [false,38,40],
|
5492
|
+
onClose: null,
|
5493
|
+
beforeShowForm : null,
|
5494
|
+
viewPagerButtons : true
|
5495
|
+
}, $.jgrid.view, p || {});
|
5496
|
+
return this.each(function(){
|
5497
|
+
var $t = this;
|
5498
|
+
if (!$t.grid || !rowid) { return; }
|
5499
|
+
if(!p.imgpath) { p.imgpath= $t.p.imgpath; }
|
5500
|
+
// I hate to rewrite code, but ...
|
5501
|
+
var gID = $t.p.id,
|
5502
|
+
frmgr = "ViewGrid_"+gID , frmtb = "ViewTbl_"+gID,
|
5503
|
+
IDs = {themodal:'viewmod'+gID,modalhead:'viewhd'+gID,modalcontent:'viewcnt'+gID, scrollelm : frmgr},
|
5504
|
+
maxCols = 1, maxRows=0;
|
5505
|
+
function focusaref(){ //Sfari 3 issues
|
5506
|
+
if(p.closeOnEscape===true || p.navkeys[0]===true) {
|
5507
|
+
setTimeout(function(){$(".ui-jqdialog-titlebar-close","#"+IDs.modalhead).focus();},0);
|
5508
|
+
}
|
5509
|
+
}
|
5510
|
+
function createData(rowid,obj,tb,maxcols){
|
5511
|
+
var nm, hc,trdata, cnt=0,tmp, dc, retpos=[], ind=false,
|
5512
|
+
tdtmpl = "<td class='CaptionTD form-view-label ui-widget-content' width='"+p.labelswidth+"'> </td><td class='DataTD form-view-data ui-helper-reset ui-widget-content'> </td>", tmpl="",
|
5513
|
+
tdtmpl2 = "<td class='CaptionTD form-view-label ui-widget-content'> </td><td class='DataTD form-view-data ui-widget-content'> </td>",
|
5514
|
+
fmtnum = ['integer','number','currency'],max1 =0, max2=0 ,maxw,setme, viewfld;
|
5515
|
+
for (var i =1;i<=maxcols;i++) {
|
5516
|
+
tmpl += i == 1 ? tdtmpl : tdtmpl2;
|
5517
|
+
}
|
5518
|
+
// find max number align rigth with property formatter
|
5519
|
+
$(obj.p.colModel).each( function(i) {
|
5520
|
+
if(this.editrules && this.editrules.edithidden === true) {
|
5521
|
+
hc = false;
|
5522
|
+
} else {
|
5523
|
+
hc = this.hidden === true ? true : false;
|
5524
|
+
}
|
5525
|
+
if(!hc && this.align==='right') {
|
5526
|
+
if(this.formatter && $.inArray(this.formatter,fmtnum) !== -1 ) {
|
5527
|
+
max1 = Math.max(max1,parseInt(this.width,10));
|
5528
|
+
} else {
|
5529
|
+
max2 = Math.max(max2,parseInt(this.width,10));
|
5530
|
+
}
|
5531
|
+
}
|
5532
|
+
});
|
5533
|
+
maxw = max1 !==0 ? max1 : max2 !==0 ? max2 : 0;
|
5534
|
+
ind = $(obj).jqGrid("getInd",rowid);
|
5535
|
+
$(obj.p.colModel).each( function(i) {
|
5536
|
+
nm = this.name;
|
5537
|
+
setme = false;
|
5538
|
+
// hidden fields are included in the form
|
5539
|
+
if(this.editrules && this.editrules.edithidden === true) {
|
5540
|
+
hc = false;
|
5541
|
+
} else {
|
5542
|
+
hc = this.hidden === true ? true : false;
|
5543
|
+
}
|
5544
|
+
dc = hc ? "style='display:none'" : "";
|
5545
|
+
viewfld = (typeof this.viewable != 'boolean') ? true : this.viewable;
|
5546
|
+
if ( nm !== 'cb' && nm !== 'subgrid' && nm !== 'rn' && viewfld) {
|
5547
|
+
if(ind === false) {
|
5548
|
+
tmp = "";
|
5549
|
+
} else {
|
5550
|
+
if(nm == obj.p.ExpandColumn && obj.p.treeGrid === true) {
|
5551
|
+
tmp = $("td:eq("+i+")",obj.rows[ind]).text();
|
5552
|
+
} else {
|
5553
|
+
tmp = $("td:eq("+i+")",obj.rows[ind]).html();
|
5554
|
+
}
|
5555
|
+
}
|
5556
|
+
setme = this.align === 'right' && maxw !==0 ? true : false;
|
5557
|
+
var opt = $.extend({}, this.editoptions || {} ,{id:nm,name:nm}),
|
5558
|
+
frmopt = $.extend({},{rowabove:false,rowcontent:''}, this.formoptions || {}),
|
5559
|
+
rp = parseInt(frmopt.rowpos,10) || cnt+1,
|
5560
|
+
cp = parseInt((parseInt(frmopt.colpos,10) || 1)*2,10);
|
5561
|
+
if(frmopt.rowabove) {
|
5562
|
+
var newdata = $("<tr><td class='contentinfo' colspan='"+(maxcols*2)+"'>"+frmopt.rowcontent+"</td></tr>");
|
5563
|
+
$(tb).append(newdata);
|
5564
|
+
newdata[0].rp = rp;
|
5565
|
+
}
|
5566
|
+
trdata = $(tb).find("tr[rowpos="+rp+"]");
|
5567
|
+
if ( trdata.length===0 ) {
|
5568
|
+
trdata = $("<tr "+dc+" rowpos='"+rp+"'></tr>").addClass("FormData").attr("id","trv_"+nm);
|
5569
|
+
$(trdata).append(tmpl);
|
5570
|
+
$(tb).append(trdata);
|
5571
|
+
trdata[0].rp = rp;
|
5572
|
+
}
|
5573
|
+
$("td:eq("+(cp-2)+")",trdata[0]).html('<b>'+ (typeof frmopt.label === 'undefined' ? obj.p.colNames[i]: frmopt.label)+'</b>');
|
5574
|
+
$("td:eq("+(cp-1)+")",trdata[0]).append("<span>"+tmp+"</span>").attr("id","v_"+nm);
|
5575
|
+
if(setme){
|
5576
|
+
$("td:eq("+(cp-1)+") span",trdata[0]).css({'text-align':'right',width:maxw+"px"});
|
5577
|
+
}
|
5578
|
+
retpos[cnt] = i;
|
5579
|
+
cnt++;
|
5580
|
+
}
|
5581
|
+
});
|
5582
|
+
if( cnt > 0) {
|
5583
|
+
var idrow = $("<tr class='FormData' style='display:none'><td class='CaptionTD'></td><td colspan='"+ (maxcols*2-1)+"' class='DataTD'><input class='FormElement' id='id_g' type='text' name='id' value='"+rowid+"'/></td></tr>");
|
5584
|
+
idrow[0].rp = cnt+99;
|
5585
|
+
$(tb).append(idrow);
|
5586
|
+
}
|
5587
|
+
return retpos;
|
5588
|
+
}
|
5589
|
+
function fillData(rowid,obj){
|
5590
|
+
var nm, hc,cnt=0,tmp, opt,trv;
|
5591
|
+
trv = $(obj).jqGrid("getInd",rowid,true);
|
5592
|
+
if(!trv) { return; }
|
5593
|
+
$('td',trv).each( function(i) {
|
5594
|
+
nm = obj.p.colModel[i].name;
|
5595
|
+
// hidden fields are included in the form
|
5596
|
+
if(obj.p.colModel[i].editrules && obj.p.colModel[i].editrules.edithidden === true) {
|
5597
|
+
hc = false;
|
5598
|
+
} else {
|
5599
|
+
hc = obj.p.colModel[i].hidden === true ? true : false;
|
5600
|
+
}
|
5601
|
+
if ( nm !== 'cb' && nm !== 'subgrid' && nm !== 'rn') {
|
5602
|
+
if(nm == obj.p.ExpandColumn && obj.p.treeGrid === true) {
|
5603
|
+
tmp = $(this).text();
|
5604
|
+
} else {
|
5605
|
+
tmp = $(this).html();
|
5606
|
+
}
|
5607
|
+
opt = $.extend({},obj.p.colModel[i].editoptions || {});
|
5608
|
+
nm = $.jgrid.jqID("v_"+nm);
|
5609
|
+
$("#"+nm+" span","#"+frmtb).html(tmp);
|
5610
|
+
if (hc) { $("#"+nm,"#"+frmtb).parents("tr:first").hide(); }
|
5611
|
+
cnt++;
|
5612
|
+
}
|
5613
|
+
});
|
5614
|
+
if(cnt>0) { $("#id_g","#"+frmtb).val(rowid); }
|
5615
|
+
}
|
5616
|
+
if ( $("#"+IDs.themodal).html() != null ) {
|
5617
|
+
$(".ui-jqdialog-title","#"+IDs.modalhead).html(p.caption);
|
5618
|
+
$("#FormError","#"+frmtb).hide();
|
5619
|
+
fillData(rowid,$t);
|
5620
|
+
if($.isFunction(p.beforeShowForm)) { p.beforeShowForm($("#"+frmgr)); }
|
5621
|
+
viewModal("#"+IDs.themodal,{gbox:"#gbox_"+gID,jqm:p.jqModal, jqM: false, overlay: p.overlay, modal:p.modal});
|
5622
|
+
focusaref();
|
5623
|
+
} else {
|
5624
|
+
$($t.p.colModel).each( function(i) {
|
5625
|
+
var fmto = this.formoptions;
|
5626
|
+
maxCols = Math.max(maxCols, fmto ? fmto.colpos || 0 : 0 );
|
5627
|
+
maxRows = Math.max(maxRows, fmto ? fmto.rowpos || 0 : 0 );
|
5628
|
+
});
|
5629
|
+
var dh = isNaN(p.dataheight) ? p.dataheight : p.dataheight+"px";
|
5630
|
+
var frm = $("<form name='FormPost' id='"+frmgr+"' class='FormGrid' style='width:100%;overflow:auto;position:relative;height:"+dh+";'></form>"),
|
5631
|
+
tbl =$("<table id='"+frmtb+"' class='EditTable' cellspacing='1' cellpading='2' border='0' style='table-layout:fixed'><tbody></tbody></table>");
|
5632
|
+
// set the id.
|
5633
|
+
$(frm).append(tbl);
|
5634
|
+
createData(rowid, $t, tbl, maxCols);
|
5635
|
+
var rtlb = $t.p.direction == "rtl" ? true :false,
|
5636
|
+
bp = rtlb ? "nData" : "pData",
|
5637
|
+
bn = rtlb ? "pData" : "nData",
|
5638
|
+
|
5639
|
+
// buttons at footer
|
5640
|
+
bP = "<a href='javascript:void(0)' id='"+bp+"' class='fm-button ui-state-default ui-corner-left'><span class='ui-icon ui-icon-triangle-1-w'></span></a>",
|
5641
|
+
bN = "<a href='javascript:void(0)' id='"+bn+"' class='fm-button ui-state-default ui-corner-right'><span class='ui-icon ui-icon-triangle-1-e'></span></a>",
|
5642
|
+
bC ="<a href='javascript:void(0)' id='cData' class='fm-button ui-state-default ui-corner-all'>"+p.bClose+"</a>";
|
5643
|
+
if(maxRows > 0) {
|
5644
|
+
var sd=[];
|
5645
|
+
$.each($(tbl)[0].rows,function(i,r){
|
5646
|
+
sd[i] = r;
|
5647
|
+
});
|
5648
|
+
sd.sort(function(a,b){
|
5649
|
+
if(a.rp > b.rp) {return 1;}
|
5650
|
+
if(a.rp < b.rp) {return -1;}
|
5651
|
+
return 0;
|
5652
|
+
});
|
5653
|
+
$.each(sd, function(index, row) {
|
5654
|
+
$('tbody',tbl).append(row);
|
5655
|
+
});
|
5656
|
+
}
|
5657
|
+
p.gbox = "#gbox_"+gID;
|
5658
|
+
var cle = false;
|
5659
|
+
if(p.closeOnEscape===true){
|
5660
|
+
p.closeOnEscape = false;
|
5661
|
+
cle = true;
|
5662
|
+
}
|
5663
|
+
var bt = $("<span></span>").append(frm).append("<table border='0' class='EditTable' id='"+frmtb+"_2'><tbody><tr id='Act_Buttons'><td class='navButton ui-widget-content' width='"+p.labelswidth+"'>"+(rtlb ? bN+bP : bP+bN)+"</td><td class='EditButton ui-widget-content'>"+bC+"</td></tr></tbody></table>");
|
5664
|
+
createModal(IDs,bt,p,"#gview_"+$t.p.id,$("#gview_"+$t.p.id)[0]);
|
5665
|
+
if(rtlb) {
|
5666
|
+
$("#pData, #nData","#"+frmtb+"_2").css("float","right");
|
5667
|
+
$(".EditButton","#"+frmtb+"_2").css("text-align","left");
|
5668
|
+
}
|
5669
|
+
if(!p.viewPagerButtons) { $("#pData, #nData","#"+frmtb+"_2").hide(); }
|
5670
|
+
bt = null;
|
5671
|
+
$("#"+IDs.themodal).keydown( function( e ) {
|
5672
|
+
if(e.which === 27) {
|
5673
|
+
if(cle) { hideModal(this,{gb:p.gbox,jqm:p.jqModal, onClose: p.onClose}); }
|
5674
|
+
return false;
|
5675
|
+
}
|
5676
|
+
if(p.navkeys[0]===true) {
|
5677
|
+
if(e.which === p.navkeys[1]){ //up
|
5678
|
+
$("#pData", "#"+frmtb+"_2").trigger("click");
|
5679
|
+
return false;
|
5680
|
+
}
|
5681
|
+
if(e.which === p.navkeys[2]){ //down
|
5682
|
+
$("#nData", "#"+frmtb+"_2").trigger("click");
|
5683
|
+
return false;
|
5684
|
+
}
|
5685
|
+
}
|
5686
|
+
});
|
5687
|
+
p.closeicon = $.extend([true,"left","ui-icon-close"],p.closeicon);
|
5688
|
+
if(p.closeicon[0]===true) {
|
5689
|
+
$("#cData","#"+frmtb+"_2").addClass(p.closeicon[1] == "right" ? 'fm-button-icon-right' : 'fm-button-icon-left')
|
5690
|
+
.append("<span class='ui-icon "+p.closeicon[2]+"'></span>");
|
5691
|
+
}
|
5692
|
+
if($.isFunction(p.beforeShowForm)) { p.beforeShowForm($("#"+frmgr)); }
|
5693
|
+
viewModal("#"+IDs.themodal,{gbox:"#gbox_"+gID,jqm:p.jqModal, modal:p.modal});
|
5694
|
+
$(".fm-button:not(.ui-state-disabled)","#"+frmtb+"_2").hover(
|
5695
|
+
function(){$(this).addClass('ui-state-hover');},
|
5696
|
+
function(){$(this).removeClass('ui-state-hover');}
|
5697
|
+
);
|
5698
|
+
focusaref();
|
5699
|
+
$("#cData", "#"+frmtb+"_2").click(function(e){
|
5700
|
+
hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal, onClose: p.onClose});
|
5701
|
+
return false;
|
5702
|
+
});
|
5703
|
+
$("#nData", "#"+frmtb+"_2").click(function(e){
|
5704
|
+
$("#FormError","#"+frmtb).hide();
|
5705
|
+
var npos = getCurrPos();
|
5706
|
+
npos[0] = parseInt(npos[0],10);
|
5707
|
+
if(npos[0] != -1 && npos[1][npos[0]+1]) {
|
5708
|
+
if($.isFunction(p.onclickPgButtons)) {
|
5709
|
+
p.onclickPgButtons('next',$("#"+frmgr),npos[1][npos[0]]);
|
5710
|
+
}
|
5711
|
+
fillData(npos[1][npos[0]+1],$t);
|
5712
|
+
$($t).jqGrid("setSelection",npos[1][npos[0]+1]);
|
5713
|
+
if($.isFunction(p.afterclickPgButtons)) {
|
5714
|
+
p.afterclickPgButtons('next',$("#"+frmgr),npos[1][npos[0]+1]);
|
5715
|
+
}
|
5716
|
+
updateNav(npos[0]+1,npos[1].length-1);
|
5717
|
+
}
|
5718
|
+
focusaref();
|
5719
|
+
return false;
|
5720
|
+
});
|
5721
|
+
$("#pData", "#"+frmtb+"_2").click(function(e){
|
5722
|
+
$("#FormError","#"+frmtb).hide();
|
5723
|
+
var ppos = getCurrPos();
|
5724
|
+
if(ppos[0] != -1 && ppos[1][ppos[0]-1]) {
|
5725
|
+
if($.isFunction(p.onclickPgButtons)) {
|
5726
|
+
p.onclickPgButtons('prev',$("#"+frmgr),ppos[1][ppos[0]]);
|
5727
|
+
}
|
5728
|
+
fillData(ppos[1][ppos[0]-1],$t);
|
5729
|
+
$($t).jqGrid("setSelection",ppos[1][ppos[0]-1]);
|
5730
|
+
if($.isFunction(p.afterclickPgButtons)) {
|
5731
|
+
p.afterclickPgButtons('prev',$("#"+frmgr),ppos[1][ppos[0]-1]);
|
5732
|
+
}
|
5733
|
+
updateNav(ppos[0]-1,ppos[1].length-1);
|
5734
|
+
}
|
5735
|
+
focusaref();
|
5736
|
+
return false;
|
5737
|
+
});
|
5738
|
+
}
|
5739
|
+
function updateNav(cr,totr,rid){
|
5740
|
+
if (cr===0) { $("#pData","#"+frmtb+"_2").addClass('ui-state-disabled'); } else { $("#pData","#"+frmtb+"_2").removeClass('ui-state-disabled'); }
|
5741
|
+
if (cr==totr) { $("#nData","#"+frmtb+"_2").addClass('ui-state-disabled'); } else { $("#nData","#"+frmtb+"_2").removeClass('ui-state-disabled'); }
|
5742
|
+
}
|
5743
|
+
function getCurrPos() {
|
5744
|
+
var rowsInGrid = $($t).jqGrid("getDataIDs"),
|
5745
|
+
selrow = $("#id_g","#"+frmtb).val(),
|
5746
|
+
pos = $.inArray(selrow,rowsInGrid);
|
5747
|
+
return [pos,rowsInGrid];
|
5748
|
+
}
|
5843
5749
|
|
5844
|
-
|
5845
|
-
|
5846
|
-
|
5847
|
-
|
5848
|
-
|
5849
|
-
|
5850
|
-
|
5851
|
-
|
5852
|
-
|
5853
|
-
|
5854
|
-
|
5855
|
-
|
5856
|
-
|
5857
|
-
|
5858
|
-
|
5859
|
-
|
5860
|
-
|
5861
|
-
|
5862
|
-
|
5863
|
-
|
5864
|
-
|
5865
|
-
|
5866
|
-
|
5867
|
-
|
5868
|
-
|
5869
|
-
|
5870
|
-
|
5871
|
-
|
5872
|
-
|
5873
|
-
|
5874
|
-
|
5875
|
-
|
5876
|
-
|
5877
|
-
|
5878
|
-
|
5879
|
-
|
5880
|
-
|
5881
|
-
|
5882
|
-
|
5883
|
-
|
5884
|
-
|
5885
|
-
|
5886
|
-
|
5887
|
-
|
5888
|
-
|
5889
|
-
|
5890
|
-
|
5891
|
-
|
5892
|
-
|
5893
|
-
|
5894
|
-
|
5895
|
-
|
5896
|
-
|
5750
|
+
var posInit =getCurrPos();
|
5751
|
+
updateNav(posInit[0],posInit[1].length-1);
|
5752
|
+
});
|
5753
|
+
},
|
5754
|
+
delGridRow : function(rowids,p) {
|
5755
|
+
p = $.extend({
|
5756
|
+
top : 0,
|
5757
|
+
left: 0,
|
5758
|
+
width: 240,
|
5759
|
+
height: 'auto',
|
5760
|
+
dataheight : 'auto',
|
5761
|
+
modal: false,
|
5762
|
+
overlay: 10,
|
5763
|
+
drag: true,
|
5764
|
+
resize: true,
|
5765
|
+
url : '',
|
5766
|
+
mtype : "POST",
|
5767
|
+
reloadAfterSubmit: true,
|
5768
|
+
beforeShowForm: null,
|
5769
|
+
afterShowForm: null,
|
5770
|
+
beforeSubmit: null,
|
5771
|
+
onclickSubmit: null,
|
5772
|
+
afterSubmit: null,
|
5773
|
+
jqModal : true,
|
5774
|
+
closeOnEscape : false,
|
5775
|
+
delData: {},
|
5776
|
+
delicon : [],
|
5777
|
+
cancelicon : [],
|
5778
|
+
onClose : null,
|
5779
|
+
ajaxDelOptions : {},
|
5780
|
+
processing : false,
|
5781
|
+
serializeDelData : null,
|
5782
|
+
useDataProxy : false
|
5783
|
+
}, $.jgrid.del, p ||{});
|
5784
|
+
rp_ge = p;
|
5785
|
+
return this.each(function(){
|
5786
|
+
var $t = this;
|
5787
|
+
if (!$t.grid ) { return; }
|
5788
|
+
if(!rowids) { return; }
|
5789
|
+
var onBeforeShow = typeof p.beforeShowForm === 'function' ? true: false,
|
5790
|
+
onAfterShow = typeof p.afterShowForm === 'function' ? true: false,
|
5791
|
+
gID = $t.p.id, onCS = {},
|
5792
|
+
dtbl = "DelTbl_"+gID,postd, idname, opers, oper,
|
5793
|
+
IDs = {themodal:'delmod'+gID,modalhead:'delhd'+gID,modalcontent:'delcnt'+gID, scrollelm: dtbl};
|
5794
|
+
if (jQuery.isArray(rowids)) { rowids = rowids.join(); }
|
5795
|
+
if ( $("#"+IDs.themodal).html() != null ) {
|
5796
|
+
$("#DelData>td","#"+dtbl).text(rowids);
|
5797
|
+
$("#DelError","#"+dtbl).hide();
|
5798
|
+
if( rp_ge.processing === true) {
|
5799
|
+
rp_ge.processing=false;
|
5800
|
+
$("#dData", "#"+dtbl).removeClass('ui-state-active');
|
5801
|
+
}
|
5802
|
+
if(onBeforeShow) { p.beforeShowForm($("#"+dtbl)); }
|
5803
|
+
viewModal("#"+IDs.themodal,{gbox:"#gbox_"+gID,jqm:p.jqModal,jqM: false, overlay: p.overlay, modal:p.modal});
|
5804
|
+
if(onAfterShow) { p.afterShowForm($("#"+dtbl)); }
|
5805
|
+
} else {
|
5806
|
+
var dh = isNaN(p.dataheight) ? p.dataheight : p.dataheight+"px";
|
5807
|
+
var tbl = "<div id='"+dtbl+"' class='formdata' style='width:100%;overflow:auto;position:relative;height:"+dh+";'>";
|
5808
|
+
tbl += "<table class='DelTable'><tbody>";
|
5809
|
+
// error data
|
5810
|
+
tbl += "<tr id='DelError' style='display:none'><td class='ui-state-error'></td></tr>";
|
5811
|
+
tbl += "<tr id='DelData' style='display:none'><td >"+rowids+"</td></tr>";
|
5812
|
+
tbl += "<tr><td class=\"delmsg\" style=\"white-space:pre;\">"+p.msg+"</td></tr><tr><td > </td></tr>";
|
5813
|
+
// buttons at footer
|
5814
|
+
tbl += "</tbody></table></div>";
|
5815
|
+
var bS = "<a href='javascript:void(0)' id='dData' class='fm-button ui-state-default ui-corner-all'>"+p.bSubmit+"</a>",
|
5816
|
+
bC = "<a href='javascript:void(0)' id='eData' class='fm-button ui-state-default ui-corner-all'>"+p.bCancel+"</a>";
|
5817
|
+
tbl += "<table cellspacing='0' cellpadding='0' border='0' class='EditTable' id='"+dtbl+"_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'>"+bS+" "+bC+"</td></tr></tbody></table>";
|
5818
|
+
p.gbox = "#gbox_"+gID;
|
5819
|
+
createModal(IDs,tbl,p,"#gview_"+$t.p.id,$("#gview_"+$t.p.id)[0]);
|
5820
|
+
$(".fm-button","#"+dtbl+"_2").hover(
|
5821
|
+
function(){$(this).addClass('ui-state-hover');},
|
5822
|
+
function(){$(this).removeClass('ui-state-hover');}
|
5823
|
+
);
|
5824
|
+
p.delicon = $.extend([true,"left","ui-icon-scissors"],p.delicon);
|
5825
|
+
p.cancelicon = $.extend([true,"left","ui-icon-cancel"],p.cancelicon);
|
5826
|
+
if(p.delicon[0]===true) {
|
5827
|
+
$("#dData","#"+dtbl+"_2").addClass(p.delicon[1] == "right" ? 'fm-button-icon-right' : 'fm-button-icon-left')
|
5828
|
+
.append("<span class='ui-icon "+p.delicon[2]+"'></span>");
|
5829
|
+
}
|
5830
|
+
if(p.cancelicon[0]===true) {
|
5831
|
+
$("#eData","#"+dtbl+"_2").addClass(p.cancelicon[1] == "right" ? 'fm-button-icon-right' : 'fm-button-icon-left')
|
5832
|
+
.append("<span class='ui-icon "+p.cancelicon[2]+"'></span>");
|
5833
|
+
}
|
5834
|
+
$("#dData","#"+dtbl+"_2").click(function(e){
|
5835
|
+
var ret=[true,""]; onCS = {};
|
5836
|
+
var postdata = $("#DelData>td","#"+dtbl).text(); //the pair is name=val1,val2,...
|
5837
|
+
if( typeof p.onclickSubmit === 'function' ) { onCS = p.onclickSubmit(rp_ge, postdata) || {}; }
|
5838
|
+
if( typeof p.beforeSubmit === 'function' ) { ret = p.beforeSubmit(postdata); }
|
5839
|
+
if(ret[0] && !rp_ge.processing) {
|
5840
|
+
rp_ge.processing = true;
|
5841
|
+
$(this).addClass('ui-state-active');
|
5842
|
+
opers = $t.p.prmNames;
|
5843
|
+
postd = $.extend({},rp_ge.delData, onCS);
|
5844
|
+
oper = opers.oper;
|
5845
|
+
postd[oper] = opers.deloper;
|
5846
|
+
idname = opers.id;
|
5847
|
+
postd[idname] = postdata;
|
5848
|
+
|
5849
|
+
if($t.p.restful) {
|
5850
|
+
p.mtype = "DELETE";
|
5851
|
+
rp_ge.url = $t.p.url+"/"+postdata;
|
5852
|
+
};
|
5853
|
+
|
5854
|
+
var ajaxOptions = $.extend({
|
5855
|
+
url: rp_ge.url ? rp_ge.url : $($t).jqGrid('getGridParam','editurl'),
|
5856
|
+
type: p.mtype,
|
5857
|
+
data: $.isFunction(p.serializeDelData) ? p.serializeDelData(postd) : postd,
|
5858
|
+
complete:function(data,Status){
|
5859
|
+
if(Status != "success") {
|
5860
|
+
ret[0] = false;
|
5861
|
+
if ($.isFunction(rp_ge.errorTextFormat)) {
|
5862
|
+
ret[1] = rp_ge.errorTextFormat(data);
|
5863
|
+
} else {
|
5864
|
+
ret[1] = Status + " Status: '" + data.statusText + "'. Error code: " + data.status;
|
5865
|
+
}
|
5866
|
+
} else {
|
5867
|
+
// data is posted successful
|
5868
|
+
// execute aftersubmit with the returned data from server
|
5869
|
+
if( typeof rp_ge.afterSubmit === 'function' ) {
|
5870
|
+
ret = rp_ge.afterSubmit(data,postd);
|
5871
|
+
}
|
5872
|
+
}
|
5873
|
+
if(ret[0] === false) {
|
5874
|
+
$("#DelError>td","#"+dtbl).html(ret[1]);
|
5875
|
+
$("#DelError","#"+dtbl).show();
|
5876
|
+
} else {
|
5877
|
+
if(rp_ge.reloadAfterSubmit && $t.p.datatype != "local") {
|
5878
|
+
$($t).trigger("reloadGrid");
|
5879
|
+
} else {
|
5880
|
+
var toarr = [];
|
5881
|
+
toarr = postdata.split(",");
|
5882
|
+
if($t.p.treeGrid===true){
|
5883
|
+
try {$($t).jqGrid("delTreeNode",toarr[0]);} catch(e){}
|
5884
|
+
} else {
|
5885
|
+
for(var i=0;i<toarr.length;i++) {
|
5886
|
+
$($t).jqGrid("delRowData",toarr[i]);
|
5887
|
+
}
|
5888
|
+
}
|
5889
|
+
$t.p.selrow = null;
|
5890
|
+
$t.p.selarrrow = [];
|
5891
|
+
}
|
5892
|
+
if($.isFunction(rp_ge.afterComplete)) {
|
5893
|
+
setTimeout(function(){rp_ge.afterComplete(data,postdata);},500);
|
5894
|
+
}
|
5895
|
+
}
|
5896
|
+
rp_ge.processing=false;
|
5897
|
+
$("#dData", "#"+dtbl+"_2").removeClass('ui-state-active');
|
5898
|
+
if(ret[0]) { hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal, onClose: rp_ge.onClose}); }
|
5899
|
+
},
|
5900
|
+
error:function(xhr,st,err){
|
5901
|
+
$("#DelError>td","#"+dtbl).html(st+ " : "+err);
|
5902
|
+
$("#DelError","#"+dtbl).show();
|
5903
|
+
rp_ge.processing=false;
|
5904
|
+
$("#dData", "#"+dtbl+"_2").removeClass('ui-state-active');
|
5905
|
+
}
|
5906
|
+
}, $.jgrid.ajaxOptions, p.ajaxDelOptions);
|
5897
5907
|
|
5898
5908
|
|
5899
|
-
|
5900
|
-
|
5901
|
-
|
5902
|
-
|
5903
|
-
|
5904
|
-
|
5905
|
-
|
5906
|
-
|
5907
|
-
|
5908
|
-
|
5909
|
-
|
5910
|
-
|
5909
|
+
if (!ajaxOptions.url && !rp_ge.useDataProxy) {
|
5910
|
+
if ($.isFunction($t.p.dataProxy)) {
|
5911
|
+
rp_ge.useDataProxy = true;
|
5912
|
+
} else {
|
5913
|
+
ret[0]=false; ret[1] += " "+$.jgrid.errors.nourl;
|
5914
|
+
}
|
5915
|
+
}
|
5916
|
+
if (ret[0]) {
|
5917
|
+
if (rp_ge.useDataProxy) { $t.p.dataProxy.call($t, ajaxOptions, "del_"+$t.p.id); }
|
5918
|
+
else { $.ajax(ajaxOptions); }
|
5919
|
+
}
|
5920
|
+
}
|
5911
5921
|
|
5912
|
-
|
5913
|
-
|
5914
|
-
|
5915
|
-
|
5916
|
-
|
5917
|
-
|
5918
|
-
|
5919
|
-
|
5920
|
-
|
5921
|
-
|
5922
|
-
|
5923
|
-
|
5924
|
-
|
5925
|
-
|
5926
|
-
|
5927
|
-
|
5928
|
-
|
5929
|
-
|
5930
|
-
|
5931
|
-
|
5932
|
-
|
5933
|
-
|
5934
|
-
|
5935
|
-
|
5936
|
-
|
5937
|
-
|
5938
|
-
|
5939
|
-
|
5940
|
-
|
5941
|
-
|
5942
|
-
|
5943
|
-
|
5944
|
-
|
5945
|
-
|
5946
|
-
|
5947
|
-
|
5948
|
-
|
5949
|
-
|
5950
|
-
|
5951
|
-
|
5952
|
-
|
5953
|
-
|
5954
|
-
|
5955
|
-
|
5956
|
-
|
5957
|
-
|
5958
|
-
|
5959
|
-
|
5960
|
-
|
5961
|
-
|
5962
|
-
|
5963
|
-
|
5964
|
-
|
5965
|
-
|
5966
|
-
|
5967
|
-
|
5968
|
-
|
5969
|
-
|
5970
|
-
|
5971
|
-
|
5972
|
-
|
5973
|
-
|
5974
|
-
|
5975
|
-
|
5976
|
-
|
5977
|
-
|
5978
|
-
|
5979
|
-
|
5980
|
-
|
5981
|
-
|
5982
|
-
|
5983
|
-
|
5984
|
-
|
5985
|
-
|
5986
|
-
|
5987
|
-
|
5988
|
-
|
5989
|
-
|
5990
|
-
|
5991
|
-
|
5992
|
-
|
5993
|
-
|
5994
|
-
|
5995
|
-
|
5996
|
-
|
5997
|
-
|
5998
|
-
|
5999
|
-
|
6000
|
-
|
6001
|
-
|
6002
|
-
|
6003
|
-
|
6004
|
-
|
6005
|
-
|
6006
|
-
|
6007
|
-
|
6008
|
-
|
6009
|
-
|
6010
|
-
|
6011
|
-
|
6012
|
-
|
6013
|
-
|
6014
|
-
|
6015
|
-
|
6016
|
-
|
6017
|
-
|
6018
|
-
|
6019
|
-
|
6020
|
-
|
6021
|
-
|
6022
|
-
|
6023
|
-
|
6024
|
-
|
6025
|
-
|
6026
|
-
|
6027
|
-
|
6028
|
-
|
6029
|
-
|
6030
|
-
|
6031
|
-
|
6032
|
-
|
6033
|
-
|
6034
|
-
|
6035
|
-
|
6036
|
-
|
6037
|
-
|
6038
|
-
|
6039
|
-
|
6040
|
-
|
6041
|
-
|
6042
|
-
|
6043
|
-
|
6044
|
-
|
6045
|
-
|
6046
|
-
|
6047
|
-
|
6048
|
-
|
6049
|
-
|
6050
|
-
|
6051
|
-
|
6052
|
-
|
6053
|
-
|
6054
|
-
|
6055
|
-
|
6056
|
-
|
6057
|
-
|
6058
|
-
|
6059
|
-
|
6060
|
-
|
6061
|
-
|
6062
|
-
|
6063
|
-
|
6064
|
-
|
6065
|
-
|
6066
|
-
|
6067
|
-
|
6068
|
-
|
6069
|
-
|
6070
|
-
|
6071
|
-
|
6072
|
-
|
6073
|
-
|
6074
|
-
|
6075
|
-
|
6076
|
-
|
6077
|
-
|
6078
|
-
|
6079
|
-
|
6080
|
-
|
6081
|
-
|
6082
|
-
|
6083
|
-
|
6084
|
-
|
6085
|
-
|
6086
|
-
|
6087
|
-
|
6088
|
-
|
6089
|
-
|
6090
|
-
|
6091
|
-
|
6092
|
-
|
6093
|
-
|
6094
|
-
|
6095
|
-
|
6096
|
-
|
6097
|
-
|
6098
|
-
|
6099
|
-
|
6100
|
-
|
6101
|
-
|
6102
|
-
|
6103
|
-
|
6104
|
-
|
6105
|
-
|
6106
|
-
|
6107
|
-
|
6108
|
-
|
6109
|
-
|
6110
|
-
|
6111
|
-
|
6112
|
-
|
6113
|
-
|
6114
|
-
|
6115
|
-
|
6116
|
-
|
6117
|
-
|
6118
|
-
|
6119
|
-
|
6120
|
-
|
6121
|
-
|
6122
|
-
|
6123
|
-
|
6124
|
-
|
6125
|
-
|
6126
|
-
|
6127
|
-
|
6128
|
-
|
6129
|
-
|
6130
|
-
|
6131
|
-
|
6132
|
-
|
6133
|
-
|
6134
|
-
|
6135
|
-
|
6136
|
-
|
6137
|
-
|
6138
|
-
|
6139
|
-
|
6140
|
-
|
6141
|
-
|
6142
|
-
|
6143
|
-
|
6144
|
-
|
6145
|
-
|
6146
|
-
|
6147
|
-
|
6148
|
-
|
6149
|
-
|
6150
|
-
|
6151
|
-
|
6152
|
-
|
6153
|
-
|
6154
|
-
|
6155
|
-
|
6156
|
-
|
6157
|
-
|
6158
|
-
|
6159
|
-
|
6160
|
-
|
6161
|
-
|
6162
|
-
|
6163
|
-
|
6164
|
-
|
6165
|
-
|
6166
|
-
|
6167
|
-
|
6168
|
-
|
6169
|
-
|
6170
|
-
|
6171
|
-
|
6172
|
-
|
6173
|
-
|
6174
|
-
|
6175
|
-
|
6176
|
-
|
6177
|
-
|
6178
|
-
|
6179
|
-
|
6180
|
-
|
6181
|
-
|
6182
|
-
|
6183
|
-
|
6184
|
-
|
6185
|
-
|
6186
|
-
|
6187
|
-
|
6188
|
-
|
6189
|
-
|
6190
|
-
|
6191
|
-
|
6192
|
-
|
6193
|
-
|
6194
|
-
|
6195
|
-
|
6196
|
-
|
6197
|
-
|
6198
|
-
|
6199
|
-
|
6200
|
-
|
6201
|
-
|
5922
|
+
if(ret[0] === false) {
|
5923
|
+
$("#DelError>td","#"+dtbl).html(ret[1]);
|
5924
|
+
$("#DelError","#"+dtbl).show();
|
5925
|
+
}
|
5926
|
+
return false;
|
5927
|
+
});
|
5928
|
+
$("#eData", "#"+dtbl+"_2").click(function(e){
|
5929
|
+
hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal, onClose: rp_ge.onClose});
|
5930
|
+
return false;
|
5931
|
+
});
|
5932
|
+
if(onBeforeShow) { p.beforeShowForm($("#"+dtbl)); }
|
5933
|
+
viewModal("#"+IDs.themodal,{gbox:"#gbox_"+gID,jqm:p.jqModal, overlay: p.overlay, modal:p.modal});
|
5934
|
+
if(onAfterShow) { p.afterShowForm($("#"+dtbl)); }
|
5935
|
+
}
|
5936
|
+
if(p.closeOnEscape===true) {
|
5937
|
+
setTimeout(function(){$(".ui-jqdialog-titlebar-close","#"+IDs.modalhead).focus();},0);
|
5938
|
+
}
|
5939
|
+
});
|
5940
|
+
},
|
5941
|
+
navGrid : function (elem, o, pEdit,pAdd,pDel,pSearch, pView) {
|
5942
|
+
o = $.extend({
|
5943
|
+
edit: true,
|
5944
|
+
editicon: "ui-icon-pencil",
|
5945
|
+
add: true,
|
5946
|
+
addicon:"ui-icon-plus",
|
5947
|
+
del: true,
|
5948
|
+
delicon:"ui-icon-trash",
|
5949
|
+
search: true,
|
5950
|
+
searchicon:"ui-icon-search",
|
5951
|
+
refresh: true,
|
5952
|
+
refreshicon:"ui-icon-refresh",
|
5953
|
+
refreshstate: 'firstpage',
|
5954
|
+
view: false,
|
5955
|
+
viewicon : "ui-icon-document",
|
5956
|
+
position : "left",
|
5957
|
+
closeOnEscape : true,
|
5958
|
+
beforeRefresh : null,
|
5959
|
+
afterRefresh : null,
|
5960
|
+
cloneToTop : false
|
5961
|
+
}, $.jgrid.nav, o ||{});
|
5962
|
+
return this.each(function() {
|
5963
|
+
var alertIDs = {themodal:'alertmod',modalhead:'alerthd',modalcontent:'alertcnt'},
|
5964
|
+
$t = this, vwidth, vheight, twd, tdw;
|
5965
|
+
if(!$t.grid || typeof elem != 'string') { return; }
|
5966
|
+
if ($("#"+alertIDs.themodal).html() === null) {
|
5967
|
+
if (typeof window.innerWidth != 'undefined') {
|
5968
|
+
vwidth = window.innerWidth;
|
5969
|
+
vheight = window.innerHeight;
|
5970
|
+
} else if (typeof document.documentElement != 'undefined' && typeof document.documentElement.clientWidth != 'undefined' && document.documentElement.clientWidth !== 0) {
|
5971
|
+
vwidth = document.documentElement.clientWidth;
|
5972
|
+
vheight = document.documentElement.clientHeight;
|
5973
|
+
} else {
|
5974
|
+
vwidth=1024;
|
5975
|
+
vheight=768;
|
5976
|
+
}
|
5977
|
+
createModal(alertIDs,"<div>"+o.alerttext+"</div><span tabindex='0'><span tabindex='-1' id='jqg_alrt'></span></span>",{gbox:"#gbox_"+$t.p.id,jqModal:true,drag:true,resize:true,caption:o.alertcap,top:vheight/2-25,left:vwidth/2-100,width:200,height:'auto',closeOnEscape:o.closeOnEscape},"","",true);
|
5978
|
+
}
|
5979
|
+
var clone = 1;
|
5980
|
+
if(o.cloneToTop && $t.p.toppager) { clone = 2; }
|
5981
|
+
for(var i = 0; i<clone; i++) {
|
5982
|
+
var tbd,
|
5983
|
+
navtbl = $("<table cellspacing='0' cellpadding='0' border='0' class='ui-pg-table navtable' style='float:left;table-layout:auto;'><tbody><tr></tr></tbody></table>"),
|
5984
|
+
sep = "<td class='ui-pg-button ui-state-disabled' style='width:4px;'><span class='ui-separator'></span></td>",
|
5985
|
+
pgid, elemids;
|
5986
|
+
if(i===0) {
|
5987
|
+
pgid = elem;
|
5988
|
+
elemids = $t.p.id;
|
5989
|
+
if(pgid == $t.p.toppager) {
|
5990
|
+
elemids += "_top";
|
5991
|
+
clone = 1;
|
5992
|
+
}
|
5993
|
+
} else {
|
5994
|
+
pgid = $t.p.toppager;
|
5995
|
+
elemids = $t.p.id+"_top";
|
5996
|
+
}
|
5997
|
+
if($t.p.direction == "rtl") { $(navtbl).attr("dir","rtl").css("float","right"); }
|
5998
|
+
if (o.add) {
|
5999
|
+
pAdd = pAdd || {};
|
6000
|
+
tbd = $("<td class='ui-pg-button ui-corner-all'></td>");
|
6001
|
+
$(tbd).append("<div class='ui-pg-div'><span class='ui-icon "+o.addicon+"'></span>"+o.addtext+"</div>");
|
6002
|
+
$("tr",navtbl).append(tbd);
|
6003
|
+
$(tbd,navtbl)
|
6004
|
+
.attr({"title":o.addtitle || "",id : pAdd.id || "add_"+elemids})
|
6005
|
+
.click(function(){
|
6006
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
6007
|
+
if (typeof o.addfunc == 'function') {
|
6008
|
+
o.addfunc();
|
6009
|
+
} else {
|
6010
|
+
$($t).jqGrid("editGridRow","new",pAdd);
|
6011
|
+
}
|
6012
|
+
}
|
6013
|
+
return false;
|
6014
|
+
}).hover(
|
6015
|
+
function () {
|
6016
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
6017
|
+
$(this).addClass("ui-state-hover");
|
6018
|
+
}
|
6019
|
+
},
|
6020
|
+
function () {$(this).removeClass("ui-state-hover");}
|
6021
|
+
);
|
6022
|
+
tbd = null;
|
6023
|
+
}
|
6024
|
+
if (o.edit) {
|
6025
|
+
tbd = $("<td class='ui-pg-button ui-corner-all'></td>");
|
6026
|
+
pEdit = pEdit || {};
|
6027
|
+
$(tbd).append("<div class='ui-pg-div'><span class='ui-icon "+o.editicon+"'></span>"+o.edittext+"</div>");
|
6028
|
+
$("tr",navtbl).append(tbd);
|
6029
|
+
$(tbd,navtbl)
|
6030
|
+
.attr({"title":o.edittitle || "",id: pEdit.id || "edit_"+elemids})
|
6031
|
+
.click(function(){
|
6032
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
6033
|
+
var sr = $t.p.selrow;
|
6034
|
+
if (sr) {
|
6035
|
+
if(typeof o.editfunc == 'function') {
|
6036
|
+
o.editfunc(sr);
|
6037
|
+
} else {
|
6038
|
+
$($t).jqGrid("editGridRow",sr,pEdit);
|
6039
|
+
}
|
6040
|
+
} else {
|
6041
|
+
viewModal("#"+alertIDs.themodal,{gbox:"#gbox_"+$t.p.id,jqm:true});
|
6042
|
+
$("#jqg_alrt").focus();
|
6043
|
+
}
|
6044
|
+
}
|
6045
|
+
return false;
|
6046
|
+
}).hover(
|
6047
|
+
function () {
|
6048
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
6049
|
+
$(this).addClass("ui-state-hover");
|
6050
|
+
}
|
6051
|
+
},
|
6052
|
+
function () {$(this).removeClass("ui-state-hover");}
|
6053
|
+
);
|
6054
|
+
tbd = null;
|
6055
|
+
}
|
6056
|
+
if (o.view) {
|
6057
|
+
tbd = $("<td class='ui-pg-button ui-corner-all'></td>");
|
6058
|
+
pView = pView || {};
|
6059
|
+
$(tbd).append("<div class='ui-pg-div'><span class='ui-icon "+o.viewicon+"'></span>"+o.viewtext+"</div>");
|
6060
|
+
$("tr",navtbl).append(tbd);
|
6061
|
+
$(tbd,navtbl)
|
6062
|
+
.attr({"title":o.viewtitle || "",id: pView.id || "view_"+elemids})
|
6063
|
+
.click(function(){
|
6064
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
6065
|
+
var sr = $t.p.selrow;
|
6066
|
+
if (sr) {
|
6067
|
+
$($t).jqGrid("viewGridRow",sr,pView);
|
6068
|
+
} else {
|
6069
|
+
viewModal("#"+alertIDs.themodal,{gbox:"#gbox_"+$t.p.id,jqm:true});
|
6070
|
+
$("#jqg_alrt").focus();
|
6071
|
+
}
|
6072
|
+
}
|
6073
|
+
return false;
|
6074
|
+
}).hover(
|
6075
|
+
function () {
|
6076
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
6077
|
+
$(this).addClass("ui-state-hover");
|
6078
|
+
}
|
6079
|
+
},
|
6080
|
+
function () {$(this).removeClass("ui-state-hover");}
|
6081
|
+
);
|
6082
|
+
tbd = null;
|
6083
|
+
}
|
6084
|
+
if (o.del) {
|
6085
|
+
tbd = $("<td class='ui-pg-button ui-corner-all'></td>");
|
6086
|
+
pDel = pDel || {};
|
6087
|
+
$(tbd).append("<div class='ui-pg-div'><span class='ui-icon "+o.delicon+"'></span>"+o.deltext+"</div>");
|
6088
|
+
$("tr",navtbl).append(tbd);
|
6089
|
+
$(tbd,navtbl)
|
6090
|
+
.attr({"title":o.deltitle || "",id: pDel.id || "del_"+elemids})
|
6091
|
+
.click(function(){
|
6092
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
6093
|
+
var dr;
|
6094
|
+
if($t.p.multiselect) {
|
6095
|
+
dr = $t.p.selarrrow;
|
6096
|
+
if(dr.length===0) { dr = null; }
|
6097
|
+
} else {
|
6098
|
+
dr = $t.p.selrow;
|
6099
|
+
}
|
6100
|
+
if(dr){
|
6101
|
+
if("function" == typeof o.delfunc){
|
6102
|
+
o.delfunc(dr);
|
6103
|
+
}else{
|
6104
|
+
$($t).jqGrid("delGridRow",dr,pDel);
|
6105
|
+
}
|
6106
|
+
} else {
|
6107
|
+
viewModal("#"+alertIDs.themodal,{gbox:"#gbox_"+$t.p.id,jqm:true}); $("#jqg_alrt").focus();
|
6108
|
+
}
|
6109
|
+
}
|
6110
|
+
return false;
|
6111
|
+
}).hover(
|
6112
|
+
function () {
|
6113
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
6114
|
+
$(this).addClass("ui-state-hover");
|
6115
|
+
}
|
6116
|
+
},
|
6117
|
+
function () {$(this).removeClass("ui-state-hover");}
|
6118
|
+
);
|
6119
|
+
tbd = null;
|
6120
|
+
}
|
6121
|
+
if(o.add || o.edit || o.del || o.view) { $("tr",navtbl).append(sep); }
|
6122
|
+
if (o.search) {
|
6123
|
+
tbd = $("<td class='ui-pg-button ui-corner-all'></td>");
|
6124
|
+
pSearch = pSearch || {};
|
6125
|
+
$(tbd).append("<div class='ui-pg-div'><span class='ui-icon "+o.searchicon+"'></span>"+o.searchtext+"</div>");
|
6126
|
+
$("tr",navtbl).append(tbd);
|
6127
|
+
$(tbd,navtbl)
|
6128
|
+
.attr({"title":o.searchtitle || "",id:pSearch.id || "search_"+elemids})
|
6129
|
+
.click(function(){
|
6130
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
6131
|
+
$($t).jqGrid("searchGrid",pSearch);
|
6132
|
+
}
|
6133
|
+
return false;
|
6134
|
+
}).hover(
|
6135
|
+
function () {
|
6136
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
6137
|
+
$(this).addClass("ui-state-hover");
|
6138
|
+
}
|
6139
|
+
},
|
6140
|
+
function () {$(this).removeClass("ui-state-hover");}
|
6141
|
+
);
|
6142
|
+
tbd = null;
|
6143
|
+
}
|
6144
|
+
if (o.refresh) {
|
6145
|
+
tbd = $("<td class='ui-pg-button ui-corner-all'></td>");
|
6146
|
+
$(tbd).append("<div class='ui-pg-div'><span class='ui-icon "+o.refreshicon+"'></span>"+o.refreshtext+"</div>");
|
6147
|
+
$("tr",navtbl).append(tbd);
|
6148
|
+
$(tbd,navtbl)
|
6149
|
+
.attr({"title":o.refreshtitle || "",id: "refresh_"+elemids})
|
6150
|
+
.click(function(){
|
6151
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
6152
|
+
if($.isFunction(o.beforeRefresh)) { o.beforeRefresh(); }
|
6153
|
+
$t.p.search = false;
|
6154
|
+
try {
|
6155
|
+
var gID = $t.p.id;
|
6156
|
+
$("#fbox_"+gID).searchFilter().reset({"reload":false});
|
6157
|
+
if($.isFunction($t.clearToolbar)) { $t.clearToolbar(false); }
|
6158
|
+
} catch (e) {}
|
6159
|
+
switch (o.refreshstate) {
|
6160
|
+
case 'firstpage':
|
6161
|
+
$($t).trigger("reloadGrid", [{page:1}]);
|
6162
|
+
break;
|
6163
|
+
case 'current':
|
6164
|
+
$($t).trigger("reloadGrid", [{current:true}]);
|
6165
|
+
break;
|
6166
|
+
}
|
6167
|
+
if($.isFunction(o.afterRefresh)) { o.afterRefresh(); }
|
6168
|
+
}
|
6169
|
+
return false;
|
6170
|
+
}).hover(
|
6171
|
+
function () {
|
6172
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
6173
|
+
$(this).addClass("ui-state-hover");
|
6174
|
+
}
|
6175
|
+
},
|
6176
|
+
function () {$(this).removeClass("ui-state-hover");}
|
6177
|
+
);
|
6178
|
+
tbd = null;
|
6179
|
+
}
|
6180
|
+
tdw = $(".ui-jqgrid").css("font-size") || "11px";
|
6181
|
+
$('body').append("<div id='testpg2' class='ui-jqgrid ui-widget ui-widget-content' style='font-size:"+tdw+";visibility:hidden;' ></div>");
|
6182
|
+
twd = $(navtbl).clone().appendTo("#testpg2").width();
|
6183
|
+
$("#testpg2").remove();
|
6184
|
+
$(pgid+"_"+o.position,pgid).append(navtbl);
|
6185
|
+
if($t.p._nvtd) {
|
6186
|
+
if(twd > $t.p._nvtd[0] ) {
|
6187
|
+
$(pgid+"_"+o.position,pgid).width(twd);
|
6188
|
+
$t.p._nvtd[0] = twd;
|
6189
|
+
}
|
6190
|
+
$t.p._nvtd[1] = twd;
|
6191
|
+
}
|
6192
|
+
tdw =null; twd=null; navtbl =null;
|
6193
|
+
}
|
6194
|
+
});
|
6195
|
+
},
|
6196
|
+
navButtonAdd : function (elem, p) {
|
6197
|
+
p = $.extend({
|
6198
|
+
caption : "newButton",
|
6199
|
+
title: '',
|
6200
|
+
buttonicon : 'ui-icon-newwin',
|
6201
|
+
onClickButton: null,
|
6202
|
+
position : "last",
|
6203
|
+
cursor : 'pointer'
|
6204
|
+
}, p ||{});
|
6205
|
+
return this.each(function() {
|
6206
|
+
if( !this.grid) { return; }
|
6207
|
+
if( elem.indexOf("#") !== 0) { elem = "#"+elem; }
|
6208
|
+
var findnav = $(".navtable",elem)[0], $t = this;
|
6209
|
+
if (findnav) {
|
6210
|
+
var tbd = $("<td></td>");
|
6211
|
+
if(p.buttonicon.toString().toUpperCase() == "NONE") {
|
6202
6212
|
$(tbd).addClass('ui-pg-button ui-corner-all').append("<div class='ui-pg-div'>"+p.caption+"</div>");
|
6203
|
-
|
6204
|
-
|
6205
|
-
|
6206
|
-
|
6207
|
-
|
6208
|
-
|
6209
|
-
|
6210
|
-
|
6211
|
-
|
6212
|
-
|
6213
|
-
|
6214
|
-
|
6215
|
-
|
6216
|
-
|
6217
|
-
|
6218
|
-
|
6219
|
-
|
6220
|
-
|
6221
|
-
|
6222
|
-
|
6223
|
-
|
6224
|
-
|
6225
|
-
|
6226
|
-
|
6227
|
-
|
6228
|
-
|
6229
|
-
|
6230
|
-
|
6231
|
-
|
6232
|
-
|
6233
|
-
|
6234
|
-
|
6235
|
-
|
6236
|
-
|
6237
|
-
|
6238
|
-
|
6239
|
-
|
6240
|
-
|
6241
|
-
|
6242
|
-
|
6243
|
-
|
6244
|
-
|
6245
|
-
|
6246
|
-
|
6247
|
-
|
6248
|
-
|
6249
|
-
|
6250
|
-
|
6251
|
-
|
6252
|
-
|
6253
|
-
|
6254
|
-
|
6255
|
-
|
6256
|
-
|
6257
|
-
|
6258
|
-
|
6259
|
-
|
6260
|
-
|
6261
|
-
|
6262
|
-
|
6263
|
-
|
6264
|
-
|
6265
|
-
|
6266
|
-
|
6267
|
-
|
6268
|
-
|
6269
|
-
|
6270
|
-
|
6271
|
-
|
6272
|
-
|
6273
|
-
|
6274
|
-
|
6275
|
-
|
6276
|
-
|
6277
|
-
|
6278
|
-
|
6279
|
-
|
6280
|
-
|
6281
|
-
|
6282
|
-
|
6283
|
-
|
6284
|
-
|
6285
|
-
|
6286
|
-
|
6287
|
-
|
6213
|
+
} else {
|
6214
|
+
$(tbd).addClass('ui-pg-button ui-corner-all').append("<div class='ui-pg-div'><span class='ui-icon "+p.buttonicon+"'></span>"+p.caption+"</div>");
|
6215
|
+
}
|
6216
|
+
if(p.id) {$(tbd).attr("id",p.id);}
|
6217
|
+
if(p.position=='first'){
|
6218
|
+
if(findnav.rows[0].cells.length ===0 ) {
|
6219
|
+
$("tr",findnav).append(tbd);
|
6220
|
+
} else {
|
6221
|
+
$("tr td:eq(0)",findnav).before(tbd);
|
6222
|
+
}
|
6223
|
+
} else {
|
6224
|
+
$("tr",findnav).append(tbd);
|
6225
|
+
}
|
6226
|
+
$(tbd,findnav)
|
6227
|
+
.attr("title",p.title || "")
|
6228
|
+
.click(function(e){
|
6229
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
6230
|
+
if ($.isFunction(p.onClickButton) ) { p.onClickButton.call($t,e); }
|
6231
|
+
}
|
6232
|
+
return false;
|
6233
|
+
})
|
6234
|
+
.hover(
|
6235
|
+
function () {
|
6236
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
6237
|
+
$(this).addClass('ui-state-hover');
|
6238
|
+
}
|
6239
|
+
},
|
6240
|
+
function () {$(this).removeClass("ui-state-hover");}
|
6241
|
+
);
|
6242
|
+
}
|
6243
|
+
});
|
6244
|
+
},
|
6245
|
+
navSeparatorAdd:function (elem,p) {
|
6246
|
+
p = $.extend({
|
6247
|
+
sepclass : "ui-separator",
|
6248
|
+
sepcontent: ''
|
6249
|
+
}, p ||{});
|
6250
|
+
return this.each(function() {
|
6251
|
+
if( !this.grid) { return; }
|
6252
|
+
if( elem.indexOf("#") !== 0) { elem = "#"+elem; }
|
6253
|
+
var findnav = $(".navtable",elem)[0];
|
6254
|
+
if(findnav) {
|
6255
|
+
var sep = "<td class='ui-pg-button ui-state-disabled' style='width:4px;'><span class='"+p.sepclass+"'></span>"+p.sepcontent+"</td>";
|
6256
|
+
$("tr",findnav).append(sep);
|
6257
|
+
}
|
6258
|
+
});
|
6259
|
+
},
|
6260
|
+
GridToForm : function( rowid, formid ) {
|
6261
|
+
return this.each(function(){
|
6262
|
+
var $t = this;
|
6263
|
+
if (!$t.grid) { return; }
|
6264
|
+
var rowdata = $($t).jqGrid("getRowData",rowid);
|
6265
|
+
if (rowdata) {
|
6266
|
+
for(var i in rowdata) {
|
6267
|
+
if ( $("[name="+i+"]",formid).is("input:radio") || $("[name="+i+"]",formid).is("input:checkbox")) {
|
6268
|
+
$("[name="+i+"]",formid).each( function() {
|
6269
|
+
if( $(this).val() == rowdata[i] ) {
|
6270
|
+
$(this).attr("checked","checked");
|
6271
|
+
} else {
|
6272
|
+
$(this).attr("checked","");
|
6273
|
+
}
|
6274
|
+
});
|
6275
|
+
} else {
|
6276
|
+
// this is very slow on big table and form.
|
6277
|
+
$("[name="+i+"]",formid).val(rowdata[i]);
|
6278
|
+
}
|
6279
|
+
}
|
6280
|
+
}
|
6281
|
+
});
|
6282
|
+
},
|
6283
|
+
FormToGrid : function(rowid, formid, mode, position){
|
6284
|
+
return this.each(function() {
|
6285
|
+
var $t = this;
|
6286
|
+
if(!$t.grid) { return; }
|
6287
|
+
if(!mode) { mode = 'set'; }
|
6288
|
+
if(!position) { position = 'first'; }
|
6289
|
+
var fields = $(formid).serializeArray();
|
6290
|
+
var griddata = {};
|
6291
|
+
$.each(fields, function(i, field){
|
6292
|
+
griddata[field.name] = field.value;
|
6293
|
+
});
|
6294
|
+
if(mode=='add') { $($t).jqGrid("addRowData",rowid,griddata, position); }
|
6295
|
+
else if(mode=='set') { $($t).jqGrid("setRowData",rowid,griddata); }
|
6296
|
+
});
|
6297
|
+
}
|
6288
6298
|
});
|
6289
6299
|
})(jQuery);
|
6290
6300
|
|
@@ -7733,14 +7743,7 @@ $.jgrid.extend({
|
|
7733
7743
|
}
|
7734
7744
|
$.each(records, function(index, row) {
|
7735
7745
|
var id = $.jgrid.getAccessor(this,$t.p.localReader.id);
|
7736
|
-
|
7737
|
-
var row1 = $("#"+id,$t.grid.bDiv);
|
7738
|
-
$("td",row1).each( function( k ) {
|
7739
|
-
$(this).css("width",$t.grid.headers[k].width+"px");
|
7740
|
-
});
|
7741
|
-
$t.grid.cols = row1[0].cells;
|
7742
|
-
}
|
7743
|
-
$('tbody',$t.grid.bDiv).append($("#"+id,$t.grid.bDiv));
|
7746
|
+
$('#'+$t.p.id+ ' tbody tr:eq('+index+')').after($('tr#'+id,$t.grid.bDiv));
|
7744
7747
|
});
|
7745
7748
|
query = null; roots=null;records=null;
|
7746
7749
|
});
|
@@ -8324,12 +8327,12 @@ $.jgrid.extend({
|
|
8324
8327
|
return this.each(function(){
|
8325
8328
|
var $t = this;
|
8326
8329
|
var triggerToolbar = function() {
|
8327
|
-
var sdata={}, j=0, v, nm, sopt={};
|
8330
|
+
var sdata={}, j=0, v, nm, sopt={},so;
|
8328
8331
|
$.each($t.p.colModel,function(i,n){
|
8329
8332
|
nm = this.index || this.name;
|
8330
|
-
var so = (this.searchoptions && this.searchoptions.sopt) ? this.searchoptions.sopt[0] : p.defaultSearch;
|
8331
8333
|
switch (this.stype) {
|
8332
8334
|
case 'select' :
|
8335
|
+
so = (this.searchoptions && this.searchoptions.sopt) ? this.searchoptions.sopt[0] : 'eq';
|
8333
8336
|
v = $("select[name="+nm+"]",$t.grid.hDiv).val();
|
8334
8337
|
if(v) {
|
8335
8338
|
sdata[nm] = v;
|
@@ -8342,6 +8345,7 @@ $.jgrid.extend({
|
|
8342
8345
|
}
|
8343
8346
|
break;
|
8344
8347
|
case 'text':
|
8348
|
+
so = (this.searchoptions && this.searchoptions.sopt) ? this.searchoptions.sopt[0] : p.defaultSearch;
|
8345
8349
|
v = $("input[name="+nm+"]",$t.grid.hDiv).val();
|
8346
8350
|
if(v) {
|
8347
8351
|
sdata[nm] = v;
|
@@ -9697,7 +9701,7 @@ $.jgrid.extend({
|
|
9697
9701
|
this.each(function(){
|
9698
9702
|
// currently only one level
|
9699
9703
|
// Is this a good idea to do it so!!!!?????
|
9700
|
-
var itm = items[0] ? items[0].split(' ').join('') : "";
|
9704
|
+
var itm = items[0] ? items[0].toString().split(' ').join('') : "";
|
9701
9705
|
|
9702
9706
|
var grp = this.p.groupingView, $t= this;
|
9703
9707
|
if(gdata.hasOwnProperty(itm)) {
|
@@ -9706,8 +9710,8 @@ $.jgrid.extend({
|
|
9706
9710
|
gdata[itm] = [];
|
9707
9711
|
gdata[itm].push(rData);
|
9708
9712
|
grp.sortitems[0].push(itm);
|
9709
|
-
grp.sortnames[0].push($.trim(items[0]));
|
9710
|
-
grp.summaryval[0][itm] = $.extend(true,
|
9713
|
+
grp.sortnames[0].push($.trim(items[0].toString()));
|
9714
|
+
grp.summaryval[0][itm] = $.extend(true,[],grp.summary[0]);
|
9711
9715
|
}
|
9712
9716
|
if(grp.groupSummary[0]) {
|
9713
9717
|
$.each(grp.summaryval[0][itm],function(i,n) {
|
@@ -9757,6 +9761,7 @@ $.jgrid.extend({
|
|
9757
9761
|
if(grp.groupOrder[0].toLowerCase() == 'desc')
|
9758
9762
|
{
|
9759
9763
|
grp.sortitems[0].reverse();
|
9764
|
+
grp.sortnames[0].reverse();
|
9760
9765
|
}
|
9761
9766
|
}
|
9762
9767
|
if(grp.groupCollapse) { pmrtl = grp.plusicon; }
|
@@ -9838,6 +9843,7 @@ $.jgrid.extend({
|
|
9838
9843
|
$t.p.grouping = false;
|
9839
9844
|
if(current===true) {
|
9840
9845
|
$("tr.jqgroup, tr.jqfoot","#"+$t.p.id+" tbody:first").remove();
|
9846
|
+
$("tr.jqgrow:hidden","#"+$t.p.id+" tbody:first").show();
|
9841
9847
|
} else {
|
9842
9848
|
$($t).trigger("reloadGrid");
|
9843
9849
|
}
|
@@ -10731,16 +10737,18 @@ $.jgrid.extend({
|
|
10731
10737
|
"drop" : function (opts) {
|
10732
10738
|
return $.extend({
|
10733
10739
|
accept: function(d) {
|
10740
|
+
if (!$(d).hasClass('jqgrow')) { return d;}
|
10734
10741
|
var tid = $(d).closest("table.ui-jqgrid-btable");
|
10735
|
-
if($.data(tid[0],"dnd") !== undefined) {
|
10742
|
+
if(tid.length > 0 && $.data(tid[0],"dnd") !== undefined) {
|
10736
10743
|
var cn = $.data(tid[0],"dnd").connectWith;
|
10737
10744
|
return $.inArray('#'+this.id,cn) != -1 ? true : false;
|
10738
10745
|
}
|
10739
10746
|
return d;
|
10740
10747
|
},
|
10741
10748
|
drop: function(ev, ui) {
|
10749
|
+
if (!$(ui.draggable).hasClass('jqgrow')) { return; }
|
10742
10750
|
var accept = $(ui.draggable).attr("id");
|
10743
|
-
var getdata =
|
10751
|
+
var getdata = ui.draggable.parent().parent().jqGrid('getRowData',accept);
|
10744
10752
|
if(!opts.dropbyname) {
|
10745
10753
|
var j =0, tmpdata = {}, dropname;
|
10746
10754
|
var dropmodel = $("#"+this.id).jqGrid('getGridParam','colModel');
|