X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-bootstrap-debug.js;h=2f35e102e2595378eb93d213473c4b9584654063;hb=4ed79f6289ef64f2f5b81ce2f0816e9883777ec0;hp=48fffc628554ebd346e8a6b052b555ede4662305;hpb=ff19e8ddfc16398b0ad50b8fa7a1a282a865b564;p=roojs1 diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 48fffc6285..2f35e102e2 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -27207,7 +27207,11 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, { pressed : false, enableToggle : true, setValue : function(v) { - this.toggle(v == 'block' ? false : true); + // this trigger toggle. + + var b = block(); + this.setText(b.caption_display == 'block' ? "Hide Caption" : "Show Caption"); + this.setPressed(b.caption_display == 'block' ? false: true); }, listeners : { toggle: function (btn, state)