Skip to content

Commit

Permalink
Item12534:
Browse files Browse the repository at this point in the history
   * upgrading to latest version
   * minifying and compressing css files
   * added class-based initializer to ease usage



git-svn-id: http://svn.foswiki.org/trunk/JSTreeContrib@16810 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
MichaelDaum authored and MichaelDaum committed Jun 25, 2013
1 parent 90063d5 commit 8897188
Show file tree
Hide file tree
Showing 13 changed files with 4,934 additions and 3,785 deletions.
8 changes: 8 additions & 0 deletions pub/System/JSTreeContrib/Makefile
@@ -0,0 +1,8 @@
FOSWIKI_ROOT?=~/foswiki/trunk/core
TARGET=jquery.jstree.js
SUBDIRS=themes

-include $(FOSWIKI_ROOT)/pub/System/JQueryPlugin/Makefile.include

clean:
rm $(TARGET) *.gz
21 changes: 21 additions & 0 deletions pub/System/JSTreeContrib/jquery.jstree.init_src.js
@@ -0,0 +1,21 @@
jQuery(function($) {
var defaults = {
themes: {
"theme":"classic",
"icons": false
},
ui: {
"select_multiple_modifier":"off"
},
core: {
"animation":100
}
};

$(".jsTree").livequery(function() {
var $this = $(this),
opts = $.extend({}, defaults, $this.data());

$this.addClass("jsTreeInited").jstree(opts);
});
});

0 comments on commit 8897188

Please sign in to comment.