projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9aba66d
)
Roo/bootstrap/Card.js
author
Alan Knowles
<alan@roojs.com>
Thu, 17 Sep 2020 06:17:15 +0000
(14:17 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 17 Sep 2020 06:17:15 +0000
(14:17 +0800)
Roo/bootstrap/Card.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Card.js
b/Roo/bootstrap/Card.js
index
fbc08a9
..
6364b49
100644
(file)
--- a/
Roo/bootstrap/Card.js
+++ b/
Roo/bootstrap/Card.js
@@
-103,16
+103,16
@@
Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component, {
['', 'top', 'bottom', 'left', 'right', 'x', 'y' ].forEach(function(v) {
// in theory these can do margin_top : ml-xs-3 ??? but we don't support that yet
['', 'top', 'bottom', 'left', 'right', 'x', 'y' ].forEach(function(v) {
// in theory these can do margin_top : ml-xs-3 ??? but we don't support that yet
- if (
t['margin' + (v.length ? '_' : '') + v]
.length) {
+ if (
('' + t['margin' + (v.length ? '_' : '') + v])
.length) {
cls += ' m' + (v.length ? v[0] : '') + '-' + t['margin' + (v.length ? '_' : '') + v];
}
cls += ' m' + (v.length ? v[0] : '') + '-' + t['margin' + (v.length ? '_' : '') + v];
}
- if (
t['padding' + (v.length ? '_' : '') + v]
.length) {
+ if (
('' + t['padding' + (v.length ? '_' : '') + v])
.length) {
cls += ' p' + (v.length ? v[0] : '') + '-' + t['padding' + (v.length ? '_' : '') + v];
}
});
['', 'xs', 'sm', 'lg', 'xl'].forEach(function(v) {
cls += ' p' + (v.length ? v[0] : '') + '-' + t['padding' + (v.length ? '_' : '') + v];
}
});
['', 'xs', 'sm', 'lg', 'xl'].forEach(function(v) {
- if (
t['display' + (v.length ? '_' : '') + v]
.length) {
+ if (
('' + t['display' + (v.length ? '_' : '') + v])
.length) {
cls += ' d' + (v.length ? '-' : '') + v + '-' + t['margin' + (v.length ? '_' : '') + v].length
}
});
cls += ' d' + (v.length ? '-' : '') + v + '-' + t['margin' + (v.length ? '_' : '') + v].length
}
});