X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=roojs-debug.js;h=f8171da4ebbfa667924da2edeb3b5f273fe8f9a4;hp=3e434823670710cb7d44aaeb9acd66624d7c471c;hb=9346bd598a5fa0d23fb2ee62eabf7e2876c393e5;hpb=4ed79f6289ef64f2f5b81ce2f0816e9883777ec0 diff --git a/roojs-debug.js b/roojs-debug.js index 3e43482367..f8171da4eb 100644 --- a/roojs-debug.js +++ b/roojs-debug.js @@ -48068,10 +48068,9 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, { enableToggle : true, setValue : function(v) { // this trigger toggle. - - var b = block(); - this.setText(b.caption_display == 'block' ? "Hide Caption" : "Show Caption"); - this.setPressed(b.caption_display == 'block' ? false: true); + + this.setText(v ? "Hide Caption" : "Show Caption"); + this.setPressed(v); }, listeners : { toggle: function (btn, state)