1
0
Fork 0
forked from 0x2620/oxjs

strip tags in Ox.Editable

This commit is contained in:
rlx 2011-10-24 21:31:53 +00:00
commit 19d5f811d6
5 changed files with 21 additions and 6 deletions

View file

@ -16,7 +16,8 @@ Ox.formatArea = function(num, dec) {
/*@
Ox.formatColor <f> (strange one)
@*/
Ox.formatColor = function(val, type) {
// FIXME: implement invert
Ox.formatColor = function(val, type, invert) {
var background, color, element;
if (type == 'hue') {
background = Ox.rgb(val, 1, 0.25).map(function(val) {
@ -45,10 +46,11 @@ Ox.formatColor = function(val, type) {
}
element = Ox.element('<div>')
.css({
borderRadius: '4px',
padding: '0 3px 1px 3px',
borderRadius: '8px',
padding: '0 4px 1px 4px',
color: 'rgb(' + color.join(', ') + ')',
overflow: 'hidden',
textAlign: 'right',
textOverflow: 'ellipsis',
//textShadow: 'black 1px 1px 1px'
})