compass-jquery-plugin 0.3.0.beta.26 → 0.3.0.rc.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +1 -52
- data/VERSION.yml +1 -1
- data/compass-jquery-plugin.gemspec +6 -407
- data/gem_tasks/jrails.rake +84 -85
- data/gem_tasks/rubygems.rake +9 -1
- data/templates/jqtouch/config/initializers/jqtouch.rb +1 -1
- data/templates/jrails/config/initializers/jrails.rb +3 -3
- data/templates/jrails/{jquery-ui-1.8.6.js → jquery-ui.js} +0 -0
- data/templates/jrails/{jquery-ui-1.8.6.min.js → jquery-ui.min.js} +0 -0
- data/templates/jrails/{jquery-1.4.4.js → jquery.js} +360 -284
- data/templates/jrails/jquery.min.js +151 -0
- data/templates/jrails/manifest.rb +4 -4
- metadata +9 -410
- data/gem_tasks/jqgrid.rake +0 -119
- data/gem_tasks/mobile.rake +0 -144
- data/gem_tasks/secret_sauce.rake +0 -64
- data/lib/jquery/gridify/assertions.rb +0 -37
- data/lib/jquery/gridify/grid.rb +0 -147
- data/lib/jquery/gridify/grid_column.rb +0 -134
- data/lib/jquery/gridify/grid_finder.rb +0 -223
- data/lib/jquery/gridify/grid_options.rb +0 -279
- data/lib/jquery/gridify/grid_view.rb +0 -435
- data/lib/jquery/gridify.rb +0 -42
- data/lib/jquery/jqgrid/jqgrid.rb +0 -438
- data/lib/jquery/jqgrid.rb +0 -5
- data/lib/jquery/mobile.rb +0 -3
- data/lib/jquery/secret_sauce/controller/ui_dialog_controls.rb +0 -14
- data/lib/jquery/secret_sauce/controller/ui_grid_controls.rb +0 -18
- data/lib/jquery/secret_sauce/helpers/ui_dialog_helper.rb +0 -6
- data/lib/jquery/secret_sauce/helpers/ui_form_helper.rb +0 -118
- data/lib/jquery/secret_sauce/helpers/ui_grid_helper.rb +0 -226
- data/lib/jquery/secret_sauce/model/find_for_grid.rb +0 -42
- data/lib/jquery/secret_sauce.rb +0 -9
- data/templates/jqgrid/config/initializers/jqgrid.rb +0 -4
- data/templates/jqgrid/config/locales/jquery/jqgrid/de.yml +0 -7
- data/templates/jqgrid/config/locales/jquery/jqgrid/en.yml +0 -7
- data/templates/jqgrid/i18n/jqgrid/locale-bg.js +0 -132
- data/templates/jqgrid/i18n/jqgrid/locale-bg.min.js +0 -6
- data/templates/jqgrid/i18n/jqgrid/locale-bg1251.js +0 -132
- data/templates/jqgrid/i18n/jqgrid/locale-bg1251.min.js +0 -6
- data/templates/jqgrid/i18n/jqgrid/locale-cat.js +0 -128
- data/templates/jqgrid/i18n/jqgrid/locale-cat.min.js +0 -6
- data/templates/jqgrid/i18n/jqgrid/locale-cn.js +0 -132
- data/templates/jqgrid/i18n/jqgrid/locale-cn.min.js +0 -5
- data/templates/jqgrid/i18n/jqgrid/locale-cs.js +0 -128
- data/templates/jqgrid/i18n/jqgrid/locale-cs.min.js +0 -6
- data/templates/jqgrid/i18n/jqgrid/locale-da.js +0 -128
- data/templates/jqgrid/i18n/jqgrid/locale-da.min.js +0 -6
- data/templates/jqgrid/i18n/jqgrid/locale-de.js +0 -133
- data/templates/jqgrid/i18n/jqgrid/locale-de.min.js +0 -7
- data/templates/jqgrid/i18n/jqgrid/locale-el.js +0 -126
- data/templates/jqgrid/i18n/jqgrid/locale-el.min.js +0 -7
- data/templates/jqgrid/i18n/jqgrid/locale-en.js +0 -128
- data/templates/jqgrid/i18n/jqgrid/locale-en.min.js +0 -6
- data/templates/jqgrid/i18n/jqgrid/locale-es.js +0 -128
- data/templates/jqgrid/i18n/jqgrid/locale-es.min.js +0 -7
- data/templates/jqgrid/i18n/jqgrid/locale-fa.js +0 -125
- data/templates/jqgrid/i18n/jqgrid/locale-fa.min.js +0 -6
- data/templates/jqgrid/i18n/jqgrid/locale-fi.js +0 -130
- data/templates/jqgrid/i18n/jqgrid/locale-fi.min.js +0 -6
- data/templates/jqgrid/i18n/jqgrid/locale-fr.js +0 -126
- data/templates/jqgrid/i18n/jqgrid/locale-fr.min.js +0 -7
- data/templates/jqgrid/i18n/jqgrid/locale-gl.js +0 -126
- data/templates/jqgrid/i18n/jqgrid/locale-gl.min.js +0 -7
- data/templates/jqgrid/i18n/jqgrid/locale-he.js +0 -127
- data/templates/jqgrid/i18n/jqgrid/locale-he.min.js +0 -6
- data/templates/jqgrid/i18n/jqgrid/locale-hu.js +0 -129
- data/templates/jqgrid/i18n/jqgrid/locale-hu.min.js +0 -6
- data/templates/jqgrid/i18n/jqgrid/locale-is.js +0 -126
- data/templates/jqgrid/i18n/jqgrid/locale-is.min.js +0 -6
- data/templates/jqgrid/i18n/jqgrid/locale-it.js +0 -1
- data/templates/jqgrid/i18n/jqgrid/locale-it.min.js +0 -7
- data/templates/jqgrid/i18n/jqgrid/locale-ja.js +0 -155
- data/templates/jqgrid/i18n/jqgrid/locale-ja.min.js +0 -5
- data/templates/jqgrid/i18n/jqgrid/locale-nl.js +0 -149
- data/templates/jqgrid/i18n/jqgrid/locale-nl.min.js +0 -6
- data/templates/jqgrid/i18n/jqgrid/locale-no.js +0 -1
- data/templates/jqgrid/i18n/jqgrid/locale-no.min.js +0 -6
- data/templates/jqgrid/i18n/jqgrid/locale-pl.js +0 -127
- data/templates/jqgrid/i18n/jqgrid/locale-pl.min.js +0 -6
- data/templates/jqgrid/i18n/jqgrid/locale-pt-br.js +0 -127
- data/templates/jqgrid/i18n/jqgrid/locale-pt-br.min.js +0 -6
- data/templates/jqgrid/i18n/jqgrid/locale-pt.js +0 -125
- data/templates/jqgrid/i18n/jqgrid/locale-pt.min.js +0 -6
- data/templates/jqgrid/i18n/jqgrid/locale-ro.js +0 -139
- data/templates/jqgrid/i18n/jqgrid/locale-ro.min.js +0 -7
- data/templates/jqgrid/i18n/jqgrid/locale-ru.js +0 -127
- data/templates/jqgrid/i18n/jqgrid/locale-ru.min.js +0 -7
- data/templates/jqgrid/i18n/jqgrid/locale-sk.js +0 -127
- data/templates/jqgrid/i18n/jqgrid/locale-sk.min.js +0 -6
- data/templates/jqgrid/i18n/jqgrid/locale-sv.js +0 -127
- data/templates/jqgrid/i18n/jqgrid/locale-sv.min.js +0 -6
- data/templates/jqgrid/i18n/jqgrid/locale-tr.js +0 -126
- data/templates/jqgrid/i18n/jqgrid/locale-tr.min.js +0 -6
- data/templates/jqgrid/i18n/jqgrid/locale-ua.js +0 -127
- data/templates/jqgrid/i18n/jqgrid/locale-ua.min.js +0 -7
- data/templates/jqgrid/jquery/jqGrid.scss +0 -692
- data/templates/jqgrid/jquery.jqGrid.js +0 -11576
- data/templates/jqgrid/jquery.jqGrid.min.js +0 -472
- data/templates/jqgrid/manifest.rb +0 -70
- data/templates/jqgrid/public/stylesheets/ellipsis-xbl.xml +0 -13
- data/templates/jrails/jquery-1.4.4.min.js +0 -152
- data/templates/mobile/config/initializers/mobile.rb +0 -6
- data/templates/mobile/glyphish/Read me first - license.txt +0 -14
- data/templates/mobile/glyphish/icons/01-refresh.png +0 -0
- data/templates/mobile/glyphish/icons/02-redo.png +0 -0
- data/templates/mobile/glyphish/icons/03-loopback.png +0 -0
- data/templates/mobile/glyphish/icons/04-squiggle.png +0 -0
- data/templates/mobile/glyphish/icons/05-shuffle.png +0 -0
- data/templates/mobile/glyphish/icons/06-magnifying-glass.png +0 -0
- data/templates/mobile/glyphish/icons/07-map-marker.png +0 -0
- data/templates/mobile/glyphish/icons/08-chat.png +0 -0
- data/templates/mobile/glyphish/icons/09-chat2.png +0 -0
- data/templates/mobile/glyphish/icons/10-medical.png +0 -0
- data/templates/mobile/glyphish/icons/100-coffee.png +0 -0
- data/templates/mobile/glyphish/icons/101-gameplan.png +0 -0
- data/templates/mobile/glyphish/icons/102-walk.png +0 -0
- data/templates/mobile/glyphish/icons/103-map.png +0 -0
- data/templates/mobile/glyphish/icons/104-index-cards.png +0 -0
- data/templates/mobile/glyphish/icons/105-piano.png +0 -0
- data/templates/mobile/glyphish/icons/106-sliders.png +0 -0
- data/templates/mobile/glyphish/icons/107-widescreen.png +0 -0
- data/templates/mobile/glyphish/icons/108-badge.png +0 -0
- data/templates/mobile/glyphish/icons/109-chicken.png +0 -0
- data/templates/mobile/glyphish/icons/11-clock.png +0 -0
- data/templates/mobile/glyphish/icons/110-bug.png +0 -0
- data/templates/mobile/glyphish/icons/111-user.png +0 -0
- data/templates/mobile/glyphish/icons/112-group.png +0 -0
- data/templates/mobile/glyphish/icons/113-navigation.png +0 -0
- data/templates/mobile/glyphish/icons/114-balloon.png +0 -0
- data/templates/mobile/glyphish/icons/115-bow-and-arrow.png +0 -0
- data/templates/mobile/glyphish/icons/116-controller.png +0 -0
- data/templates/mobile/glyphish/icons/117-todo.png +0 -0
- data/templates/mobile/glyphish/icons/118-coathanger.png +0 -0
- data/templates/mobile/glyphish/icons/119-piggybank.png +0 -0
- data/templates/mobile/glyphish/icons/12-eye.png +0 -0
- data/templates/mobile/glyphish/icons/120-headphones.png +0 -0
- data/templates/mobile/glyphish/icons/121-lanscape.png +0 -0
- data/templates/mobile/glyphish/icons/122-stats.png +0 -0
- data/templates/mobile/glyphish/icons/123-id-card.png +0 -0
- data/templates/mobile/glyphish/icons/124-bullhorn.png +0 -0
- data/templates/mobile/glyphish/icons/125-food.png +0 -0
- data/templates/mobile/glyphish/icons/126-moon.png +0 -0
- data/templates/mobile/glyphish/icons/127-sock.png +0 -0
- data/templates/mobile/glyphish/icons/128-bone.png +0 -0
- data/templates/mobile/glyphish/icons/129-golf.png +0 -0
- data/templates/mobile/glyphish/icons/13-target.png +0 -0
- data/templates/mobile/glyphish/icons/130-dice.png +0 -0
- data/templates/mobile/glyphish/icons/14-tag.png +0 -0
- data/templates/mobile/glyphish/icons/15-tags.png +0 -0
- data/templates/mobile/glyphish/icons/16-line-chart.png +0 -0
- data/templates/mobile/glyphish/icons/17-bar-chart.png +0 -0
- data/templates/mobile/glyphish/icons/18-envelope.png +0 -0
- data/templates/mobile/glyphish/icons/19-gear.png +0 -0
- data/templates/mobile/glyphish/icons/20-gear2.png +0 -0
- data/templates/mobile/glyphish/icons/21-skull.png +0 -0
- data/templates/mobile/glyphish/icons/22-skull-n-crossbones.png +0 -0
- data/templates/mobile/glyphish/icons/23-bird.png +0 -0
- data/templates/mobile/glyphish/icons/24-gift.png +0 -0
- data/templates/mobile/glyphish/icons/25-weather.png +0 -0
- data/templates/mobile/glyphish/icons/26-bandaid.png +0 -0
- data/templates/mobile/glyphish/icons/27-planet.png +0 -0
- data/templates/mobile/glyphish/icons/28-star.png +0 -0
- data/templates/mobile/glyphish/icons/29-heart.png +0 -0
- data/templates/mobile/glyphish/icons/30-key.png +0 -0
- data/templates/mobile/glyphish/icons/31-ipod.png +0 -0
- data/templates/mobile/glyphish/icons/32-iphone.png +0 -0
- data/templates/mobile/glyphish/icons/33-cabinet.png +0 -0
- data/templates/mobile/glyphish/icons/34-coffee.png +0 -0
- data/templates/mobile/glyphish/icons/35-shopping-bag.png +0 -0
- data/templates/mobile/glyphish/icons/36-toolbox.png +0 -0
- data/templates/mobile/glyphish/icons/37-suitcase.png +0 -0
- data/templates/mobile/glyphish/icons/38-airplane.png +0 -0
- data/templates/mobile/glyphish/icons/39-spraycan.png +0 -0
- data/templates/mobile/glyphish/icons/40-inbox.png +0 -0
- data/templates/mobile/glyphish/icons/41-picture-frame.png +0 -0
- data/templates/mobile/glyphish/icons/42-photos.png +0 -0
- data/templates/mobile/glyphish/icons/43-film-roll.png +0 -0
- data/templates/mobile/glyphish/icons/44-shoebox.png +0 -0
- data/templates/mobile/glyphish/icons/45-movie1.png +0 -0
- data/templates/mobile/glyphish/icons/46-movie2.png +0 -0
- data/templates/mobile/glyphish/icons/47-fuel.png +0 -0
- data/templates/mobile/glyphish/icons/48-fork-and-knife.png +0 -0
- data/templates/mobile/glyphish/icons/49-battery.png +0 -0
- data/templates/mobile/glyphish/icons/50-beaker.png +0 -0
- data/templates/mobile/glyphish/icons/51-outlet.png +0 -0
- data/templates/mobile/glyphish/icons/52-pinetree.png +0 -0
- data/templates/mobile/glyphish/icons/53-house.png +0 -0
- data/templates/mobile/glyphish/icons/54-lock.png +0 -0
- data/templates/mobile/glyphish/icons/55-network.png +0 -0
- data/templates/mobile/glyphish/icons/56-cloud.png +0 -0
- data/templates/mobile/glyphish/icons/57-download.png +0 -0
- data/templates/mobile/glyphish/icons/58-bookmark.png +0 -0
- data/templates/mobile/glyphish/icons/59-flag.png +0 -0
- data/templates/mobile/glyphish/icons/60-signpost.png +0 -0
- data/templates/mobile/glyphish/icons/61-brightness.png +0 -0
- data/templates/mobile/glyphish/icons/62-contrast.png +0 -0
- data/templates/mobile/glyphish/icons/63-runner.png +0 -0
- data/templates/mobile/glyphish/icons/64-zap.png +0 -0
- data/templates/mobile/glyphish/icons/65-note.png +0 -0
- data/templates/mobile/glyphish/icons/66-microphone.png +0 -0
- data/templates/mobile/glyphish/icons/67-tshirt.png +0 -0
- data/templates/mobile/glyphish/icons/68-paperclip.png +0 -0
- data/templates/mobile/glyphish/icons/69-display.png +0 -0
- data/templates/mobile/glyphish/icons/70-tv.png +0 -0
- data/templates/mobile/glyphish/icons/71-compass.png +0 -0
- data/templates/mobile/glyphish/icons/72-pin.png +0 -0
- data/templates/mobile/glyphish/icons/73-radar.png +0 -0
- data/templates/mobile/glyphish/icons/74-location.png +0 -0
- data/templates/mobile/glyphish/icons/75-phone.png +0 -0
- data/templates/mobile/glyphish/icons/76-baby.png +0 -0
- data/templates/mobile/glyphish/icons/77-ekg.png +0 -0
- data/templates/mobile/glyphish/icons/78-stopwatch.png +0 -0
- data/templates/mobile/glyphish/icons/79-medical-bag.png +0 -0
- data/templates/mobile/glyphish/icons/80-shopping-cart.png +0 -0
- data/templates/mobile/glyphish/icons/81-dashboard.png +0 -0
- data/templates/mobile/glyphish/icons/82-dogpaw.png +0 -0
- data/templates/mobile/glyphish/icons/83-calendar.png +0 -0
- data/templates/mobile/glyphish/icons/84-lightbulb.png +0 -0
- data/templates/mobile/glyphish/icons/85-trophy.png +0 -0
- data/templates/mobile/glyphish/icons/86-camera.png +0 -0
- data/templates/mobile/glyphish/icons/87-wineglass.png +0 -0
- data/templates/mobile/glyphish/icons/88-beermug.png +0 -0
- data/templates/mobile/glyphish/icons/89-dumbbell.png +0 -0
- data/templates/mobile/glyphish/icons/90-lifebuoy.png +0 -0
- data/templates/mobile/glyphish/icons/91-beaker2.png +0 -0
- data/templates/mobile/glyphish/icons/92-testtube.png +0 -0
- data/templates/mobile/glyphish/icons/93-thermometer.png +0 -0
- data/templates/mobile/glyphish/icons/94-pill.png +0 -0
- data/templates/mobile/glyphish/icons/95-equalizer.png +0 -0
- data/templates/mobile/glyphish/icons/96-book.png +0 -0
- data/templates/mobile/glyphish/icons/97-puzzle.png +0 -0
- data/templates/mobile/glyphish/icons/98-palette.png +0 -0
- data/templates/mobile/glyphish/icons/99-umbrella.png +0 -0
- data/templates/mobile/glyphish/mini-icons/01-refresh.png +0 -0
- data/templates/mobile/glyphish/mini-icons/02-redo.png +0 -0
- data/templates/mobile/glyphish/mini-icons/03-loopback.png +0 -0
- data/templates/mobile/glyphish/mini-icons/04-squiggle.png +0 -0
- data/templates/mobile/glyphish/mini-icons/05-shuffle.png +0 -0
- data/templates/mobile/glyphish/mini-icons/06-magnifying-glass.png +0 -0
- data/templates/mobile/glyphish/mini-icons/07-map-marker.png +0 -0
- data/templates/mobile/glyphish/mini-icons/08-chat.png +0 -0
- data/templates/mobile/glyphish/mini-icons/09-chat2.png +0 -0
- data/templates/mobile/glyphish/mini-icons/10-medical.png +0 -0
- data/templates/mobile/glyphish/mini-icons/100-coffee.png +0 -0
- data/templates/mobile/glyphish/mini-icons/101-gameplan.png +0 -0
- data/templates/mobile/glyphish/mini-icons/102-walk.png +0 -0
- data/templates/mobile/glyphish/mini-icons/103-map.png +0 -0
- data/templates/mobile/glyphish/mini-icons/104-index-cards.png +0 -0
- data/templates/mobile/glyphish/mini-icons/105-piano.png +0 -0
- data/templates/mobile/glyphish/mini-icons/106-sliders.png +0 -0
- data/templates/mobile/glyphish/mini-icons/107-widescreen.png +0 -0
- data/templates/mobile/glyphish/mini-icons/108-badge.png +0 -0
- data/templates/mobile/glyphish/mini-icons/109-chicken.png +0 -0
- data/templates/mobile/glyphish/mini-icons/11-clock.png +0 -0
- data/templates/mobile/glyphish/mini-icons/110-bug.png +0 -0
- data/templates/mobile/glyphish/mini-icons/111-user.png +0 -0
- data/templates/mobile/glyphish/mini-icons/112-group.png +0 -0
- data/templates/mobile/glyphish/mini-icons/113-navigation.png +0 -0
- data/templates/mobile/glyphish/mini-icons/114-balloon.png +0 -0
- data/templates/mobile/glyphish/mini-icons/115-bow-and-arrow.png +0 -0
- data/templates/mobile/glyphish/mini-icons/116-controller.png +0 -0
- data/templates/mobile/glyphish/mini-icons/117-todo.png +0 -0
- data/templates/mobile/glyphish/mini-icons/118-coathanger.png +0 -0
- data/templates/mobile/glyphish/mini-icons/119-piggybank.png +0 -0
- data/templates/mobile/glyphish/mini-icons/12-eye.png +0 -0
- data/templates/mobile/glyphish/mini-icons/120-headphones.png +0 -0
- data/templates/mobile/glyphish/mini-icons/121-lanscape.png +0 -0
- data/templates/mobile/glyphish/mini-icons/122-stats.png +0 -0
- data/templates/mobile/glyphish/mini-icons/123-id-card.png +0 -0
- data/templates/mobile/glyphish/mini-icons/124-bullhorn.png +0 -0
- data/templates/mobile/glyphish/mini-icons/125-food.png +0 -0
- data/templates/mobile/glyphish/mini-icons/126-moon.png +0 -0
- data/templates/mobile/glyphish/mini-icons/127-sock.png +0 -0
- data/templates/mobile/glyphish/mini-icons/128-bone.png +0 -0
- data/templates/mobile/glyphish/mini-icons/129-golf.png +0 -0
- data/templates/mobile/glyphish/mini-icons/13-target.png +0 -0
- data/templates/mobile/glyphish/mini-icons/130-dice.png +0 -0
- data/templates/mobile/glyphish/mini-icons/14-tag.png +0 -0
- data/templates/mobile/glyphish/mini-icons/15-tags.png +0 -0
- data/templates/mobile/glyphish/mini-icons/16-line-chart.png +0 -0
- data/templates/mobile/glyphish/mini-icons/17-bar-chart.png +0 -0
- data/templates/mobile/glyphish/mini-icons/18-envelope.png +0 -0
- data/templates/mobile/glyphish/mini-icons/19-gear.png +0 -0
- data/templates/mobile/glyphish/mini-icons/20-gear2.png +0 -0
- data/templates/mobile/glyphish/mini-icons/21-skull.png +0 -0
- data/templates/mobile/glyphish/mini-icons/22-skull-n-crossbones.png +0 -0
- data/templates/mobile/glyphish/mini-icons/23-bird.png +0 -0
- data/templates/mobile/glyphish/mini-icons/24-gift.png +0 -0
- data/templates/mobile/glyphish/mini-icons/25-weather.png +0 -0
- data/templates/mobile/glyphish/mini-icons/26-bandaid.png +0 -0
- data/templates/mobile/glyphish/mini-icons/27-planet.png +0 -0
- data/templates/mobile/glyphish/mini-icons/28-star.png +0 -0
- data/templates/mobile/glyphish/mini-icons/29-heart.png +0 -0
- data/templates/mobile/glyphish/mini-icons/30-key.png +0 -0
- data/templates/mobile/glyphish/mini-icons/31-ipod.png +0 -0
- data/templates/mobile/glyphish/mini-icons/32-iphone.png +0 -0
- data/templates/mobile/glyphish/mini-icons/33-cabinet.png +0 -0
- data/templates/mobile/glyphish/mini-icons/34-coffee.png +0 -0
- data/templates/mobile/glyphish/mini-icons/35-shopping-bag.png +0 -0
- data/templates/mobile/glyphish/mini-icons/36-toolbox.png +0 -0
- data/templates/mobile/glyphish/mini-icons/37-suitcase.png +0 -0
- data/templates/mobile/glyphish/mini-icons/38-airplane.png +0 -0
- data/templates/mobile/glyphish/mini-icons/39-spraycan.png +0 -0
- data/templates/mobile/glyphish/mini-icons/40-inbox.png +0 -0
- data/templates/mobile/glyphish/mini-icons/41-picture-frame.png +0 -0
- data/templates/mobile/glyphish/mini-icons/42-photos.png +0 -0
- data/templates/mobile/glyphish/mini-icons/43-film-roll.png +0 -0
- data/templates/mobile/glyphish/mini-icons/44-shoebox.png +0 -0
- data/templates/mobile/glyphish/mini-icons/45-movie1.png +0 -0
- data/templates/mobile/glyphish/mini-icons/46-movie2.png +0 -0
- data/templates/mobile/glyphish/mini-icons/47-fuel.png +0 -0
- data/templates/mobile/glyphish/mini-icons/48-fork-and-knife.png +0 -0
- data/templates/mobile/glyphish/mini-icons/49-battery.png +0 -0
- data/templates/mobile/glyphish/mini-icons/50-beaker.png +0 -0
- data/templates/mobile/glyphish/mini-icons/51-outlet.png +0 -0
- data/templates/mobile/glyphish/mini-icons/52-pinetree.png +0 -0
- data/templates/mobile/glyphish/mini-icons/53-house.png +0 -0
- data/templates/mobile/glyphish/mini-icons/54-lock.png +0 -0
- data/templates/mobile/glyphish/mini-icons/55-network.png +0 -0
- data/templates/mobile/glyphish/mini-icons/56-cloud.png +0 -0
- data/templates/mobile/glyphish/mini-icons/57-download.png +0 -0
- data/templates/mobile/glyphish/mini-icons/58-bookmark.png +0 -0
- data/templates/mobile/glyphish/mini-icons/59-flag.png +0 -0
- data/templates/mobile/glyphish/mini-icons/60-signpost.png +0 -0
- data/templates/mobile/glyphish/mini-icons/61-brightness.png +0 -0
- data/templates/mobile/glyphish/mini-icons/62-contrast.png +0 -0
- data/templates/mobile/glyphish/mini-icons/63-runner.png +0 -0
- data/templates/mobile/glyphish/mini-icons/64-zap.png +0 -0
- data/templates/mobile/glyphish/mini-icons/65-note.png +0 -0
- data/templates/mobile/glyphish/mini-icons/66-microphone.png +0 -0
- data/templates/mobile/glyphish/mini-icons/67-tshirt.png +0 -0
- data/templates/mobile/glyphish/mini-icons/68-paperclip.png +0 -0
- data/templates/mobile/glyphish/mini-icons/69-display.png +0 -0
- data/templates/mobile/glyphish/mini-icons/70-tv.png +0 -0
- data/templates/mobile/glyphish/mini-icons/71-compass.png +0 -0
- data/templates/mobile/glyphish/mini-icons/72-pin.png +0 -0
- data/templates/mobile/glyphish/mini-icons/73-radar.png +0 -0
- data/templates/mobile/glyphish/mini-icons/74-location.png +0 -0
- data/templates/mobile/glyphish/mini-icons/75-phone.png +0 -0
- data/templates/mobile/glyphish/mini-icons/76-baby.png +0 -0
- data/templates/mobile/glyphish/mini-icons/77-ekg.png +0 -0
- data/templates/mobile/glyphish/mini-icons/78-stopwatch.png +0 -0
- data/templates/mobile/glyphish/mini-icons/79-medical-bag.png +0 -0
- data/templates/mobile/glyphish/mini-icons/80-shopping-cart.png +0 -0
- data/templates/mobile/glyphish/mini-icons/81-dashboard.png +0 -0
- data/templates/mobile/glyphish/mini-icons/82-dogpaw.png +0 -0
- data/templates/mobile/glyphish/mini-icons/83-calendar.png +0 -0
- data/templates/mobile/glyphish/mini-icons/84-lightbulb.png +0 -0
- data/templates/mobile/glyphish/mini-icons/85-trophy.png +0 -0
- data/templates/mobile/glyphish/mini-icons/86-camera.png +0 -0
- data/templates/mobile/glyphish/mini-icons/87-wineglass.png +0 -0
- data/templates/mobile/glyphish/mini-icons/88-beermug.png +0 -0
- data/templates/mobile/glyphish/mini-icons/89-dumbbell.png +0 -0
- data/templates/mobile/glyphish/mini-icons/90-lifebuoy.png +0 -0
- data/templates/mobile/glyphish/mini-icons/91-beaker2.png +0 -0
- data/templates/mobile/glyphish/mini-icons/92-testtube.png +0 -0
- data/templates/mobile/glyphish/mini-icons/93-thermometer.png +0 -0
- data/templates/mobile/glyphish/mini-icons/94-pill.png +0 -0
- data/templates/mobile/glyphish/mini-icons/95-equalizer.png +0 -0
- data/templates/mobile/glyphish/mini-icons/96-book.png +0 -0
- data/templates/mobile/glyphish/mini-icons/97-puzzle.png +0 -0
- data/templates/mobile/glyphish/mini-icons/98-palette.png +0 -0
- data/templates/mobile/glyphish/mini-icons/99-umbrella.png +0 -0
- data/templates/mobile/jquery/mobile/_base.scss +0 -1325
- 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/default.scss +0 -742
- 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/jquery/mobile/valencia.scss +0 -804
- data/templates/mobile/jquery.mobile.js +0 -3390
- data/templates/mobile/jquery.mobile.min.js +0 -28
- data/templates/mobile/lib/tasks/jquery.mobile.rake +0 -106
- data/templates/mobile/manifest.rb +0 -307
- data/templates/secret_sauce/app/views/shared/_ui_form_error_messages.html.haml +0 -6
- data/templates/secret_sauce/app/views/shared/_ui_grid_for_without_block.js.haml +0 -144
- data/templates/secret_sauce/app/views/shared/_ui_static_dialog.html.haml +0 -6
- data/templates/secret_sauce/config/initializers/secret_sauce.rb +0 -8
- data/templates/secret_sauce/jquery/secret_sauce.scss +0 -33
- data/templates/secret_sauce/manifest.rb +0 -10
- data/templates/secret_sauce/secret_sauce.js +0 -12
- data/templates/secret_sauce/secret_sauce.min.js +0 -1
data/lib/jquery/jqgrid/jqgrid.rb
DELETED
@@ -1,438 +0,0 @@
|
|
1
|
-
module ActionView
|
2
|
-
module Helpers
|
3
|
-
|
4
|
-
def jqgrid_javascripts(locale)
|
5
|
-
js = capture { javascript_include_tag "i18n/jqgrid/locale-#{locale}.min" }
|
6
|
-
js << capture {javascript_tag "jQuery.jgrid.no_legacy_api = true;" }
|
7
|
-
js << capture { javascript_include_tag 'jquery.jqGrid.min' }
|
8
|
-
end
|
9
|
-
|
10
|
-
def jqgrid(title, id, action, columns = {},
|
11
|
-
options = {}, edit_options = "", add_options = "", del_options = "", search_options = "",
|
12
|
-
custom1_button = nil, custom2_button = nil, custom3_button = nil, custom4_button = nil, custom5_button = nil )
|
13
|
-
|
14
|
-
# Default options
|
15
|
-
options =
|
16
|
-
{
|
17
|
-
:rows_per_page => '10',
|
18
|
-
:sort_column => '',
|
19
|
-
:sort_order => '',
|
20
|
-
:height => '150',
|
21
|
-
:gridview => 'false',
|
22
|
-
:error_handler => 'null',
|
23
|
-
:inline_edit_handler => 'null',
|
24
|
-
:add => 'false',
|
25
|
-
:delete => 'false',
|
26
|
-
:search => 'true',
|
27
|
-
:edit => 'false',
|
28
|
-
:inline_edit => 'false',
|
29
|
-
:autowidth => 'false',
|
30
|
-
:hidegrid => 'false',
|
31
|
-
:rownumbers => 'false'
|
32
|
-
}.merge(options)
|
33
|
-
|
34
|
-
# Stringify options values
|
35
|
-
options.inject({}) do |options, (key, value)|
|
36
|
-
options[key] = (key != :subgrid) ? value.to_s : value
|
37
|
-
options
|
38
|
-
end
|
39
|
-
|
40
|
-
options[:error_handler_return_value] = (options[:error_handler] == 'null') ? 'true;' : options[:error_handler]
|
41
|
-
edit_button = (options[:edit] == 'true' && options[:inline_edit] == 'false').to_s
|
42
|
-
|
43
|
-
# Generate columns data
|
44
|
-
col_names, col_model = gen_columns(columns)
|
45
|
-
|
46
|
-
# Enable multi-selection (checkboxes)
|
47
|
-
multiselect = "multiselect: false,"
|
48
|
-
if options[:multi_selection]
|
49
|
-
multiselect = "multiselect: true,"
|
50
|
-
multihandler = %Q/
|
51
|
-
jQuery("##{id}_select_button").click( function() {
|
52
|
-
var s; s = jQuery("##{id}").jqGrid('getGridParam', 'selarrrow');
|
53
|
-
#{options[:selection_handler]}(s);
|
54
|
-
return false;
|
55
|
-
});/
|
56
|
-
end
|
57
|
-
|
58
|
-
# Enable master-details
|
59
|
-
masterdetails = ""
|
60
|
-
if options[:master_details]
|
61
|
-
masterdetails = %Q/
|
62
|
-
onSelectRow: function(ids) {
|
63
|
-
if(ids == null) {
|
64
|
-
ids=0;
|
65
|
-
if(jQuery("##{id}_details").jqGrid('getGridParam', 'records') >0 )
|
66
|
-
{
|
67
|
-
jQuery("##{id}_details").jqGrid('setGridParam', {url:"#{options[:details_url]}?q=1&id="+ids,page:1})
|
68
|
-
jQuery("##{id}_details").jqGrid('setCaption', "#{options[:details_caption]}: "+ids)
|
69
|
-
jQuery("##{id}_details").trigger('reloadGrid');
|
70
|
-
}
|
71
|
-
}
|
72
|
-
else
|
73
|
-
{
|
74
|
-
jQuery("##{id}_details").jqGrid('setGridParam', {url:"#{options[:details_url]}?q=1&id="+ids,page:1})
|
75
|
-
jQuery("##{id}_details").jqGrid('setCaption', "#{options[:details_caption]} : "+ids)
|
76
|
-
jQuery("##{id}_details").trigger('reloadGrid');
|
77
|
-
}
|
78
|
-
},/
|
79
|
-
end
|
80
|
-
|
81
|
-
# Enable selection link, button
|
82
|
-
# The javascript function created by the user (options[:selection_handler]) will be called with the selected row id as a parameter
|
83
|
-
selection_link = ""
|
84
|
-
if options[:direct_selection].blank? && options[:selection_handler].present? && options[:multi_selection].blank?
|
85
|
-
selection_link = %Q/
|
86
|
-
jQuery("##{id}_select_button").click( function(){
|
87
|
-
var id = jQuery("##{id}").jqGrid('getGridParam', 'selrow');
|
88
|
-
if (id) {
|
89
|
-
#{options[:selection_handler]}(id);
|
90
|
-
} else {
|
91
|
-
alert("Please select a row");
|
92
|
-
}
|
93
|
-
return false;
|
94
|
-
});/
|
95
|
-
end
|
96
|
-
|
97
|
-
# Enable direct selection (when a row in the table is clicked)
|
98
|
-
# The javascript function created by the user (options[:selection_handler]) will be called with the selected row id as a parameter
|
99
|
-
direct_link = ""
|
100
|
-
if options[:direct_selection] && options[:selection_handler].present? && options[:multi_selection].blank?
|
101
|
-
direct_link = %Q/
|
102
|
-
onSelectRow: function(id){
|
103
|
-
if(id){
|
104
|
-
#{options[:selection_handler]}(id);
|
105
|
-
}
|
106
|
-
},/
|
107
|
-
end
|
108
|
-
|
109
|
-
# Enable grid_loaded callback
|
110
|
-
# When data are loaded into the grid, call the Javascript function options[:grid_loaded] (defined by the user)
|
111
|
-
grid_loaded = ""
|
112
|
-
if options[:grid_loaded].present?
|
113
|
-
grid_loaded = %Q/
|
114
|
-
loadComplete: function(){
|
115
|
-
#{options[:grid_loaded]}();
|
116
|
-
},
|
117
|
-
/
|
118
|
-
end
|
119
|
-
|
120
|
-
# Enable inline editing
|
121
|
-
# When a row is selected, all fields are transformed to input types
|
122
|
-
editable = ""
|
123
|
-
if options[:edit] && options[:inline_edit] == 'true'
|
124
|
-
editable = %Q/
|
125
|
-
onSelectRow: function(id){
|
126
|
-
if(id && id!==lastsel){
|
127
|
-
jQuery('##{id}').jqGrid('restoreRow', lastsel);
|
128
|
-
jQuery('##{id}').jqGrid('editRow', id, true, #{options[:inline_edit_handler]}, #{options[:error_handler]});
|
129
|
-
lastsel=id;
|
130
|
-
}
|
131
|
-
},/
|
132
|
-
end
|
133
|
-
|
134
|
-
# Enable subgrids
|
135
|
-
subgrid = ""
|
136
|
-
subgrid_enabled = "subGrid:false,"
|
137
|
-
|
138
|
-
if options[:subgrid].present?
|
139
|
-
|
140
|
-
subgrid_enabled = "subGrid:true,"
|
141
|
-
|
142
|
-
options[:subgrid] =
|
143
|
-
{
|
144
|
-
:rows_per_page => '10',
|
145
|
-
:sort_column => 'id',
|
146
|
-
:sort_order => 'asc',
|
147
|
-
:add => 'false',
|
148
|
-
:edit => 'false',
|
149
|
-
:delete => 'false',
|
150
|
-
:search => 'false'
|
151
|
-
}.merge(options[:subgrid])
|
152
|
-
|
153
|
-
# Stringify options values
|
154
|
-
options[:subgrid].inject({}) do |suboptions, (key, value)|
|
155
|
-
suboptions[key] = value.to_s
|
156
|
-
suboptions
|
157
|
-
end
|
158
|
-
|
159
|
-
subgrid_inline_edit = ""
|
160
|
-
if options[:subgrid][:inline_edit] == true
|
161
|
-
options[:subgrid][:edit] = 'false'
|
162
|
-
subgrid_inline_edit = %Q/
|
163
|
-
onSelectRow: function(id){
|
164
|
-
if(id && id!==lastsel){
|
165
|
-
jQuery('#'+subgrid_table_id).jqGrid('restoreRow', lastsel);
|
166
|
-
jQuery('#'+subgrid_table_id).jqGrid('editRow', id,true);
|
167
|
-
lastsel=id;
|
168
|
-
}
|
169
|
-
},
|
170
|
-
/
|
171
|
-
end
|
172
|
-
|
173
|
-
if options[:subgrid][:direct_selection] && options[:subgrid][:selection_handler].present?
|
174
|
-
subgrid_direct_link = %Q/
|
175
|
-
onSelectRow: function(id){
|
176
|
-
if(id){
|
177
|
-
#{options[:subgrid][:selection_handler]}(id);
|
178
|
-
}
|
179
|
-
},
|
180
|
-
/
|
181
|
-
end
|
182
|
-
|
183
|
-
sub_col_names, sub_col_model = gen_columns(options[:subgrid][:columns])
|
184
|
-
|
185
|
-
subgrid = %Q(
|
186
|
-
subGridRowExpanded: function(subgrid_id, row_id) {
|
187
|
-
var subgrid_table_id, pager_id;
|
188
|
-
subgrid_table_id = subgrid_id+"_t";
|
189
|
-
pager_id = "p_"+subgrid_table_id;
|
190
|
-
$("#"+subgrid_id).html("<table id='"+subgrid_table_id+"' class='scroll'></table><div id='"+pager_id+"' class='scroll'></div>");
|
191
|
-
jQuery("#"+subgrid_table_id).jqGrid({
|
192
|
-
url:"#{options[:subgrid][:url]}?q=2&id="+row_id,
|
193
|
-
editurl:'#{options[:subgrid][:edit_url]}?parent_id='+row_id,
|
194
|
-
datatype: "json",
|
195
|
-
colNames: #{sub_col_names},
|
196
|
-
colModel: #{sub_col_model},
|
197
|
-
rowNum:#{options[:subgrid][:rows_per_page]},
|
198
|
-
pager: pager_id,
|
199
|
-
sortname: '#{options[:subgrid][:sort_column]}',
|
200
|
-
sortorder: '#{options[:subgrid][:sort_order]}',
|
201
|
-
viewrecords: true,
|
202
|
-
//toolbar : [true,"top"],
|
203
|
-
#{subgrid_inline_edit}
|
204
|
-
#{subgrid_direct_link}
|
205
|
-
height: '100%'
|
206
|
-
});
|
207
|
-
jQuery("#"+subgrid_table_id).jqGrid('navGrid', "#"+pager_id,{edit:#{options[:subgrid][:edit]},add:#{options[:subgrid][:add]},del:#{options[:subgrid][:delete]},search:false})
|
208
|
-
jQuery("#"+subgrid_table_id).jqGrid('navButtonAdd', "#"+pager_id,{caption:"Search",title:"Toggle Search",buttonimg:'/images/jqgrid/search.png',
|
209
|
-
onClickButton:function(){
|
210
|
-
if(jQuery("#t_"+subgrid_table_id).css("display")=="none") {
|
211
|
-
jQuery("#t_"+subgrid_table_id).css("display","");
|
212
|
-
} else {
|
213
|
-
jQuery("#t_"+subgrid_table_id).css("display","none");
|
214
|
-
}
|
215
|
-
}
|
216
|
-
});
|
217
|
-
jQuery("#t_"+subgrid_table_id).height(25).hide().jqGrid('filterGrid', ""+subgrid_table_id,{gridModel:true,gridToolbar:true});
|
218
|
-
},
|
219
|
-
subGridRowColapsed: function(subgrid_id, row_id) {
|
220
|
-
},
|
221
|
-
)
|
222
|
-
end
|
223
|
-
|
224
|
-
# Generate required Javascript & html to create the jqgrid
|
225
|
-
%Q(
|
226
|
-
<script type="text/javascript">
|
227
|
-
var lastsel;
|
228
|
-
jQuery(document).ready(function(){
|
229
|
-
jQuery("##{id}").jqGrid({
|
230
|
-
url:'#{action}?q=1',
|
231
|
-
height: "#{options[:height]}",
|
232
|
-
// page: 1,
|
233
|
-
rowNum:#{options[:rows_per_page]},
|
234
|
-
// records: 0,
|
235
|
-
pager: '##{id}_pager',
|
236
|
-
// pgbuttons: true,
|
237
|
-
// pginput: true,
|
238
|
-
colModel:#{col_model},
|
239
|
-
rowList:[10,25,50,100],
|
240
|
-
colNames:#{col_names},
|
241
|
-
sortorder: '#{options[:sort_order]}',
|
242
|
-
sortname: '#{options[:sort_column]}',
|
243
|
-
datatype: "json",
|
244
|
-
// mtype: "GET",
|
245
|
-
// altRows: false,
|
246
|
-
// selarrrow: [],
|
247
|
-
// savedRow: [],
|
248
|
-
// shrinkToFit: true,
|
249
|
-
// xmlReader: {},
|
250
|
-
// jsonReader: {},
|
251
|
-
// subGrid: false,
|
252
|
-
// subGridModel :[],
|
253
|
-
// reccount: 0,
|
254
|
-
// lastpage: 0,
|
255
|
-
// lastsort: 0,
|
256
|
-
// selrow: null,
|
257
|
-
// beforeSelectRow: null,
|
258
|
-
// onSelectRow: null,
|
259
|
-
// onSortCol: null,
|
260
|
-
// ondblClickRow: null,
|
261
|
-
// onRightClickRow: null,
|
262
|
-
// onPaging: null,
|
263
|
-
// onSelectAll: null,
|
264
|
-
// loadComplete: null,
|
265
|
-
// gridComplete: null,
|
266
|
-
// loadError: null,
|
267
|
-
// loadBeforeSend: null,
|
268
|
-
// afterInsertRow: null,
|
269
|
-
// beforeRequest: null,
|
270
|
-
// onHeaderClick: null,
|
271
|
-
viewrecords: true,
|
272
|
-
// loadonce: false,
|
273
|
-
// multikey: false,
|
274
|
-
editurl:'#{options[:edit_url]}',
|
275
|
-
// search: false,
|
276
|
-
caption: "#{title}",
|
277
|
-
hidegrid: #{options[:hidegrid]},
|
278
|
-
// hiddengrid: false,
|
279
|
-
// postData: {},
|
280
|
-
// userData: {},
|
281
|
-
// treeGrid : false,
|
282
|
-
// treeGridModel : 'nested',
|
283
|
-
// treeReader : {},
|
284
|
-
// treeANode : -1,
|
285
|
-
// ExpandColumn: null,
|
286
|
-
// tree_root_level : 0,
|
287
|
-
// prmNames: {page:"page",rows:"rows", sort: "sidx",order: "sord", search:"_search", nd:"nd", id:"id",oper:"oper",editoper:"edit",addoper:"add",deloper:"del"},
|
288
|
-
// forceFit : false,
|
289
|
-
// gridstate : "visible",
|
290
|
-
// cellEdit: false,
|
291
|
-
// cellsubmit: "remote",
|
292
|
-
// nv:0,
|
293
|
-
// loadui: "enable",
|
294
|
-
// toolbar: [false,""],
|
295
|
-
// scroll: false,
|
296
|
-
// multiboxonly : false,
|
297
|
-
// deselectAfterSort : true,
|
298
|
-
scrollrows: true,
|
299
|
-
autowidth: #{options[:autowidth]},
|
300
|
-
// scrollOffset :18,
|
301
|
-
// cellLayout: 5,
|
302
|
-
// subGridWidth: 20,
|
303
|
-
// multiselectWidth: 20,
|
304
|
-
gridview: #{options[:gridview]},
|
305
|
-
// rownumWidth: 25,
|
306
|
-
rownumbers: #{options[:rownumbers]},
|
307
|
-
// pagerpos: 'center',
|
308
|
-
// recordpos: 'right',
|
309
|
-
// footerrow : false,
|
310
|
-
// userDataOnFooter : false,
|
311
|
-
// hoverrows : true,
|
312
|
-
// altclass : 'ui-priority-secondary',
|
313
|
-
// viewsortcols : [false,'vertical',true],
|
314
|
-
// resizeclass : '',
|
315
|
-
// autoencode : false,
|
316
|
-
// remapColumns : [],
|
317
|
-
// ajaxGridOptions :{},
|
318
|
-
// direction : "ltr",
|
319
|
-
#{multiselect}
|
320
|
-
#{masterdetails}
|
321
|
-
#{grid_loaded}
|
322
|
-
#{direct_link}
|
323
|
-
#{editable}
|
324
|
-
#{subgrid_enabled}
|
325
|
-
#{subgrid}
|
326
|
-
// toppager: false,
|
327
|
-
// headertitles: false
|
328
|
-
});
|
329
|
-
jQuery("##{id}").jqGrid('navGrid', '##{id}_pager',
|
330
|
-
{edit:#{edit_button},add:#{options[:add]},del:#{options[:delete]},search:#{options[:search]},refresh:true},
|
331
|
-
{afterSubmit:function(r,data){return #{options[:error_handler_return_value]}(r,data,'edit');}},
|
332
|
-
{afterSubmit:function(r,data){return #{options[:error_handler_return_value]}(r,data,'add');}},
|
333
|
-
{afterSubmit:function(r,data){return #{options[:error_handler_return_value]}(r,data,'delete');}},
|
334
|
-
{#{search_options}}
|
335
|
-
);
|
336
|
-
#{multihandler}
|
337
|
-
#{selection_link}
|
338
|
-
});
|
339
|
-
</script>
|
340
|
-
)
|
341
|
-
end
|
342
|
-
|
343
|
-
private
|
344
|
-
|
345
|
-
def gen_columns(columns)
|
346
|
-
# Generate columns data
|
347
|
-
col_names = "[" # Labels
|
348
|
-
col_model = "[" # Options
|
349
|
-
columns.each do |c|
|
350
|
-
col_names << "'#{c[:label]}',"
|
351
|
-
col_model << "{name:'#{c[:field]}', index:'#{c[:field]}'#{get_attributes(c)}},"
|
352
|
-
end
|
353
|
-
col_names.chop! << "]"
|
354
|
-
col_model.chop! << "]"
|
355
|
-
[col_names, col_model]
|
356
|
-
end
|
357
|
-
|
358
|
-
# Generate a list of attributes for related column (align:'right', sortable:true, resizable:false, ...)
|
359
|
-
def get_attributes(column)
|
360
|
-
options = ","
|
361
|
-
column.except(:field, :label).each do |couple|
|
362
|
-
if couple[0] == :editoptions
|
363
|
-
options << "editoptions:#{get_sub_options(couple[1])},"
|
364
|
-
elsif couple[0] == :formoptions
|
365
|
-
options << "formoptions:#{get_sub_options(couple[1])},"
|
366
|
-
elsif couple[0] == :searchoptions
|
367
|
-
options << "searchoptions:#{get_sub_options(couple[1])},"
|
368
|
-
elsif couple[0] == :editrules
|
369
|
-
options << "editrules:#{get_sub_options(couple[1])},"
|
370
|
-
else
|
371
|
-
if couple[1].class == String
|
372
|
-
options << "#{couple[0]}:'#{couple[1]}',"
|
373
|
-
else
|
374
|
-
options << "#{couple[0]}:#{couple[1]},"
|
375
|
-
end
|
376
|
-
end
|
377
|
-
end
|
378
|
-
options.chop!
|
379
|
-
end
|
380
|
-
|
381
|
-
# Generate options for editable fields (value, data, width, maxvalue, cols, rows, ...)
|
382
|
-
def get_sub_options(editoptions)
|
383
|
-
options = "{"
|
384
|
-
editoptions.each do |couple|
|
385
|
-
if couple[0] == :value # :value => [[1, "Rails"], [2, "Ruby"], [3, "jQuery"]]
|
386
|
-
options << %Q/value:"/
|
387
|
-
couple[1].each do |v|
|
388
|
-
options << "#{v[0]}:#{v[1]};"
|
389
|
-
end
|
390
|
-
options.chop! << %Q/",/
|
391
|
-
elsif couple[0] == :data # :data => [Category.all, :id, :title])
|
392
|
-
options << %Q/value:"/
|
393
|
-
couple[1].first.each do |obj|
|
394
|
-
options << "%s:%s;" % [obj.send(couple[1].second), obj.send(couple[1].third)]
|
395
|
-
end
|
396
|
-
options.chop! << %Q/",/
|
397
|
-
else # :size => 30, :rows => 5, :maxlength => 20, ...
|
398
|
-
if couple[1].instance_of?(Fixnum) || couple[1] == 'true' || couple[1] == 'false' || couple[1] == true || couple[1] == false
|
399
|
-
options << %Q/#{couple[0]}:#{couple[1]},/
|
400
|
-
else
|
401
|
-
options << %Q/#{couple[0]}:"#{couple[1]}",/
|
402
|
-
end
|
403
|
-
end
|
404
|
-
end
|
405
|
-
options.chop! << "}"
|
406
|
-
end
|
407
|
-
end
|
408
|
-
end
|
409
|
-
|
410
|
-
module JqgridJson
|
411
|
-
include ActionView::Helpers::JavaScriptHelper
|
412
|
-
include HandleAttributes
|
413
|
-
|
414
|
-
def to_jqgrid_json(attributes, current_page, per_page, total)
|
415
|
-
json = %Q({"page":"#{current_page}","total":#{total/per_page.to_i+1},"records":"#{total}")
|
416
|
-
if total > 0
|
417
|
-
json << %Q(,"rows":[)
|
418
|
-
each do |elem|
|
419
|
-
elem.id ||= index(elem)
|
420
|
-
json << %Q({"id":"#{elem.id}","cell":[)
|
421
|
-
couples = elem.attributes.symbolize_keys
|
422
|
-
attributes.each do |atr|
|
423
|
-
value = get_atr_value(elem, atr, couples)
|
424
|
-
value = escape_javascript(value) if value and value.is_a? String
|
425
|
-
json << %Q("#{value}",)
|
426
|
-
end
|
427
|
-
json.chop! << "]},"
|
428
|
-
end
|
429
|
-
json.chop! << "]}"
|
430
|
-
else
|
431
|
-
json << "}"
|
432
|
-
end
|
433
|
-
end
|
434
|
-
end
|
435
|
-
|
436
|
-
class Array
|
437
|
-
include JqgridJson
|
438
|
-
end
|
data/lib/jquery/jqgrid.rb
DELETED
data/lib/jquery/mobile.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
module ActionController
|
2
|
-
class Base
|
3
|
-
|
4
|
-
def render_refresh_grid
|
5
|
-
render :js => refresh_grid("#{params[:controller]}_table")
|
6
|
-
end
|
7
|
-
|
8
|
-
def render_close_dialog_and_refresh_grid
|
9
|
-
render :js => close_dialog("#{params["controller"]}_#{params["action"]}_dialog")+refresh_grid("#{params[:controller]}_table")
|
10
|
-
end
|
11
|
-
|
12
|
-
private
|
13
|
-
|
14
|
-
def refresh_grid(grid_id)
|
15
|
-
"jQuery('##{grid_id}').trigger('reloadGrid');"
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
@@ -1,118 +0,0 @@
|
|
1
|
-
module SecretSauce
|
2
|
-
module Helpers
|
3
|
-
module UiFormHelper
|
4
|
-
class UiFormBuilder < ActionView::Helpers::FormBuilder
|
5
|
-
|
6
|
-
def submit(value, options={})
|
7
|
-
options = {:id => "#{object_name}_submit"}.merge(options)
|
8
|
-
@template.instance_variable_set("@ui_form_submit", [value, options])
|
9
|
-
nil
|
10
|
-
end
|
11
|
-
|
12
|
-
def error_messages
|
13
|
-
@template.error_messages_for(object_name)
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
# renders a jquery-ui templated static dialog box (cannot be resized or moved, appears on base z-index)
|
18
|
-
# to be used for things like forms
|
19
|
-
def ui_static_dialog(options={}, &block)
|
20
|
-
body = capture(&block)
|
21
|
-
concat(ui_static_dialog_tags(options))
|
22
|
-
body
|
23
|
-
concat(%q{
|
24
|
-
</div>
|
25
|
-
</div>
|
26
|
-
</div>
|
27
|
-
})
|
28
|
-
end
|
29
|
-
|
30
|
-
# flat tags for static dialog
|
31
|
-
def ui_static_dialog_tags(options={})
|
32
|
-
options[:width] = 100 unless options[:width]
|
33
|
-
options[:height] = 100 unless options[:height]
|
34
|
-
options[:title] = "Dialog" unless options[:title]
|
35
|
-
options[:parent] = '' unless options[:parent]
|
36
|
-
options[:style] = "width: #{options[:width]}px;"
|
37
|
-
if options[:center]
|
38
|
-
options[:parent] = "width: 100%;"
|
39
|
-
options[:style] << " margin-left: auto; margin-right: auto;"
|
40
|
-
end
|
41
|
-
render :partial => 'shared/ui_static_dialog', :locals => options
|
42
|
-
end
|
43
|
-
|
44
|
-
# builds a form within a ui_static_dialog using UiFormBuilder in this case we are using a
|
45
|
-
# custom version of form_for instead of the original to wrap jquery-ui components inside
|
46
|
-
# of the form
|
47
|
-
def ui_form_for(record_or_name_or_array, *args, &proc)
|
48
|
-
raise ArgumentError, "Missing block" unless block_given?
|
49
|
-
|
50
|
-
if params[:layout] == "dialog"
|
51
|
-
return form_for(record_or_name_or_array, *args, &proc)
|
52
|
-
else
|
53
|
-
options = args.extract_options!
|
54
|
-
options[:builder] = UiFormBuilder
|
55
|
-
|
56
|
-
if !options[:submit]
|
57
|
-
options[:submit] = {:value => "Save Changes", :options => {}}
|
58
|
-
else
|
59
|
-
options[:submit][:value] = "Save Changes" if !options[:submit][:value]
|
60
|
-
options[:submit][:options] = {} if !options[:submit][:options]
|
61
|
-
end
|
62
|
-
|
63
|
-
case record_or_name_or_array
|
64
|
-
when String, Symbol
|
65
|
-
object_name = record_or_name_or_array
|
66
|
-
when Array
|
67
|
-
object = record_or_name_or_array.last
|
68
|
-
object_name = ActionController::RecordIdentifier.singular_class_name(object)
|
69
|
-
apply_form_for_options!(record_or_name_or_array, options)
|
70
|
-
args.unshift object
|
71
|
-
else
|
72
|
-
object = record_or_name_or_array
|
73
|
-
object_name = ActionController::RecordIdentifier.singular_class_name(object)
|
74
|
-
apply_form_for_options!([object], options)
|
75
|
-
args.unshift object
|
76
|
-
end
|
77
|
-
concat("<div id='#{object_name}_form_container'>")
|
78
|
-
concat(form_tag(options.delete(:url) || {}, options.delete(:html) || {}))
|
79
|
-
concat(ui_static_dialog_tags(options[:dialog_options]))
|
80
|
-
fields_for(object_name, *(args << options), &proc)
|
81
|
-
concat(%Q{
|
82
|
-
</div>
|
83
|
-
<div class="ui-dialog-buttonpane ui-widget-content ui-helper-clearfix">
|
84
|
-
#{ui_submit_tag(@ui_form_submit[0], @ui_form_submit[1]) if @ui_form_submit}
|
85
|
-
</div>
|
86
|
-
</div>
|
87
|
-
</div>
|
88
|
-
</form>
|
89
|
-
</div>})
|
90
|
-
end
|
91
|
-
end
|
92
|
-
|
93
|
-
# render a button pane
|
94
|
-
def ui_button_pane(&block)
|
95
|
-
body = capture(&block)
|
96
|
-
concat("<div class='ui-dialog-buttonpane ui-widget-content ui-helper-clearfix'>")
|
97
|
-
body
|
98
|
-
concat("</div>")
|
99
|
-
end
|
100
|
-
|
101
|
-
# render a submit tag themed with jquery ui
|
102
|
-
def ui_submit_tag(value = "Save changes", options = {})
|
103
|
-
if options[:class]
|
104
|
-
options[:class] << " ui-state-default ui-corner-all"
|
105
|
-
else
|
106
|
-
options[:class] = "ui-state-default ui-corner-all"
|
107
|
-
end
|
108
|
-
submit_tag(value, options)
|
109
|
-
end
|
110
|
-
|
111
|
-
def error_messages_for(*params)
|
112
|
-
render :partial => "shared/ui_form_error_messages", :locals => {:messages => super(*params) }
|
113
|
-
end
|
114
|
-
end
|
115
|
-
end
|
116
|
-
end
|
117
|
-
|
118
|
-
|