X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=roojs-bootstrap-debug.js;h=8ecae8a4eb4c601d7bf8868371dd80b7e42909be;hp=2f35e102e2595378eb93d213473c4b9584654063;hb=9346bd598a5fa0d23fb2ee62eabf7e2876c393e5;hpb=4ed79f6289ef64f2f5b81ce2f0816e9883777ec0 diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 2f35e102e2..8ecae8a4eb 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -27208,10 +27208,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)