Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
fixes on formbuilder_required_marker to change to be more tidy on form
i guess...
.
function formbuilder_draw_widget_area(div){ $(div).append('<div id="formbuilder_widgets_area" style="display:none"><h2 class="formbuilder_editable formbuilder_title">' + gettext('formtitle') + ' ' + gettext('clic_to_edit') + '</h2><div id="formbuilder_rows"></div>'); $('#formbuilder_widgets_area').fadeIn('slow'); $('#formbuilder_widgets_area').append('<p class="formbuilder_required"><span class="formbuilder_required_marker">*</span> <br> ' + gettext('required_lab') + '<input type="hidden" id="counter_rows" value="0" />' + '<input type="hidden" id="counter_fieldset" value="0" /></p>'); formbuilder_widget_fieldset(); set_editable(); }; function formbuilder_widgets_switch_required(row_id){ $.each($(row_id + ' input[@type!="hidden"] , ' + row_id + ' textarea, ' + row_id + ' select'), function(k, v){ $(v).toggleClass('{required:true}'); }); if($(row_id + ' .formbuilder_required_marker').length){ $(row_id + ' .formbuilder_required_marker').remove(); //flash_message(gettext('msg_not_required'), 1); } else { $(row_id + ' .label').after('<span class="formbuilder_required_marker">*</span><br>'); //flash_message(gettext('msg_is_required'), 1); } };
.formbuilder_required_marker { color: red; font-weight: bold; font-size: 100%; position: inherit; } .formbuilder_required .formbuilder_required_marker { position: inherit; left: 0px; top: 0px; } div#_ex_formbuilder_rows .formbuilder_label p { margin: 0; margin-bottom: 0px; display:inline; }