From 38e01c26cae54122229a7651b53c01b894d2dc96 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 14 Jun 2012 12:34:24 +0200 Subject: [PATCH] Ox.FormPanel: use section id, not title, as values key; use 'OxSelectable' class --- source/Ox.UI/js/Form/FormPanel.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/Ox.UI/js/Form/FormPanel.js b/source/Ox.UI/js/Form/FormPanel.js index e1af6c07..840fdf55 100644 --- a/source/Ox.UI/js/Form/FormPanel.js +++ b/source/Ox.UI/js/Form/FormPanel.js @@ -83,12 +83,14 @@ Ox.FormPanel = function(options, self) { }) .append( $('
') + .addClass('OxSelectable') .css({marginBottom: '8px', fontWeight: 'bold'}) .html((i + 1) + '. ' + section.title) ) .append( $('
') - .css({marginBottom: '16px', WebkitUserSelect: 'text'}) + .addClass('OxSelectable') + .css({marginBottom: '16px'}) .html(section.description) ) .append( @@ -187,7 +189,7 @@ Ox.FormPanel = function(options, self) { that.values = function() { var values = {}; self.options.form.forEach(function(section, i) { - values[section.title] = self.$forms[i].values(); + values[section.id] = self.$forms[i].values(); }); return values; };