From 58c8689c0db48dbab58779670d44fbe7926e46af Mon Sep 17 00:00:00 2001 From: Panos Katseas Date: Mon, 26 Jan 2015 16:58:34 +0000 Subject: [PATCH 1/2] Fix ensuring order of items in checkboxes and select options --- src/editors/checkboxes.js | 4 ++-- src/editors/select.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/editors/checkboxes.js b/src/editors/checkboxes.js index 74a42025..7322bc96 100644 --- a/src/editors/checkboxes.js +++ b/src/editors/checkboxes.js @@ -63,7 +63,7 @@ Form.editors.Checkboxes = Form.editors.Select.extend({ * @return {String} HTML */ _arrayToHtml: function (array) { - var html = $(); + var html = document.createDocumentFragment(); var self = this; _.each(array, function(option, index) { @@ -91,7 +91,7 @@ Form.editors.Checkboxes = Form.editors.Select.extend({ itemHtml.append( $('').val(option) ); itemHtml.append( $('