From b4d226628d721f0f8b6426cb915d994a66060f8c Mon Sep 17 00:00:00 2001 From: juanf <juanf> Date: Fri, 20 Jun 2014 08:26:01 +0000 Subject: [PATCH] SSDM-504: Remove unused code. SVN: 31745 --- .../newbrowser/html/js/util/FormUtil.js | 23 +------------------ 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/util/FormUtil.js b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/util/FormUtil.js index 5f8b26ae7e4..a0c6bc9f01d 100644 --- a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/util/FormUtil.js +++ b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/util/FormUtil.js @@ -55,7 +55,7 @@ var FormUtil = new function() { this.getFieldForLabelWithText = function(label, text) { var $fieldset = $('<fieldset>'); - var $controlGroup = $('<div>', {class : 'control-group'}); + var $controlGroup = $('<div>', {class : 'form-group'}); var $controlLabel = $('<label>', {class : 'control-label ' + this.labelColumnClass}).text(label + ":"); var $controls = $('<div>', {class : 'controls ' + this.controlColumnClass }); @@ -70,27 +70,6 @@ var FormUtil = new function() { return $fieldset; } - this.getFieldForPropertyTypeWithLabel = function(propertyType) { - var $fieldset = $('<fieldset>'); - - var $controlGroup = $('<div>', {class : 'control-group'}); - var $controlLabel = $('<label>', {class : 'control-label'}).text(propertyType.label + ":"); - var $controls = $('<div>', {class : 'controls'}); - - $controlGroup.append($controlLabel); - $controlGroup.append($controls); - $fieldset.append($controlGroup); - - var $component = this.getFieldForPropertyType(propertyType); - - $controls.append($component); - if(propertyType.mandatory) { - $controls.append(' (Required)') - } - - return $fieldset; - } - this.getFieldForPropertyType = function(propertyType) { var $component = null; if (propertyType.dataType === "BOOLEAN") { -- GitLab