Skip to content
Snippets Groups Projects
Commit a49e5bfd authored by Sebastian Castro's avatar Sebastian Castro
Browse files

form: fix html labels

parent 8d26f3fe
No related branches found
No related tags found
No related merge requests found
$('.to-html:not(.initialized)').each(function() { $(this).html($(this).text()).addClass('initialized'); });
initializeToHtml()
function initializeToHtml() {
$('.to-html:not(.initialized)').each(function() {
if ($(this).text().includes('<')) $(this).html($(this).text());
$(this).addClass('initialized');
});
}
jQuery(document).ready(function()
{
......@@ -32,7 +39,7 @@ jQuery(document).ready(function()
$('.select2-search__field').blur(function() { $(this).closest('.input-field').find('.material-icons').removeClass('active') })
$('input.select-dropdown').blur(function() { if (!$(this).val()) $(this).closest('.input-field').find('.material-icons').removeClass('active') })
$('.to-html:not(.initialized)').each(function() { $(this).html($(this).text()).addClass('initialized'); });
initializeToHtml()
// TIMEPICKERS
$('.timepicker').each(function(e) {
......
......@@ -39,7 +39,9 @@ class MigrationCommand extends Command
'db.Option.updateMany({}, {$set: {osmTags: {}}})',
'var mapping = {};
db.Element.find({ privateData: { $exists: true, $ne: {} } }).forEach(function(doc){Object.keys(doc.privateData).forEach(function(key){mapping["privateData." + key]="data." + key})});
db.Element.updateMany({ privateData: { $exists: true, $ne: {} } }, {$rename: mapping})'
db.Element.updateMany({ privateData: { $exists: true, $ne: {} } }, {$rename: mapping})',
// v3.2.8
'db.Configuration.find().forEach(function(conf) { conf.elementFormFieldsJson = conf.elementFormFieldsJson.replace(/&lt;/g,"<").replace(/&gt;/g,">"); db.Configuration.save(conf); })'
];
public static $commands = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment