compass-jquery-plugin 0.3.0.0 → 0.3.1.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +69 -13
- data/Rakefile +1 -1
- data/VERSION.yml +2 -2
- data/gem_tasks/jqgrid.rake +119 -0
- data/gem_tasks/jrails.rake +78 -77
- data/gem_tasks/mobile.rake +156 -0
- data/gem_tasks/rubygems.rake +5 -1
- data/gem_tasks/secret_sauce.rake +64 -0
- data/lib/jquery/gridify.rb +42 -0
- data/lib/jquery/gridify/assertions.rb +37 -0
- data/lib/jquery/gridify/grid.rb +210 -0
- data/lib/jquery/gridify/grid_column.rb +134 -0
- data/lib/jquery/gridify/grid_finder.rb +223 -0
- data/lib/jquery/gridify/grid_options.rb +279 -0
- data/lib/jquery/gridify/grid_view.rb +435 -0
- data/lib/jquery/jqgrid.rb +5 -0
- data/lib/jquery/jqgrid/jqgrid.rb +438 -0
- data/lib/jquery/mobile.rb +3 -0
- data/lib/jquery/secret_sauce.rb +9 -0
- data/lib/jquery/secret_sauce/controller/ui_dialog_controls.rb +14 -0
- data/lib/jquery/secret_sauce/controller/ui_grid_controls.rb +18 -0
- data/lib/jquery/secret_sauce/helpers/ui_dialog_helper.rb +6 -0
- data/lib/jquery/secret_sauce/helpers/ui_form_helper.rb +118 -0
- data/lib/jquery/secret_sauce/helpers/ui_grid_helper.rb +226 -0
- data/lib/jquery/secret_sauce/model/find_for_grid.rb +42 -0
- data/templates/dynatree/jquery.dynatree.js +258 -147
- data/templates/dynatree/jquery.dynatree.min.js +81 -79
- data/templates/dynatree/jquery/dynatree/aero.scss +35 -18
- data/templates/dynatree/jquery/dynatree/aero/drop_sibling_here.png +0 -0
- data/templates/dynatree/jquery/dynatree/aqua.scss +36 -19
- data/templates/dynatree/jquery/dynatree/aqua/drop_sibling_here.png +0 -0
- data/templates/dynatree/jquery/dynatree/crystal.scss +38 -21
- data/templates/dynatree/jquery/dynatree/crystal/drop_sibling_here.png +0 -0
- data/templates/dynatree/jquery/dynatree/xp.scss +59 -42
- data/templates/dynatree/jquery/dynatree/xp/drop_sibling_here.png +0 -0
- data/templates/dynatree/manifest.rb +4 -0
- data/templates/jqgrid/config/initializers/jqgrid.rb +4 -0
- data/templates/jqgrid/config/locales/jquery/jqgrid/de.yml +7 -0
- data/templates/jqgrid/config/locales/jquery/jqgrid/en.yml +7 -0
- data/templates/jqgrid/i18n/jqgrid/locale-bg.js +132 -0
- data/templates/jqgrid/i18n/jqgrid/locale-bg.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-bg1251.js +132 -0
- data/templates/jqgrid/i18n/jqgrid/locale-bg1251.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-cat.js +128 -0
- data/templates/jqgrid/i18n/jqgrid/locale-cat.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-cn.js +132 -0
- data/templates/jqgrid/i18n/jqgrid/locale-cn.min.js +5 -0
- data/templates/jqgrid/i18n/jqgrid/locale-cs.js +128 -0
- data/templates/jqgrid/i18n/jqgrid/locale-cs.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-da.js +128 -0
- data/templates/jqgrid/i18n/jqgrid/locale-da.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-de.js +133 -0
- data/templates/jqgrid/i18n/jqgrid/locale-de.min.js +7 -0
- data/templates/jqgrid/i18n/jqgrid/locale-el.js +126 -0
- data/templates/jqgrid/i18n/jqgrid/locale-el.min.js +7 -0
- data/templates/jqgrid/i18n/jqgrid/locale-en.js +128 -0
- data/templates/jqgrid/i18n/jqgrid/locale-en.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-es.js +128 -0
- data/templates/jqgrid/i18n/jqgrid/locale-es.min.js +7 -0
- data/templates/jqgrid/i18n/jqgrid/locale-fa.js +125 -0
- data/templates/jqgrid/i18n/jqgrid/locale-fa.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-fi.js +130 -0
- data/templates/jqgrid/i18n/jqgrid/locale-fi.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-fr.js +126 -0
- data/templates/jqgrid/i18n/jqgrid/locale-fr.min.js +7 -0
- data/templates/jqgrid/i18n/jqgrid/locale-gl.js +126 -0
- data/templates/jqgrid/i18n/jqgrid/locale-gl.min.js +7 -0
- data/templates/jqgrid/i18n/jqgrid/locale-he.js +127 -0
- data/templates/jqgrid/i18n/jqgrid/locale-he.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-hu.js +129 -0
- data/templates/jqgrid/i18n/jqgrid/locale-hu.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-is.js +126 -0
- data/templates/jqgrid/i18n/jqgrid/locale-is.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-it.js +1 -0
- data/templates/jqgrid/i18n/jqgrid/locale-it.min.js +7 -0
- data/templates/jqgrid/i18n/jqgrid/locale-ja.js +155 -0
- data/templates/jqgrid/i18n/jqgrid/locale-ja.min.js +5 -0
- data/templates/jqgrid/i18n/jqgrid/locale-nl.js +149 -0
- data/templates/jqgrid/i18n/jqgrid/locale-nl.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-no.js +1 -0
- data/templates/jqgrid/i18n/jqgrid/locale-no.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-pl.js +127 -0
- data/templates/jqgrid/i18n/jqgrid/locale-pl.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-pt-br.js +127 -0
- data/templates/jqgrid/i18n/jqgrid/locale-pt-br.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-pt.js +125 -0
- data/templates/jqgrid/i18n/jqgrid/locale-pt.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-ro.js +139 -0
- data/templates/jqgrid/i18n/jqgrid/locale-ro.min.js +7 -0
- data/templates/jqgrid/i18n/jqgrid/locale-ru.js +127 -0
- data/templates/jqgrid/i18n/jqgrid/locale-ru.min.js +7 -0
- data/templates/jqgrid/i18n/jqgrid/locale-sk.js +127 -0
- data/templates/jqgrid/i18n/jqgrid/locale-sk.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-sr.js +128 -0
- data/templates/jqgrid/i18n/jqgrid/locale-sr.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-sv.js +127 -0
- data/templates/jqgrid/i18n/jqgrid/locale-sv.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-tr.js +126 -0
- data/templates/jqgrid/i18n/jqgrid/locale-tr.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-ua.js +127 -0
- data/templates/jqgrid/i18n/jqgrid/locale-ua.min.js +7 -0
- data/templates/jqgrid/jquery.jqGrid.js +11604 -0
- data/templates/jqgrid/jquery.jqGrid.min.js +472 -0
- data/templates/jqgrid/jquery/jqGrid.scss +692 -0
- data/templates/jqgrid/manifest.rb +72 -0
- data/templates/jqgrid/public/stylesheets/ellipsis-xbl.xml +13 -0
- data/templates/jqtouch/jquery/touch/apple.scss +5 -5
- data/templates/jqtouch/jquery/touch/default.scss +5 -5
- data/templates/jqtouch/jquery/touch/jqt.scss +5 -5
- data/templates/jrails/config/initializers/jrails.rb +3 -0
- data/templates/jrails/jquery-ui.js +45 -62
- data/templates/jrails/jquery-ui.min.js +22 -22
- data/templates/jrails/jquery.js +340 -206
- data/templates/jrails/jquery.min.js +152 -151
- data/templates/jrails/jquery.tmpl.js +489 -0
- data/templates/jrails/jquery.tmpl.min.js +12 -0
- data/templates/jrails/jquery.tmplPlus.js +98 -0
- data/templates/jrails/jquery.tmplPlus.min.js +3 -0
- data/templates/jrails/jquery/ui/_theme.scss +3 -1
- data/templates/jrails/manifest.rb +4 -0
- data/templates/jstree/jquery.jstree.js +4479 -4468
- data/templates/jstree/jquery.jstree.min.js +4 -3
- data/templates/mobile/config/initializers/mobile.rb +6 -0
- data/templates/mobile/glyphish/Read me first - license.txt +14 -0
- data/templates/mobile/glyphish/icons-black/01-refresh.png +0 -0
- data/templates/mobile/glyphish/icons-black/02-redo.png +0 -0
- data/templates/mobile/glyphish/icons-black/03-loopback.png +0 -0
- data/templates/mobile/glyphish/icons-black/04-squiggle.png +0 -0
- data/templates/mobile/glyphish/icons-black/05-shuffle.png +0 -0
- data/templates/mobile/glyphish/icons-black/06-magnifying-glass.png +0 -0
- data/templates/mobile/glyphish/icons-black/07-map-marker.png +0 -0
- data/templates/mobile/glyphish/icons-black/08-chat.png +0 -0
- data/templates/mobile/glyphish/icons-black/09-chat2.png +0 -0
- data/templates/mobile/glyphish/icons-black/10-medical.png +0 -0
- data/templates/mobile/glyphish/icons-black/100-coffee.png +0 -0
- data/templates/mobile/glyphish/icons-black/101-gameplan.png +0 -0
- data/templates/mobile/glyphish/icons-black/102-walk.png +0 -0
- data/templates/mobile/glyphish/icons-black/103-map.png +0 -0
- data/templates/mobile/glyphish/icons-black/104-index-cards.png +0 -0
- data/templates/mobile/glyphish/icons-black/105-piano.png +0 -0
- data/templates/mobile/glyphish/icons-black/106-sliders.png +0 -0
- data/templates/mobile/glyphish/icons-black/107-widescreen.png +0 -0
- data/templates/mobile/glyphish/icons-black/108-badge.png +0 -0
- data/templates/mobile/glyphish/icons-black/109-chicken.png +0 -0
- data/templates/mobile/glyphish/icons-black/11-clock.png +0 -0
- data/templates/mobile/glyphish/icons-black/110-bug.png +0 -0
- data/templates/mobile/glyphish/icons-black/111-user.png +0 -0
- data/templates/mobile/glyphish/icons-black/112-group.png +0 -0
- data/templates/mobile/glyphish/icons-black/113-navigation.png +0 -0
- data/templates/mobile/glyphish/icons-black/114-balloon.png +0 -0
- data/templates/mobile/glyphish/icons-black/115-bow-and-arrow.png +0 -0
- data/templates/mobile/glyphish/icons-black/116-controller.png +0 -0
- data/templates/mobile/glyphish/icons-black/117-todo.png +0 -0
- data/templates/mobile/glyphish/icons-black/118-coathanger.png +0 -0
- data/templates/mobile/glyphish/icons-black/119-piggybank.png +0 -0
- data/templates/mobile/glyphish/icons-black/12-eye.png +0 -0
- data/templates/mobile/glyphish/icons-black/120-headphones.png +0 -0
- data/templates/mobile/glyphish/icons-black/121-lanscape.png +0 -0
- data/templates/mobile/glyphish/icons-black/122-stats.png +0 -0
- data/templates/mobile/glyphish/icons-black/123-id-card.png +0 -0
- data/templates/mobile/glyphish/icons-black/124-bullhorn.png +0 -0
- data/templates/mobile/glyphish/icons-black/125-food.png +0 -0
- data/templates/mobile/glyphish/icons-black/126-moon.png +0 -0
- data/templates/mobile/glyphish/icons-black/127-sock.png +0 -0
- data/templates/mobile/glyphish/icons-black/128-bone.png +0 -0
- data/templates/mobile/glyphish/icons-black/129-golf.png +0 -0
- data/templates/mobile/glyphish/icons-black/13-target.png +0 -0
- data/templates/mobile/glyphish/icons-black/130-dice.png +0 -0
- data/templates/mobile/glyphish/icons-black/14-tag.png +0 -0
- data/templates/mobile/glyphish/icons-black/15-tags.png +0 -0
- data/templates/mobile/glyphish/icons-black/16-line-chart.png +0 -0
- data/templates/mobile/glyphish/icons-black/17-bar-chart.png +0 -0
- data/templates/mobile/glyphish/icons-black/18-envelope.png +0 -0
- data/templates/mobile/glyphish/icons-black/19-gear.png +0 -0
- data/templates/mobile/glyphish/icons-black/20-gear2.png +0 -0
- data/templates/mobile/glyphish/icons-black/21-skull.png +0 -0
- data/templates/mobile/glyphish/icons-black/22-skull-n-crossbones.png +0 -0
- data/templates/mobile/glyphish/icons-black/23-bird.png +0 -0
- data/templates/mobile/glyphish/icons-black/24-gift.png +0 -0
- data/templates/mobile/glyphish/icons-black/25-weather.png +0 -0
- data/templates/mobile/glyphish/icons-black/26-bandaid.png +0 -0
- data/templates/mobile/glyphish/icons-black/27-planet.png +0 -0
- data/templates/mobile/glyphish/icons-black/28-star.png +0 -0
- data/templates/mobile/glyphish/icons-black/29-heart.png +0 -0
- data/templates/mobile/glyphish/icons-black/30-key.png +0 -0
- data/templates/mobile/glyphish/icons-black/31-ipod.png +0 -0
- data/templates/mobile/glyphish/icons-black/32-iphone.png +0 -0
- data/templates/mobile/glyphish/icons-black/33-cabinet.png +0 -0
- data/templates/mobile/glyphish/icons-black/34-coffee.png +0 -0
- data/templates/mobile/glyphish/icons-black/35-shopping-bag.png +0 -0
- data/templates/mobile/glyphish/icons-black/36-toolbox.png +0 -0
- data/templates/mobile/glyphish/icons-black/37-suitcase.png +0 -0
- data/templates/mobile/glyphish/icons-black/38-airplane.png +0 -0
- data/templates/mobile/glyphish/icons-black/39-spraycan.png +0 -0
- data/templates/mobile/glyphish/icons-black/40-inbox.png +0 -0
- data/templates/mobile/glyphish/icons-black/41-picture-frame.png +0 -0
- data/templates/mobile/glyphish/icons-black/42-photos.png +0 -0
- data/templates/mobile/glyphish/icons-black/43-film-roll.png +0 -0
- data/templates/mobile/glyphish/icons-black/44-shoebox.png +0 -0
- data/templates/mobile/glyphish/icons-black/45-movie1.png +0 -0
- data/templates/mobile/glyphish/icons-black/46-movie2.png +0 -0
- data/templates/mobile/glyphish/icons-black/47-fuel.png +0 -0
- data/templates/mobile/glyphish/icons-black/48-fork-and-knife.png +0 -0
- data/templates/mobile/glyphish/icons-black/49-battery.png +0 -0
- data/templates/mobile/glyphish/icons-black/50-beaker.png +0 -0
- data/templates/mobile/glyphish/icons-black/51-outlet.png +0 -0
- data/templates/mobile/glyphish/icons-black/52-pinetree.png +0 -0
- data/templates/mobile/glyphish/icons-black/53-house.png +0 -0
- data/templates/mobile/glyphish/icons-black/54-lock.png +0 -0
- data/templates/mobile/glyphish/icons-black/55-network.png +0 -0
- data/templates/mobile/glyphish/icons-black/56-cloud.png +0 -0
- data/templates/mobile/glyphish/icons-black/57-download.png +0 -0
- data/templates/mobile/glyphish/icons-black/58-bookmark.png +0 -0
- data/templates/mobile/glyphish/icons-black/59-flag.png +0 -0
- data/templates/mobile/glyphish/icons-black/60-signpost.png +0 -0
- data/templates/mobile/glyphish/icons-black/61-brightness.png +0 -0
- data/templates/mobile/glyphish/icons-black/62-contrast.png +0 -0
- data/templates/mobile/glyphish/icons-black/63-runner.png +0 -0
- data/templates/mobile/glyphish/icons-black/64-zap.png +0 -0
- data/templates/mobile/glyphish/icons-black/65-note.png +0 -0
- data/templates/mobile/glyphish/icons-black/66-microphone.png +0 -0
- data/templates/mobile/glyphish/icons-black/67-tshirt.png +0 -0
- data/templates/mobile/glyphish/icons-black/68-paperclip.png +0 -0
- data/templates/mobile/glyphish/icons-black/69-display.png +0 -0
- data/templates/mobile/glyphish/icons-black/70-tv.png +0 -0
- data/templates/mobile/glyphish/icons-black/71-compass.png +0 -0
- data/templates/mobile/glyphish/icons-black/72-pin.png +0 -0
- data/templates/mobile/glyphish/icons-black/73-radar.png +0 -0
- data/templates/mobile/glyphish/icons-black/74-location.png +0 -0
- data/templates/mobile/glyphish/icons-black/75-phone.png +0 -0
- data/templates/mobile/glyphish/icons-black/76-baby.png +0 -0
- data/templates/mobile/glyphish/icons-black/77-ekg.png +0 -0
- data/templates/mobile/glyphish/icons-black/78-stopwatch.png +0 -0
- data/templates/mobile/glyphish/icons-black/79-medical-bag.png +0 -0
- data/templates/mobile/glyphish/icons-black/80-shopping-cart.png +0 -0
- data/templates/mobile/glyphish/icons-black/81-dashboard.png +0 -0
- data/templates/mobile/glyphish/icons-black/82-dogpaw.png +0 -0
- data/templates/mobile/glyphish/icons-black/83-calendar.png +0 -0
- data/templates/mobile/glyphish/icons-black/84-lightbulb.png +0 -0
- data/templates/mobile/glyphish/icons-black/85-trophy.png +0 -0
- data/templates/mobile/glyphish/icons-black/86-camera.png +0 -0
- data/templates/mobile/glyphish/icons-black/87-wineglass.png +0 -0
- data/templates/mobile/glyphish/icons-black/88-beermug.png +0 -0
- data/templates/mobile/glyphish/icons-black/89-dumbbell.png +0 -0
- data/templates/mobile/glyphish/icons-black/90-lifebuoy.png +0 -0
- data/templates/mobile/glyphish/icons-black/91-beaker2.png +0 -0
- data/templates/mobile/glyphish/icons-black/92-testtube.png +0 -0
- data/templates/mobile/glyphish/icons-black/93-thermometer.png +0 -0
- data/templates/mobile/glyphish/icons-black/94-pill.png +0 -0
- data/templates/mobile/glyphish/icons-black/95-equalizer.png +0 -0
- data/templates/mobile/glyphish/icons-black/96-book.png +0 -0
- data/templates/mobile/glyphish/icons-black/97-puzzle.png +0 -0
- data/templates/mobile/glyphish/icons-black/98-palette.png +0 -0
- data/templates/mobile/glyphish/icons-black/99-umbrella.png +0 -0
- data/templates/mobile/glyphish/icons-white/09-chat2.png +0 -0
- data/templates/mobile/glyphish/icons-white/100-coffee.png +0 -0
- data/templates/mobile/glyphish/icons-white/18-envelope.png +0 -0
- data/templates/mobile/glyphish/icons-white/19-gear.png +0 -0
- data/templates/mobile/glyphish/icons-white/21-skull.png +0 -0
- data/templates/mobile/glyphish/icons-white/30-key.png +0 -0
- data/templates/mobile/glyphish/icons-white/34-coffee.png +0 -0
- data/templates/mobile/glyphish/icons-white/88-beermug.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/band-aid.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/chat.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/clock.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/eye.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/flag.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/fork-and-knife.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/gear.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/heart.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/lightning-bolt.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/magnifying-glass.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/map-marker.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/map-pin.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/microphone.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/music-note.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/paw.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/plus.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/puzzle.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/star.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/tag.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/tshirt.png +0 -0
- data/templates/mobile/jquery.mobile.js +3995 -0
- data/templates/mobile/jquery.mobile.min.js +28 -0
- data/templates/mobile/jquery/mobile/_base.scss +1344 -0
- data/templates/mobile/jquery/mobile/default.scss +745 -0
- data/templates/mobile/jquery/mobile/default/ajax-loader.png +0 -0
- data/templates/mobile/jquery/mobile/default/form-check-off.png +0 -0
- data/templates/mobile/jquery/mobile/default/form-check-on.png +0 -0
- data/templates/mobile/jquery/mobile/default/form-radio-off.png +0 -0
- data/templates/mobile/jquery/mobile/default/form-radio-on.png +0 -0
- data/templates/mobile/jquery/mobile/default/icon-search-black.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-18-black.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-18-white.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-36-black.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-36-white.png +0 -0
- data/templates/mobile/jquery/mobile/valencia.scss +807 -0
- data/templates/mobile/jquery/mobile/valencia/ajax-loader.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-check-off.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-check-on.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-radio-off.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-radio-on.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icon-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/lib/tasks/jquery.mobile.rake +106 -0
- data/templates/mobile/manifest.rb +191 -0
- data/templates/secret_sauce/app/views/shared/_ui_form_error_messages.html.haml +6 -0
- data/templates/secret_sauce/app/views/shared/_ui_grid_for_without_block.js.haml +144 -0
- data/templates/secret_sauce/app/views/shared/_ui_static_dialog.html.haml +6 -0
- data/templates/secret_sauce/config/initializers/secret_sauce.rb +8 -0
- data/templates/secret_sauce/jquery/secret_sauce.scss +33 -0
- data/templates/secret_sauce/manifest.rb +10 -0
- data/templates/secret_sauce/secret_sauce.js +12 -0
- data/templates/secret_sauce/secret_sauce.min.js +1 -0
- metadata +313 -17
- data/.gitignore +0 -22
- data/compass-jquery-plugin.gemspec +0 -1064
@@ -1,82 +1,84 @@
|
|
1
|
-
var _canLog=true;function _log(
|
2
|
-
function logMsg(){Array.prototype.unshift.apply(arguments,["debug"]);_log.apply(this,arguments)}var getDynaTreePersistData=
|
3
|
-
(function(
|
4
|
-
_last:null})}var o={create:function(){return function(){this.initialize.apply(this,arguments)}}},p=o.create();p.prototype={initialize:function(a,b,c){this.parent=a;this.tree=b;if(typeof c==="string")c={title:c};if(c.key===undefined)c.key="_"+b._nodeCount++;this.data=
|
5
|
-
|
6
|
-
this.addChild(b)}},_getInnerHtml:function(){var a=this.tree.options,b=this.tree.cache,c=this.getLevel(),d="";if(c<a.minExpandLevel){if(c>1)d+=b.tagConnector}else d+=this.hasChildren()!==false?b.tagExpander:b.tagConnector;if(a.checkbox&&this.data.hideCheckbox!==true&&!this.data.isStatusNode)d+=b.tagCheckbox;if(this.data.icon)d+="<img src='"+a.imagePath+this.data.icon+"' alt='' />";else if(this.data.icon!==false)d+=b.tagNodeIcon;b=this.data.tooltip?" title='"+this.data.tooltip+
|
7
|
-
"<span style='display: inline-block;' class='"+a.classNames.title+"'"+b+">"+this.data.title+"</span>":"<a href='#' class='"+a.classNames.title+"'"+b+">"+this.data.title+"</a>";return d},_fixOrder:function(){var a=this.childList;if(a)for(var b=this.ul.firstChild,c=0;c<a.length-1;c++){var d=a[c],e=b.dtnode;if(d!==e){this.tree.logDebug("_fixOrder: mismatch at index "+c+": "+d+" != "+e);this.ul.insertBefore(d.li,e.li)}else b=b.nextSibling}},render:function(a){var b=
|
8
|
-
this.isLastSibling();if(!this.parent&&!this.ul){this.li=this.span=null;this.ul=document.createElement("ul");this.ul.className=b.minExpandLevel>1?c.container+" "+c.noConnector:c.container}else if(this.parent){if(!this.li){this.li=document.createElement("li");this.li.dtnode=this;if(this.data.key&&b.generateIds)this.li.id=b.idPrefix+this.data.key;this.span=document.createElement("span");this.span.className=c.title;this.li.appendChild(this.span);if(!this.parent.ul){this.parent.ul=
|
9
|
-
this.parent.ul.style.display="none";this.parent.li.appendChild(this.parent.ul)}this.parent.ul.appendChild(this.li)}this.span.innerHTML=this._getInnerHtml();var e=[];e.push(c.node);this.data.isFolder&&e.push(c.folder);this.bExpanded&&e.push(c.expanded);this.hasChildren()!==false&&e.push(c.hasChildren);this.data.isLazy&&this.childList===null&&e.push(c.lazy);d&&e.push(c.lastsib);this.bSelected&&e.push(c.selected);this.hasSubSel&&e.push(c.partsel);this.tree.activeNode===this&&
|
10
|
-
e.push(this.data.addClass);e.push(c.combinedExpanderPrefix+(this.bExpanded?"e":"c")+(this.data.isLazy&&this.childList===null?"d":"")+(d?"l":""));e.push(c.combinedIconPrefix+(this.bExpanded?"e":"c")+(this.data.isFolder?"f":""));this.span.className=e.join(" ");this.li.className=d?c.lastsib:""}if(this.bExpanded&&this.childList){for(c=0;c<this.childList.length;c++)this.childList[c].render();this._fixOrder()}if(this.ul){c=this.ul.style.display==="none";if(a&&b.fx
|
11
|
-
200;
|
12
|
-
1&&this.childList[0].isStatusNode())return;return true}return!!this.childList},isFirstSibling:function(){var a=this.parent;return!a||a.childList[0]===this},isLastSibling:function(){var a=this.parent;return!a||a.childList[a.childList.length-1]===this},getPrevSibling:function(){if(!this.parent)return null;for(var a=this.parent.childList,b=1;b<a.length;b++)if(a[b]===this)return a[b-1];return null},getNextSibling:function(){if(!this.parent)return null;for(var a=
|
13
|
-
this)return a[b+1];return null},isStatusNode:function(){return this.data.isStatusNode===true},isChildOf:function(a){return this.parent&&this.parent===a},isDescendantOf:function(a){if(!a)return false;for(var b=this.parent;b;){if(b===a)return true;b=b.parent}return false},sortChildren:function(a,b){var c=this.childList;if(c){a=a||function(e,
|
14
|
-
"$norender$"&&this.render()}},_setStatusNode:function(a){var b=this.childList?this.childList[0]:null;if(a)if(b){a.isStatusNode=true;b.data=a;b.render()}else{a.isStatusNode=true;this.addChild(a)}else if(b){try{this.ul.removeChild(b.li)}catch(c){}if(this.childList.length===1)this.childList=
|
15
|
-
if(this.tree.options.autoFocus)this===this.tree.tnRoot&&this.childList?this.childList[0].focus():this.focus();break;case DTNodeStatus_Loading:this.isLoading=true;
|
16
|
-
a+"'.";}},_parentList:function(a,b){for(var c=[],d=b?this:this.parent;d;){if(a||d.parent)c.unshift(d);d=d.parent}return c},getLevel:function(){for(var a=0,b=this.parent;b;){a++;b=b.parent}return a},_getTypeForOuterNodeEvent:function(a){var b=
|
17
|
-
|
18
|
-
c.empty||b===c.vline||b===c.connector)return"prefix";else if(b.indexOf(c.node)>=0)return this._getTypeForOuterNodeEvent(a);return null},isVisible:function(){for(var a=this._parentList(true,false),b=0;b<a.length;b++)if(!a[b].bExpanded)return false;
|
19
|
-
a,b,this);var c=this.tree.options;if(!this.data.isStatusNode)if(!(b&&c.onQueryActivate&&c.onQueryActivate.call(this.tree,a,this)===false))if(a){if(this.tree.activeNode){if(this.tree.activeNode===
|
20
|
-
this)
|
21
|
-
|
22
|
-
|
23
|
-
a
|
24
|
-
|
25
|
-
this
|
26
|
-
this.
|
27
|
-
|
28
|
-
|
29
|
-
|
1
|
+
var _canLog=true;function _log(f){if(_canLog){var k=Array.prototype.slice.apply(arguments,[1]),m=new Date;m=m.getHours()+":"+m.getMinutes()+":"+m.getSeconds()+"."+m.getMilliseconds();k[0]=m+" - "+k[0];try{switch(f){case "info":window.console.info.apply(window.console,k);break;case "warn":window.console.warn.apply(window.console,k);break;default:window.console.log.apply(window.console,k)}}catch(o){window.console||(_canLog=false)}}}
|
2
|
+
function logMsg(){Array.prototype.unshift.apply(arguments,["debug"]);_log.apply(this,arguments)}var getDynaTreePersistData=null,DTNodeStatus_Error=-1,DTNodeStatus_Loading=1,DTNodeStatus_Ok=0;
|
3
|
+
(function(f){function k(a){for(var b=5;a&&b--;){if(a.dtnode)return a.dtnode;a=a.parentNode}return null}function m(a){var b=a.options.dnd||null;if(b&&(b.onDragStart||b.onDrop))s();b&&b.onDragStart&&a.$tree.draggable({addClasses:false,appendTo:"body",containment:false,delay:0,distance:4,revert:false,connectToDynatree:true,helper:function(c){var d=k(c.target);return d.tree._onDragEvent("helper",d,null,c,null,null)},_last:null});b&&b.onDrop&&a.$tree.droppable({addClasses:false,tolerance:"intersect",greedy:false,
|
4
|
+
_last:null})}var o={create:function(){return function(){this.initialize.apply(this,arguments)}}},p=o.create();p.prototype={initialize:function(a,b,c){this.parent=a;this.tree=b;if(typeof c==="string")c={title:c};if(c.key===undefined)c.key="_"+b._nodeCount++;this.data=f.extend({},f.ui.dynatree.nodedatadefaults,c);this.childList=this.ul=this.span=this.li=null;this.bSelected=this.bExpanded=this.hasSubSel=this.isLoading=false},toString:function(){return"DynaTreeNode<"+this.data.key+">: '"+this.data.title+
|
5
|
+
"'"},toDict:function(a,b){var c=f.extend({},this.data);c.activate=this.tree.activeNode===this;c.focus=this.tree.focusNode===this;c.expand=this.bExpanded;c.select=this.bSelected;b&&b(c);if(a&&this.childList){c.children=[];for(var d=0;d<this.childList.length;d++)c.children.push(this.childList[d].toDict(true,b))}else delete c.children;return c},fromDict:function(a){var b=a.children;if(b===undefined){this.data=f.extend(this.data,a);this.render()}else{a=f.extend({},a);a.children=undefined;this.data=f.extend(this.data,
|
6
|
+
a);this.removeChildren();this.addChild(b)}},_getInnerHtml:function(){var a=this.tree.options,b=this.tree.cache,c=this.getLevel(),d="";if(c<a.minExpandLevel){if(c>1)d+=b.tagConnector}else d+=this.hasChildren()!==false?b.tagExpander:b.tagConnector;if(a.checkbox&&this.data.hideCheckbox!==true&&!this.data.isStatusNode)d+=b.tagCheckbox;if(this.data.icon)d+="<img src='"+a.imagePath+this.data.icon+"' alt='' />";else if(this.data.icon!==false)d+=b.tagNodeIcon;b=this.data.tooltip?" title='"+this.data.tooltip+
|
7
|
+
"'":"";d+=a.noLink||this.data.noLink?"<span style='display: inline-block;' class='"+a.classNames.title+"'"+b+">"+this.data.title+"</span>":"<a href='#' class='"+a.classNames.title+"'"+b+">"+this.data.title+"</a>";return d},_fixOrder:function(){var a=this.childList;if(a)for(var b=this.ul.firstChild,c=0;c<a.length-1;c++){var d=a[c],e=b.dtnode;if(d!==e){this.tree.logDebug("_fixOrder: mismatch at index "+c+": "+d+" != "+e);this.ul.insertBefore(d.li,e.li)}else b=b.nextSibling}},render:function(a){var b=
|
8
|
+
this.tree.options,c=b.classNames,d=this.isLastSibling();if(!this.parent&&!this.ul){this.li=this.span=null;this.ul=document.createElement("ul");this.ul.className=b.minExpandLevel>1?c.container+" "+c.noConnector:c.container}else if(this.parent){if(!this.li){this.li=document.createElement("li");this.li.dtnode=this;if(this.data.key&&b.generateIds)this.li.id=b.idPrefix+this.data.key;this.span=document.createElement("span");this.span.className=c.title;this.li.appendChild(this.span);if(!this.parent.ul){this.parent.ul=
|
9
|
+
document.createElement("ul");this.parent.ul.style.display="none";this.parent.li.appendChild(this.parent.ul)}this.parent.ul.appendChild(this.li)}this.span.innerHTML=this._getInnerHtml();var e=[];e.push(c.node);this.data.isFolder&&e.push(c.folder);this.bExpanded&&e.push(c.expanded);this.hasChildren()!==false&&e.push(c.hasChildren);this.data.isLazy&&this.childList===null&&e.push(c.lazy);d&&e.push(c.lastsib);this.bSelected&&e.push(c.selected);this.hasSubSel&&e.push(c.partsel);this.tree.activeNode===this&&
|
10
|
+
e.push(c.active);this.data.addClass&&e.push(this.data.addClass);e.push(c.combinedExpanderPrefix+(this.bExpanded?"e":"c")+(this.data.isLazy&&this.childList===null?"d":"")+(d?"l":""));e.push(c.combinedIconPrefix+(this.bExpanded?"e":"c")+(this.data.isFolder?"f":""));this.span.className=e.join(" ");this.li.className=d?c.lastsib:""}if(this.bExpanded&&this.childList){for(c=0;c<this.childList.length;c++)this.childList[c].render();this._fixOrder()}if(this.ul){c=this.ul.style.display==="none";if(a&&b.fx&&
|
11
|
+
!!c===!!this.bExpanded){a=b.fx.duration||200;f(this.ul).animate(b.fx,a)}else this.ul.style.display=this.bExpanded||!this.parent?"":"none"}},getKeyPath:function(a){var b=[];this.visitParents(function(c){c.parent&&b.unshift(c.data.key)},!a);return"/"+b.join(this.tree.options.keyPathSeparator)},getParent:function(){return this.parent},getChildren:function(){return this.childList},hasChildren:function(){if(this.data.isLazy){if(this.childList===null||this.childList===undefined)return;else if(this.childList.length===
|
12
|
+
0)return false;else if(this.childList.length===1&&this.childList[0].isStatusNode())return;return true}return!!this.childList},isFirstSibling:function(){var a=this.parent;return!a||a.childList[0]===this},isLastSibling:function(){var a=this.parent;return!a||a.childList[a.childList.length-1]===this},getPrevSibling:function(){if(!this.parent)return null;for(var a=this.parent.childList,b=1;b<a.length;b++)if(a[b]===this)return a[b-1];return null},getNextSibling:function(){if(!this.parent)return null;for(var a=
|
13
|
+
this.parent.childList,b=0;b<a.length-1;b++)if(a[b]===this)return a[b+1];return null},isStatusNode:function(){return this.data.isStatusNode===true},isChildOf:function(a){return this.parent&&this.parent===a},isDescendantOf:function(a){if(!a)return false;for(var b=this.parent;b;){if(b===a)return true;b=b.parent}return false},sortChildren:function(a,b){var c=this.childList;if(c){a=a||function(e,g){return e.data.title===g.data.title?0:e.data.title>g.data.title};c.sort(a);if(b)for(var d=0;d<c.length;d++)c[d].childList&&
|
14
|
+
c[d].sortChildren(a,"$norender$");b!=="$norender$"&&this.render()}},_setStatusNode:function(a){var b=this.childList?this.childList[0]:null;if(a)if(b){a.isStatusNode=true;a.key="_statusNode";b.data=a;b.render()}else{a.isStatusNode=true;a.key="_statusNode";this.addChild(a)}else if(b&&b.isStatusNode()){try{this.ul&&this.ul.removeChild(b.li)}catch(c){}if(this.childList.length===1)this.childList=[];else this.childList.shift()}},setLazyNodeStatus:function(a,b){var c=b&&b.tooltip?b.tooltip:null,d=b&&b.info?
|
15
|
+
" ("+b.info+")":"";switch(a){case DTNodeStatus_Ok:this._setStatusNode(null);f(this.span).removeClass(this.tree.options.classNames.nodeLoading);this.isLoading=false;this.render();if(this.tree.options.autoFocus)this===this.tree.tnRoot&&this.childList&&this.childList.length>0?this.childList[0].focus():this.focus();break;case DTNodeStatus_Loading:this.isLoading=true;f(this.span).addClass(this.tree.options.classNames.nodeLoading);this.parent||this._setStatusNode({title:this.tree.options.strings.loading+
|
16
|
+
d,tooltip:c,addClass:this.tree.options.classNames.nodeWait});break;case DTNodeStatus_Error:this.isLoading=false;this._setStatusNode({title:this.tree.options.strings.loadError+d,tooltip:c,addClass:this.tree.options.classNames.nodeError});break;default:throw"Bad LazyNodeStatus: '"+a+"'.";}},_parentList:function(a,b){for(var c=[],d=b?this:this.parent;d;){if(a||d.parent)c.unshift(d);d=d.parent}return c},getLevel:function(){for(var a=0,b=this.parent;b;){a++;b=b.parent}return a},_getTypeForOuterNodeEvent:function(a){var b=
|
17
|
+
this.tree.options.classNames,c=a.target;if(c.className.indexOf(b.node)<0)return null;var d=a.pageX-c.offsetLeft;a=a.pageY-c.offsetTop;for(var e=0;e<c.childNodes.length;e++){var g=c.childNodes[e],h=g.offsetLeft-c.offsetLeft,i=g.offsetTop-c.offsetTop,j=g.clientWidth,l=g.clientHeight;if(d>=h&&d<=h+j&&a>=i&&a<=i+l)if(g.className==b.title)return"title";else if(g.className==b.expander)return"expander";else if(g.className==b.checkbox)return"checkbox";else if(g.className==b.nodeIcon)return"icon"}return"prefix"},
|
18
|
+
getEventTargetType:function(a){var b=a&&a.target?a.target.className:"",c=this.tree.options.classNames;if(b===c.title)return"title";else if(b===c.expander)return"expander";else if(b===c.checkbox)return"checkbox";else if(b===c.nodeIcon)return"icon";else if(b===c.empty||b===c.vline||b===c.connector)return"prefix";else if(b.indexOf(c.node)>=0)return this._getTypeForOuterNodeEvent(a);return null},isVisible:function(){for(var a=this._parentList(true,false),b=0;b<a.length;b++)if(!a[b].bExpanded)return false;
|
19
|
+
return true},makeVisible:function(){for(var a=this._parentList(true,false),b=0;b<a.length;b++)a[b]._expand(true)},focus:function(){this.makeVisible();try{f(this.span).find(">a").focus()}catch(a){}},isFocused:function(){return this.tree.tnFocused===this},_activate:function(a,b){this.tree.logDebug("dtnode._activate(%o, fireEvents=%o) - %o",a,b,this);var c=this.tree.options;if(!this.data.isStatusNode)if(!(b&&c.onQueryActivate&&c.onQueryActivate.call(this.tree,a,this)===false))if(a){if(this.tree.activeNode){if(this.tree.activeNode===
|
20
|
+
this)return;this.tree.activeNode.deactivate()}c.activeVisible&&this.makeVisible();this.tree.activeNode=this;c.persist&&f.cookie(c.cookieId+"-active",this.data.key,c.cookie);this.tree.persistence.activeKey=this.data.key;f(this.span).addClass(c.classNames.active);b&&c.onActivate&&c.onActivate.call(this.tree,this)}else if(this.tree.activeNode===this){c=this.tree.options;if(!(c.onQueryActivate&&c.onQueryActivate.call(this.tree,false,this)===false)){f(this.span).removeClass(c.classNames.active);c.persist&&
|
21
|
+
f.cookie(c.cookieId+"-active","",c.cookie);this.tree.persistence.activeKey=null;this.tree.activeNode=null;b&&c.onDeactivate&&c.onDeactivate.call(this.tree,this)}}},activate:function(){this._activate(true,true)},activateSilently:function(){this._activate(true,false)},deactivate:function(){this._activate(false,true)},isActive:function(){return this.tree.activeNode===this},_userActivate:function(){var a=true,b=false;if(this.data.isFolder)switch(this.tree.options.clickFolderMode){case 2:a=false;b=true;
|
22
|
+
break;case 3:a=b=true}if(this.parent===null)b=false;if(b){this.toggleExpand();this.focus()}a&&this.activate()},_setSubSel:function(a){if(a){this.hasSubSel=true;f(this.span).addClass(this.tree.options.classNames.partsel)}else{this.hasSubSel=false;f(this.span).removeClass(this.tree.options.classNames.partsel)}},_fixSelectionState:function(){if(this.bSelected){this.visit(function(e){e.parent._setSubSel(true);e._select(true,false,false)});for(var a=this.parent;a;){a._setSubSel(true);for(var b=true,c=
|
23
|
+
0;c<a.childList.length;c++){var d=a.childList[c];if(!d.bSelected&&!d.data.isStatusNode){b=false;break}}b&&a._select(true,false,false);a=a.parent}}else{this._setSubSel(false);this.visit(function(e){e._setSubSel(false);e._select(false,false,false)});for(a=this.parent;a;){a._select(false,false,false);b=false;for(c=0;c<a.childList.length;c++)if(a.childList[c].bSelected||a.childList[c].hasSubSel){b=true;break}a._setSubSel(b);a=a.parent}}},_select:function(a,b,c){var d=this.tree.options;if(!this.data.isStatusNode)if(this.bSelected!==
|
24
|
+
a)if(!(b&&d.onQuerySelect&&d.onQuerySelect.call(this.tree,a,this)===false)){d.selectMode==1&&a&&this.tree.visit(function(e){if(e.bSelected){e._select(false,false,false);return false}});if(this.bSelected=a){d.persist&&this.tree.persistence.addSelect(this.data.key);f(this.span).addClass(d.classNames.selected);c&&d.selectMode===3&&this._fixSelectionState();b&&d.onSelect&&d.onSelect.call(this.tree,true,this)}else{d.persist&&this.tree.persistence.clearSelect(this.data.key);f(this.span).removeClass(d.classNames.selected);
|
25
|
+
c&&d.selectMode===3&&this._fixSelectionState();b&&d.onSelect&&d.onSelect.call(this.tree,false,this)}}},select:function(a){if(this.data.unselectable)return this.bSelected;return this._select(a!==false,true,true)},toggleSelect:function(){return this.select(!this.bSelected)},isSelected:function(){return this.bSelected},_loadContent:function(){try{var a=this.tree.options;this.tree.logDebug("_loadContent: start - %o",this);this.setLazyNodeStatus(DTNodeStatus_Loading);if(true===a.onLazyRead.call(this.tree,
|
26
|
+
this)){this.setLazyNodeStatus(DTNodeStatus_Ok);this.tree.logDebug("_loadContent: succeeded - %o",this)}}catch(b){this.tree.logWarning("_loadContent: failed - %o",b);this.setLazyNodeStatus(DTNodeStatus_Error,{tooltip:""+b})}},_expand:function(a,b){if(this.bExpanded===a)this.tree.logDebug("dtnode._expand(%o) IGNORED - %o",a,this);else{this.tree.logDebug("dtnode._expand(%o) - %o",a,this);var c=this.tree.options;if(!a&&this.getLevel()<c.minExpandLevel)this.tree.logDebug("dtnode._expand(%o) prevented collapse - %o",
|
27
|
+
a,this);else if(!(c.onQueryExpand&&c.onQueryExpand.call(this.tree,a,this)===false)){this.bExpanded=a;if(c.persist)a?this.tree.persistence.addExpand(this.data.key):this.tree.persistence.clearExpand(this.data.key);this.render(!(this.data.isLazy&&this.childList===null)&&!this.isLoading&&!b);if(this.bExpanded&&this.parent&&c.autoCollapse)for(var d=this._parentList(false,true),e=0;e<d.length;e++)d[e].collapseSiblings();c.activeVisible&&this.tree.activeNode&&!this.tree.activeNode.isVisible()&&this.tree.activeNode.deactivate();
|
28
|
+
if(a&&this.data.isLazy&&this.childList===null&&!this.isLoading)this._loadContent();else c.onExpand&&c.onExpand.call(this.tree,a,this)}}},expand:function(a){a=a!==false;!this.childList&&!this.data.isLazy&&a||this.parent===null&&!a||this._expand(a)},scheduleAction:function(a,b){if(this.tree.timer){clearTimeout(this.tree.timer);this.tree.logDebug("clearTimeout(%o)",this.tree.timer)}var c=this;switch(a){case "cancel":break;case "expand":this.tree.timer=setTimeout(function(){c.tree.logDebug("setTimeout: trigger expand");
|
29
|
+
c.expand(true)},b);break;case "activate":this.tree.timer=setTimeout(function(){c.tree.logDebug("setTimeout: trigger activate");c.activate()},b);break;default:throw"Invalid mode "+a;}this.tree.logDebug("setTimeout(%s, %s): %s",a,b,this.tree.timer)},toggleExpand:function(){this.expand(!this.bExpanded)},collapseSiblings:function(){if(this.parent!==null)for(var a=this.parent.childList,b=0;b<a.length;b++)a[b]!==this&&a[b].bExpanded&&a[b]._expand(false)},_onClick:function(a){a=this.getEventTargetType(a);
|
30
|
+
if(a==="expander"){this.toggleExpand();this.focus()}else if(a==="checkbox"){this.toggleSelect();this.focus()}else{this._userActivate();a=this.span.getElementsByTagName("a");if(a[0])f.browser.msie||a[0].focus();else return true}return false},_onDblClick:function(){},_onKeydown:function(a){var b=true;switch(a.which){case 107:case 187:this.bExpanded||this.toggleExpand();break;case 109:case 189:this.bExpanded&&this.toggleExpand();break;case 32:this._userActivate();break;case 8:this.parent&&this.parent.focus();
|
30
31
|
break;case 37:if(this.bExpanded){this.toggleExpand();this.focus()}else this.parent&&this.parent.parent&&this.parent.focus();break;case 39:if(!this.bExpanded&&(this.childList||this.data.isLazy)){this.toggleExpand();this.focus()}else this.childList&&this.childList[0].focus();break;case 38:for(var c=this.getPrevSibling();c&&c.bExpanded&&c.childList;)c=c.childList[c.childList.length-1];if(!c&&this.parent&&this.parent.parent)c=this.parent;c&&c.focus();break;case 40:if(this.bExpanded&&this.childList)c=
|
31
|
-
this.childList[0];else{a=this._parentList(false,true);for(var d=a.length-1;d>=0;d--)if(c=a[d].getNextSibling())break}c&&c.focus();break;default:b=false}return!b},
|
32
|
-
"focusin"){if(this.tree.tnFocused&&this.tree.tnFocused!==this){this.tree.logDebug("dtnode.onFocus: out of sync: curFocus: %o",this.tree.tnFocused);
|
32
|
+
this.childList[0];else{a=this._parentList(false,true);for(var d=a.length-1;d>=0;d--)if(c=a[d].getNextSibling())break}c&&c.focus();break;default:b=false}return!b},_onKeypress:function(){},_onFocus:function(a){var b=this.tree.options;if(a.type=="blur"||a.type=="focusout"){b.onBlur&&b.onBlur.call(this.tree,this);this.tree.tnFocused&&f(this.tree.tnFocused.span).removeClass(b.classNames.focused);this.tree.tnFocused=null;b.persist&&f.cookie(b.cookieId+"-focus","",b.cookie)}else if(a.type=="focus"||a.type==
|
33
|
+
"focusin"){if(this.tree.tnFocused&&this.tree.tnFocused!==this){this.tree.logDebug("dtnode.onFocus: out of sync: curFocus: %o",this.tree.tnFocused);f(this.tree.tnFocused.span).removeClass(b.classNames.focused)}this.tree.tnFocused=this;b.onFocus&&b.onFocus.call(this.tree,this);f(this.tree.tnFocused.span).addClass(b.classNames.focused);b.persist&&f.cookie(b.cookieId+"-focus",this.data.key,b.cookie)}},visit:function(a,b){var c=true;if(b===true){c=a(this);if(c===false||c=="skip")return c}if(this.childList)for(var d=
|
33
34
|
0;d<this.childList.length;d++){c=this.childList[d].visit(a,true);if(c===false)break}return c},visitParents:function(a,b){if(b&&a(this)===false)return false;for(var c=this.parent;c;){if(a(c)===false)return false;c=c.parent}return true},remove:function(){if(this===this.tree.root)throw"Cannot remove system root";return this.parent.removeChild(this)},removeChild:function(a){var b=this.childList;if(b.length==1){if(a!==b[0])throw"removeChild: invalid child";return this.removeChildren()}a===this.tree.activeNode&&
|
34
|
-
a.deactivate();if(this.tree.options.persist){a.bSelected&&this.tree.persistence.clearSelect(a.data.key);a.bExpanded&&this.tree.persistence.clearExpand(a.data.key)}a.removeChildren(true);this.ul.removeChild(a.li);for(var c=0;c<b.length;c++)if(b[c]===a){this.childList.splice(c,1);delete a;break}},removeChildren:function(a,b){this.tree.logDebug("%s.removeChildren(%o)",this,a);var c=this.tree,d=this.childList;if(d){for(var e=0;e<d.length;e++){var
|
35
|
-
!b){
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
h,"
|
44
|
-
if(e<0)throw"Internal error";this.parent.childList.splice(e,1)}this.parent.ul.removeChild(this.li);this.parent=d;if(d.hasChildren())switch(b){case "child":d.childList.push(this);break;case "before":e=
|
45
|
-
"none";d.li.appendChild(d.ul)}}d.ul.appendChild(this.li);if(this.tree!==a.tree){this.visit(function(
|
46
|
-
b=
|
47
|
-
this.
|
48
|
-
this.
|
49
|
-
|
50
|
-
"-select",this.selectedKeyList.join(","),this.cookieOpts)}},isReloading:function(){return this.cookiesFound===true},toDict:function(){return{cookiesFound:this.cookiesFound,activeKey:this.activeKey,focusedKey:this.activeKey,expandedKeyList:this.expandedKeyList,
|
51
|
-
this.$tree.get(0);
|
52
|
-
|
53
|
-
this.
|
54
|
-
this.
|
55
|
-
this.
|
56
|
-
|
57
|
-
if(c.
|
58
|
-
|
59
|
-
|
35
|
+
a.deactivate();if(this.tree.options.persist){a.bSelected&&this.tree.persistence.clearSelect(a.data.key);a.bExpanded&&this.tree.persistence.clearExpand(a.data.key)}a.removeChildren(true);this.ul.removeChild(a.li);for(var c=0;c<b.length;c++)if(b[c]===a){this.childList.splice(c,1);delete a;break}},removeChildren:function(a,b){this.tree.logDebug("%s.removeChildren(%o)",this,a);var c=this.tree,d=this.childList;if(d){for(var e=0;e<d.length;e++){var g=d[e];g===c.activeNode&&!b&&g.deactivate();if(this.tree.options.persist&&
|
36
|
+
!b){g.bSelected&&this.tree.persistence.clearSelect(g.data.key);g.bExpanded&&this.tree.persistence.clearExpand(g.data.key)}g.removeChildren(true,b);this.ul&&this.ul.removeChild(g.li);delete g}this.childList=null}if(!a){this.isLoading=false;this.render()}},setTitle:function(a){this.fromDict({title:a})},reload:function(){throw"Use reloadChildren() instead";},reloadChildren:function(a){if(this.parent===null)throw"Use tree.reload() instead";else if(!this.data.isLazy)throw"node.reloadChildren() requires lazy nodes.";
|
37
|
+
if(a){var b=this,c="nodeLoaded.dynatree."+this.tree.$tree.attr("id")+"."+this.data.key;this.tree.$tree.bind(c,function(d,e,g){b.tree.$tree.unbind(c);b.tree.logInfo("loaded %o, %o, %o",d,e,g);if(e!==b)throw"got invalid load event";a.call(b.tree,e,g)})}this.removeChildren();this._loadContent()},_loadKeyPath:function(a,b){var c=this.tree;c.logDebug("%s._loadKeyPath(%s)",this,a);if(a==="")throw"Key path must not be empty";var d=a.split(c.options.keyPathSeparator);if(d[0]==="")throw"Key path must be relative (don't start with '/')";
|
38
|
+
for(var e=d.shift(),g=0;g<this.childList.length;g++){var h=this.childList[g];if(h.data.key===e){if(d.length===0)b.call(c,h,"ok");else if(h.data.isLazy&&(h.childList===null||h.childList===undefined)){c.logDebug("%s._loadKeyPath(%s) -> reloading %s...",this,a,h);var i=this;h.reloadChildren(function(j,l){if(l){c.logDebug("%s._loadKeyPath(%s) -> reloaded %s.",j,a,j);b.call(c,h,"loaded");j._loadKeyPath(d.join(c.options.keyPathSeparator),b)}else{c.logWarning("%s._loadKeyPath(%s) -> reloadChildren() failed.",
|
39
|
+
i,a);b.call(c,h,"error")}})}else{b.call(c,h,"loaded");h._loadKeyPath(d.join(c.options.keyPathSeparator),b)}return}}c.logWarning("Node not found: "+e)},resetLazy:function(){if(this.parent===null)throw"Use tree.reload() instead";else if(!this.data.isLazy)throw"node.resetLazy() requires lazy nodes.";this.expand(false);this.removeChildren()},_addChildNode:function(a,b){var c=this.tree,d=c.options,e=c.persistence;a.parent=this;if(this.childList===null)this.childList=[];else b||f(this.childList[this.childList.length-
|
40
|
+
1].span).removeClass(d.classNames.lastsib);if(b){var g=f.inArray(b,this.childList);if(g<0)throw"<beforeNode> must be a child of <this>";this.childList.splice(g,0,a)}else this.childList.push(a);g=c.isInitializing();if(d.persist&&e.cookiesFound&&g){if(e.activeKey==a.data.key)c.activeNode=a;if(e.focusedKey==a.data.key)c.focusNode=a;a.bExpanded=f.inArray(a.data.key,e.expandedKeyList)>=0;a.bSelected=f.inArray(a.data.key,e.selectedKeyList)>=0}else{if(a.data.activate){c.activeNode=a;if(d.persist)e.activeKey=
|
41
|
+
a.data.key}if(a.data.focus){c.focusNode=a;if(d.persist)e.focusedKey=a.data.key}a.bExpanded=a.data.expand===true;a.bExpanded&&d.persist&&e.addExpand(a.data.key);a.bSelected=a.data.select===true;a.bSelected&&d.persist&&e.addSelect(a.data.key)}if(d.minExpandLevel>=a.getLevel())this.bExpanded=true;if(a.bSelected&&d.selectMode==3)for(d=this;d;){d.hasSubSel||d._setSubSel(true);d=d.parent}c.bEnableUpdate&&this.render();return a},addChild:function(a,b){if(typeof a=="string")throw"Invalid data type for "+
|
42
|
+
a;else if(!a||a.length===0)return;else if(a instanceof p)return this._addChildNode(a,b);a.length||(a=[a]);for(var c=this.tree.enableUpdate(false),d=null,e=0;e<a.length;e++){var g=a[e],h=this._addChildNode(new p(this,this.tree,g),b);d||(d=h);g.children&&h.addChild(g.children,null)}this.tree.enableUpdate(c);return d},append:function(a){this.tree.logWarning("node.append() is deprecated (use node.addChild() instead).");return this.addChild(a,null)},appendAjax:function(a){this.removeChildren(false,true);
|
43
|
+
this.setLazyNodeStatus(DTNodeStatus_Loading);if(a.debugLazyDelay){var b=a.debugLazyDelay,c=this;a.debugLazyDelay=0;this.tree.logInfo("appendAjax: waiting for debugLazyDelay "+b);setTimeout(function(){c.appendAjax(a)},b)}else{c=this;var d=a.success,e=a.error,g="nodeLoaded.dynatree."+this.tree.$tree.attr("id")+"."+this.data.key,h=f.extend({},this.tree.options.ajaxDefaults,a,{success:function(i){var j=c.tree.phase;c.tree.phase="init";if(!f.isArray(i)||i.length!==0)c.addChild(i,null);c.tree.phase="postInit";
|
44
|
+
d&&d.call(h,c);c.tree.logInfo("trigger "+g);c.tree.$tree.trigger(g,[c,true]);c.tree.phase=j;c.setLazyNodeStatus(DTNodeStatus_Ok);if(f.isArray(i)&&i.length===0){c.childList=[];c.render()}},error:function(i,j,l){c.tree.logWarning("appendAjax failed:",j,":\n",i,"\n",l);e&&e.call(h,c,i,j,l);c.tree.$tree.trigger(g,[c,false]);c.setLazyNodeStatus(DTNodeStatus_Error,{info:j,tooltip:""+l})}});f.ajax(h)}},move:function(a,b){if(this!==a){if(!this.parent)throw"Cannot move system root";if(b===undefined||b=="over")b=
|
45
|
+
"child";var c=this.parent,d=b==="child"?a:a.parent;if(d.isDescendantOf(this))throw"Cannot move a node to it's own descendant";if(this.parent.childList.length==1){this.parent.childList=null;this.parent.bExpanded=false}else{var e=f.inArray(this,this.parent.childList);if(e<0)throw"Internal error";this.parent.childList.splice(e,1)}this.parent.ul.removeChild(this.li);this.parent=d;if(d.hasChildren())switch(b){case "child":d.childList.push(this);break;case "before":e=f.inArray(a,d.childList);if(e<0)throw"Internal error";
|
46
|
+
d.childList.splice(e,0,this);break;case "after":e=f.inArray(a,d.childList);if(e<0)throw"Internal error";d.childList.splice(e+1,0,this);break;default:throw"Invalid mode "+b;}else{d.childList=[this];if(!d.ul){d.ul=document.createElement("ul");d.ul.style.display="none";d.li.appendChild(d.ul)}}d.ul.appendChild(this.li);if(this.tree!==a.tree){this.visit(function(g){g.tree=a.tree},null,true);throw"Not yet implemented.";}c.isDescendantOf(d)||c.render();d.isDescendantOf(c)||d.render()}},lastentry:undefined};
|
47
|
+
var n=o.create();n._getTreePersistData=function(a,b){var c=new n(a,b);c.read();return c.toDict()};getDynaTreePersistData=n._getTreePersistData;n.prototype={initialize:function(a,b){this._log("DynaTreeStatus: initialize");if(a===undefined)a=f.ui.dynatree.prototype.options.cookieId;b=f.extend({},f.ui.dynatree.prototype.options.cookie,b);this.cookieId=a;this.cookieOpts=b;this.cookiesFound=undefined;this.selectedKeyList=this.expandedKeyList=this.focusedKey=this.activeKey=null},_log:function(){Array.prototype.unshift.apply(arguments,
|
48
|
+
["debug"]);_log.apply(this,arguments)},read:function(){this._log("DynaTreeStatus: read");this.cookiesFound=false;var a=f.cookie(this.cookieId+"-active");this.activeKey=a===null?"":a;if(a!==null)this.cookiesFound=true;a=f.cookie(this.cookieId+"-focus");this.focusedKey=a===null?"":a;if(a!==null)this.cookiesFound=true;a=f.cookie(this.cookieId+"-expand");this.expandedKeyList=a===null?[]:a.split(",");if(a!==null)this.cookiesFound=true;a=f.cookie(this.cookieId+"-select");this.selectedKeyList=a===null?[]:
|
49
|
+
a.split(",");if(a!==null)this.cookiesFound=true},write:function(){this._log("DynaTreeStatus: write");f.cookie(this.cookieId+"-active",this.activeKey===null?"":this.activeKey,this.cookieOpts);f.cookie(this.cookieId+"-focus",this.focusedKey===null?"":this.focusedKey,this.cookieOpts);f.cookie(this.cookieId+"-expand",this.expandedKeyList===null?"":this.expandedKeyList.join(","),this.cookieOpts);f.cookie(this.cookieId+"-select",this.selectedKeyList===null?"":this.selectedKeyList.join(","),this.cookieOpts)},
|
50
|
+
addExpand:function(a){this._log("addExpand(%o)",a);if(f.inArray(a,this.expandedKeyList)<0){this.expandedKeyList.push(a);f.cookie(this.cookieId+"-expand",this.expandedKeyList.join(","),this.cookieOpts)}},clearExpand:function(a){this._log("clearExpand(%o)",a);a=f.inArray(a,this.expandedKeyList);if(a>=0){this.expandedKeyList.splice(a,1);f.cookie(this.cookieId+"-expand",this.expandedKeyList.join(","),this.cookieOpts)}},addSelect:function(a){this._log("addSelect(%o)",a);if(f.inArray(a,this.selectedKeyList)<
|
51
|
+
0){this.selectedKeyList.push(a);f.cookie(this.cookieId+"-select",this.selectedKeyList.join(","),this.cookieOpts)}},clearSelect:function(a){this._log("clearSelect(%o)",a);a=f.inArray(a,this.selectedKeyList);if(a>=0){this.selectedKeyList.splice(a,1);f.cookie(this.cookieId+"-select",this.selectedKeyList.join(","),this.cookieOpts)}},isReloading:function(){return this.cookiesFound===true},toDict:function(){return{cookiesFound:this.cookiesFound,activeKey:this.activeKey,focusedKey:this.activeKey,expandedKeyList:this.expandedKeyList,
|
52
|
+
selectedKeyList:this.selectedKeyList}},lastentry:undefined};var q=o.create();q.version="$Version:$";q.prototype={initialize:function(a){this.phase="init";this.$widget=a;this.options=a.options;this.$tree=a.element;this.timer=null;this.divTree=this.$tree.get(0);m(this)},_load:function(a){var b=this.options;this.bEnableUpdate=true;this._nodeCount=1;this.focusNode=this.activeNode=null;b.rootVisible!==undefined&&_log("warn","Option 'rootVisible' is no longer supported.");b.title!==undefined&&_log("warn",
|
53
|
+
"Option 'title' is no longer supported.");if(b.minExpandLevel<1){_log("warn","Option 'minExpandLevel' must be >= 1.");b.minExpandLevel=1}if(b.classNames!==f.ui.dynatree.prototype.options.classNames)b.classNames=f.extend({},f.ui.dynatree.prototype.options.classNames,b.classNames);if(b.ajaxDefaults!==f.ui.dynatree.prototype.options.ajaxDefaults)b.ajaxDefaults=f.extend({},f.ui.dynatree.prototype.options.ajaxDefaults,b.ajaxDefaults);if(b.dnd!==f.ui.dynatree.prototype.options.dnd)b.dnd=f.extend({},f.ui.dynatree.prototype.options.dnd,
|
54
|
+
b.dnd);b.imagePath||f("script").each(function(){if(this.src.search(/.*dynatree[^\/]*\.js$/i)>=0){b.imagePath=this.src.indexOf("/")>=0?this.src.slice(0,this.src.lastIndexOf("/"))+"/skin/":"skin/";logMsg("Guessing imagePath from '%s': '%s'",this.src,b.imagePath);return false}});this.persistence=new n(b.cookieId,b.cookie);if(b.persist){f.cookie||_log("warn","Please include jquery.cookie.js to use persistence.");this.persistence.read()}this.logDebug("DynaTree.persistence: %o",this.persistence.toDict());
|
55
|
+
this.cache={tagEmpty:"<span class='"+b.classNames.empty+"'></span>",tagVline:"<span class='"+b.classNames.vline+"'></span>",tagExpander:"<span class='"+b.classNames.expander+"'></span>",tagConnector:"<span class='"+b.classNames.connector+"'></span>",tagNodeIcon:"<span class='"+b.classNames.nodeIcon+"'></span>",tagCheckbox:"<span class='"+b.classNames.checkbox+"'></span>",lastentry:undefined};if(b.children||b.initAjax&&b.initAjax.url||b.initId)f(this.divTree).empty();else this.divRoot&&f(this.divRoot).remove();
|
56
|
+
this.tnRoot=new p(null,this,{});this.tnRoot.bExpanded=true;this.tnRoot.render();this.divTree.appendChild(this.tnRoot.ul);var c=this.tnRoot,d=b.persist&&this.persistence.isReloading(),e=false,g=this.enableUpdate(false);this.logDebug("Dynatree._load(): read tree structure...");if(b.children)c.addChild(b.children);else if(b.initAjax&&b.initAjax.url){e=true;c.data.isLazy=true;this._reloadAjax(a)}else if(b.initId)this._createFromTag(c,f("#"+b.initId));else{a=this.$tree.find(">ul:first").hide();this._createFromTag(c,
|
57
|
+
a);a.remove()}this._checkConsistency();this.logDebug("Dynatree._load(): render nodes...");this.enableUpdate(g);this.logDebug("Dynatree._load(): bind events...");this.$widget.bind();this.logDebug("Dynatree._load(): postInit...");this.phase="postInit";b.persist&&this.persistence.write();if(this.focusNode&&this.focusNode.isVisible()){this.logDebug("Focus on init: %o",this.focusNode);this.focusNode.focus()}!e&&b.onPostInit&&b.onPostInit.call(this,d,false);this.phase="idle"},_reloadAjax:function(a){var b=
|
58
|
+
this.options;if(!b.initAjax||!b.initAjax.url)throw"tree.reload() requires 'initAjax' mode.";var c=this.persistence,d=f.extend({},b.initAjax);if(d.addActiveKey)d.data.activeKey=c.activeKey;if(d.addFocusedKey)d.data.focusedKey=c.focusedKey;if(d.addExpandedKeyList)d.data.expandedKeyList=c.expandedKeyList.join(",");if(d.addSelectedKeyList)d.data.selectedKeyList=c.selectedKeyList.join(",");if(b.onPostInit){d.success&&this.logWarning("initAjax: success callback is ignored when onPostInit was specified.");
|
59
|
+
d.error&&this.logWarning("initAjax: error callback is ignored when onPostInit was specified.");var e=c.isReloading();d.success=function(g){b.onPostInit.call(g.tree,e,false);a&&a.call(g.tree,"ok")};d.error=function(g){b.onPostInit.call(g.tree,e,true);a&&a.call(g.tree,"error")}}this.logDebug("Dynatree._init(): send Ajax request...");this.tnRoot.appendAjax(d)},toString:function(){return"Dynatree '"+this.$tree.attr("id")+"'"},toDict:function(){return this.tnRoot.toDict(true)},serializeArray:function(a){a=
|
60
|
+
this.getSelectedNodes(a);for(var b=this.$tree.attr("name")||this.$tree.attr("id"),c=[],d=0,e=a.length;d<e;d++)c.push({name:b,value:a[d].data.key});return c},getPersistData:function(){return this.persistence.toDict()},logDebug:function(){if(this.options.debugLevel>=2){Array.prototype.unshift.apply(arguments,["debug"]);_log.apply(this,arguments)}},logInfo:function(){if(this.options.debugLevel>=1){Array.prototype.unshift.apply(arguments,["info"]);_log.apply(this,arguments)}},logWarning:function(){Array.prototype.unshift.apply(arguments,
|
61
|
+
["warn"]);_log.apply(this,arguments)},isInitializing:function(){return this.phase=="init"||this.phase=="postInit"},isReloading:function(){return(this.phase=="init"||this.phase=="postInit")&&this.options.persist&&this.persistence.cookiesFound},isUserEvent:function(){return this.phase=="userEvent"},redraw:function(){this.logDebug("dynatree.redraw()...");this.tnRoot.render(false);this.logDebug("dynatree.redraw() done.")},reload:function(a){this._load(a)},getRoot:function(){return this.tnRoot},enable:function(){this.$widget.enable()},
|
60
62
|
disable:function(){this.$widget.disable()},getNodeByKey:function(a){var b=document.getElementById(this.options.idPrefix+a);if(b)return b.dtnode?b.dtnode:null;var c=null;this.visit(function(d){if(d.data.key==a){c=d;return false}},true);return c},getActiveNode:function(){return this.activeNode},reactivate:function(a){var b=this.activeNode;if(b){this.activeNode=null;b.activate();a&&b.focus()}},getSelectedNodes:function(a){var b=[];this.tnRoot.visit(function(c){if(c.bSelected){b.push(c);if(a===true)return"skip"}});
|
61
|
-
return b},activateKey:function(a){a=a===null?null:this.getNodeByKey(a);if(!a){this.activeNode&&this.activeNode.deactivate();return this.activeNode=null}a.focus();a.activate();return a},loadKeyPath:function(a,b
|
62
|
-
c.select(b);return c},enableUpdate:function(a){if(this.bEnableUpdate==a)return a;(this.bEnableUpdate=a)&&this.redraw();return!a},visit:function(a,b){return this.tnRoot.visit(a,b)},_createFromTag:function(a,b){var c=this;b.find(">li").each(function(){var d=
|
63
|
-
activate:d.hasClass("active"),focus:d.hasClass("focused"),noLink:d.hasClass("noLink")};if(d.attr("title"))e.tooltip=d.attr("title");if(d.attr("id"))e.key=d.attr("id");if(d.attr("data"))if(f
|
64
|
-
|
65
|
-
|
66
|
-
b.addClass("dynatree-drop-accept");c.addClass("dynatree-drop-accept")}else{a&&a.removeClass("dynatree-drop-accept");b.removeClass("dynatree-drop-accept");c.removeClass("dynatree-drop-accept")}if(e===false){a&&a.addClass("dynatree-drop-reject");b.addClass("dynatree-drop-reject");c.addClass("dynatree-drop-reject")}else{a&&a.removeClass("dynatree-drop-reject");b.removeClass("dynatree-drop-reject");c.removeClass("dynatree-drop-reject")}},_onDragEvent:function(a,b,c,d,e,
|
67
|
-
a,b,c,this);var h=this.options.dnd,i=null,j=
|
68
|
-
break;case "enter":i=h.onDragEnter?h.onDragEnter(b,c):null;i={over:i!==false&&(i===true||i==="over"||
|
69
|
-
|
70
|
-
a=null}else if(a==="over"&&c&&c.parent===b&&c.isLastSibling()){
|
71
|
-
e.helper.data("enterResponse",null);e.helper.data("hitMode",null);this._setDndStatus(c,b,e.helper,"out",undefined);h.onDragLeave&&h.onDragLeave(b,c);break;case "stop":j.removeClass("dynatree-drag-source");h.onDragStop&&h.onDragStop(b);break;default:throw"Unsupported drag event: "+a;}return i},lastentry:undefined};
|
72
|
-
"ui.dynatree._init() was called; no current default functionality.")},_create:function(){logMsg("Dynatree._create(): version='%s', debugLevel=%o.",q.version,this.options.debugLevel);this.options.event+=".dynatree";this.element.get(0);this.tree=new q(this);this.tree._load();this.tree.logDebug("Dynatree._init(): done.")},bind:function(){function a(
|
73
|
-
|
74
|
-
e)===false?false:
|
75
|
-
getRoot:function(){return this.tree.getRoot()},getActiveNode:function(){return this.tree.getActiveNode()},getSelectedNodes:function(){return this.tree.getSelectedNodes()},lastentry:undefined});
|
76
|
-
|
77
|
-
|
78
|
-
hasChildren:"dynatree-has-children",active:"dynatree-active",selected:"dynatree-selected",expanded:"dynatree-expanded",lazy:"dynatree-lazy",focused:"dynatree-focused",partsel:"dynatree-partsel",lastsib:"dynatree-lastsib"},
|
79
|
-
var r=false,s=function(){if(!r){
|
80
|
-
d,null,a,b,c)}},drag:function(a,b){var c=
|
81
|
-
c)},stop:function(a,b){var c=
|
82
|
-
e,d,a,b,c);e.tree._onDragEvent("leave",e,d,a,b,c)}d&&d.tree._onDragEvent("stop",d,null,a,b,c)}});r=true}}})(jQuery);
|
63
|
+
return b},activateKey:function(a){a=a===null?null:this.getNodeByKey(a);if(!a){this.activeNode&&this.activeNode.deactivate();return this.activeNode=null}a.focus();a.activate();return a},loadKeyPath:function(a,b){var c=a.split(this.options.keyPathSeparator);c[0]===""&&c.shift();if(c[0]==this.tnRoot.data.key){this.logDebug("Removed leading root key.");c.shift()}a=c.join(this.options.keyPathSeparator);return this.tnRoot._loadKeyPath(a,b)},selectKey:function(a,b){var c=this.getNodeByKey(a);if(!c)return null;
|
64
|
+
c.select(b);return c},enableUpdate:function(a){if(this.bEnableUpdate==a)return a;(this.bEnableUpdate=a)&&this.redraw();return!a},visit:function(a,b){return this.tnRoot.visit(a,b)},_createFromTag:function(a,b){var c=this;b.find(">li").each(function(){var d=f(this),e=d.find(">span:first");if(e.length)e=e.html();else{e=d.html();var g=e.search(/<ul/i);e=g>=0?f.trim(e.substring(0,g)):f.trim(e)}e={title:e,isFolder:d.hasClass("folder"),isLazy:d.hasClass("lazy"),expand:d.hasClass("expanded"),select:d.hasClass("selected"),
|
65
|
+
activate:d.hasClass("active"),focus:d.hasClass("focused"),noLink:d.hasClass("noLink")};if(d.attr("title"))e.tooltip=d.attr("title");if(d.attr("id"))e.key=d.attr("id");if(d.attr("data"))if(g=f.trim(d.attr("data"))){if(g.charAt(0)!="{")g="{"+g+"}";try{f.extend(e,eval("("+g+")"))}catch(h){throw"Error parsing node data: "+h+"\ndata:\n'"+g+"'";}}e=a.addChild(e);d=d.find(">ul:first");d.length&&c._createFromTag(e,d)})},_checkConsistency:function(){},_setDndStatus:function(a,b,c,d,e){a=a?f(a.span):null;b=
|
66
|
+
f(b.span);if(!this.$dndMarker){this.$dndMarker=f("<div id='dynatree-drop-marker'></div>").hide().prependTo(f(this.divTree).parent());logMsg("Creating marker: %o",this.$dndMarker)}if(d==="after"||d==="before"||d==="over"){var g=b.position();switch(d){case "before":this.$dndMarker.removeClass("dynatree-drop-after dynatree-drop-over");this.$dndMarker.addClass("dynatree-drop-before");g.top-=8;break;case "after":this.$dndMarker.removeClass("dynatree-drop-before dynatree-drop-over");this.$dndMarker.addClass("dynatree-drop-after");
|
67
|
+
g.top+=8;break;default:this.$dndMarker.removeClass("dynatree-drop-after dynatree-drop-before");this.$dndMarker.addClass("dynatree-drop-over");b.addClass("dynatree-drop-target");g.left+=8}this.$dndMarker.css({left:g.left+"px",top:g.top+"px"}).show()}else{b.removeClass("dynatree-drop-target");this.$dndMarker.hide()}d==="after"?b.addClass("dynatree-drop-after"):b.removeClass("dynatree-drop-after");d==="before"?b.addClass("dynatree-drop-before"):b.removeClass("dynatree-drop-before");if(e===true){a&&a.addClass("dynatree-drop-accept");
|
68
|
+
b.addClass("dynatree-drop-accept");c.addClass("dynatree-drop-accept")}else{a&&a.removeClass("dynatree-drop-accept");b.removeClass("dynatree-drop-accept");c.removeClass("dynatree-drop-accept")}if(e===false){a&&a.addClass("dynatree-drop-reject");b.addClass("dynatree-drop-reject");c.addClass("dynatree-drop-reject")}else{a&&a.removeClass("dynatree-drop-reject");b.removeClass("dynatree-drop-reject");c.removeClass("dynatree-drop-reject")}},_onDragEvent:function(a,b,c,d,e,g){a!=="over"&&this.logDebug("tree._onDragEvent(%s, %o, %o) - %o",
|
69
|
+
a,b,c,this);var h=this.options.dnd,i=null,j=f(b.span);switch(a){case "helper":c=f("<div class='dynatree-drag-helper'><span class='dynatree-drag-helper-img' /></div>").append(f(d.target).closest("a").clone());c.data("dtSourceNode",b);this.logDebug("helper.sourceNode=%o",c.data("dtSourceNode"));i=c;break;case "start":if(b.isStatusNode())i=false;else if(h.onDragStart)i=h.onDragStart(b);if(i===false){this.logDebug("tree.onDragStart() cancelled");e.helper.trigger("mouseup");e.helper.hide()}else j.addClass("dynatree-drag-source");
|
70
|
+
break;case "enter":i=h.onDragEnter?h.onDragEnter(b,c):null;i={over:i!==false&&(i===true||i==="over"||f.inArray("over",i)>=0),before:i!==false&&(i===true||i==="before"||f.inArray("before",i)>=0),after:i!==false&&(i===true||i==="after"||f.inArray("after",i)>=0)};e.helper.data("enterResponse",i);this.logDebug("helper.enterResponse: %o",i);break;case "over":g=e.helper.data("enterResponse");a=null;if(g===false)break;else if(typeof g==="string")a=g;else{var l=j.offset();d={x:d.pageX-l.left,y:d.pageY-l.top};
|
71
|
+
j={x:d.x/j.width(),y:d.y/j.height()};if(g.after&&j.y>0.75)a="after";else if(!g.over&&g.after&&j.y>0.5)a="after";else if(g.before&&j.y<=0.25)a="before";else if(!g.over&&g.before&&j.y<=0.5)a="before";else if(g.over)a="over";if(h.preventVoidMoves)if(b===c){this.logDebug(" drop over source node prevented");a=null}else if(a==="before"&&c&&b===c.getNextSibling()){this.logDebug(" drop after source node prevented");a=null}else if(a==="after"&&c&&b===c.getPrevSibling()){this.logDebug(" drop before source node prevented");
|
72
|
+
a=null}else if(a==="over"&&c&&c.parent===b&&c.isLastSibling()){this.logDebug(" drop last child over own parent prevented");a=null}this.logDebug("hitMode: %s - %s - %s",a,b.parent===c,b.isLastSibling());e.helper.data("hitMode",a)}a==="over"&&h.autoExpandMS&&b.hasChildren()!==false&&!b.bExpanded&&b.scheduleAction("expand",h.autoExpandMS);if(a&&h.onDragOver)i=h.onDragOver(b,c,a);this._setDndStatus(c,b,e.helper,a,i!==false);break;case "drop":(a=e.helper.data("hitMode"))&&h.onDrop&&h.onDrop(b,c,a,e,
|
73
|
+
g);break;case "leave":b.scheduleAction("cancel");e.helper.data("enterResponse",null);e.helper.data("hitMode",null);this._setDndStatus(c,b,e.helper,"out",undefined);h.onDragLeave&&h.onDragLeave(b,c);break;case "stop":j.removeClass("dynatree-drag-source");h.onDragStop&&h.onDragStop(b);break;default:throw"Unsupported drag event: "+a;}return i},cancelDrag:function(){var a=f.ui.ddmanager.current;a&&a.cancel()},lastentry:undefined};f.widget("ui.dynatree",{_init:function(){if(parseFloat(f.ui.version)<1.8){_log("warn",
|
74
|
+
"ui.dynatree._init() was called; you should upgrade to jquery.ui.core.js v1.8 or higher.");return this._create()}_log("debug","ui.dynatree._init() was called; no current default functionality.")},_create:function(){logMsg("Dynatree._create(): version='%s', debugLevel=%o.",q.version,this.options.debugLevel);this.options.event+=".dynatree";this.element.get(0);this.tree=new q(this);this.tree._load();this.tree.logDebug("Dynatree._init(): done.")},bind:function(){function a(c){c=c=f.event.fix(c||window.event);
|
75
|
+
var d=k(c.target);return d?d._onFocus(c):false}this.unbind();var b="click.dynatree dblclick.dynatree";if(this.options.keyboard)b+=" keypress.dynatree keydown.dynatree";this.element.bind(b,function(c){var d=k(c.target);if(!d)return true;var e=d.tree,g=e.options;e.logDebug("event(%s): dtnode: %s",c.type,d);var h=e.phase;e.phase="userEvent";try{switch(c.type){case "click":return g.onClick&&g.onClick.call(e,d,c)===false?false:d._onClick(c);case "dblclick":return g.onDblClick&&g.onDblClick.call(e,d,c)===
|
76
|
+
false?false:d._onDblClick(c);case "keydown":return g.onKeydown&&g.onKeydown.call(e,d,c)===false?false:d._onKeydown(c);case "keypress":return g.onKeypress&&g.onKeypress.call(e,d,c)===false?false:d._onKeypress(c)}}catch(i){e.logWarning("bind(%o): dtnode: %o, error: %o",c,d,i)}finally{e.phase=h}});b=this.tree.divTree;if(b.addEventListener){b.addEventListener("focus",a,true);b.addEventListener("blur",a,true)}else b.onfocusin=b.onfocusout=a},unbind:function(){this.element.unbind(".dynatree")},enable:function(){this.bind();
|
77
|
+
f.Widget.prototype.enable.apply(this,arguments)},disable:function(){this.unbind();f.Widget.prototype.disable.apply(this,arguments)},getTree:function(){return this.tree},getRoot:function(){return this.tree.getRoot()},getActiveNode:function(){return this.tree.getActiveNode()},getSelectedNodes:function(){return this.tree.getSelectedNodes()},lastentry:undefined});if(parseFloat(f.ui.version)<1.8)f.ui.dynatree.getter="getTree getRoot getActiveNode getSelectedNodes";f.ui.dynatree.prototype.options={title:"Dynatree",
|
78
|
+
minExpandLevel:1,imagePath:null,children:null,initId:null,initAjax:null,autoFocus:true,keyboard:true,persist:false,autoCollapse:false,clickFolderMode:3,activeVisible:true,checkbox:false,selectMode:2,fx:null,noLink:false,onClick:null,onDblClick:null,onKeydown:null,onKeypress:null,onFocus:null,onBlur:null,onQueryActivate:null,onQuerySelect:null,onQueryExpand:null,onPostInit:null,onActivate:null,onDeactivate:null,onSelect:null,onExpand:null,onLazyRead:null,dnd:{onDragStart:null,onDragStop:null,autoExpandMS:1E3,
|
79
|
+
preventVoidMoves:true,onDragEnter:null,onDragOver:null,onDrop:null,onDragLeave:null},ajaxDefaults:{cache:false,dataType:"json"},strings:{loading:"Loading…",loadError:"Load error!"},generateIds:false,idPrefix:"dynatree-id-",keyPathSeparator:"/",cookieId:"dynatree",cookie:{expires:null},classNames:{container:"dynatree-container",node:"dynatree-node",folder:"dynatree-folder",empty:"dynatree-empty",vline:"dynatree-vline",expander:"dynatree-expander",connector:"dynatree-connector",checkbox:"dynatree-checkbox",
|
80
|
+
nodeIcon:"dynatree-icon",title:"dynatree-title",noConnector:"dynatree-no-connector",nodeError:"dynatree-statusnode-error",nodeWait:"dynatree-statusnode-wait",hidden:"dynatree-hidden",combinedExpanderPrefix:"dynatree-exp-",combinedIconPrefix:"dynatree-ico-",nodeLoading:"dynatree-loading",hasChildren:"dynatree-has-children",active:"dynatree-active",selected:"dynatree-selected",expanded:"dynatree-expanded",lazy:"dynatree-lazy",focused:"dynatree-focused",partsel:"dynatree-partsel",lastsib:"dynatree-lastsib"},
|
81
|
+
debugLevel:2,lastentry:undefined};if(parseFloat(f.ui.version)<1.8)f.ui.dynatree.defaults=f.ui.dynatree.prototype.options;f.ui.dynatree.nodedatadefaults={title:null,key:null,isFolder:false,isLazy:false,tooltip:null,icon:null,addClass:null,noLink:false,activate:false,focus:false,expand:false,select:false,hideCheckbox:false,unselectable:false,children:null,lastentry:undefined};var r=false,s=function(){if(!r){f.ui.plugin.add("draggable","connectToDynatree",{start:function(a,b){var c=f(this).data("draggable"),
|
82
|
+
d=b.helper.data("dtSourceNode")||null;logMsg("draggable-connectToDynatree.start, %s",d);logMsg(" this: %o",this);logMsg(" event: %o",a);logMsg(" draggable: %o",c);logMsg(" ui: %o",b);if(d){c.offset.click.top=-2;c.offset.click.left=+16;return d.tree._onDragEvent("start",d,null,a,b,c)}},drag:function(a,b){var c=f(this).data("draggable"),d=b.helper.data("dtSourceNode")||null,e=b.helper.data("dtTargetNode")||null,g=k(a.target);if(a.target&&!g)if(f(a.target).closest("div.dynatree-drag-helper,#dynatree-drop-marker").length>
|
83
|
+
0){logMsg("Drag event over helper: ignored.");return}b.helper.data("dtTargetNode",g);e&&e!==g&&e.tree._onDragEvent("leave",e,d,a,b,c);if(g)if(g.tree.options.dnd.onDrop)g===e?g.tree._onDragEvent("over",g,d,a,b,c):g.tree._onDragEvent("enter",g,d,a,b,c)},stop:function(a,b){var c=f(this).data("draggable"),d=b.helper.data("dtSourceNode")||null,e=b.helper.data("dtTargetNode")||null;logMsg("draggable-connectToDynatree.stop: targetNode(from event): %s, dtTargetNode: %s",e,b.helper.data("dtTargetNode"));logMsg("draggable-connectToDynatree.stop, %s",
|
84
|
+
d);var g=a.type;logMsg(" type: %o, downEvent: %o, upEvent: %o",g,c._mouseDownEvent,a);logMsg(" targetNode: %o",e);(g=g=="mouseup"&&a.which==1)||logMsg("Drag was cancelled");if(e){g&&e.tree._onDragEvent("drop",e,d,a,b,c);e.tree._onDragEvent("leave",e,d,a,b,c)}d&&d.tree._onDragEvent("stop",d,null,a,b,c)}});r=true}}})(jQuery);
|
@@ -80,7 +80,7 @@ span {
|
|
80
80
|
background-position: left;
|
81
81
|
margin-left: 3px;
|
82
82
|
background-image: image_url("jquery/dynatree/aero/document.png"); }
|
83
|
-
&.dynatree-checkbox {
|
83
|
+
&.dynatree-checkbox, &.dynatree-radio, &.dynatree-drag-helper-img {
|
84
84
|
width: 16px;
|
85
85
|
height: 16px;
|
86
86
|
display: -moz-inline-box;
|
@@ -89,9 +89,22 @@ span {
|
|
89
89
|
background-repeat: no-repeat;
|
90
90
|
background-position: left;
|
91
91
|
margin-left: 3px;
|
92
|
-
background-image: image_url("jquery/dynatree/aero/cbUnchecked.png");
|
93
|
-
|
94
|
-
|
92
|
+
background-image: image_url("jquery/dynatree/aero/cbUnchecked.png"); } }
|
93
|
+
|
94
|
+
#dynatree-drop-marker {
|
95
|
+
width: 16px;
|
96
|
+
height: 16px;
|
97
|
+
display: -moz-inline-box;
|
98
|
+
display: inline-block;
|
99
|
+
vertical-align: top;
|
100
|
+
background-repeat: no-repeat;
|
101
|
+
background-position: left;
|
102
|
+
margin-left: 3px;
|
103
|
+
background-image: image_url("jquery/dynatree/aero/cbUnchecked.png"); }
|
104
|
+
|
105
|
+
span {
|
106
|
+
&.dynatree-checkbox:hover {
|
107
|
+
background-image: image_url("jquery/dynatree/aero/cbUnchecked_hover.png"); }
|
95
108
|
&.dynatree-radio {
|
96
109
|
margin-left: 3px;
|
97
110
|
background-image: image_url("jquery/dynatree/aero/rbUnchecked.png");
|
@@ -188,6 +201,20 @@ div {
|
|
188
201
|
&.dynatree-drop-reject span.dynatree-drag-helper-img {
|
189
202
|
background-image: image_url("jquery/dynatree/aero/drop_reject.png"); } }
|
190
203
|
|
204
|
+
/*** Drop marker icon *********************************************************/
|
205
|
+
|
206
|
+
#dynatree-drop-marker {
|
207
|
+
width: 24px;
|
208
|
+
position: absolute;
|
209
|
+
background-image: image_url("jquery/dynatree/aero/drop_here.png");
|
210
|
+
&.dynatree-drop-after, &.dynatree-drop-before {
|
211
|
+
width: 64px;
|
212
|
+
background-image: image_url("jquery/dynatree/aero/drop_sibling_here.png"); }
|
213
|
+
&.dynatree-drop-copy {
|
214
|
+
background-image: image_url("jquery/dynatree/aero/copy_here.png"); }
|
215
|
+
&.dynatree-drop-move {
|
216
|
+
background-image: image_url("jquery/dynatree/aero/move_here.png"); } }
|
217
|
+
|
191
218
|
/* Source node while dragging */
|
192
219
|
|
193
220
|
span {
|
@@ -199,14 +226,15 @@ span {
|
|
199
226
|
&.dynatree-drop-target {
|
200
227
|
/*border: 1px solid gray;*/
|
201
228
|
a {
|
202
|
-
background-repeat: no-repeat
|
203
|
-
background-position: right
|
229
|
+
/*background-repeat: no-repeat;*/
|
230
|
+
/*background-position: right;*/
|
204
231
|
/*background-image: image_url("jquery/dynatree/aero/drop_child.png");*/ }
|
205
232
|
&.dynatree-drop-accept a {
|
206
233
|
/*border: 1px solid green;*/
|
207
234
|
background-color: #3169C6 !important;
|
208
235
|
color: white !important;
|
209
|
-
/* @ IE6 */
|
236
|
+
/* @ IE6 */
|
237
|
+
text-decoration: none; }
|
210
238
|
&.dynatree-drop-reject {
|
211
239
|
/*border: 1px solid red;*/ }
|
212
240
|
&.dynatree-drop-after a {
|
@@ -215,14 +243,3 @@ span {
|
|
215
243
|
background-image: image_url("jquery/dynatree/aero/drop_append.png");*/ } } }
|
216
244
|
|
217
245
|
/* Target node while dragging cursor is over it */
|
218
|
-
|
219
|
-
/* Drop marker icon */
|
220
|
-
|
221
|
-
#dynatree_drop_marker {
|
222
|
-
width: 24px;
|
223
|
-
position: absolute;
|
224
|
-
background-image: image_url("jquery/dynatree/aero/drop_here.png");
|
225
|
-
&.dynatree_drop_copy {
|
226
|
-
background-image: image_url("jquery/dynatree/aero/copy_here.png"); }
|
227
|
-
&.dynatree_drop_move {
|
228
|
-
background-image: image_url("jquery/dynatree/aero/move_here.png"); } }
|
Binary file
|
@@ -80,7 +80,7 @@ span {
|
|
80
80
|
background-position: left;
|
81
81
|
margin-left: 3px;
|
82
82
|
background-image: image_url("jquery/dynatree/aqua/document.png"); }
|
83
|
-
&.dynatree-checkbox {
|
83
|
+
&.dynatree-checkbox, &.dynatree-radio, &.dynatree-drag-helper-img {
|
84
84
|
width: 16px;
|
85
85
|
height: 16px;
|
86
86
|
display: -moz-inline-box;
|
@@ -89,9 +89,22 @@ span {
|
|
89
89
|
background-repeat: no-repeat;
|
90
90
|
background-position: left;
|
91
91
|
margin-left: 3px;
|
92
|
-
background-image: image_url("jquery/dynatree/aqua/cbUnchecked.png");
|
93
|
-
|
94
|
-
|
92
|
+
background-image: image_url("jquery/dynatree/aqua/cbUnchecked.png"); } }
|
93
|
+
|
94
|
+
#dynatree-drop-marker {
|
95
|
+
width: 16px;
|
96
|
+
height: 16px;
|
97
|
+
display: -moz-inline-box;
|
98
|
+
display: inline-block;
|
99
|
+
vertical-align: top;
|
100
|
+
background-repeat: no-repeat;
|
101
|
+
background-position: left;
|
102
|
+
margin-left: 3px;
|
103
|
+
background-image: image_url("jquery/dynatree/aqua/cbUnchecked.png"); }
|
104
|
+
|
105
|
+
span {
|
106
|
+
&.dynatree-checkbox:hover {
|
107
|
+
background-image: image_url("jquery/dynatree/aqua/cbUnchecked_hover.png"); }
|
95
108
|
&.dynatree-radio {
|
96
109
|
margin-left: 3px;
|
97
110
|
background-image: image_url("jquery/dynatree/aqua/rbUnchecked.png");
|
@@ -152,7 +165,7 @@ span {
|
|
152
165
|
span.dynatree-icon {
|
153
166
|
background-image: image_url("jquery/dynatree/aqua/folder.png"); }
|
154
167
|
&.dynatree-expanded span.dynatree-icon {
|
155
|
-
background-image: image_url("jquery/dynatree/aqua/
|
168
|
+
background-image: image_url("jquery/dynatree/aqua/folder.png"); } }
|
156
169
|
|
157
170
|
.dynatree-statusnode-wait span.dynatree-icon {
|
158
171
|
background-image: image_url("jquery/dynatree/aqua/ltWait.gif"); }
|
@@ -188,6 +201,20 @@ div {
|
|
188
201
|
&.dynatree-drop-reject span.dynatree-drag-helper-img {
|
189
202
|
background-image: image_url("jquery/dynatree/aqua/drop_reject.png"); } }
|
190
203
|
|
204
|
+
/*** Drop marker icon *********************************************************/
|
205
|
+
|
206
|
+
#dynatree-drop-marker {
|
207
|
+
width: 24px;
|
208
|
+
position: absolute;
|
209
|
+
background-image: image_url("jquery/dynatree/aqua/drop_here.png");
|
210
|
+
&.dynatree-drop-after, &.dynatree-drop-before {
|
211
|
+
width: 64px;
|
212
|
+
background-image: image_url("jquery/dynatree/aqua/drop_sibling_here.png"); }
|
213
|
+
&.dynatree-drop-copy {
|
214
|
+
background-image: image_url("jquery/dynatree/aqua/copy_here.png"); }
|
215
|
+
&.dynatree-drop-move {
|
216
|
+
background-image: image_url("jquery/dynatree/aqua/move_here.png"); } }
|
217
|
+
|
191
218
|
/* Source node while dragging */
|
192
219
|
|
193
220
|
span {
|
@@ -199,14 +226,15 @@ span {
|
|
199
226
|
&.dynatree-drop-target {
|
200
227
|
/*border: 1px solid gray;*/
|
201
228
|
a {
|
202
|
-
background-repeat: no-repeat
|
203
|
-
background-position: right
|
229
|
+
/*background-repeat: no-repeat;*/
|
230
|
+
/*background-position: right;*/
|
204
231
|
/*background-image: image_url("jquery/dynatree/aqua/drop_child.png");*/ }
|
205
232
|
&.dynatree-drop-accept a {
|
206
233
|
/*border: 1px solid green;*/
|
207
234
|
background-color: #3169C6 !important;
|
208
235
|
color: white !important;
|
209
|
-
/* @ IE6 */
|
236
|
+
/* @ IE6 */
|
237
|
+
text-decoration: none; }
|
210
238
|
&.dynatree-drop-reject {
|
211
239
|
/*border: 1px solid red;*/ }
|
212
240
|
&.dynatree-drop-after a {
|
@@ -215,14 +243,3 @@ span {
|
|
215
243
|
background-image: image_url("jquery/dynatree/aqua/drop_append.png");*/ } } }
|
216
244
|
|
217
245
|
/* Target node while dragging cursor is over it */
|
218
|
-
|
219
|
-
/* Drop marker icon */
|
220
|
-
|
221
|
-
#dynatree_drop_marker {
|
222
|
-
width: 24px;
|
223
|
-
position: absolute;
|
224
|
-
background-image: image_url("jquery/dynatree/aqua/drop_here.png");
|
225
|
-
&.dynatree_drop_copy {
|
226
|
-
background-image: image_url("jquery/dynatree/aqua/copy_here.png"); }
|
227
|
-
&.dynatree_drop_move {
|
228
|
-
background-image: image_url("jquery/dynatree/aqua/move_here.png"); } }
|
Binary file
|
@@ -7,7 +7,7 @@ ul {
|
|
7
7
|
white-space: nowrap;
|
8
8
|
padding: 3px;
|
9
9
|
background-color: white;
|
10
|
-
border: 1px solid #
|
10
|
+
border: 1px solid #8AB0CA;
|
11
11
|
-moz-border-radius: 4px;
|
12
12
|
-webkit-border-radius: 4px;
|
13
13
|
border-radius: 4px;
|
@@ -80,7 +80,7 @@ span {
|
|
80
80
|
background-position: left;
|
81
81
|
margin-left: 3px;
|
82
82
|
background-image: image_url("jquery/dynatree/crystal/document.png"); }
|
83
|
-
&.dynatree-checkbox {
|
83
|
+
&.dynatree-checkbox, &.dynatree-radio, &.dynatree-drag-helper-img {
|
84
84
|
width: 16px;
|
85
85
|
height: 16px;
|
86
86
|
display: -moz-inline-box;
|
@@ -89,9 +89,22 @@ span {
|
|
89
89
|
background-repeat: no-repeat;
|
90
90
|
background-position: left;
|
91
91
|
margin-left: 3px;
|
92
|
-
background-image: image_url("jquery/dynatree/crystal/cbUnchecked.png");
|
93
|
-
|
94
|
-
|
92
|
+
background-image: image_url("jquery/dynatree/crystal/cbUnchecked.png"); } }
|
93
|
+
|
94
|
+
#dynatree-drop-marker {
|
95
|
+
width: 16px;
|
96
|
+
height: 16px;
|
97
|
+
display: -moz-inline-box;
|
98
|
+
display: inline-block;
|
99
|
+
vertical-align: top;
|
100
|
+
background-repeat: no-repeat;
|
101
|
+
background-position: left;
|
102
|
+
margin-left: 3px;
|
103
|
+
background-image: image_url("jquery/dynatree/crystal/cbUnchecked.png"); }
|
104
|
+
|
105
|
+
span {
|
106
|
+
&.dynatree-checkbox:hover {
|
107
|
+
background-image: image_url("jquery/dynatree/crystal/cbUnchecked_hover.png"); }
|
95
108
|
&.dynatree-radio {
|
96
109
|
margin-left: 3px;
|
97
110
|
background-image: image_url("jquery/dynatree/crystal/rbUnchecked.png");
|
@@ -152,7 +165,7 @@ span {
|
|
152
165
|
span.dynatree-icon {
|
153
166
|
background-image: image_url("jquery/dynatree/crystal/folder.png"); }
|
154
167
|
&.dynatree-expanded span.dynatree-icon {
|
155
|
-
background-image: image_url("jquery/dynatree/crystal/
|
168
|
+
background-image: image_url("jquery/dynatree/crystal/folder.png"); } }
|
156
169
|
|
157
170
|
.dynatree-statusnode-wait span.dynatree-icon {
|
158
171
|
background-image: image_url("jquery/dynatree/crystal/ltWait.gif"); }
|
@@ -188,6 +201,20 @@ div {
|
|
188
201
|
&.dynatree-drop-reject span.dynatree-drag-helper-img {
|
189
202
|
background-image: image_url("jquery/dynatree/crystal/drop_reject.png"); } }
|
190
203
|
|
204
|
+
/*** Drop marker icon *********************************************************/
|
205
|
+
|
206
|
+
#dynatree-drop-marker {
|
207
|
+
width: 24px;
|
208
|
+
position: absolute;
|
209
|
+
background-image: image_url("jquery/dynatree/crystal/drop_here.png");
|
210
|
+
&.dynatree-drop-after, &.dynatree-drop-before {
|
211
|
+
width: 64px;
|
212
|
+
background-image: image_url("jquery/dynatree/crystal/drop_sibling_here.png"); }
|
213
|
+
&.dynatree-drop-copy {
|
214
|
+
background-image: image_url("jquery/dynatree/crystal/copy_here.png"); }
|
215
|
+
&.dynatree-drop-move {
|
216
|
+
background-image: image_url("jquery/dynatree/crystal/move_here.png"); } }
|
217
|
+
|
191
218
|
/* Source node while dragging */
|
192
219
|
|
193
220
|
span {
|
@@ -199,14 +226,15 @@ span {
|
|
199
226
|
&.dynatree-drop-target {
|
200
227
|
/*border: 1px solid gray;*/
|
201
228
|
a {
|
202
|
-
background-repeat: no-repeat
|
203
|
-
background-position: right
|
204
|
-
/*background-image: image_url("jquery/dynatree/
|
229
|
+
/*background-repeat: no-repeat;*/
|
230
|
+
/*background-position: right;*/
|
231
|
+
/*background-image: image_url("jquery/dynatree/rystal/drop_child.png");*/ }
|
205
232
|
&.dynatree-drop-accept a {
|
206
233
|
/*border: 1px solid green;*/
|
207
234
|
background-color: #3169C6 !important;
|
208
235
|
color: white !important;
|
209
|
-
/* @ IE6 */
|
236
|
+
/* @ IE6 */
|
237
|
+
text-decoration: none; }
|
210
238
|
&.dynatree-drop-reject {
|
211
239
|
/*border: 1px solid red;*/ }
|
212
240
|
&.dynatree-drop-after a {
|
@@ -215,14 +243,3 @@ span {
|
|
215
243
|
background-image: image_url("jquery/dynatree/crystal/drop_append.png");*/ } } }
|
216
244
|
|
217
245
|
/* Target node while dragging cursor is over it */
|
218
|
-
|
219
|
-
/* Drop marker icon */
|
220
|
-
|
221
|
-
#dynatree_drop_marker {
|
222
|
-
width: 24px;
|
223
|
-
position: absolute;
|
224
|
-
background-image: image_url("jquery/dynatree/crystal/drop_here.png");
|
225
|
-
&.dynatree_drop_copy {
|
226
|
-
background-image: image_url("jquery/dynatree/crystal/copy_here.png"); }
|
227
|
-
&.dynatree_drop_move {
|
228
|
-
background-image: image_url("jquery/dynatree/crystal/move_here.png"); } }
|