projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b5cff7
)
Roo/form/HtmlEditor/ToolbarContext.js
author
Alan Knowles
<alan@roojs.com>
Fri, 13 Apr 2012 07:17:22 +0000
(15:17 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 13 Apr 2012 07:17:22 +0000
(15:17 +0800)
Roo/form/HtmlEditor/ToolbarContext.js
Roo/form/HtmlEditor/ToolbarContext.js
patch
|
blob
|
history
diff --git
a/Roo/form/HtmlEditor/ToolbarContext.js
b/Roo/form/HtmlEditor/ToolbarContext.js
index
cf6ceb2
..
a31557e
100644
(file)
--- a/
Roo/form/HtmlEditor/ToolbarContext.js
+++ b/
Roo/form/HtmlEditor/ToolbarContext.js
@@
-345,13
+345,14
@@
Roo.apply(Roo.form.HtmlEditor.ToolbarContext.prototype, {
});
}
- var
styles = [];
+ var
hasStyles
for(var i in this.styles) {
- styles.push(i);
+ hasStyles = true;
+ break;
}
// update styles
- if (
styles.length
) {
+ if (
hasStyles
) {
var st = this.tb.fields.item(0);
st.store.removeAll();