compass-jquery-plugin 0.3.3.0 → 0.3.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -4
- data/VERSION.yml +1 -1
- data/lib/handle_js_files.rb +1 -1
- data/lib/jquery/gridify/grid_column.rb +4 -0
- data/lib/jquery/gridify/grid_options.rb +5 -1
- data/lib/jquery/gridify/grid_view.rb +8 -3
- data/templates/dynatree/jquery.dynatree.js +184 -73
- data/templates/dynatree/jquery.dynatree.min.js +78 -76
- data/templates/emulators/emulators/galaxy.tab.7.7.landscape.png +0 -0
- data/templates/emulators/emulators/{palm.pre.2.landscape.scss → galaxy.tab.7.7.landscape.scss} +7 -7
- data/templates/emulators/emulators/galaxy.tab.7.7.portrait.png +0 -0
- data/templates/emulators/emulators/{palm.pre.2.portrait.scss → galaxy.tab.7.7.portrait.scss} +7 -7
- data/templates/emulators/manifest.rb +4 -4
- data/templates/graphics/config/initializers/graphics.rb +1 -1
- data/templates/graphics/highcharts/dark-blue.js +257 -159
- data/templates/graphics/highcharts/dark-blue.min.js +4 -2
- data/templates/graphics/highcharts/dark-green.js +257 -159
- data/templates/graphics/highcharts/dark-green.min.js +4 -2
- data/templates/graphics/highcharts/gray.js +252 -154
- data/templates/graphics/highcharts/gray.min.js +4 -2
- data/templates/graphics/highcharts/grid.js +84 -84
- data/templates/graphics/highcharts/highslide-full.min.js +3 -3
- data/templates/graphics/highcharts/highslide.js +3391 -0
- data/templates/graphics/highcharts/highslide.min.js +132 -0
- data/templates/graphics/jquery.ganttView.min.js +4 -4
- data/templates/graphics/jquery.highcharts.js +15379 -1071
- data/templates/graphics/jquery.highcharts.min.js +384 -167
- data/templates/graphics/jquery.sparkline.min.js +2 -2
- data/templates/graphics/manifest.rb +2 -0
- data/templates/ical/jquery.ical.min.js +46 -47
- data/templates/jqgrid/i18n/jqgrid/locale-bg.min.js +2 -2
- data/templates/jqgrid/i18n/jqgrid/locale-bg1251.min.js +2 -2
- data/templates/jqgrid/i18n/jqgrid/locale-fi.js +20 -19
- data/templates/jqgrid/i18n/jqgrid/locale-fi.min.js +7 -6
- data/templates/jqgrid/i18n/jqgrid/locale-is.js +28 -28
- data/templates/jqgrid/i18n/jqgrid/locale-is.min.js +6 -6
- data/templates/jqgrid/i18n/jqgrid/locale-th.js +134 -0
- data/templates/jqgrid/i18n/jqgrid/locale-th.min.js +6 -0
- data/templates/jqgrid/jquery.jqGrid.js +674 -598
- data/templates/jqgrid/jquery.jqGrid.min.js +444 -441
- data/templates/jqgrid/jquery/jqGrid.scss +0 -3
- data/templates/jqgrid/manifest.rb +2 -0
- data/templates/jqtouch/jquery.jqtouch.js +201 -156
- data/templates/jqtouch/jquery.jqtouch.min.js +1 -1
- data/templates/jqtouch/jquery/touch/apple.scss +2 -2
- data/templates/jqtouch/jquery/touch/default.scss +2 -2
- data/templates/jquery/amplify.store.js +111 -78
- data/templates/jquery/amplify.store.min.js +6 -6
- data/templates/jquery/history.js +3 -3
- data/templates/jquery/i18n/jquery.ui/datepicker-nl.js +1 -1
- data/templates/jquery/i18n/jquery.ui/datepicker-nl.min.js +1 -1
- data/templates/jquery/jquery-ui.js +1286 -1042
- data/templates/jquery/jquery-ui.min.js +320 -316
- data/templates/jquery/jquery.contextMenu.js +2 -2
- data/templates/jquery/jquery.easing.js +152 -152
- data/templates/jquery/jquery.easing.min.js +7 -7
- data/templates/jquery/jquery.farbtastic.min.js +2 -2
- data/templates/jquery/jquery.form.js +30 -30
- data/templates/jquery/jquery.haml.min.js +5 -5
- data/templates/jquery/jquery.hotkeys.min.js +1 -1
- data/templates/jquery/jquery.js +419 -311
- data/templates/jquery/jquery.layout.js +59 -40
- data/templates/jquery/jquery.min.js +176 -176
- data/templates/jquery/jquery.themeswitchertool.js +37 -37
- data/templates/jquery/jquery.tmpl.js +4 -4
- data/templates/jquery/jquery.tmpl.min.js +9 -9
- data/templates/jquery/jquery.tmplPlus.min.js +3 -3
- data/templates/jquery/jquery.tokeninput.js +613 -490
- data/templates/jquery/jquery.tokeninput.min.js +17 -14
- data/templates/jquery/jquery/ui/_theme.scss +39 -63
- data/templates/jquery/json.js +31 -15
- data/templates/jstree/jquery.jstree.js +415 -410
- data/templates/jstree/jquery.jstree.min.js +134 -133
- data/templates/markitup/jquery.markitup.js +567 -560
- data/templates/markitup/jquery.markitup.min.js +1 -1
- data/templates/markitup/jquery/markitup/sets/default.scss +7 -3
- data/templates/markitup/jquery/markitup/sets/default/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/default/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup.scss +3 -10
- data/templates/markitup/jquery/markitup/skins/markitup/bg-container.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/menu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/simple.scss +2 -3
- data/templates/markitup/jquery/markitup/skins/simple/menu.png +0 -0
- data/templates/markitup/manifest.rb +2 -0
- data/templates/markitup/markitup/jquery.markitup.set.default.js +21 -21
- data/templates/markitup/markitup/jquery.markitup.set.default.min.js +3 -2
- data/templates/mobile/jquery.mobile.js +5230 -2846
- data/templates/mobile/jquery.mobile.min.js +192 -46
- data/templates/mobile/jquery/mobile/_base.scss +141 -18
- data/templates/mobile/jquery/mobile/default.scss +263 -66
- 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 +242 -53
- 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/tiny_mce/manifest.rb +2 -0
- data/templates/tiny_mce/tiny_mce/langs/de.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/advhr/rule.htm +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/advimage/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/advimage/editor_plugin_src.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/advimage/image.htm +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/advimage/js/image.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/advlink/link.htm +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/advlist/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/advlist/editor_plugin_src.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/autolink/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/autolink/editor_plugin_src.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/autoresize/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/autoresize/editor_plugin_src.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/autosave/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/autosave/editor_plugin_src.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/contextmenu/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/contextmenu/editor_plugin_src.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/emotions/emotions.htm +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-laughing.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-sealed.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-smile.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-surprised.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-wink.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/example/dialog.htm +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/example_dependency/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/example_dependency/editor_plugin_src.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/editor_plugin_src.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/fullpage.htm +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/template.htm +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/lists/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/lists/editor_plugin_src.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/media/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/media/editor_plugin_src.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/media/js/media.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/media/langs/en_dlg.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/media/media.htm +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/noneditable/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/noneditable/editor_plugin_src.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/paste/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/paste/editor_plugin_src.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/paste/pastetext.htm +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/paste/pasteword.htm +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/preview/example.html +16 -17
- data/templates/tiny_mce/tiny_mce/plugins/preview/preview.html +9 -10
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/searchreplace.htm +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/spellchecker/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/spellchecker/editor_plugin_src.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/style/js/props.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/style/props.htm +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/tabfocus/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/tabfocus/editor_plugin_src.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/table/cell.htm +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/table/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/table/editor_plugin_src.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/table/js/cell.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/table/js/row.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/table/langs/de_dlg.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/table/langs/en_dlg.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/table/merge_cells.htm +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/table/row.htm +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/table/table.htm +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/template/blank.htm +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/template/template.htm +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/wordcount/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/wordcount/editor_plugin_src.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/abbr.htm +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/acronym.htm +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/attributes.htm +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/cite.htm +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/del.htm +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/ins.htm +1 -1
- data/templates/tiny_mce/tiny_mce/themes/advanced/about.htm +1 -1
- data/templates/tiny_mce/tiny_mce/themes/advanced/anchor.htm +1 -1
- data/templates/tiny_mce/tiny_mce/themes/advanced/color_picker.htm +1 -1
- data/templates/tiny_mce/tiny_mce/themes/advanced/editor_template.js +1 -1
- data/templates/tiny_mce/tiny_mce/themes/advanced/editor_template_src.js +1 -1
- data/templates/tiny_mce/tiny_mce/themes/advanced/image.htm +1 -1
- data/templates/tiny_mce/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/img/flash.gif +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/img/icons.gif +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/img/quicktime.gif +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/img/shockwave.gif +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/image.js +1 -1
- data/templates/tiny_mce/tiny_mce/themes/advanced/langs/de.js +1 -1
- data/templates/tiny_mce/tiny_mce/themes/advanced/link.htm +1 -1
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/content.css +1 -1
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/dialog.css +1 -1
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/img/buttons.png +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/img/items.gif +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/img/tabs.gif +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/ui.css +1 -1
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/highcontrast/dialog.css +1 -1
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/highcontrast/ui.css +1 -1
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/content.css +1 -1
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/dialog.css +1 -1
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui.css +1 -1
- data/templates/tiny_mce/tiny_mce/themes/advanced/source_editor.htm +1 -1
- data/templates/tiny_mce/tiny_mce/themes/simple/img/icons.gif +0 -0
- data/templates/tiny_mce/tiny_mce/themes/simple/skins/default/ui.css +1 -1
- data/templates/tiny_mce/tiny_mce/themes/simple/skins/o2k7/ui.css +1 -1
- data/templates/tiny_mce/tiny_mce/tiny_mce.js +1 -1
- data/templates/tools/flowplayer.min.js +1 -1
- data/templates/tools/jquery.tools.js +17 -17
- data/templates/tools/jquery.tools.min.js +22 -22
- metadata +17 -9
- data/templates/emulators/emulators/palm.pre.2.landscape.png +0 -0
- data/templates/emulators/emulators/palm.pre.2.portrait.png +0 -0
@@ -1,81 +1,83 @@
|
|
1
|
-
var _canLog=!0;function _log(f){if(_canLog){var
|
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
|
4
|
-
var
|
1
|
+
var _canLog=!0;function _log(f,p){if(_canLog){var m=Array.prototype.slice.apply(arguments,[1]),l=new Date,l=l.getHours()+":"+l.getMinutes()+":"+l.getSeconds()+"."+l.getMilliseconds();m[0]=l+" - "+m[0];try{switch(f){case "info":window.console.info.apply(window.console,m);break;case "warn":window.console.warn.apply(window.console,m);break;default:window.console.log.apply(window.console,m)}}catch(n){window.console||(_canLog=!1)}}}
|
2
|
+
function logMsg(f){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 p(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;b&&(b.onDragStart||b.onDrop)&&s();b&&b.onDragStart&&a.$tree.draggable({addClasses:!1,appendTo:"body",containment:!1,delay:0,distance:4,revert:!1,connectToDynatree:!0,helper:function(a){var b=p(a.target);return b.tree._onDragEvent("helper",b,null,a,null,null)},_last:null});b&&b.onDrop&&a.$tree.droppable({addClasses:!1,tolerance:"intersect",greedy:!1,_last:null})}
|
4
|
+
var l={create:function(){return function(){this.initialize.apply(this,arguments)}}},n=l.create();n.prototype={initialize:function(a,b,c){this.parent=a;this.tree=b;typeof c==="string"&&(c={title:c});if(c.key===void 0)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=!1},toString:function(){return"DynaTreeNode<"+this.data.key+">: '"+this.data.title+"'"},toDict:function(a,
|
5
5
|
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,e=this.childList.length;d<e;d++)c.children.push(this.childList[d].toDict(!0,b))}else delete c.children;return c},fromDict:function(a){var b=a.children;b===void 0?(this.data=f.extend(this.data,a),this.render()):(a=f.extend({},a),a.children=void 0,this.data=f.extend(this.data,a),this.removeChildren(),
|
6
6
|
this.addChild(b))},_getInnerHtml:function(){var a=this.tree,b=a.options,c=a.cache,d=this.getLevel(),e=this.data,g="";d<b.minExpandLevel?d>1&&(g+=c.tagConnector):g+=this.hasChildren()!==!1?c.tagExpander:c.tagConnector;b.checkbox&&e.hideCheckbox!==!0&&!e.isStatusNode&&(g+=c.tagCheckbox);e.icon?g+="<img src='"+b.imagePath+e.icon+"' alt='' />":e.icon===!1||(g+=c.tagNodeIcon);c="";b.onCustomRender&&(c=b.onCustomRender.call(a,this)||"");c||(a=e.tooltip?" title='"+e.tooltip+"'":"",c=b.noLink||e.noLink?"<span style='display: inline-block;' class='"+
|
7
|
-
b.classNames.title+"'"+a+">"+e.title+"</span>":"<a href='#' class='"+b.classNames.title+"'"+a+">"+e.title+"</a>");g+=c;return g},_fixOrder:function(){var a=this.childList;if(a&&this.ul)for(var b=this.ul.firstChild,c=0,d=a.length-1;c<d;c++){var e=a[c],g=b.dtnode;e!==g?(this.tree.logDebug("_fixOrder: mismatch at index "+c+": "+e+" != "+g),this.ul.insertBefore(e.li,g.li)):b=b.nextSibling}},render:function(a,b){var c=this.tree,d=this.parent,e=this.data,g=c.options,h=g.classNames,i=this.isLastSibling()
|
8
|
-
if(!d&&!this.ul)this.li=this.span=null,this.ul=document.createElement("ul"),this.ul.className=g.minExpandLevel>1?h.container+" "+h.noConnector:h.container;else if(d){if(!this.li){this.li=document.createElement("li");this.li.dtnode=this;if(e.key&&g.generateIds)this.li.id=g.idPrefix+e.key;this.span=document.createElement("span");this.span.className=h.title;this.li.appendChild(this.span);if(!d.ul)d.ul=document.createElement("ul"),d.ul.style.display="none",d.li.appendChild(d.ul);d.ul.appendChild(this.li)}this.span.innerHTML=
|
9
|
-
this._getInnerHtml();var
|
10
|
-
(this.bExpanded?"e":"c")+(e.isFolder?"f":""));this.span.className=
|
11
|
-
this.visitParents(function(a){a.parent&&b.unshift(a.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===void 0)return;else if(this.childList.length===0)return!1;else if(this.childList.length===1&&this.childList[0].isStatusNode())return;
|
12
|
-
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,c=a.length;b<c;b++)if(a[b]===this)return a[b-1];return null},getNextSibling:function(){if(!this.parent)return null;for(var a=this.parent.childList,b=0,c=a.length-1;b<c;b++)if(a[b]===this)return a[b+1];return null},
|
13
|
-
this.parent===a},isDescendantOf:function(a){if(!a)return!1;for(var b=this.parent;b;){if(b===a)return!0;b=b.parent}return!1},countChildren:function(){var a=this.childList;if(!a)return 0;for(var b=a.length,c=0,d=b;c<d;c++)b+=a[c].countChildren();return b},sortChildren:function(a,b){var c=this.childList;if(c){a=a||function(a,b){
|
14
|
-
this.render()}},_setStatusNode:function(a){var b=this.childList?this.childList[0]:null;if(a)b?(a.isStatusNode=!0,a.key="_statusNode",b.data=a,b.render()):(a.isStatusNode=!0,a.key="_statusNode",this.addChild(a));else if(b&&b.isStatusNode()){try{this.ul
|
15
|
-
f(this.span).removeClass(this.tree.options.classNames.nodeLoading);this.isLoading=!1;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=!0;f(this.span).addClass(this.tree.options.classNames.nodeLoading);this.parent||this._setStatusNode({title:this.tree.options.strings.loading+
|
16
|
-
|
17
|
-
a.pageX-c.offsetLeft,a=a.pageY-c.offsetTop,e=0,g=c.childNodes.length;e<g;e++){var f=c.childNodes[e],i=f.offsetLeft-c.offsetLeft,j=f.offsetTop-c.offsetTop,
|
18
|
-
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(!0,!1),b=0,c=a.length;b<c;b++)if(!a[b].bExpanded)return!1;
|
19
|
-
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&&(!b||!(c.onQueryActivate&&c.onQueryActivate.call(this.tree,a,this)===!1)))if(a){if(this.tree.activeNode){if(this.tree.activeNode===
|
20
|
-
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.onQueryActivate&&c.onQueryActivate.call(this.tree,!1,this)===!1))f(this.span).removeClass(c.classNames.active),c.persist&&f.cookie(c.cookieId+"-active",
|
21
|
-
c.onDeactivate&&c.onDeactivate.call(this.tree,this)},activate:function(){this._activate(!0,!0)},activateSilently:function(){this._activate(!0,!1)},deactivate:function(){this._activate(!1,!0)},isActive:function(){return this.tree.activeNode===this},_userActivate:function(){var a=!0,b=!1;if(this.data.isFolder)switch(this.tree.options.clickFolderMode){case 2:a=!1;b=!0;break;case 3:a=b=!0}this.parent===null&&(b=!1);b&&(this.toggleExpand(),
|
22
|
-
|
7
|
+
b.classNames.title+"'"+a+">"+e.title+"</span>":"<a href='#' class='"+b.classNames.title+"'"+a+">"+e.title+"</a>");g+=c;return g},_fixOrder:function(){var a=this.childList;if(a&&this.ul)for(var b=this.ul.firstChild,c=0,d=a.length-1;c<d;c++){var e=a[c],g=b.dtnode;e!==g?(this.tree.logDebug("_fixOrder: mismatch at index "+c+": "+e+" != "+g),this.ul.insertBefore(e.li,g.li)):b=b.nextSibling}},render:function(a,b){var c=this.tree,d=this.parent,e=this.data,g=c.options,h=g.classNames,i=this.isLastSibling(),
|
8
|
+
j=!1;if(!d&&!this.ul)this.li=this.span=null,this.ul=document.createElement("ul"),this.ul.className=g.minExpandLevel>1?h.container+" "+h.noConnector:h.container;else if(d){if(!this.li){j=!0;this.li=document.createElement("li");this.li.dtnode=this;if(e.key&&g.generateIds)this.li.id=g.idPrefix+e.key;this.span=document.createElement("span");this.span.className=h.title;this.li.appendChild(this.span);if(!d.ul)d.ul=document.createElement("ul"),d.ul.style.display="none",d.li.appendChild(d.ul);d.ul.appendChild(this.li)}this.span.innerHTML=
|
9
|
+
this._getInnerHtml();var k=[];k.push(h.node);e.isFolder&&k.push(h.folder);this.bExpanded&&k.push(h.expanded);this.hasChildren()!==!1&&k.push(h.hasChildren);e.isLazy&&this.childList===null&&k.push(h.lazy);i&&k.push(h.lastsib);this.bSelected&&k.push(h.selected);this.hasSubSel&&k.push(h.partsel);c.activeNode===this&&k.push(h.active);e.addClass&&k.push(e.addClass);k.push(h.combinedExpanderPrefix+(this.bExpanded?"e":"c")+(e.isLazy&&this.childList===null?"d":"")+(i?"l":""));k.push(h.combinedIconPrefix+
|
10
|
+
(this.bExpanded?"e":"c")+(e.isFolder?"f":""));this.span.className=k.join(" ");this.li.className=i?h.lastsib:"";j&&g.onCreate&&g.onCreate.call(c,this,this.span);g.onRender&&g.onRender.call(c,this,this.span)}if((this.bExpanded||b===!0)&&this.childList){c=0;for(e=this.childList.length;c<e;c++)this.childList[c].render(!1,b);this._fixOrder()}if(this.ul)c=this.ul.style.display==="none",e=!!this.bExpanded,a&&g.fx&&c===e?(d=g.fx.duration||200,f(this.ul).animate(g.fx,d)):this.ul.style.display=this.bExpanded||
|
11
|
+
!d?"":"none"},getKeyPath:function(a){var b=[];this.visitParents(function(a){a.parent&&b.unshift(a.data.key)},!a);return"/"+b.join(this.tree.options.keyPathSeparator)},getParent:function(){return this.parent},getChildren:function(){return this.hasChildren()===void 0?void 0:this.childList},hasChildren:function(){if(this.data.isLazy){if(this.childList===null||this.childList===void 0)return;else if(this.childList.length===0)return!1;else if(this.childList.length===1&&this.childList[0].isStatusNode())return;
|
12
|
+
return!0}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,c=a.length;b<c;b++)if(a[b]===this)return a[b-1];return null},getNextSibling:function(){if(!this.parent)return null;for(var a=this.parent.childList,b=0,c=a.length-1;b<c;b++)if(a[b]===this)return a[b+1];return null},
|
13
|
+
isStatusNode:function(){return this.data.isStatusNode===!0},isChildOf:function(a){return this.parent&&this.parent===a},isDescendantOf:function(a){if(!a)return!1;for(var b=this.parent;b;){if(b===a)return!0;b=b.parent}return!1},countChildren:function(){var a=this.childList;if(!a)return 0;for(var b=a.length,c=0,d=b;c<d;c++)b+=a[c].countChildren();return b},sortChildren:function(a,b){var c=this.childList;if(c){a=a||function(a,b){var c=a.data.title.toLowerCase(),d=b.data.title.toLowerCase();return c===
|
14
|
+
d?0:c>d?1:-1};c.sort(a);if(b)for(var d=0,e=c.length;d<e;d++)c[d].childList&&c[d].sortChildren(a,"$norender$");b!=="$norender$"&&this.render()}},_setStatusNode:function(a){var b=this.childList?this.childList[0]:null;if(a)b?(a.isStatusNode=!0,a.key="_statusNode",b.data=a,b.render()):(a.isStatusNode=!0,a.key="_statusNode",this.addChild(a));else if(b&&b.isStatusNode()){try{if(this.ul)this.ul.removeChild(b.li),b.li=null}catch(c){}this.childList.length===1?this.childList=[]:this.childList.shift()}},setLazyNodeStatus:function(a,
|
15
|
+
b){var c=b&&b.tooltip?b.tooltip:null,d=b&&b.info?" ("+b.info+")":"";switch(a){case DTNodeStatus_Ok:this._setStatusNode(null);f(this.span).removeClass(this.tree.options.classNames.nodeLoading);this.isLoading=!1;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=!0;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=!1;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;)(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;for(var d=a.pageX-c.offsetLeft,a=a.pageY-c.offsetTop,e=0,g=c.childNodes.length;e<g;e++){var f=c.childNodes[e],i=f.offsetLeft-c.offsetLeft,j=f.offsetTop-c.offsetTop,k=f.clientWidth,l=f.clientHeight;if(d>=i&&d<=i+k&&a>=j&&a<=j+l)if(f.className==b.title)return"title";else if(f.className==b.expander)return"expander";else if(f.className==b.checkbox)return"checkbox";else if(f.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(!0,!1),b=0,c=a.length;b<c;b++)if(!a[b].bExpanded)return!1;
|
19
|
+
return!0},makeVisible:function(){for(var a=this._parentList(!0,!1),b=0,c=a.length;b<c;b++)a[b]._expand(!0)},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&&(!b||!(c.onQueryActivate&&c.onQueryActivate.call(this.tree,a,this)===!1)))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.onQueryActivate&&c.onQueryActivate.call(this.tree,!1,this)===!1))f(this.span).removeClass(c.classNames.active),c.persist&&f.cookie(c.cookieId+"-active",
|
21
|
+
"",c.cookie),this.tree.persistence.activeKey=null,this.tree.activeNode=null,b&&c.onDeactivate&&c.onDeactivate.call(this.tree,this)},activate:function(){this._activate(!0,!0)},activateSilently:function(){this._activate(!0,!1)},deactivate:function(){this._activate(!1,!0)},isActive:function(){return this.tree.activeNode===this},_userActivate:function(){var a=!0,b=!1;if(this.data.isFolder)switch(this.tree.options.clickFolderMode){case 2:a=!1;b=!0;break;case 3:a=b=!0}this.parent===null&&(b=!1);b&&(this.toggleExpand(),
|
22
|
+
this.focus());a&&this.activate()},_setSubSel:function(a){a?(this.hasSubSel=!0,f(this.span).addClass(this.tree.options.classNames.partsel)):(this.hasSubSel=!1,f(this.span).removeClass(this.tree.options.classNames.partsel))},_updatePartSelectionState:function(){var a;if(!this.hasChildren())return a=this.bSelected&&!this.data.unselectable&&!this.data.isStatusNode,this._setSubSel(!1),a;var b,c=this.childList,d=!0,e=!0;a=0;for(b=c.length;a<b;a++){var g=c[a]._updatePartSelectionState();g!==!1&&(e=!1);g!==
|
23
|
+
!0&&(d=!1)}a=d?!0:e?!1:void 0;this._setSubSel(a===void 0);this.bSelected=a===!0;return a},_fixSelectionState:function(){var a,b,c;if(this.bSelected){this.visit(function(a){a.parent._setSubSel(!0);a.data.unselectable||a._select(!0,!1,!1)});for(a=this.parent;a;){a._setSubSel(!0);var d=!0;b=0;for(c=a.childList.length;b<c;b++){var e=a.childList[b];if(!e.bSelected&&!e.data.isStatusNode&&!e.data.unselectable){d=!1;break}}d&&a._select(!0,!1,!1);a=a.parent}}else{this._setSubSel(!1);this.visit(function(a){a._setSubSel(!1);
|
23
24
|
a._select(!1,!1,!1)});for(a=this.parent;a;){a._select(!1,!1,!1);d=!1;b=0;for(c=a.childList.length;b<c;b++)if(a.childList[b].bSelected||a.childList[b].hasSubSel){d=!0;break}a._setSubSel(d);a=a.parent}}},_select:function(a,b,c){var d=this.tree.options;if(!this.data.isStatusNode&&this.bSelected!==a&&(!b||!(d.onQuerySelect&&d.onQuerySelect.call(this.tree,a,this)===!1)))d.selectMode==1&&a&&this.tree.visit(function(a){if(a.bSelected)return a._select(!1,!1,!1),!1}),(this.bSelected=a)?(d.persist&&this.tree.persistence.addSelect(this.data.key),
|
24
|
-
f(this.span).addClass(d.classNames.selected),c&&d.selectMode===3&&this._fixSelectionState(),b&&d.onSelect&&d.onSelect.call(this.tree,!0,this)):(d.persist&&this.tree.persistence.clearSelect(this.data.key),f(this.span).removeClass(d.classNames.selected),c&&d.selectMode===3&&this._fixSelectionState(),b&&d.onSelect&&d.onSelect.call(this.tree,!1,this))},select:function(a){
|
25
|
-
isSelected:function(){return this.bSelected},_loadContent:function(){try{var a=this.tree.options;this.tree.logDebug("_loadContent: start - %o",this);this.setLazyNodeStatus(DTNodeStatus_Loading);!0===a.onLazyRead.call(this.tree,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,
|
26
|
-
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",a,this);else if(!(c.onQueryExpand&&c.onQueryExpand.call(this.tree,a,this)===!1)){this.bExpanded=a;c.persist&&(a?this.tree.persistence.addExpand(this.data.key):this.tree.persistence.clearExpand(this.data.key));this.render(!(this.data.isLazy&&
|
27
|
-
c.autoCollapse)for(var d=this._parentList(!1,!0),e=0,f=d.length;e<f;e++)d[e].collapseSiblings();c.activeVisible&&this.tree.activeNode&&!this.tree.activeNode.isVisible()&&this.tree.activeNode.deactivate();a&&this.data.isLazy&&this.childList===null&&!this.isLoading?this._loadContent():c.onExpand&&c.onExpand.call(this.tree,a,this)}}},expand:function(a){a=a!==!1;if(this.childList||
|
28
|
-
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");c.expand(!0)},b);break;case "activate":this.tree.timer=setTimeout(function(){c.tree.logDebug("setTimeout: trigger activate");c.activate()},b);break;default:throw"Invalid mode "+
|
29
|
-
null)for(var a=this.parent.childList,b=0,c=a.length;b<c;b++)a[b]!==this&&a[b].bExpanded&&a[b]._expand(!1)},_onClick:function(a){var b=this.getEventTargetType(a);if(b==="expander")this.toggleExpand(),this.focus();else if(b==="checkbox")this.toggleSelect(),this.focus();else if(this._userActivate(),b=this.span.getElementsByTagName("a"),
|
30
|
-
this.toggleExpand();break;case 109:case 189:this.bExpanded&&this.toggleExpand();break;case 32:this._userActivate();break;case 8:this.parent&&this.parent.focus();break;case 37:this.bExpanded?(this.toggleExpand(),this.focus()):this.parent&&this.parent.parent&&this.parent.focus();break;case 39:!this.bExpanded&&(this.childList||
|
31
|
-
1];if(!c&&this.parent&&this.parent.parent)c=this.parent;c&&c.focus();break;case 40:if(this.bExpanded&&this.childList)c=this.childList[0];else for(var d=this._parentList(!1,!0),e=d.length-1;e>=0;e--)if(c=d[e].getNextSibling())break;c&&c.focus();break;default:b=!1}b&&a.preventDefault()},_onKeypress:function(){},
|
32
|
-
this.tree.tnFocused=null,b.persist&&f.cookie(b.cookieId+"-focus","",b.cookie);else if(a.type=="focus"||a.type=="focusin")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)),
|
33
|
-
visit:function(a,b){var c=!0;if(b===!0&&(c=a(this),c===!1||c=="skip"))return c;if(this.childList)for(var d=0,e=this.childList.length;d<e;d++)if(c=this.childList[d].visit(a,!0),c===!1)break;return c},visitParents:function(a,b){if(b&&a(this)===!1)return!1;for(var c=this.parent;c;){if(a(c)===!1)return!1;c=c.parent}return!0},
|
34
|
-
b[0])throw"removeChild: invalid child";return this.removeChildren()}a===this.tree.activeNode&&a.deactivate();this.tree.options.persist&&(a.bSelected&&this.tree.persistence.clearSelect(a.data.key),a.bExpanded&&this.tree.persistence.clearExpand(a.data.key));a.removeChildren(!0);this.ul.removeChild(a.li);for(var c=0,d=b.length;c<
|
35
|
-
0,f=d.length;e<f;e++){var h=d[e];h===c.activeNode&&!b&&h.deactivate();this.tree.options.persist&&!b&&(h.bSelected&&this.tree.persistence.clearSelect(h.data.key),h.bExpanded&&this.tree.persistence.clearExpand(h.data.key));h.removeChildren(!0,b);this.ul&&this.ul.removeChild(h.li)}this.childList=null}if(!a)this.isLoading
|
36
|
-
else if(!this.data.isLazy)throw"node.reloadChildren() requires lazy nodes.";if(a){var b=this,c="nodeLoaded.dynatree."+this.tree.$tree.attr("id")+"."+this.data.key;this.tree.$tree.bind(c,function(d,e,f){b.tree.$tree.unbind(c);b.tree.logDebug("loaded %o, %o, %o",d,e,f);if(e!==b)throw"got invalid load event";
|
37
|
-
a.split(c.options.keyPathSeparator);if(d[0]==="")throw"Key path must be relative (don't start with '/')";for(var e=d.shift(),f=0,h=this.childList.length;f<h;f++){var i=this.childList[f];if(i.data.key===e){if(d.length===0)b.call(c,i,"ok");else if(i.data.isLazy&&(i.childList===null||i.childList===void 0)){c.logDebug("%s._loadKeyPath(%s) -> reloading %s...",
|
38
|
-
b)):(c.logWarning("%s._loadKeyPath(%s) -> reloadChildren() failed.",j,a),b.call(c,i,"error"))})}else b.call(c,i,"loaded"),i._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.";
|
39
|
-
null?this.childList=[]:b||this.childList.length>0&&f(this.childList[this.childList.length-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
|
40
|
-
e.selectedKeyList)>=0}else{if(a.data.activate&&(c.activeNode=a,d.persist))e.activeKey=a.data.key;if(a.data.focus&&(c.focusNode=a,d.persist))e.focusedKey=a.data.key;a.bExpanded=a.data.expand===!0;a.bExpanded&&d.persist&&e.addExpand(a.data.key);a.bSelected=a.data.select===!0;a.bSelected&&d.persist&&e.addSelect(a.data.key)}if(d.minExpandLevel>=a.getLevel())this.bExpanded
|
41
|
-
addChild:function(a,b){if(typeof a=="string")throw"Invalid data type for "+a;else if(!a||a.length===0)return;else if(a instanceof
|
42
|
-
null)},appendAjax:function(a){var b=this;this.removeChildren(!1,!0);this.setLazyNodeStatus(DTNodeStatus_Loading);if(a.debugLazyDelay){var c=a.debugLazyDelay;a.debugLazyDelay=0;this.tree.logInfo("appendAjax: waiting for debugLazyDelay "+c);setTimeout(function(){b.appendAjax(a)},c)}else{var d=a.success,e=a.error,g="nodeLoaded.dynatree."+this.tree.$tree.attr("id")+"."+
|
43
|
-
(a=h.postProcess.call(this,a,this.dataType));(!f.isArray(a)||a.length!==0)&&b.addChild(a,null);b.tree.phase="postInit";d&&d.call(h,b);b.tree.logDebug("trigger "+g);b.tree.$tree.trigger(g,[b,!0]);b.tree.phase=
|
44
|
-
move:function(a,b){var c;if(this!==a){if(!this.parent)throw"Cannot move system root";if(b===void 0||b=="over")b="child";var d=this.parent,e=b==="child"?a:a.parent;if(e.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
|
45
|
-
break;case "before":c=f.inArray(a,e.childList);if(c<0)throw"Internal error";e.childList.splice(c,0,this);break;case "after":c=f.inArray(a,e.childList);if(c<0)throw"Internal error";e.childList.splice(c+1,0,this);break;default:throw"Invalid mode "+b;}else
|
46
|
-
d.render();e.isDescendantOf(d)||e.render()}},lastentry:void 0};var
|
47
|
-
["debug"]);_log.apply(this,arguments)},read:function(){this.cookiesFound=!1;var a=f.cookie(this.cookieId+"-active");this.activeKey=a===null?"":a;if(a!==null)this.cookiesFound=!0;a=f.cookie(this.cookieId+"-focus");this.focusedKey=a===null?"":a;if(a!==
|
48
|
-
|
49
|
-
f.cookie(this.cookieId+"-
|
50
|
-
0&&(this.selectedKeyList.splice(a,1),f.cookie(this.cookieId+"-select",this.selectedKeyList.join(","),this.cookieOpts))},isReloading:function(){return this.cookiesFound===!0},toDict:function(){return{cookiesFound:this.cookiesFound,activeKey:this.activeKey,
|
51
|
-
this.$tree=a.element;this.timer=null;this.divTree=this.$tree.get(0);
|
52
|
-
b.
|
53
|
-
this.src,b.imagePath),!1});this.persistence=new
|
54
|
-
tagNodeIcon:"<span class='"+b.classNames.nodeIcon+"'></span>",tagCheckbox:"<span class='"+b.classNames.checkbox+"'></span>",lastentry:void 0};(b.children||b.initAjax&&b.initAjax.url||b.initId)&&f(this.divTree).empty();var d=this.$tree.find(">ul:first").hide();this.tnRoot=
|
55
|
-
b.children?e.addChild(b.children):b.initAjax&&b.initAjax.url?(h=!0,e.data.isLazy=!0,this._reloadAjax(a)):b.initId?this._createFromTag(e,f("#"+b.initId)):(this._createFromTag(e,d),d.remove());this._checkConsistency()
|
56
|
-
(this.logDebug("Focus on init: %o",this.focusNode),this.focusNode.focus())
|
57
|
-
c.
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
b
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
a;
|
72
|
-
|
25
|
+
f(this.span).addClass(d.classNames.selected),c&&d.selectMode===3&&this._fixSelectionState(),b&&d.onSelect&&d.onSelect.call(this.tree,!0,this)):(d.persist&&this.tree.persistence.clearSelect(this.data.key),f(this.span).removeClass(d.classNames.selected),c&&d.selectMode===3&&this._fixSelectionState(),b&&d.onSelect&&d.onSelect.call(this.tree,!1,this))},select:function(a){return this.data.unselectable?this.bSelected:this._select(a!==!1,!0,!0)},toggleSelect:function(){return this.select(!this.bSelected)},
|
26
|
+
isSelected:function(){return this.bSelected},isLazy:function(){return!!this.data.isLazy},_loadContent:function(){try{var a=this.tree.options;this.tree.logDebug("_loadContent: start - %o",this);this.setLazyNodeStatus(DTNodeStatus_Loading);!0===a.onLazyRead.call(this.tree,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,
|
27
|
+
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",a,this);else if(!(c.onQueryExpand&&c.onQueryExpand.call(this.tree,a,this)===!1)){this.bExpanded=a;c.persist&&(a?this.tree.persistence.addExpand(this.data.key):this.tree.persistence.clearExpand(this.data.key));this.render(!(this.data.isLazy&&
|
28
|
+
this.childList===null)&&!this.isLoading&&!b);if(this.bExpanded&&this.parent&&c.autoCollapse)for(var d=this._parentList(!1,!0),e=0,f=d.length;e<f;e++)d[e].collapseSiblings();c.activeVisible&&this.tree.activeNode&&!this.tree.activeNode.isVisible()&&this.tree.activeNode.deactivate();a&&this.data.isLazy&&this.childList===null&&!this.isLoading?this._loadContent():c.onExpand&&c.onExpand.call(this.tree,a,this)}}},isExpanded:function(){return this.bExpanded},expand:function(a){a=a!==!1;if(this.childList||
|
29
|
+
this.data.isLazy||!a)(this.parent!==null||a)&&this._expand(a)},scheduleAction:function(a,b){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");c.expand(!0)},b);break;case "activate":this.tree.timer=setTimeout(function(){c.tree.logDebug("setTimeout: trigger activate");c.activate()},b);break;default:throw"Invalid mode "+
|
30
|
+
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,c=a.length;b<c;b++)a[b]!==this&&a[b].bExpanded&&a[b]._expand(!1)},_onClick:function(a){var b=this.getEventTargetType(a);if(b==="expander")this.toggleExpand(),this.focus();else if(b==="checkbox")this.toggleSelect(),this.focus();else if(this._userActivate(),b=this.span.getElementsByTagName("a"),
|
31
|
+
b[0])f.browser.msie||b[0].focus();else return!0;a.preventDefault()},_onDblClick:function(){},_onKeydown:function(a){var b=!0,c;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();break;case 37:this.bExpanded?(this.toggleExpand(),this.focus()):this.parent&&this.parent.parent&&this.parent.focus();break;case 39:!this.bExpanded&&(this.childList||
|
32
|
+
this.data.isLazy)?(this.toggleExpand(),this.focus()):this.childList&&this.childList[0].focus();break;case 38:for(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=this.childList[0];else for(var d=this._parentList(!1,!0),e=d.length-1;e>=0;e--)if(c=d[e].getNextSibling())break;c&&c.focus();break;default:b=!1}b&&a.preventDefault()},_onKeypress:function(){},
|
33
|
+
_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=="focusin")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)),
|
34
|
+
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=!0;if(b===!0&&(c=a(this),c===!1||c=="skip"))return c;if(this.childList)for(var d=0,e=this.childList.length;d<e;d++)if(c=this.childList[d].visit(a,!0),c===!1)break;return c},visitParents:function(a,b){if(b&&a(this)===!1)return!1;for(var c=this.parent;c;){if(a(c)===!1)return!1;c=c.parent}return!0},
|
35
|
+
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&&a.deactivate();this.tree.options.persist&&(a.bSelected&&this.tree.persistence.clearSelect(a.data.key),a.bExpanded&&this.tree.persistence.clearExpand(a.data.key));a.removeChildren(!0);this.ul.removeChild(a.li);for(var c=0,d=b.length;c<
|
36
|
+
d;c++)if(b[c]===a){this.childList.splice(c,1);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,f=d.length;e<f;e++){var h=d[e];h===c.activeNode&&!b&&h.deactivate();this.tree.options.persist&&!b&&(h.bSelected&&this.tree.persistence.clearSelect(h.data.key),h.bExpanded&&this.tree.persistence.clearExpand(h.data.key));h.removeChildren(!0,b);this.ul&&this.ul.removeChild(h.li)}this.childList=null}if(!a)this.isLoading=
|
37
|
+
!1,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.";if(a){var b=this,c="nodeLoaded.dynatree."+this.tree.$tree.attr("id")+"."+this.data.key;this.tree.$tree.bind(c,function(d,e,f){b.tree.$tree.unbind(c);b.tree.logDebug("loaded %o, %o, %o",d,e,f);if(e!==b)throw"got invalid load event";
|
38
|
+
a.call(b.tree,e,f)})}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 '/')";for(var e=d.shift(),f=0,h=this.childList.length;f<h;f++){var i=this.childList[f];if(i.data.key===e){if(d.length===0)b.call(c,i,"ok");else if(i.data.isLazy&&(i.childList===null||i.childList===void 0)){c.logDebug("%s._loadKeyPath(%s) -> reloading %s...",
|
39
|
+
this,a,i);var j=this;i.reloadChildren(function(e,f){f?(c.logDebug("%s._loadKeyPath(%s) -> reloaded %s.",e,a,e),b.call(c,i,"loaded"),e._loadKeyPath(d.join(c.options.keyPathSeparator),b)):(c.logWarning("%s._loadKeyPath(%s) -> reloadChildren() failed.",j,a),b.call(c,i,"error"))})}else b.call(c,i,"loaded"),i._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.";
|
40
|
+
this.expand(!1);this.removeChildren()},_addChildNode:function(a,b){var c=this.tree,d=c.options,e=c.persistence;a.parent=this;this.childList===null?this.childList=[]:b||this.childList.length>0&&f(this.childList[this.childList.length-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=
|
41
|
+
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,d.persist))e.activeKey=a.data.key;if(a.data.focus&&(c.focusNode=a,d.persist))e.focusedKey=a.data.key;a.bExpanded=a.data.expand===!0;a.bExpanded&&d.persist&&e.addExpand(a.data.key);a.bSelected=a.data.select===!0;a.bSelected&&d.persist&&e.addSelect(a.data.key)}if(d.minExpandLevel>=a.getLevel())this.bExpanded=
|
42
|
+
!0;if(a.bSelected&&d.selectMode==3)for(d=this;d;)d.hasSubSel||d._setSubSel(!0),d=d.parent;c.bEnableUpdate&&this.render();return a},addChild:function(a,b){if(typeof a=="string")throw"Invalid data type for "+a;else if(!a||a.length===0)return;else if(a instanceof n)return this._addChildNode(a,b);a.length||(a=[a]);for(var c=this.tree.enableUpdate(!1),d=null,e=0,f=a.length;e<f;e++){var h=a[e],i=this._addChildNode(new n(this,this.tree,h),b);d||(d=i);h.children&&i.addChild(h.children,null)}this.tree.enableUpdate(c);
|
43
|
+
return d},append:function(a){this.tree.logWarning("node.append() is deprecated (use node.addChild() instead).");return this.addChild(a,null)},appendAjax:function(a){var b=this;this.removeChildren(!1,!0);this.setLazyNodeStatus(DTNodeStatus_Loading);if(a.debugLazyDelay){var c=a.debugLazyDelay;a.debugLazyDelay=0;this.tree.logInfo("appendAjax: waiting for debugLazyDelay "+c);setTimeout(function(){b.appendAjax(a)},c)}else{var d=a.success,e=a.error,g="nodeLoaded.dynatree."+this.tree.$tree.attr("id")+"."+
|
44
|
+
this.data.key,h=f.extend({},this.tree.options.ajaxDefaults,a,{success:function(a,c){var e=b.tree.phase;b.tree.phase="init";if(h.postProcess)a=h.postProcess.call(this,a,this.dataType);else if(a&&a.hasOwnProperty("d"))a=a.d;(!f.isArray(a)||a.length!==0)&&b.addChild(a,null);b.tree.phase="postInit";d&&d.call(h,b,a,c);b.tree.logDebug("trigger "+g);b.tree.$tree.trigger(g,[b,!0]);b.tree.phase=e;b.setLazyNodeStatus(DTNodeStatus_Ok);if(f.isArray(a)&&a.length===0)b.childList=[],b.render()},error:function(a,
|
45
|
+
c,d){b.tree.logWarning("appendAjax failed:",c,":\n",a,"\n",d);e&&e.call(h,b,a,c,d);b.tree.$tree.trigger(g,[b,!1]);b.setLazyNodeStatus(DTNodeStatus_Error,{info:c,tooltip:""+d})}});f.ajax(h)}},move:function(a,b){var c;if(this!==a){if(!this.parent)throw"Cannot move system root";if(b===void 0||b=="over")b="child";var d=this.parent,e=b==="child"?a:a.parent;if(e.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=
|
46
|
+
!1;else{c=f.inArray(this,this.parent.childList);if(c<0)throw"Internal error";this.parent.childList.splice(c,1)}this.parent.ul.removeChild(this.li);this.parent=e;if(e.hasChildren())switch(b){case "child":e.childList.push(this);break;case "before":c=f.inArray(a,e.childList);if(c<0)throw"Internal error";e.childList.splice(c,0,this);break;case "after":c=f.inArray(a,e.childList);if(c<0)throw"Internal error";e.childList.splice(c+1,0,this);break;default:throw"Invalid mode "+b;}else e.childList=[this];if(!e.ul)e.ul=
|
47
|
+
document.createElement("ul"),e.ul.style.display="none",e.li.appendChild(e.ul);e.ul.appendChild(this.li);if(this.tree!==a.tree)throw this.visit(function(b){b.tree=a.tree},null,!0),"Not yet implemented.";d.isDescendantOf(e)||d.render();e.isDescendantOf(d)||e.render()}},lastentry:void 0};var o=l.create();o._getTreePersistData=function(a,b){var c=new o(a,b);c.read();return c.toDict()};getDynaTreePersistData=o._getTreePersistData;o.prototype={initialize:function(a,b){if(a===void 0)a=f.ui.dynatree.prototype.options.cookieId;
|
48
|
+
b=f.extend({},f.ui.dynatree.prototype.options.cookie,b);this.cookieId=a;this.cookieOpts=b;this.cookiesFound=void 0;this.selectedKeyList=this.expandedKeyList=this.focusedKey=this.activeKey=null},_log:function(a){Array.prototype.unshift.apply(arguments,["debug"]);_log.apply(this,arguments)},read:function(){this.cookiesFound=!1;var a=f.cookie(this.cookieId+"-active");this.activeKey=a===null?"":a;if(a!==null)this.cookiesFound=!0;a=f.cookie(this.cookieId+"-focus");this.focusedKey=a===null?"":a;if(a!==
|
49
|
+
null)this.cookiesFound=!0;a=f.cookie(this.cookieId+"-expand");this.expandedKeyList=a===null?[]:a.split(",");if(a!==null)this.cookiesFound=!0;a=f.cookie(this.cookieId+"-select");this.selectedKeyList=a===null?[]:a.split(",");if(a!==null)this.cookiesFound=!0},write:function(){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===
|
50
|
+
null?"":this.expandedKeyList.join(","),this.cookieOpts);f.cookie(this.cookieId+"-select",this.selectedKeyList===null?"":this.selectedKeyList.join(","),this.cookieOpts)},addExpand:function(a){f.inArray(a,this.expandedKeyList)<0&&(this.expandedKeyList.push(a),f.cookie(this.cookieId+"-expand",this.expandedKeyList.join(","),this.cookieOpts))},clearExpand:function(a){a=f.inArray(a,this.expandedKeyList);a>=0&&(this.expandedKeyList.splice(a,1),f.cookie(this.cookieId+"-expand",this.expandedKeyList.join(","),
|
51
|
+
this.cookieOpts))},addSelect:function(a){f.inArray(a,this.selectedKeyList)<0&&(this.selectedKeyList.push(a),f.cookie(this.cookieId+"-select",this.selectedKeyList.join(","),this.cookieOpts))},clearSelect:function(a){a=f.inArray(a,this.selectedKeyList);a>=0&&(this.selectedKeyList.splice(a,1),f.cookie(this.cookieId+"-select",this.selectedKeyList.join(","),this.cookieOpts))},isReloading:function(){return this.cookiesFound===!0},toDict:function(){return{cookiesFound:this.cookiesFound,activeKey:this.activeKey,
|
52
|
+
focusedKey:this.activeKey,expandedKeyList:this.expandedKeyList,selectedKeyList:this.selectedKeyList}},lastentry:void 0};var q=l.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,c=this;this.bEnableUpdate=!0;this._nodeCount=1;this.focusNode=this.activeNode=null;b.rootVisible!==void 0&&this.logWarning("Option 'rootVisible' is no longer supported.");
|
53
|
+
if(b.minExpandLevel<1)this.logWarning("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,b.dnd);
|
54
|
+
b.imagePath||f("script").each(function(){if(this.src.search(/.*dynatree[^\/]*\.js$/i)>=0)return b.imagePath=this.src.indexOf("/")>=0?this.src.slice(0,this.src.lastIndexOf("/"))+"/skin/":"skin/",c.logDebug("Guessing imagePath from '%s': '%s'",this.src,b.imagePath),!1});this.persistence=new o(b.cookieId,b.cookie);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());this.cache=
|
55
|
+
{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:void 0};(b.children||b.initAjax&&b.initAjax.url||b.initId)&&f(this.divTree).empty();var d=this.$tree.find(">ul:first").hide();this.tnRoot=
|
56
|
+
new n(null,this,{});this.tnRoot.bExpanded=!0;this.tnRoot.render();this.divTree.appendChild(this.tnRoot.ul);var e=this.tnRoot,g=b.persist&&this.persistence.isReloading(),h=!1,i=this.enableUpdate(!1);this.logDebug("Dynatree._load(): read tree structure...");b.children?e.addChild(b.children):b.initAjax&&b.initAjax.url?(h=!0,e.data.isLazy=!0,this._reloadAjax(a)):b.initId?this._createFromTag(e,f("#"+b.initId)):(this._createFromTag(e,d),d.remove());this._checkConsistency();!h&&b.selectMode==3&&e._updatePartSelectionState();
|
57
|
+
this.logDebug("Dynatree._load(): render nodes...");this.enableUpdate(i);this.logDebug("Dynatree._load(): bind events...");this.$widget.bind();this.logDebug("Dynatree._load(): postInit...");this.phase="postInit";b.persist&&this.persistence.write();this.focusNode&&this.focusNode.isVisible()&&(this.logDebug("Focus on init: %o",this.focusNode),this.focusNode.focus());h||(b.onPostInit&&b.onPostInit.call(this,g,!1),a&&a.call(this,"ok"));this.phase="idle"},_reloadAjax:function(a){var b=this.options;if(!b.initAjax||
|
58
|
+
!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(",");d.success&&this.logWarning("initAjax: success callback is ignored; use onPostInit instead.");d.error&&this.logWarning("initAjax: error callback is ignored; use onPostInit instead.");
|
59
|
+
var e=c.isReloading();d.success=function(c){b.selectMode==3&&c.tree.tnRoot._updatePartSelectionState();b.onPostInit&&b.onPostInit.call(c.tree,e,!1);a&&a.call(c.tree,"ok")};d.error=function(c,d,f,j){b.onPostInit&&b.onPostInit.call(c.tree,e,!0,d,f,j);a&&a.call(c.tree,"error",d,f,j)};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(!0)},serializeArray:function(a){for(var a=
|
60
|
+
this.getSelectedNodes(a),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(a){this.options.debugLevel>=2&&(Array.prototype.unshift.apply(arguments,["debug"]),_log.apply(this,arguments))},logInfo:function(a){this.options.debugLevel>=1&&(Array.prototype.unshift.apply(arguments,["info"]),_log.apply(this,arguments))},logWarning:function(a){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.tnRoot.render(!1,!1)},renderInvisibleNodes:function(){this.tnRoot.render(!1,!0)},reload:function(a){this._load(a)},getRoot:function(){return this.tnRoot},enable:function(){this.$widget.enable()},
|
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(b){if(b.data.key==a)return c=b,!1},!0);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),a===!0))return"skip"});
|
63
|
+
return b},activateKey:function(a){a=a===null?null:this.getNodeByKey(a);if(!a)return this.activeNode&&this.activeNode.deactivate(),this.activeNode=null;a.focus();a.activate();return a},loadKeyPath:function(a,b){var c=a.split(this.options.keyPathSeparator);c[0]===""&&c.shift();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},count:function(){return this.tnRoot.countChildren()},visit:function(a,b){return this.tnRoot.visit(a,b)},_createFromTag:function(a,b){var c=this;b.find(">li").each(function(){var b=f(this),e=b.find(">span:first"),g=b.find(">a:first"),h=null,i=null,j;e.length?e=e.html():g.length?(e=g.html(),h=g.attr("href"),i=g.attr("target"),j=g.attr("title")):(e=b.html(),g=e.search(/<ul/i),
|
65
|
+
e=g>=0?f.trim(e.substring(0,g)):f.trim(e));j={title:e,tooltip:j,isFolder:b.hasClass("folder"),isLazy:b.hasClass("lazy"),expand:b.hasClass("expanded"),select:b.hasClass("selected"),activate:b.hasClass("active"),focus:b.hasClass("focused"),noLink:b.hasClass("noLink")};if(h)j.href=h,j.target=i;if(b.attr("title"))j.tooltip=b.attr("title");if(b.attr("id"))j.key=b.attr("id");if(b.attr("data")&&(h=f.trim(b.attr("data")))){h.charAt(0)!="{"&&(h="{"+h+"}");try{f.extend(j,eval("("+h+")"))}catch(k){throw"Error parsing node data: "+
|
66
|
+
k+"\ndata:\n'"+h+"'";}}h=a.addChild(j);b=b.find(">ul:first");b.length&&c._createFromTag(h,b)})},_checkConsistency:function(){},_setDndStatus:function(a,b,c,d,e){a=a?f(a.span):null;b=f(b.span);if(!this.$dndMarker)this.$dndMarker=f("<div id='dynatree-drop-marker'></div>").hide().prependTo(f(this.divTree).parent());if(d==="after"||d==="before"||d==="over"){var g=b.offset();switch(d){case "before":this.$dndMarker.removeClass("dynatree-drop-after dynatree-drop-over");this.$dndMarker.addClass("dynatree-drop-before");
|
67
|
+
g.top-=8;break;case "after":this.$dndMarker.removeClass("dynatree-drop-before dynatree-drop-over");this.$dndMarker.addClass("dynatree-drop-after");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.offset({left:g.left,top:g.top}).css({"z-index":1E3}).show()}else b.removeClass("dynatree-drop-target"),this.$dndMarker.hide();d==="after"?b.addClass("dynatree-drop-after"):
|
68
|
+
b.removeClass("dynatree-drop-after");d==="before"?b.addClass("dynatree-drop-before"):b.removeClass("dynatree-drop-before");e===!0?(a&&a.addClass("dynatree-drop-accept"),b.addClass("dynatree-drop-accept"),c.addClass("dynatree-drop-accept")):(a&&a.removeClass("dynatree-drop-accept"),b.removeClass("dynatree-drop-accept"),c.removeClass("dynatree-drop-accept"));e===!1?(a&&a.addClass("dynatree-drop-reject"),b.addClass("dynatree-drop-reject"),c.addClass("dynatree-drop-reject")):(a&&a.removeClass("dynatree-drop-reject"),
|
69
|
+
b.removeClass("dynatree-drop-reject"),c.removeClass("dynatree-drop-reject"))},_onDragEvent:function(a,b,c,d,e,g){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);i=c;break;case "start":b.isStatusNode()?i=!1:h.onDragStart&&(i=h.onDragStart(b));i===!1?(this.logDebug("tree.onDragStart() cancelled"),e.helper.trigger("mouseup"),e.helper.hide()):
|
70
|
+
j.addClass("dynatree-drag-source");break;case "enter":i=h.onDragEnter?h.onDragEnter(b,c):null;i={over:i!==!1&&(i===!0||i==="over"||f.inArray("over",i)>=0),before:i!==!1&&(i===!0||i==="before"||f.inArray("before",i)>=0),after:i!==!1&&(i===!0||i==="after"||f.inArray("after",i)>=0)};e.helper.data("enterResponse",i);break;case "over":g=e.helper.data("enterResponse");a=null;if(g===!1)break;else if(typeof g==="string")a=g;else{var k=j.offset(),d={x:d.pageX-k.left,y:d.pageY-k.top},j={x:d.x/j.width(),y:d.y/
|
71
|
+
j.height()};g.after&&j.y>0.75?a="after":!g.over&&g.after&&j.y>0.5?a="after":g.before&&j.y<=0.25?a="before":!g.over&&g.before&&j.y<=0.5?a="before":g.over&&(a="over");h.preventVoidMoves&&(b===c?a=null:a==="before"&&c&&b===c.getNextSibling()?a=null:a==="after"&&c&&b===c.getPrevSibling()?a=null:a==="over"&&c&&c.parent===b&&c.isLastSibling()&&(a=null));e.helper.data("hitMode",a)}a==="over"&&h.autoExpandMS&&b.hasChildren()!==!1&&!b.bExpanded&&b.scheduleAction("expand",h.autoExpandMS);a&&h.onDragOver&&(i=
|
72
|
+
h.onDragOver(b,c,a));this._setDndStatus(c,b,e.helper,a,i!==!1);break;case "drop":if((a=e.helper.data("hitMode"))&&h.onDrop)h.onDrop(b,c,a,e,g);break;case "leave":b.scheduleAction("cancel");e.helper.data("enterResponse",null);e.helper.data("hitMode",null);this._setDndStatus(c,b,e.helper,"out",void 0);if(h.onDragLeave)h.onDragLeave(b,c);break;case "stop":j.removeClass("dynatree-drag-source");if(h.onDragStop)h.onDragStop(b);break;default:throw"Unsupported drag event: "+a;}return i},cancelDrag:function(){var a=
|
73
|
+
f.ui.ddmanager.current;a&&a.cancel()},lastentry:void 0};f.widget("ui.dynatree",{_init:function(){if(parseFloat(f.ui.version)<1.8)return this.options.debugLevel>=0&&_log("warn","ui.dynatree._init() was called; you should upgrade to jquery.ui.core.js v1.8 or higher."),this._create();this.options.debugLevel>=2&&_log("debug","ui.dynatree._init() was called; no current default functionality.")},_create:function(){this.options.debugLevel>=1&&logMsg("Dynatree._create(): version='%s', debugLevel=%o.",f.ui.dynatree.version,
|
74
|
+
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(a){var a=f.event.fix(a||window.event),b=p(a.target);return b?b._onFocus(a):!1}this.unbind();var b="click.dynatree dblclick.dynatree";this.options.keyboard&&(b+=" keypress.dynatree keydown.dynatree");this.element.bind(b,function(a){var b=p(a.target);if(!b)return!0;var e=b.tree,f=e.options;e.logDebug("event(%s): dtnode: %s",
|
73
75
|
a.type,b);var h=e.phase;e.phase="userEvent";try{switch(a.type){case "click":return f.onClick&&f.onClick.call(e,b,a)===!1?!1:b._onClick(a);case "dblclick":return f.onDblClick&&f.onDblClick.call(e,b,a)===!1?!1:b._onDblClick(a);case "keydown":return f.onKeydown&&f.onKeydown.call(e,b,a)===!1?!1:b._onKeydown(a);case "keypress":return f.onKeypress&&f.onKeypress.call(e,b,a)===!1?!1:b._onKeypress(a)}}catch(i){e.logWarning("bind(%o): dtnode: %o, error: %o",a,b,i)}finally{e.phase=h}});b=this.tree.divTree;b.addEventListener?
|
74
76
|
(b.addEventListener("focus",a,!0),b.addEventListener("blur",a,!0)):b.onfocusin=b.onfocusout=a},unbind:function(){this.element.unbind(".dynatree")},enable:function(){this.bind();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()},
|
75
|
-
lastentry:void 0});if(parseFloat(f.ui.version)<1.8)f.ui.dynatree.getter="getTree getRoot getActiveNode getSelectedNodes";f.ui.dynatree.prototype.options={title:"Dynatree",minExpandLevel:1,imagePath:null,children:null,initId:null,
|
76
|
-
|
77
|
-
|
78
|
-
active:"dynatree-active",selected:"dynatree-selected",expanded:"dynatree-expanded",lazy:"dynatree-lazy",focused:"dynatree-focused",partsel:"dynatree-partsel",lastsib:"dynatree-lastsib"},debugLevel:2,lastentry:void 0};
|
79
|
-
lastentry:void 0};var
|
80
|
-
|
81
|
-
d,null,a,b,c)}}),
|
77
|
+
lastentry:void 0});if(parseFloat(f.ui.version)<1.8)f.ui.dynatree.getter="getTree getRoot getActiveNode getSelectedNodes";f.ui.dynatree.version="$Version:$";f.ui.dynatree.getNode=function(a){if(a instanceof n)return a;a=(a.selector===void 0?f(a):a).parents("[dtnode]").first();return typeof a.prop=="function"?a.prop("dtnode"):a.attr("dtnode")};f.ui.dynatree.getPersistData=o._getTreePersistData;f.ui.dynatree.prototype.options={title:"Dynatree",minExpandLevel:1,imagePath:null,children:null,initId:null,
|
78
|
+
initAjax:null,autoFocus:!0,keyboard:!0,persist:!1,autoCollapse:!1,clickFolderMode:3,activeVisible:!0,checkbox:!1,selectMode:2,fx:null,noLink:!1,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,onCustomRender:null,onCreate:null,onRender:null,dnd:{onDragStart:null,onDragStop:null,autoExpandMS:1E3,preventVoidMoves:!0,
|
79
|
+
onDragEnter:null,onDragOver:null,onDrop:null,onDragLeave:null},ajaxDefaults:{cache:!1,dataType:"json"},strings:{loading:"Loading…",loadError:"Load error!"},generateIds:!1,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",nodeIcon:"dynatree-icon",
|
80
|
+
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"},debugLevel:2,lastentry:void 0};
|
81
|
+
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:!1,isLazy:!1,tooltip:null,icon:null,addClass:null,noLink:!1,activate:!1,focus:!1,expand:!1,select:!1,hideCheckbox:!1,unselectable:!1,children:null,lastentry:void 0};var r=!1,s=function(){r||(f.ui.plugin.add("draggable","connectToDynatree",{start:function(a,b){var c=f(this).data("draggable"),d=b.helper.data("dtSourceNode")||null;if(d)return c.offset.click.top=
|
82
|
+
-2,c.offset.click.left=16,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=p(a.target);a.target&&!g&&f(a.target).closest("div.dynatree-drag-helper,#dynatree-drop-marker").length>0||(b.helper.data("dtTargetNode",g),e&&e!==g&&e.tree._onDragEvent("leave",e,d,a,b,c),g&&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)))},
|
83
|
+
stop:function(a,b){var c=f(this).data("draggable"),d=b.helper.data("dtSourceNode")||null,e=b.helper.data("dtTargetNode")||null,g=a.type=="mouseup"&&a.which==1;g||logMsg("Drag was cancelled");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=!0)}})(jQuery);
|
Binary file
|
data/templates/emulators/emulators/{palm.pre.2.landscape.scss → galaxy.tab.7.7.landscape.scss}
RENAMED
@@ -1,18 +1,18 @@
|
|
1
1
|
// Generated by compass-jquery-plugin/gem-tasks/emulators.rake
|
2
2
|
|
3
3
|
.emulator {
|
4
|
-
background: image_url("emulators/
|
5
|
-
width:
|
6
|
-
height:
|
4
|
+
background: image_url("emulators/galaxy.tab.7.7.landscape.png") no-repeat;
|
5
|
+
width: 1544px;
|
6
|
+
height: 1050px;
|
7
7
|
-moz-transform-origin: 0 0;
|
8
8
|
-o-transform-origin: 0 0;
|
9
9
|
-webkit-transform-origin: 0 0;
|
10
10
|
.display-area {
|
11
11
|
position: relative;
|
12
|
-
top:
|
13
|
-
width:
|
14
|
-
height:
|
15
|
-
max-height:
|
12
|
+
top: 125px;
|
13
|
+
width: 1280px;
|
14
|
+
height: 752px;
|
15
|
+
max-height: 752px;
|
16
16
|
color: #ffffff;
|
17
17
|
a {
|
18
18
|
color: #ff5500; } } }
|
Binary file
|
data/templates/emulators/emulators/{palm.pre.2.portrait.scss → galaxy.tab.7.7.portrait.scss}
RENAMED
@@ -1,18 +1,18 @@
|
|
1
1
|
// Generated by compass-jquery-plugin/gem-tasks/emulators.rake
|
2
2
|
|
3
3
|
.emulator {
|
4
|
-
background: image_url("emulators/
|
5
|
-
width:
|
6
|
-
height:
|
4
|
+
background: image_url("emulators/galaxy.tab.7.7.portrait.png") no-repeat;
|
5
|
+
width: 1050px;
|
6
|
+
height: 1544px;
|
7
7
|
-moz-transform-origin: 0 0;
|
8
8
|
-o-transform-origin: 0 0;
|
9
9
|
-webkit-transform-origin: 0 0;
|
10
10
|
.display-area {
|
11
11
|
position: relative;
|
12
|
-
top:
|
13
|
-
width:
|
14
|
-
height:
|
15
|
-
max-height:
|
12
|
+
top: 125px;
|
13
|
+
width: 800px;
|
14
|
+
height: 1230px;
|
15
|
+
max-height: 1230px;
|
16
16
|
color: #ffffff;
|
17
17
|
a {
|
18
18
|
color: #ff5500; } } }
|
@@ -14,6 +14,8 @@ stylesheet 'emulators/galaxy.s2.landscape.scss'
|
|
14
14
|
stylesheet 'emulators/galaxy.s2.portrait.scss'
|
15
15
|
stylesheet 'emulators/galaxy.tab.10.1.landscape.scss'
|
16
16
|
stylesheet 'emulators/galaxy.tab.10.1.portrait.scss'
|
17
|
+
stylesheet 'emulators/galaxy.tab.7.7.landscape.scss'
|
18
|
+
stylesheet 'emulators/galaxy.tab.7.7.portrait.scss'
|
17
19
|
stylesheet 'emulators/galaxy.tab.7.landscape.scss'
|
18
20
|
stylesheet 'emulators/galaxy.tab.7.portrait.scss'
|
19
21
|
stylesheet 'emulators/galaxy.tab.8.9.landscape.scss'
|
@@ -26,8 +28,6 @@ stylesheet 'emulators/iphone.3.landscape.scss'
|
|
26
28
|
stylesheet 'emulators/iphone.3.portrait.scss'
|
27
29
|
stylesheet 'emulators/iphone.4.landscape.scss'
|
28
30
|
stylesheet 'emulators/iphone.4.portrait.scss'
|
29
|
-
stylesheet 'emulators/palm.pre.2.landscape.scss'
|
30
|
-
stylesheet 'emulators/palm.pre.2.portrait.scss'
|
31
31
|
image 'emulators/bb.playbook.landscape.png'
|
32
32
|
image 'emulators/bb.playbook.portrait.png'
|
33
33
|
image 'emulators/bb.torch.landscape.png'
|
@@ -40,6 +40,8 @@ image 'emulators/galaxy.s2.landscape.png'
|
|
40
40
|
image 'emulators/galaxy.s2.portrait.png'
|
41
41
|
image 'emulators/galaxy.tab.10.1.landscape.png'
|
42
42
|
image 'emulators/galaxy.tab.10.1.portrait.png'
|
43
|
+
image 'emulators/galaxy.tab.7.7.landscape.png'
|
44
|
+
image 'emulators/galaxy.tab.7.7.portrait.png'
|
43
45
|
image 'emulators/galaxy.tab.7.landscape.png'
|
44
46
|
image 'emulators/galaxy.tab.7.portrait.png'
|
45
47
|
image 'emulators/galaxy.tab.8.9.landscape.png'
|
@@ -52,5 +54,3 @@ image 'emulators/iphone.3.landscape.png'
|
|
52
54
|
image 'emulators/iphone.3.portrait.png'
|
53
55
|
image 'emulators/iphone.4.landscape.png'
|
54
56
|
image 'emulators/iphone.4.portrait.png'
|
55
|
-
image 'emulators/palm.pre.2.landscape.png'
|
56
|
-
image 'emulators/palm.pre.2.portrait.png'
|
@@ -10,4 +10,4 @@ ActionView::Helpers::AssetTagHelper.register_javascript_expansion :highcharts_gr
|
|
10
10
|
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :highcharts_blue => ['highcharts/dark-blue.min']
|
11
11
|
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :highcharts_green => ['highcharts/dark-green.min']
|
12
12
|
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :highslide => ['compiled/jquery/highslide.css']
|
13
|
-
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :highslide => ['highcharts/highslide
|
13
|
+
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :highslide => ['highcharts/highslide.min', 'highcharts/highslide-config.min']
|
@@ -4,166 +4,264 @@
|
|
4
4
|
*/
|
5
5
|
|
6
6
|
Highcharts.theme = {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
7
|
+
colors: ["#DDDF0D", "#55BF3B", "#DF5353", "#7798BF", "#aaeeee", "#ff0066", "#eeaaee",
|
8
|
+
"#55BF3B", "#DF5353", "#7798BF", "#aaeeee"],
|
9
|
+
chart: {
|
10
|
+
backgroundColor: {
|
11
|
+
linearGradient: [0, 0, 250, 500],
|
12
|
+
stops: [
|
13
|
+
[0, 'rgb(48, 48, 96)'],
|
14
|
+
[1, 'rgb(0, 0, 0)']
|
15
|
+
]
|
16
|
+
},
|
17
|
+
borderColor: '#000000',
|
18
|
+
borderWidth: 2,
|
19
|
+
className: 'dark-container',
|
20
|
+
plotBackgroundColor: 'rgba(255, 255, 255, .1)',
|
21
|
+
plotBorderColor: '#CCCCCC',
|
22
|
+
plotBorderWidth: 1
|
23
|
+
},
|
24
|
+
title: {
|
25
|
+
style: {
|
26
|
+
color: '#C0C0C0',
|
27
|
+
font: 'bold 16px "Trebuchet MS", Verdana, sans-serif'
|
28
|
+
}
|
29
|
+
},
|
30
|
+
subtitle: {
|
31
|
+
style: {
|
32
|
+
color: '#666666',
|
33
|
+
font: 'bold 12px "Trebuchet MS", Verdana, sans-serif'
|
34
|
+
}
|
35
|
+
},
|
36
|
+
xAxis: {
|
37
|
+
gridLineColor: '#333333',
|
38
|
+
gridLineWidth: 1,
|
39
|
+
labels: {
|
40
|
+
style: {
|
41
|
+
color: '#A0A0A0'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
lineColor: '#A0A0A0',
|
45
|
+
tickColor: '#A0A0A0',
|
46
|
+
title: {
|
47
|
+
style: {
|
48
|
+
color: '#CCC',
|
49
|
+
fontWeight: 'bold',
|
50
|
+
fontSize: '12px',
|
51
|
+
fontFamily: 'Trebuchet MS, Verdana, sans-serif'
|
52
52
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
53
|
+
}
|
54
|
+
}
|
55
|
+
},
|
56
|
+
yAxis: {
|
57
|
+
gridLineColor: '#333333',
|
58
|
+
labels: {
|
59
|
+
style: {
|
60
|
+
color: '#A0A0A0'
|
61
|
+
}
|
62
|
+
},
|
63
|
+
lineColor: '#A0A0A0',
|
64
|
+
minorTickInterval: null,
|
65
|
+
tickColor: '#A0A0A0',
|
66
|
+
tickWidth: 1,
|
67
|
+
title: {
|
68
|
+
style: {
|
69
|
+
color: '#CCC',
|
70
|
+
fontWeight: 'bold',
|
71
|
+
fontSize: '12px',
|
72
|
+
fontFamily: 'Trebuchet MS, Verdana, sans-serif'
|
73
|
+
}
|
74
|
+
}
|
75
|
+
},
|
76
|
+
legend: {
|
77
|
+
itemStyle: {
|
78
|
+
font: '9pt Trebuchet MS, Verdana, sans-serif',
|
79
|
+
color: '#A0A0A0'
|
80
|
+
}
|
81
|
+
},
|
82
|
+
tooltip: {
|
83
|
+
backgroundColor: 'rgba(0, 0, 0, 0.75)',
|
84
|
+
style: {
|
85
|
+
color: '#F0F0F0'
|
86
|
+
}
|
87
|
+
},
|
88
|
+
toolbar: {
|
89
|
+
itemStyle: {
|
90
|
+
color: 'silver'
|
91
|
+
}
|
92
|
+
},
|
93
|
+
plotOptions: {
|
94
|
+
line: {
|
95
|
+
dataLabels: {
|
96
|
+
color: '#CCC'
|
97
|
+
},
|
98
|
+
marker: {
|
99
|
+
lineColor: '#333'
|
100
|
+
}
|
101
|
+
},
|
102
|
+
spline: {
|
103
|
+
marker: {
|
104
|
+
lineColor: '#333'
|
105
|
+
}
|
106
|
+
},
|
107
|
+
scatter: {
|
108
|
+
marker: {
|
109
|
+
lineColor: '#333'
|
110
|
+
}
|
111
|
+
},
|
112
|
+
candlestick: {
|
113
|
+
lineColor: 'white'
|
114
|
+
}
|
115
|
+
},
|
116
|
+
legend: {
|
117
|
+
itemStyle: {
|
118
|
+
color: '#CCC'
|
119
|
+
},
|
120
|
+
itemHoverStyle: {
|
121
|
+
color: '#FFF'
|
122
|
+
},
|
123
|
+
itemHiddenStyle: {
|
124
|
+
color: '#444'
|
125
|
+
}
|
126
|
+
},
|
127
|
+
credits: {
|
128
|
+
style: {
|
129
|
+
color: '#666'
|
130
|
+
}
|
131
|
+
},
|
132
|
+
labels: {
|
133
|
+
style: {
|
134
|
+
color: '#CCC'
|
135
|
+
}
|
136
|
+
},
|
137
|
+
|
138
|
+
navigation: {
|
139
|
+
buttonOptions: {
|
140
|
+
backgroundColor: {
|
141
|
+
linearGradient: [0, 0, 0, 20],
|
142
|
+
stops: [
|
143
|
+
[0.4, '#606060'],
|
144
|
+
[0.6, '#333333']
|
145
|
+
]
|
146
|
+
},
|
147
|
+
borderColor: '#000000',
|
148
|
+
symbolStroke: '#C0C0C0',
|
149
|
+
hoverSymbolStroke: '#FFFFFF'
|
150
|
+
}
|
151
|
+
},
|
152
|
+
|
153
|
+
exporting: {
|
154
|
+
buttons: {
|
155
|
+
exportButton: {
|
156
|
+
symbolFill: '#55BE3B'
|
157
|
+
},
|
158
|
+
printButton: {
|
159
|
+
symbolFill: '#7797BE'
|
160
|
+
}
|
161
|
+
}
|
162
|
+
},
|
163
|
+
|
164
|
+
// scroll charts
|
165
|
+
rangeSelector: {
|
166
|
+
buttonTheme: {
|
167
|
+
fill: {
|
168
|
+
linearGradient: [0, 0, 0, 20],
|
169
|
+
stops: [
|
170
|
+
[0.4, '#888'],
|
171
|
+
[0.6, '#555']
|
172
|
+
]
|
173
|
+
},
|
174
|
+
stroke: '#000000',
|
175
|
+
style: {
|
176
|
+
color: '#CCC',
|
177
|
+
fontWeight: 'bold'
|
178
|
+
},
|
179
|
+
states: {
|
180
|
+
hover: {
|
181
|
+
fill: {
|
182
|
+
linearGradient: [0, 0, 0, 20],
|
183
|
+
stops: [
|
184
|
+
[0.4, '#BBB'],
|
185
|
+
[0.6, '#888']
|
186
|
+
]
|
187
|
+
},
|
188
|
+
stroke: '#000000',
|
189
|
+
style: {
|
190
|
+
color: 'white'
|
191
|
+
}
|
192
|
+
},
|
193
|
+
select: {
|
194
|
+
fill: {
|
195
|
+
linearGradient: [0, 0, 0, 20],
|
196
|
+
stops: [
|
197
|
+
[0.1, '#000'],
|
198
|
+
[0.3, '#333']
|
199
|
+
]
|
200
|
+
},
|
201
|
+
stroke: '#000000',
|
202
|
+
style: {
|
203
|
+
color: 'yellow'
|
204
|
+
}
|
205
|
+
}
|
206
|
+
}
|
207
|
+
},
|
208
|
+
inputStyle: {
|
209
|
+
backgroundColor: '#333',
|
210
|
+
color: 'silver'
|
211
|
+
},
|
212
|
+
labelStyle: {
|
213
|
+
color: 'silver'
|
214
|
+
}
|
215
|
+
},
|
216
|
+
|
217
|
+
navigator: {
|
218
|
+
handles: {
|
219
|
+
backgroundColor: '#666',
|
220
|
+
borderColor: '#AAA'
|
221
|
+
},
|
222
|
+
outlineColor: '#CCC',
|
223
|
+
maskFill: 'rgba(16, 16, 16, 0.5)',
|
224
|
+
series: {
|
225
|
+
color: '#7798BF',
|
226
|
+
lineColor: '#A6C7ED'
|
227
|
+
}
|
228
|
+
},
|
229
|
+
|
230
|
+
scrollbar: {
|
231
|
+
barBackgroundColor: {
|
232
|
+
linearGradient: [0, 0, 0, 20],
|
233
|
+
stops: [
|
234
|
+
[0.4, '#888'],
|
235
|
+
[0.6, '#555']
|
236
|
+
]
|
237
|
+
},
|
238
|
+
barBorderColor: '#CCC',
|
239
|
+
buttonArrowColor: '#CCC',
|
240
|
+
buttonBackgroundColor: {
|
241
|
+
linearGradient: [0, 0, 0, 20],
|
242
|
+
stops: [
|
243
|
+
[0.4, '#888'],
|
244
|
+
[0.6, '#555']
|
245
|
+
]
|
246
|
+
},
|
247
|
+
buttonBorderColor: '#CCC',
|
248
|
+
rifleColor: '#FFF',
|
249
|
+
trackBackgroundColor: {
|
250
|
+
linearGradient: [0, 0, 0, 10],
|
251
|
+
stops: [
|
252
|
+
[0, '#000'],
|
253
|
+
[1, '#333']
|
254
|
+
]
|
255
|
+
},
|
256
|
+
trackBorderColor: '#666'
|
257
|
+
},
|
258
|
+
|
259
|
+
// special colors for some of the
|
260
|
+
legendBackgroundColor: 'rgba(0, 0, 0, 0.5)',
|
261
|
+
legendBackgroundColorSolid: 'rgb(35, 35, 70)',
|
262
|
+
dataLabelsColor: '#444',
|
263
|
+
textColor: '#C0C0C0',
|
264
|
+
maskColor: 'rgba(255,255,255,0.3)'
|
167
265
|
};
|
168
266
|
|
169
267
|
// Apply the theme
|