X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=roojs-ui-debug.js;h=4accc54a538c3ea2f5e16aef4e301b9a80a2494d;hp=7064634aaa09939211ccdb5080118d9a0f71f728;hb=9346bd598a5fa0d23fb2ee62eabf7e2876c393e5;hpb=4ed79f6289ef64f2f5b81ce2f0816e9883777ec0 diff --git a/roojs-ui-debug.js b/roojs-ui-debug.js index 7064634aaa..4accc54a53 100644 --- a/roojs-ui-debug.js +++ b/roojs-ui-debug.js @@ -23576,10 +23576,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)