From 975c43ba5739d4e364a285e5e8be942b6c942365 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 9 Jul 2012 16:31:30 +0200 Subject: [PATCH] form example: enable color picker, remove print statement --- examples/forms/form_elements/js/example.js | 29 ++++++++++------------ 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/examples/forms/form_elements/js/example.js b/examples/forms/form_elements/js/example.js index 5f48f212..8012449e 100644 --- a/examples/forms/form_elements/js/example.js +++ b/examples/forms/form_elements/js/example.js @@ -210,19 +210,19 @@ Ox.load({Geo: {}, UI: {}, Unicode: {}}, function() { } ] }, - //ColorInput: { - // description: '...', - // options: [ - // { - // description: 'RGB', - // value: [255, 0, 0] - // }, - // { - // description: 'HSL', - // mode: 'hsl' - // } - // ] - //}, + ColorInput: { + description: '...', + options: [ + { + description: 'RGB', + value: [255, 0, 0] + }, + { + description: 'HSL', + mode: 'hsl' + } + ] + }, DateInput: { description: 'Allows you to enter a date.', options: [ @@ -698,9 +698,6 @@ Ox.load({Geo: {}, UI: {}, Unicode: {}}, function() { function showValues(data) { setTimeout(function() { - Ox.print(Ox.extend( - {}, data.section, $form.values()[data.section] - )) $panel.replaceElement(1, Ox.TreeList({ data: Ox.extend(