compass-jquery-plugin 0.3.0.beta.2 → 0.3.0.beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.textile +2 -2
- data/VERSION.yml +1 -1
- data/compass-jquery-plugin.gemspec +309 -6
- data/gem_tasks/jqtouch.rake +73 -7
- data/gem_tasks/jrails13.rake +6 -6
- data/gem_tasks/jrails14.rake +6 -6
- data/lib/handle_js_files.rb +3 -2
- data/lib/jquery.ui.rb +1 -1
- data/templates/dynatree/jquery.ui/dynatree.aero.scss +4 -4
- data/templates/dynatree/jquery.ui/dynatree.aqua.scss +4 -4
- data/templates/dynatree/jquery.ui/dynatree.crystal.scss +4 -4
- data/templates/dynatree/jquery.ui/dynatree.xp.scss +4 -5
- data/templates/jqgrid/i18n/jqgrid/locale-cn.js +7 -3
- data/templates/jqgrid/i18n/jqgrid/locale-cn.min.js +8 -8
- data/templates/jqgrid/jquery.jqGrid.js +213 -137
- data/templates/jqgrid/jquery.jqGrid.min.js +262 -261
- data/templates/jqgrid/jquery.ui/jqGrid.scss +37 -37
- data/templates/jqtouch/jqtouch/glyphish/Read me first - license.txt +14 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/01-refresh.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/02-redo.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/03-loopback.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/04-squiggle.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/05-shuffle.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/06-magnifying-glass.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/07-map-marker.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/08-chat.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/09-chat2.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/10-medical.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/100-coffee.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/101-gameplan.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/102-walk.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/103-map.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/104-index-cards.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/105-piano.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/106-sliders.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/107-widescreen.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/108-badge.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/109-chicken.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/11-clock.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/110-bug.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/111-user.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/112-group.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/113-navigation.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/114-balloon.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/115-bow-and-arrow.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/116-controller.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/117-todo.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/118-coathanger.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/119-piggybank.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/12-eye.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/120-headphones.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/121-lanscape.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/122-stats.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/123-id-card.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/124-bullhorn.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/125-food.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/126-moon.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/127-sock.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/128-bone.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/129-golf.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/13-target.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/130-dice.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/14-tag.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/15-tags.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/16-line-chart.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/17-bar-chart.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/18-envelope.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/19-gear.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/20-gear2.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/21-skull.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/22-skull-n-crossbones.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/23-bird.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/24-gift.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/25-weather.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/26-bandaid.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/27-planet.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/28-star.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/29-heart.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/30-key.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/31-ipod.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/32-iphone.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/33-cabinet.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/34-coffee.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/35-shopping-bag.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/36-toolbox.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/37-suitcase.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/38-airplane.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/39-spraycan.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/40-inbox.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/41-picture-frame.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/42-photos.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/43-film-roll.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/44-shoebox.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/45-movie1.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/46-movie2.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/47-fuel.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/48-fork-and-knife.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/49-battery.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/50-beaker.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/51-outlet.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/52-pinetree.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/53-house.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/54-lock.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/55-network.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/56-cloud.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/57-download.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/58-bookmark.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/59-flag.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/60-signpost.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/61-brightness.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/62-contrast.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/63-runner.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/64-zap.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/65-note.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/66-microphone.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/67-tshirt.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/68-paperclip.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/69-display.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/70-tv.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/71-compass.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/72-pin.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/73-radar.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/74-location.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/75-phone.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/76-baby.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/77-ekg.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/78-stopwatch.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/79-medical-bag.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/80-shopping-cart.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/81-dashboard.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/82-dogpaw.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/83-calendar.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/84-lightbulb.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/85-trophy.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/86-camera.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/87-wineglass.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/88-beermug.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/89-dumbbell.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/90-lifebuoy.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/91-beaker2.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/92-testtube.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/93-thermometer.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/94-pill.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/95-equalizer.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/96-book.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/97-puzzle.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/98-palette.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/icons/99-umbrella.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/01-refresh.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/02-redo.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/03-loopback.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/04-squiggle.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/05-shuffle.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/06-magnifying-glass.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/07-map-marker.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/08-chat.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/09-chat2.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/10-medical.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/100-coffee.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/101-gameplan.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/102-walk.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/103-map.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/104-index-cards.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/105-piano.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/106-sliders.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/107-widescreen.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/108-badge.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/109-chicken.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/11-clock.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/110-bug.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/111-user.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/112-group.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/113-navigation.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/114-balloon.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/115-bow-and-arrow.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/116-controller.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/117-todo.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/118-coathanger.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/119-piggybank.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/12-eye.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/120-headphones.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/121-lanscape.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/122-stats.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/123-id-card.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/124-bullhorn.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/125-food.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/126-moon.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/127-sock.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/128-bone.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/129-golf.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/13-target.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/130-dice.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/14-tag.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/15-tags.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/16-line-chart.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/17-bar-chart.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/18-envelope.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/19-gear.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/20-gear2.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/21-skull.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/22-skull-n-crossbones.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/23-bird.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/24-gift.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/25-weather.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/26-bandaid.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/27-planet.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/28-star.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/29-heart.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/30-key.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/31-ipod.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/32-iphone.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/33-cabinet.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/34-coffee.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/35-shopping-bag.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/36-toolbox.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/37-suitcase.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/38-airplane.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/39-spraycan.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/40-inbox.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/41-picture-frame.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/42-photos.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/43-film-roll.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/44-shoebox.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/45-movie1.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/46-movie2.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/47-fuel.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/48-fork-and-knife.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/49-battery.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/50-beaker.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/51-outlet.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/52-pinetree.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/53-house.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/54-lock.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/55-network.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/56-cloud.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/57-download.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/58-bookmark.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/59-flag.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/60-signpost.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/61-brightness.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/62-contrast.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/63-runner.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/64-zap.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/65-note.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/66-microphone.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/67-tshirt.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/68-paperclip.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/69-display.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/70-tv.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/71-compass.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/72-pin.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/73-radar.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/74-location.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/75-phone.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/76-baby.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/77-ekg.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/78-stopwatch.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/79-medical-bag.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/80-shopping-cart.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/81-dashboard.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/82-dogpaw.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/83-calendar.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/84-lightbulb.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/85-trophy.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/86-camera.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/87-wineglass.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/88-beermug.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/89-dumbbell.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/90-lifebuoy.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/91-beaker2.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/92-testtube.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/93-thermometer.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/94-pill.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/95-equalizer.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/96-book.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/97-puzzle.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/98-palette.png +0 -0
- data/templates/jqtouch/jqtouch/glyphish/mini-icons/99-umbrella.png +0 -0
- data/templates/jqtouch/jqtouch/ical/bottom_bar.png +0 -0
- data/templates/jqtouch/jqtouch/ical/calpad.jpg +0 -0
- data/templates/jqtouch/jqtouch/ical/cells.png +0 -0
- data/templates/jqtouch/jqtouch/ical/footer.png +0 -0
- data/templates/jqtouch/jqtouch/ical/header.png +0 -0
- data/templates/jqtouch/jqtouch/ical/header_left.png +0 -0
- data/templates/jqtouch/jqtouch/ical/header_right.png +0 -0
- data/templates/jqtouch/jqtouch/ical/jqt_startup.png +0 -0
- data/templates/jqtouch/jqtouch/ical/jqtouch-ical.png +0 -0
- data/templates/jqtouch/jqtouch/iphone-emulator.scss +1 -1
- data/templates/jqtouch/jqtouch/jqt.apple.scss +30 -30
- data/templates/jqtouch/jqtouch/jqt.jqt.scss +40 -40
- data/templates/jqtouch/jqtouch/jqtouch.scss +533 -168
- data/templates/jqtouch/jqtouch/sw/alpha.png +0 -0
- data/templates/jqtouch/jqtouch/sw/button-cancel.png +0 -0
- data/templates/jqtouch/jqtouch/sw/button-done.png +0 -0
- data/templates/jqtouch/jqtouch/sw/header.png +0 -0
- data/templates/jqtouch/jqtouch/sw/slot-border.png +0 -0
- data/templates/jqtouch/jquery.jqtouch.js +2049 -25
- data/templates/jqtouch/jquery.jqtouch.min.js +1 -26
- data/templates/jqtouch/manifest.rb +276 -1
- data/templates/jrails-1.3/config/initializers/jrails.rb +2 -2
- data/templates/jrails-1.3/{jquery-ui-1.7.2.js → jquery-ui-1.7.3.js} +4730 -4716
- data/templates/jrails-1.3/jquery-ui-1.7.3.min.js +690 -0
- data/templates/jrails-1.3/jquery.ui/_theme.scss +36 -36
- data/templates/jrails-1.3/jquery.ui/contextMenu.scss +7 -7
- data/templates/jrails-1.3/manifest.rb +2 -2
- data/templates/jrails-1.4/config/initializers/jrails.rb +2 -2
- data/templates/jrails-1.4/i18n/jquery.ui/datepicker-fr-CH.js +6 -6
- data/templates/jrails-1.4/i18n/jquery.ui/datepicker-fr-CH.min.js +1 -1
- data/templates/jrails-1.4/i18n/jquery.ui/datepicker-pl.js +1 -1
- data/templates/jrails-1.4/i18n/jquery.ui/datepicker-pl.min.js +1 -1
- data/templates/jrails-1.4/{jquery-ui-1.8.js → jquery-ui-1.8.1.js} +6729 -6597
- data/templates/jrails-1.4/{jquery-ui-1.8.min.js → jquery-ui-1.8.1.min.js} +304 -305
- data/templates/jrails-1.4/jquery.ui/_theme.scss +45 -45
- data/templates/jrails-1.4/jquery.ui/contextMenu.scss +7 -7
- data/templates/jrails-1.4/manifest.rb +2 -2
- data/templates/ribbon/jquery.ui/ribbon.office/arrow.png +0 -0
- data/templates/ribbon/jquery.ui/ribbon.office/arrow_down.png +0 -0
- data/templates/ribbon/jquery.ui/ribbon.office/bg.png +0 -0
- data/templates/ribbon/jquery.ui/ribbon.office/item_background.png +0 -0
- data/templates/ribbon/jquery.ui/ribbon.office/item_small_background.png +0 -0
- data/templates/ribbon/jquery.ui/ribbon.office/menu_background.png +0 -0
- data/templates/ribbon/jquery.ui/ribbon.office/menu_bottom.png +0 -0
- data/templates/ribbon/jquery.ui/ribbon.office/menu_dropdownitembg.png +0 -0
- data/templates/ribbon/jquery.ui/ribbon.office/menu_dropdownitembghover.png +0 -0
- data/templates/ribbon/jquery.ui/ribbon.office/menu_item_hover.png +0 -0
- data/templates/ribbon/jquery.ui/ribbon.office/menu_middle.png +0 -0
- data/templates/ribbon/jquery.ui/ribbon.office/menu_top.png +0 -0
- data/templates/ribbon/jquery.ui/ribbon.office/menu_top_backstage.png +0 -0
- data/templates/ribbon/jquery.ui/ribbon.office/menu_top_backstage2.png +0 -0
- data/templates/ribbon/jquery.ui/ribbon.office/menuitem_background.png +0 -0
- data/templates/ribbon/jquery.ui/ribbon.office/orb.png +0 -0
- data/templates/ribbon/jquery.ui/ribbon.office/orb_hover.png +0 -0
- data/templates/ribbon/jquery.ui/ribbon.office/orb_office.png +0 -0
- data/templates/ribbon/jquery.ui/ribbon.office/orb_office_hover.png +0 -0
- data/templates/ribbon/jquery.ui/ribbon.office/orb_submenu_item_hover.png +0 -0
- data/templates/ribbon/jquery.ui/ribbon.office/ribbon-backstage-firstLevel-hover.png +0 -0
- data/templates/ribbon/jquery.ui/ribbon.office/ribbon-backstage-rightColumn-wide.png +0 -0
- data/templates/ribbon/jquery.ui/ribbon.office/ribbon-backstage-subMenu-item-hover.png +0 -0
- data/templates/ribbon/jquery.ui/ribbon.office/ribbon-backstage-subMenu-item.png +0 -0
- data/templates/ribbon/jquery.ui/ribbon.office/ribbon-backstage-subMenu-itemSquare-hover.png +0 -0
- data/templates/ribbon/jquery.ui/ribbon.office/ribbon-backstage-subMenu-itemSquare.png +0 -0
- data/templates/ribbon/jquery.ui/ribbon.office/top_background.png +0 -0
- data/templates/ribbon/jquery.ui/ribbon.office.scss +444 -0
- data/templates/ribbon/jquery.ui/ribbon.simple.scss +17 -9
- data/templates/ribbon/jquery.ui/ribbon.windows7.scss +27 -37
- data/templates/ribbon/manifest.rb +28 -0
- metadata +310 -7
- data/templates/jrails-1.3/jquery-ui-1.7.2.min.js +0 -688
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Copyright (c) 2008, Tony Tomov, tony@trirand.com
|
|
5
5
|
* Dual licensed under the MIT and GPL licenses
|
|
6
6
|
* http://www.opensource.org/licenses/mit-license.php
|
|
7
|
-
* http://www.gnu.org/licenses/gpl.html
|
|
8
|
-
* Date: 2010-02-14
|
|
7
|
+
* http://www.gnu.org/licenses/gpl-2.0.html
|
|
8
|
+
* Date: 2010-02-14
|
|
9
9
|
*/
|
|
10
10
|
$.jgrid = $.jgrid || {};
|
|
11
11
|
$.extend($.jgrid,{
|
|
@@ -34,7 +34,7 @@ $.extend($.jgrid,{
|
|
|
34
34
|
var regexp = /<("[^"]*"|'[^']*'|[^'">])*>/gi;
|
|
35
35
|
if (v) {
|
|
36
36
|
v = v.replace(regexp,"");
|
|
37
|
-
return (v && v !== ' ' && v !== ' ') ? v : "";
|
|
37
|
+
return (v && v !== ' ' && v !== ' ') ? v.replace(/\"/g,"'") : "";
|
|
38
38
|
} else {
|
|
39
39
|
return v;
|
|
40
40
|
}
|
|
@@ -811,13 +811,12 @@ $.fn.jqGrid = function( pin ) {
|
|
|
811
811
|
type:ts.p.mtype,
|
|
812
812
|
dataType: dt ,
|
|
813
813
|
data: $.isFunction(ts.p.serializeGridData)? ts.p.serializeGridData.call(ts,ts.p.postData) : ts.p.postData,
|
|
814
|
-
|
|
815
|
-
if(
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
}
|
|
814
|
+
success:function(req,st) {
|
|
815
|
+
if(dt === "xml") { addXmlData(req,ts.grid.bDiv,rcnt,npage>1,adjust); }
|
|
816
|
+
else { addJSONData(req,ts.grid.bDiv,rcnt,npage>1,adjust); }
|
|
817
|
+
if(lc) { lc.call(ts,req); }
|
|
818
|
+
if (pvis) { ts.grid.populateVisible(); }
|
|
819
|
+
if( ts.p.loadonce || ts.p.treeGrid) {ts.p.datatype = "local";}
|
|
821
820
|
req=null;
|
|
822
821
|
endReq();
|
|
823
822
|
},
|
|
@@ -831,7 +830,6 @@ $.fn.jqGrid = function( pin ) {
|
|
|
831
830
|
if($.isFunction(ts.p.loadBeforeSend)) { ts.p.loadBeforeSend.call(ts,xhr); }
|
|
832
831
|
}
|
|
833
832
|
},$.jgrid.ajaxOptions, ts.p.ajaxGridOptions));
|
|
834
|
-
if( ts.p.loadonce || ts.p.treeGrid) {ts.p.datatype = "local";}
|
|
835
833
|
break;
|
|
836
834
|
case "xmlstring":
|
|
837
835
|
beginReq();
|
|
@@ -918,6 +916,8 @@ $.fn.jqGrid = function( pin ) {
|
|
|
918
916
|
var fd = ts.p.colModel[col].datefmt || "Y-m-d";
|
|
919
917
|
return parseDate(fd,$cell).getTime();
|
|
920
918
|
};
|
|
919
|
+
} else if($.isFunction(st)) {
|
|
920
|
+
findSortKey = st;
|
|
921
921
|
} else {
|
|
922
922
|
findSortKey = function($cell) {
|
|
923
923
|
return $.trim($cell.toUpperCase());
|
|
@@ -927,7 +927,7 @@ $.fn.jqGrid = function( pin ) {
|
|
|
927
927
|
$.each(ts.rows, function(index, row) {
|
|
928
928
|
try { sv = $.unformat($(row).children('td').eq(col),{rowId:row.id, colModel:cm},col,true);}
|
|
929
929
|
catch (_) { sv = $(row).children('td').eq(col).text(); }
|
|
930
|
-
row.sortKey =
|
|
930
|
+
row.sortKey = findSortKey(sv);
|
|
931
931
|
rows[index] = this;
|
|
932
932
|
});
|
|
933
933
|
if(ts.p.treeGrid) {
|
|
@@ -1128,7 +1128,7 @@ $.fn.jqGrid = function( pin ) {
|
|
|
1128
1128
|
if( ts.p.sortorder == 'asc') {
|
|
1129
1129
|
ts.p.sortorder = 'desc';
|
|
1130
1130
|
} else if(ts.p.sortorder == 'desc') { ts.p.sortorder = 'asc';}
|
|
1131
|
-
} else { ts.p.sortorder = 'asc';}
|
|
1131
|
+
} else { ts.p.sortorder = ts.p.colModel[idxcol].firstsortorder || 'asc'; }
|
|
1132
1132
|
ts.p.page = 1;
|
|
1133
1133
|
}
|
|
1134
1134
|
if(sor) {
|
|
@@ -1328,8 +1328,7 @@ $.fn.jqGrid = function( pin ) {
|
|
|
1328
1328
|
$(this).append(thead);
|
|
1329
1329
|
$("thead tr:first th",this).hover(function(){$(this).addClass('ui-state-hover');},function(){$(this).removeClass('ui-state-hover');});
|
|
1330
1330
|
if(this.p.multiselect) {
|
|
1331
|
-
var
|
|
1332
|
-
if(typeof ts.p.onSelectAll !== 'function') {onSA=false;}
|
|
1331
|
+
var emp=[], chk;
|
|
1333
1332
|
$('#cb_'+$.jgrid.jqID(ts.p.id),this).bind('click',function(){
|
|
1334
1333
|
if (this.checked) {
|
|
1335
1334
|
$("[id^=jqg_]",ts.rows).attr("checked",true);
|
|
@@ -1353,7 +1352,7 @@ $.fn.jqGrid = function( pin ) {
|
|
|
1353
1352
|
ts.p.selarrrow = []; ts.p.selrow = null;
|
|
1354
1353
|
chk=false;
|
|
1355
1354
|
}
|
|
1356
|
-
if(
|
|
1355
|
+
if($.isFunction(ts.p.onSelectAll)) {ts.p.onSelectAll.call(ts, chk ? ts.p.selarrrow : emp,chk);}
|
|
1357
1356
|
});
|
|
1358
1357
|
}
|
|
1359
1358
|
|
|
@@ -2370,7 +2369,7 @@ $.jgrid.extend({
|
|
|
2370
2369
|
* http://trirand.com/blog/
|
|
2371
2370
|
* Dual licensed under the MIT and GPL licenses:
|
|
2372
2371
|
* http://www.opensource.org/licenses/mit-license.php
|
|
2373
|
-
* http://www.gnu.org/licenses/gpl.html
|
|
2372
|
+
* http://www.gnu.org/licenses/gpl-2.0.html
|
|
2374
2373
|
**/
|
|
2375
2374
|
/**
|
|
2376
2375
|
* all events and options here are aded anonynous and not in the base grid
|
|
@@ -2853,7 +2852,7 @@ $.jgrid.extend({
|
|
|
2853
2852
|
* http://trirand.com/blog/
|
|
2854
2853
|
* Dual licensed under the MIT and GPL licenses:
|
|
2855
2854
|
* http://www.opensource.org/licenses/mit-license.php
|
|
2856
|
-
* http://www.gnu.org/licenses/gpl.html
|
|
2855
|
+
* http://www.gnu.org/licenses/gpl-2.0.html
|
|
2857
2856
|
*/
|
|
2858
2857
|
// Modal functions
|
|
2859
2858
|
var showModal = function(h) {
|
|
@@ -3485,7 +3484,7 @@ function checkValues(val, valref,g) {
|
|
|
3485
3484
|
* http://trirand.com/blog/
|
|
3486
3485
|
* Dual licensed under the MIT and GPL licenses:
|
|
3487
3486
|
* http://www.opensource.org/licenses/mit-license.php
|
|
3488
|
-
* http://www.gnu.org/licenses/gpl.html
|
|
3487
|
+
* http://www.gnu.org/licenses/gpl-2.0.html
|
|
3489
3488
|
**/
|
|
3490
3489
|
$.jgrid.extend({
|
|
3491
3490
|
getColProp : function(colname){
|
|
@@ -4302,7 +4301,7 @@ $.jgrid.extend({
|
|
|
4302
4301
|
* http://trirand.com/blog/
|
|
4303
4302
|
* Dual licensed under the MIT and GPL licenses:
|
|
4304
4303
|
* http://www.opensource.org/licenses/mit-license.php
|
|
4305
|
-
* http://www.gnu.org/licenses/gpl.html
|
|
4304
|
+
* http://www.gnu.org/licenses/gpl-2.0.html
|
|
4306
4305
|
**/
|
|
4307
4306
|
var rp_ge = null;
|
|
4308
4307
|
$.jgrid.extend({
|
|
@@ -4314,7 +4313,7 @@ $.jgrid.extend({
|
|
|
4314
4313
|
sValue:'searchString',
|
|
4315
4314
|
sOper: 'searchOper',
|
|
4316
4315
|
sFilter: 'filters',
|
|
4317
|
-
loadDefaults:
|
|
4316
|
+
loadDefaults: true, // this options activates loading of default filters from grid's postData for Multipe Search only.
|
|
4318
4317
|
beforeShowSearch: null,
|
|
4319
4318
|
afterShowSearch : null,
|
|
4320
4319
|
onInitializeSearch: null,
|
|
@@ -4379,16 +4378,19 @@ $.jgrid.extend({
|
|
|
4379
4378
|
gridDOMobj.SearchFilter.setGroupOp(defaultFilters.groupOp);
|
|
4380
4379
|
}
|
|
4381
4380
|
if (defaultFilters.rules) {
|
|
4382
|
-
var f
|
|
4383
|
-
|
|
4381
|
+
var f
|
|
4382
|
+
, i = 0
|
|
4383
|
+
, li = defaultFilters.rules.length
|
|
4384
|
+
, success = false;
|
|
4385
|
+
for (; i < li; i++) {
|
|
4384
4386
|
f = defaultFilters.rules[i];
|
|
4385
4387
|
// we are not trying to counter all issues with filter declaration here. Just the basics to avoid lookup exceptions.
|
|
4386
4388
|
if (f.field !== undefined && f.op !== undefined && f.data !== undefined) {
|
|
4387
|
-
gridDOMobj.SearchFilter.setFilter({
|
|
4389
|
+
success = gridDOMobj.SearchFilter.setFilter({
|
|
4388
4390
|
'sfref':gridDOMobj.SearchFilter.$.find(".sf:last"),
|
|
4389
4391
|
'filter':$.extend({},f)
|
|
4390
4392
|
});
|
|
4391
|
-
|
|
4393
|
+
if (success) { gridDOMobj.SearchFilter.add(); }
|
|
4392
4394
|
}
|
|
4393
4395
|
}
|
|
4394
4396
|
}
|
|
@@ -4407,10 +4409,8 @@ $.jgrid.extend({
|
|
|
4407
4409
|
colNames = $("#"+$t.p.id).jqGrid("getGridParam","colNames"),
|
|
4408
4410
|
colModel = $("#"+$t.p.id).jqGrid("getGridParam","colModel"),
|
|
4409
4411
|
stempl = ['eq','ne','lt','le','gt','ge','bw','bn','in','ni','ew','en','cn','nc'],
|
|
4410
|
-
j,pos,k,oprtr;
|
|
4411
|
-
oprtr = jQuery.fn.searchFilter.defaults.operators;
|
|
4412
|
+
j,pos,k,oprtr=[];
|
|
4412
4413
|
if (p.sopt !==null) {
|
|
4413
|
-
oprtr = [];
|
|
4414
4414
|
k=0;
|
|
4415
4415
|
for(j=0;j<p.sopt.length;j++) {
|
|
4416
4416
|
if( (pos= $.inArray(p.sopt[j],stempl)) != -1 ){
|
|
@@ -4418,6 +4418,10 @@ $.jgrid.extend({
|
|
|
4418
4418
|
k++;
|
|
4419
4419
|
}
|
|
4420
4420
|
}
|
|
4421
|
+
} else {
|
|
4422
|
+
for(j=0;j<stempl.length;j++) {
|
|
4423
|
+
oprtr[j] = {op:stempl[j],text: p.odata[j]};
|
|
4424
|
+
}
|
|
4421
4425
|
}
|
|
4422
4426
|
var searchable;
|
|
4423
4427
|
$.each(colModel, function(i, v) {
|
|
@@ -4425,14 +4429,15 @@ $.jgrid.extend({
|
|
|
4425
4429
|
hidden = (v.hidden === true),
|
|
4426
4430
|
soptions = $.extend({}, {text: colNames[i], itemval: v.index || v.name}, this.searchoptions),
|
|
4427
4431
|
ignoreHiding = (soptions.searchhidden === true);
|
|
4428
|
-
if(typeof soptions.sopt
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4432
|
+
if(typeof soptions.sopt !== 'undefined') {
|
|
4433
|
+
k=0;
|
|
4434
|
+
soptions.ops =[];
|
|
4435
|
+
if(soptions.sopt.length>0) {
|
|
4436
|
+
for(j=0;j<soptions.sopt.length;j++) {
|
|
4437
|
+
if( (pos= $.inArray(soptions.sopt[j],stempl)) != -1 ){
|
|
4438
|
+
soptions.ops[k] = {op:soptions.sopt[j],text: p.odata[pos]};
|
|
4439
|
+
k++;
|
|
4440
|
+
}
|
|
4436
4441
|
}
|
|
4437
4442
|
}
|
|
4438
4443
|
}
|
|
@@ -5871,13 +5876,20 @@ $.jgrid.extend({
|
|
|
5871
5876
|
$(tbd,navtbl)
|
|
5872
5877
|
.attr({"title":o.addtitle || "",id : pAdd.id || "add_"+elemids})
|
|
5873
5878
|
.click(function(){
|
|
5874
|
-
if (
|
|
5875
|
-
o.addfunc
|
|
5876
|
-
|
|
5877
|
-
|
|
5879
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
|
5880
|
+
if (typeof o.addfunc == 'function') {
|
|
5881
|
+
o.addfunc();
|
|
5882
|
+
} else {
|
|
5883
|
+
$($t).jqGrid("editGridRow","new",pAdd);
|
|
5884
|
+
}
|
|
5878
5885
|
}
|
|
5879
5886
|
return false;
|
|
5880
|
-
}).hover(
|
|
5887
|
+
}).hover(
|
|
5888
|
+
function () {
|
|
5889
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
|
5890
|
+
$(this).addClass("ui-state-hover");
|
|
5891
|
+
}
|
|
5892
|
+
},
|
|
5881
5893
|
function () {$(this).removeClass("ui-state-hover");}
|
|
5882
5894
|
);
|
|
5883
5895
|
tbd = null;
|
|
@@ -5890,19 +5902,26 @@ $.jgrid.extend({
|
|
|
5890
5902
|
$(tbd,navtbl)
|
|
5891
5903
|
.attr({"title":o.edittitle || "",id: pEdit.id || "edit_"+elemids})
|
|
5892
5904
|
.click(function(){
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
if(
|
|
5896
|
-
o.editfunc
|
|
5905
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
|
5906
|
+
var sr = $t.p.selrow;
|
|
5907
|
+
if (sr) {
|
|
5908
|
+
if(typeof o.editfunc == 'function') {
|
|
5909
|
+
o.editfunc(sr);
|
|
5910
|
+
} else {
|
|
5911
|
+
$($t).jqGrid("editGridRow",sr,pEdit);
|
|
5912
|
+
}
|
|
5897
5913
|
} else {
|
|
5898
|
-
|
|
5914
|
+
viewModal("#"+alertIDs.themodal,{gbox:"#gbox_"+$t.p.id,jqm:true});
|
|
5915
|
+
$("#jqg_alrt").focus();
|
|
5899
5916
|
}
|
|
5900
|
-
} else {
|
|
5901
|
-
viewModal("#"+alertIDs.themodal,{gbox:"#gbox_"+$t.p.id,jqm:true});
|
|
5902
|
-
$("#jqg_alrt").focus();
|
|
5903
5917
|
}
|
|
5904
5918
|
return false;
|
|
5905
|
-
}).hover(
|
|
5919
|
+
}).hover(
|
|
5920
|
+
function () {
|
|
5921
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
|
5922
|
+
$(this).addClass("ui-state-hover");
|
|
5923
|
+
}
|
|
5924
|
+
},
|
|
5906
5925
|
function () {$(this).removeClass("ui-state-hover");}
|
|
5907
5926
|
);
|
|
5908
5927
|
tbd = null;
|
|
@@ -5915,15 +5934,22 @@ $.jgrid.extend({
|
|
|
5915
5934
|
$(tbd,navtbl)
|
|
5916
5935
|
.attr({"title":o.viewtitle || "",id: pView.id || "view_"+elemids})
|
|
5917
5936
|
.click(function(){
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5937
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
|
5938
|
+
var sr = $t.p.selrow;
|
|
5939
|
+
if (sr) {
|
|
5940
|
+
$($t).jqGrid("viewGridRow",sr,pView);
|
|
5941
|
+
} else {
|
|
5942
|
+
viewModal("#"+alertIDs.themodal,{gbox:"#gbox_"+$t.p.id,jqm:true});
|
|
5943
|
+
$("#jqg_alrt").focus();
|
|
5944
|
+
}
|
|
5924
5945
|
}
|
|
5925
5946
|
return false;
|
|
5926
|
-
}).hover(
|
|
5947
|
+
}).hover(
|
|
5948
|
+
function () {
|
|
5949
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
|
5950
|
+
$(this).addClass("ui-state-hover");
|
|
5951
|
+
}
|
|
5952
|
+
},
|
|
5927
5953
|
function () {$(this).removeClass("ui-state-hover");}
|
|
5928
5954
|
);
|
|
5929
5955
|
tbd = null;
|
|
@@ -5936,24 +5962,31 @@ $.jgrid.extend({
|
|
|
5936
5962
|
$(tbd,navtbl)
|
|
5937
5963
|
.attr({"title":o.deltitle || "",id: pDel.id || "del_"+elemids})
|
|
5938
5964
|
.click(function(){
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
if(
|
|
5948
|
-
o.delfunc
|
|
5949
|
-
|
|
5950
|
-
|
|
5965
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
|
5966
|
+
var dr;
|
|
5967
|
+
if($t.p.multiselect) {
|
|
5968
|
+
dr = $t.p.selarrrow;
|
|
5969
|
+
if(dr.length===0) { dr = null; }
|
|
5970
|
+
} else {
|
|
5971
|
+
dr = $t.p.selrow;
|
|
5972
|
+
}
|
|
5973
|
+
if(dr){
|
|
5974
|
+
if("function" == typeof o.delfunc){
|
|
5975
|
+
o.delfunc(dr);
|
|
5976
|
+
}else{
|
|
5977
|
+
$($t).jqGrid("delGridRow",dr,pDel);
|
|
5978
|
+
}
|
|
5979
|
+
} else {
|
|
5980
|
+
viewModal("#"+alertIDs.themodal,{gbox:"#gbox_"+$t.p.id,jqm:true}); $("#jqg_alrt").focus();
|
|
5951
5981
|
}
|
|
5952
|
-
} else {
|
|
5953
|
-
viewModal("#"+alertIDs.themodal,{gbox:"#gbox_"+$t.p.id,jqm:true}); $("#jqg_alrt").focus();
|
|
5954
5982
|
}
|
|
5955
5983
|
return false;
|
|
5956
|
-
}).hover(
|
|
5984
|
+
}).hover(
|
|
5985
|
+
function () {
|
|
5986
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
|
5987
|
+
$(this).addClass("ui-state-hover");
|
|
5988
|
+
}
|
|
5989
|
+
},
|
|
5957
5990
|
function () {$(this).removeClass("ui-state-hover");}
|
|
5958
5991
|
);
|
|
5959
5992
|
tbd = null;
|
|
@@ -5967,9 +6000,16 @@ $.jgrid.extend({
|
|
|
5967
6000
|
$(tbd,navtbl)
|
|
5968
6001
|
.attr({"title":o.searchtitle || "",id:pSearch.id || "search_"+elemids})
|
|
5969
6002
|
.click(function(){
|
|
5970
|
-
|
|
6003
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
|
6004
|
+
$($t).jqGrid("searchGrid",pSearch);
|
|
6005
|
+
}
|
|
5971
6006
|
return false;
|
|
5972
|
-
}).hover(
|
|
6007
|
+
}).hover(
|
|
6008
|
+
function () {
|
|
6009
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
|
6010
|
+
$(this).addClass("ui-state-hover");
|
|
6011
|
+
}
|
|
6012
|
+
},
|
|
5973
6013
|
function () {$(this).removeClass("ui-state-hover");}
|
|
5974
6014
|
);
|
|
5975
6015
|
tbd = null;
|
|
@@ -5981,24 +6021,31 @@ $.jgrid.extend({
|
|
|
5981
6021
|
$(tbd,navtbl)
|
|
5982
6022
|
.attr({"title":o.refreshtitle || "",id: "refresh_"+elemids})
|
|
5983
6023
|
.click(function(){
|
|
5984
|
-
if(
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
6024
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
|
6025
|
+
if($.isFunction(o.beforeRefresh)) { o.beforeRefresh(); }
|
|
6026
|
+
$t.p.search = false;
|
|
6027
|
+
try {
|
|
6028
|
+
var gID = $t.p.id;
|
|
6029
|
+
$("#fbox_"+gID).searchFilter().reset();
|
|
6030
|
+
if($.isFunction($t.clearToolbar)) { $t.clearToolbar(false); }
|
|
6031
|
+
} catch (e) {}
|
|
6032
|
+
switch (o.refreshstate) {
|
|
6033
|
+
case 'firstpage':
|
|
6034
|
+
$($t).trigger("reloadGrid", [{page:1}]);
|
|
6035
|
+
break;
|
|
6036
|
+
case 'current':
|
|
6037
|
+
$($t).trigger("reloadGrid", [{current:true}]);
|
|
6038
|
+
break;
|
|
6039
|
+
}
|
|
6040
|
+
if($.isFunction(o.afterRefresh)) { o.afterRefresh(); }
|
|
5998
6041
|
}
|
|
5999
|
-
if($.isFunction(o.afterRefresh)) { o.afterRefresh(); }
|
|
6000
6042
|
return false;
|
|
6001
|
-
}).hover(
|
|
6043
|
+
}).hover(
|
|
6044
|
+
function () {
|
|
6045
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
|
6046
|
+
$(this).addClass("ui-state-hover");
|
|
6047
|
+
}
|
|
6048
|
+
},
|
|
6002
6049
|
function () {$(this).removeClass("ui-state-hover");}
|
|
6003
6050
|
);
|
|
6004
6051
|
tbd = null;
|
|
@@ -6052,14 +6099,19 @@ $.jgrid.extend({
|
|
|
6052
6099
|
$(tbd,findnav)
|
|
6053
6100
|
.attr("title",p.title || "")
|
|
6054
6101
|
.click(function(e){
|
|
6055
|
-
if (
|
|
6102
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
|
6103
|
+
if ($.isFunction(p.onClickButton) ) { p.onClickButton.call($t,e); }
|
|
6104
|
+
}
|
|
6056
6105
|
return false;
|
|
6057
6106
|
})
|
|
6058
6107
|
.hover(
|
|
6059
|
-
function () {
|
|
6108
|
+
function () {
|
|
6109
|
+
if (!$(this).hasClass('ui-state-disabled')) {
|
|
6110
|
+
$(this).addClass('ui-state-hover');
|
|
6111
|
+
}
|
|
6112
|
+
},
|
|
6060
6113
|
function () {$(this).removeClass("ui-state-hover");}
|
|
6061
|
-
)
|
|
6062
|
-
.css("cursor",p.cursor ? p.cursor : "normal");
|
|
6114
|
+
);
|
|
6063
6115
|
}
|
|
6064
6116
|
});
|
|
6065
6117
|
},
|
|
@@ -6127,7 +6179,7 @@ $.jgrid.extend({
|
|
|
6127
6179
|
* http://trirand.com/blog/
|
|
6128
6180
|
* Dual licensed under the MIT and GPL licenses:
|
|
6129
6181
|
* http://www.opensource.org/licenses/mit-license.php
|
|
6130
|
-
* http://www.gnu.org/licenses/gpl.html
|
|
6182
|
+
* http://www.gnu.org/licenses/gpl-2.0.html
|
|
6131
6183
|
**/
|
|
6132
6184
|
$.jgrid.extend({
|
|
6133
6185
|
jqGridImport : function(o) {
|
|
@@ -6327,7 +6379,7 @@ $.jgrid.extend({
|
|
|
6327
6379
|
* http://trirand.com/blog/
|
|
6328
6380
|
* Dual licensed under the MIT and GPL licenses:
|
|
6329
6381
|
* http://www.opensource.org/licenses/mit-license.php
|
|
6330
|
-
* http://www.gnu.org/licenses/gpl.html
|
|
6382
|
+
* http://www.gnu.org/licenses/gpl-2.0.html
|
|
6331
6383
|
**/
|
|
6332
6384
|
$.jgrid.extend({
|
|
6333
6385
|
//Editing
|
|
@@ -6585,8 +6637,8 @@ $.jgrid.extend({
|
|
|
6585
6637
|
* Author: Mark Williams
|
|
6586
6638
|
* Dual licensed under the MIT and GPL licenses:
|
|
6587
6639
|
* http://www.opensource.org/licenses/mit-license.php
|
|
6588
|
-
* http://www.gnu.org/licenses/gpl.html
|
|
6589
|
-
* depends on jQuery UI
|
|
6640
|
+
* http://www.gnu.org/licenses/gpl-2.0.html
|
|
6641
|
+
* depends on jQuery UI
|
|
6590
6642
|
**/
|
|
6591
6643
|
if ($.browser.msie && $.browser.version==8) {
|
|
6592
6644
|
$.expr[":"].hidden = function(elem) {
|
|
@@ -6595,6 +6647,7 @@ if ($.browser.msie && $.browser.version==8) {
|
|
|
6595
6647
|
};
|
|
6596
6648
|
}
|
|
6597
6649
|
// requiere load multiselect before grid
|
|
6650
|
+
$.jgrid._multiselect = false;
|
|
6598
6651
|
if($.ui) {
|
|
6599
6652
|
if ($.ui.multiselect ) {
|
|
6600
6653
|
if($.ui.multiselect.prototype._setSelected) {
|
|
@@ -6623,6 +6676,7 @@ if($.ui) {
|
|
|
6623
6676
|
}
|
|
6624
6677
|
};
|
|
6625
6678
|
}
|
|
6679
|
+
$.jgrid._multiselect = true;
|
|
6626
6680
|
}
|
|
6627
6681
|
}
|
|
6628
6682
|
|
|
@@ -6777,6 +6831,11 @@ $.jgrid.extend({
|
|
|
6777
6831
|
},
|
|
6778
6832
|
"msel_opts" : {}
|
|
6779
6833
|
}, $.jgrid.col, opts || {});
|
|
6834
|
+
if(opts.msel == "multiselect" && !$.jgrid._multiselect) {
|
|
6835
|
+
// should be in language file
|
|
6836
|
+
alert("Multiselect plugin not loaded or loaded after jqGrid. Please load the plugin before the jqGrid!");
|
|
6837
|
+
return;
|
|
6838
|
+
}
|
|
6780
6839
|
if($.ui) {
|
|
6781
6840
|
if ($.ui.multiselect ) {
|
|
6782
6841
|
opts.msel_opts = $.extend($.ui.multiselect.defaults,opts.msel_opts);
|
|
@@ -7081,7 +7140,7 @@ $.jgrid.extend({
|
|
|
7081
7140
|
*
|
|
7082
7141
|
* Dual licensed under the MIT and GPL licenses:
|
|
7083
7142
|
* http://www.opensource.org/licenses/mit-license.php
|
|
7084
|
-
* http://www.gnu.org/licenses/gpl.html
|
|
7143
|
+
* http://www.gnu.org/licenses/gpl-2.0.html
|
|
7085
7144
|
**/
|
|
7086
7145
|
$.jgrid.extend({
|
|
7087
7146
|
getPostData : function(){
|
|
@@ -7146,7 +7205,7 @@ $.jgrid.extend({
|
|
|
7146
7205
|
* http://www.roznicki.prv.pl
|
|
7147
7206
|
* Dual licensed under the MIT and GPL licenses:
|
|
7148
7207
|
* http://www.opensource.org/licenses/mit-license.php
|
|
7149
|
-
* http://www.gnu.org/licenses/gpl.html
|
|
7208
|
+
* http://www.gnu.org/licenses/gpl-2.0.html
|
|
7150
7209
|
**/
|
|
7151
7210
|
$.jgrid.extend({
|
|
7152
7211
|
setColumns : function(p) {
|
|
@@ -7273,7 +7332,7 @@ $.jgrid.extend({
|
|
|
7273
7332
|
* http://trirand.com/blog/
|
|
7274
7333
|
* Dual licensed under the MIT and GPL licenses:
|
|
7275
7334
|
* http://www.opensource.org/licenses/mit-license.php
|
|
7276
|
-
* http://www.gnu.org/licenses/gpl.html
|
|
7335
|
+
* http://www.gnu.org/licenses/gpl-2.0.html
|
|
7277
7336
|
**/
|
|
7278
7337
|
$.jgrid.extend({
|
|
7279
7338
|
setSubGrid : function () {
|
|
@@ -7644,7 +7703,7 @@ jQuery(selector).each(function() {
|
|
|
7644
7703
|
* http://trirand.com/blog/
|
|
7645
7704
|
* Dual licensed under the MIT and GPL licenses:
|
|
7646
7705
|
* http://www.opensource.org/licenses/mit-license.php
|
|
7647
|
-
* http://www.gnu.org/licenses/gpl.html
|
|
7706
|
+
* http://www.gnu.org/licenses/gpl-2.0.html
|
|
7648
7707
|
**/
|
|
7649
7708
|
$.jgrid.extend({
|
|
7650
7709
|
setTreeNode : function(rd, row){
|
|
@@ -8232,7 +8291,7 @@ hs=function(w,t,c){return w.each(function(){var s=this._jqm;$(t).each(function()
|
|
|
8232
8291
|
* Changes from Tony Tomov tony@trirand.com
|
|
8233
8292
|
* Dual licensed under the MIT and GPL licenses:
|
|
8234
8293
|
* http://www.opensource.org/licenses/mit-license.php
|
|
8235
|
-
* http://www.gnu.org/licenses/gpl.html
|
|
8294
|
+
* http://www.gnu.org/licenses/gpl-2.0.html
|
|
8236
8295
|
*
|
|
8237
8296
|
**/
|
|
8238
8297
|
|
|
@@ -8327,25 +8386,30 @@ hs=function(w,t,c){return w.each(function(){var s=this._jqm;$(t).each(function()
|
|
|
8327
8386
|
monthNames: opts.monthNames
|
|
8328
8387
|
};
|
|
8329
8388
|
if( format in opts.masks ) { format = opts.masks[format]; }
|
|
8330
|
-
date
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8389
|
+
if(date.constructor === Date) {
|
|
8390
|
+
timestamp = date;
|
|
8391
|
+
} else {
|
|
8392
|
+
date = date.split(/[\\\/:_;.\t\T\s-]/);
|
|
8393
|
+
format = format.split(/[\\\/:_;.\t\T\s-]/);
|
|
8394
|
+
// parsing for month names
|
|
8395
|
+
for(k=0,hl=format.length;k<hl;k++){
|
|
8396
|
+
if(format[k] == 'M') {
|
|
8397
|
+
dM = $.inArray(date[k],dateFormat.i18n.monthNames);
|
|
8398
|
+
if(dM !== -1 && dM < 12){date[k] = dM+1;}
|
|
8399
|
+
}
|
|
8400
|
+
if(format[k] == 'F') {
|
|
8401
|
+
dM = $.inArray(date[k],dateFormat.i18n.monthNames);
|
|
8402
|
+
if(dM !== -1 && dM > 11){date[k] = dM+1-12;}
|
|
8403
|
+
}
|
|
8404
|
+
ts[format[k].toLowerCase()] = parseInt(date[k],10);
|
|
8405
|
+
}
|
|
8406
|
+
ts.m = parseInt(ts.m,10)-1;
|
|
8407
|
+
var ty = ts.y;
|
|
8408
|
+
if (ty >= 70 && ty <= 99) { ts.y = 1900+ts.y; }
|
|
8409
|
+
else if (ty >=0 && ty <=69) { ts.y= 2000+ts.y; }
|
|
8410
|
+
timestamp = new Date(ts.y, ts.m, ts.d, ts.h, ts.i, ts.s, ts.u);
|
|
8411
|
+
}
|
|
8412
|
+
|
|
8349
8413
|
if( newformat in opts.masks ) {
|
|
8350
8414
|
newformat = opts.masks[newformat];
|
|
8351
8415
|
} else if ( !newformat ) {
|
|
@@ -8636,7 +8700,7 @@ hs=function(w,t,c){return w.each(function(){var s=this._jqm;$(t).each(function()
|
|
|
8636
8700
|
ret= $(cellval).text();
|
|
8637
8701
|
}
|
|
8638
8702
|
}
|
|
8639
|
-
return ret ? ret : cnt===true ? $(cellval).text() : $(cellval).html();
|
|
8703
|
+
return ret ? ret : cnt===true ? $(cellval).text() : $.jgrid.htmlDecode($(cellval).html());
|
|
8640
8704
|
};
|
|
8641
8705
|
$.unformat.select = function (cellval,options,pos,cnt) {
|
|
8642
8706
|
// Spacial case when we have local data and perform a sort
|
|
@@ -8745,7 +8809,7 @@ hs=function(w,t,c){return w.each(function(){var s=this._jqm;$(t).each(function()
|
|
|
8745
8809
|
|
|
8746
8810
|
/* Plugin: searchFilter v1.2.9
|
|
8747
8811
|
* Author: Kasey Speakman (kasey@cornerspeed.com)
|
|
8748
|
-
* License: Dual Licensed, MIT and GPL v2 (http://www.gnu.org/
|
|
8812
|
+
* License: Dual Licensed, MIT and GPL v2 (http://www.gnu.org/licenses/gpl-2.0.html)
|
|
8749
8813
|
*
|
|
8750
8814
|
* REQUIREMENTS:
|
|
8751
8815
|
* jQuery 1.3+ (http://jquery.com/)
|
|
@@ -9232,7 +9296,7 @@ jQuery.fn.searchFilter = function(fields, options) {
|
|
|
9232
9296
|
}
|
|
9233
9297
|
selDOMobj.selectedIndex = indexmap[setting];
|
|
9234
9298
|
$(selDOMobj).change();
|
|
9235
|
-
}
|
|
9299
|
+
};
|
|
9236
9300
|
|
|
9237
9301
|
this.setFilter = function(settings) {
|
|
9238
9302
|
/* a "setter" for an arbitrary SearchFilter's filter line.
|
|
@@ -9257,27 +9321,27 @@ jQuery.fn.searchFilter = function(fields, options) {
|
|
|
9257
9321
|
var o = settings['sfref'], filter = settings['filter'];
|
|
9258
9322
|
|
|
9259
9323
|
// setting up valueindexmap that we will need to manipulate SELECT elements.
|
|
9260
|
-
var fields = [],
|
|
9324
|
+
var fields = [], i, j , l, lj, li,
|
|
9261
9325
|
valueindexmap = {};
|
|
9262
9326
|
// example of valueindexmap:
|
|
9263
9327
|
// {'field1':{'index':0,'ops':{'eq':0,'ne':1}},'fieldX':{'index':1,'ops':{'eq':0,'ne':1},'data':{'true':0,'false':1}}},
|
|
9264
9328
|
// if data is undefined it's a INPUT field. If defined, it's SELECT
|
|
9265
9329
|
selDOMobj = o.find("select[name='field']")[0];
|
|
9266
|
-
for (
|
|
9330
|
+
for (i=0, l=selDOMobj.options.length; i<l; i++) {
|
|
9267
9331
|
valueindexmap[selDOMobj.options[i].value] = {'index':i,'ops':{}};
|
|
9268
9332
|
fields.push(selDOMobj.options[i].value);
|
|
9269
9333
|
}
|
|
9270
|
-
for (
|
|
9334
|
+
for (i=0, li=fields.length; i < li; i++) {
|
|
9271
9335
|
selDOMobj = o.find(".ops > select[class='field"+i+"']")[0];
|
|
9272
9336
|
if (selDOMobj) {
|
|
9273
|
-
for (
|
|
9337
|
+
for (j=0, lj=selDOMobj.options.length; j<lj; j++) {
|
|
9274
9338
|
valueindexmap[fields[i]]['ops'][selDOMobj.options[j].value] = j;
|
|
9275
9339
|
}
|
|
9276
9340
|
}
|
|
9277
9341
|
selDOMobj = o.find(".data > select[class='field"+i+"']")[0];
|
|
9278
9342
|
if (selDOMobj) {
|
|
9279
9343
|
valueindexmap[fields[i]]['data'] = {}; // this setting is the flag that 'data' is contained in a SELECT
|
|
9280
|
-
for (
|
|
9344
|
+
for (j=0, lj=selDOMobj.options.length; j<lj; j++) {
|
|
9281
9345
|
valueindexmap[fields[i]]['data'][selDOMobj.options[j].value] = j;
|
|
9282
9346
|
}
|
|
9283
9347
|
}
|
|
@@ -9286,19 +9350,28 @@ jQuery.fn.searchFilter = function(fields, options) {
|
|
|
9286
9350
|
// preparsing the index values for SELECT elements.
|
|
9287
9351
|
var fieldvalue, fieldindex, opindex, datavalue, dataindex;
|
|
9288
9352
|
fieldvalue = filter['field'];
|
|
9289
|
-
|
|
9290
|
-
|
|
9353
|
+
if (valueindexmap[fieldvalue]) {
|
|
9354
|
+
fieldindex = valueindexmap[fieldvalue]['index'];
|
|
9355
|
+
}
|
|
9356
|
+
if (fieldindex != null) {
|
|
9291
9357
|
opindex = valueindexmap[fieldvalue]['ops'][filter['op']];
|
|
9358
|
+
if(opindex === undefined) {
|
|
9359
|
+
for(i=0,li=options.operators.length; i<li;i++) {
|
|
9360
|
+
if(options.operators[i].op == filter.op ){
|
|
9361
|
+
opindex = i;
|
|
9362
|
+
break;
|
|
9363
|
+
}
|
|
9364
|
+
}
|
|
9365
|
+
}
|
|
9292
9366
|
datavalue = filter['data'];
|
|
9293
|
-
if (valueindexmap[fieldvalue]['data'] ==
|
|
9367
|
+
if (valueindexmap[fieldvalue]['data'] == null) {
|
|
9294
9368
|
dataindex = -1; // 'data' is not SELECT, Making the var 'defined'
|
|
9295
9369
|
} else {
|
|
9296
9370
|
dataindex = valueindexmap[fieldvalue]['data'][datavalue]; // 'undefined' may come from here.
|
|
9297
9371
|
}
|
|
9298
9372
|
}
|
|
9299
|
-
|
|
9300
9373
|
// only if values for 'field' and 'op' and 'data' are 'found' in mapping...
|
|
9301
|
-
if (fieldindex !=
|
|
9374
|
+
if (fieldindex != null && opindex != null && dataindex != null) {
|
|
9302
9375
|
o.find("select[name='field']")[0].selectedIndex = fieldindex;
|
|
9303
9376
|
o.find("select[name='field']").change();
|
|
9304
9377
|
o.find("select[name='op']")[0].selectedIndex = opindex;
|
|
@@ -9307,8 +9380,11 @@ jQuery.fn.searchFilter = function(fields, options) {
|
|
|
9307
9380
|
if (o) {
|
|
9308
9381
|
o.selectedIndex = dataindex;
|
|
9309
9382
|
}
|
|
9310
|
-
|
|
9311
|
-
|
|
9383
|
+
return true
|
|
9384
|
+
} else {
|
|
9385
|
+
return false
|
|
9386
|
+
}
|
|
9387
|
+
}; // end of this.setFilter fn
|
|
9312
9388
|
} // end of if fields != null
|
|
9313
9389
|
}
|
|
9314
9390
|
return new SearchFilter(this, fields, options);
|