Skip to content

Commit

Permalink
customize the tree builder image path
Browse files Browse the repository at this point in the history
  • Loading branch information
carver committed Sep 8, 2011
1 parent 5f88b9a commit b99359d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion JSONeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ OTHER DEALINGS IN THE SOFTWARE.
*/

JSONeditor={
start:function(treeDivName,formDivName,json,showExamples){
start:function(treeDivName,formDivName,json,showExamples,imgPath){
if(this.examples.length<6){
var e=this.treeBuilder.JSONstring.make(this)
eval("this.examples[5]={JSONeditor:"+e+"}")
}
this.treeDivName=treeDivName
if(imgPath) this.treeBuilder.images.path = imgPath;
var t=this.treeBuilder, $=t.$
treeBuilder=t
var s=$(treeDivName).style
Expand Down

0 comments on commit b99359d

Please sign in to comment.