X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-bootstrap-debug.js;h=df50da3c5afd2a8acfb70d685e0682d71e7291cc;hb=fe8764df0dd0c6278e411adce7082e96d76acae5;hp=7e2c4e7b25f7e97d7a0bc7f85fce01619fe89b12;hpb=529565bae1474a2832b202421e1ebda471c46a6c;p=roojs1 diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 7e2c4e7b25..df50da3c5a 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -27042,15 +27042,18 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, { listeners : { click: function (btn, state) { - + var b = block(); Roo.MessageBox.show({ title : "Image Source URL", msg : "Enter the url for the image", buttons: Roo.MessageBox.OKCANCEL, - fn: function(val){ - block().image_src = val; - block().updateElement(); + fn: function(btn, val){ + if (btn != 'ok') { + return; + } + b.image_src = val; + b.updateElement(); syncValue(); toolbar.editorcore.onEditorEvent(); }, @@ -27058,7 +27061,7 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, { prompt:true, //multiline: multiline, modal : true, - value : block().image_src + value : b.image_src }); } }, @@ -27072,15 +27075,18 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, { listeners : { click: function (btn, state) { - + var b = block(); Roo.MessageBox.show({ title : "Link URL", msg : "Enter the url for the link - leave blank to have no link", buttons: Roo.MessageBox.OKCANCEL, - fn: function(val){ - block().href = val; - block().updateElement(); + fn: function(btn, val){ + if (btn != 'ok') { + return; + } + b.href = val; + b.updateElement(); syncValue(); toolbar.editorcore.onEditorEvent(); }, @@ -27088,7 +27094,7 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, { prompt:true, //multiline: multiline, modal : true, - value : block().href + value : b.href }); } },