Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GoGoCarto
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pixel Humain
GoGoCarto
Commits
a49e5bfd
Commit
a49e5bfd
authored
3 years ago
by
Sebastian Castro
Browse files
Options
Downloads
Patches
Plain Diff
form: fix html labels
parent
8d26f3fe
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
assets/js/element-form/initialisation.js
+9
-2
9 additions, 2 deletions
assets/js/element-form/initialisation.js
src/Command/MigrationCommand.php
+3
-1
3 additions, 1 deletion
src/Command/MigrationCommand.php
with
12 additions
and
3 deletions
assets/js/element-form/initialisation.js
+
9
−
2
View file @
a49e5bfd
$
(
'
.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
)
{
...
...
This diff is collapsed.
Click to expand it.
src/Command/MigrationCommand.php
+
3
−
1
View file @
a49e5bfd
...
...
@@ -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(/</g,"<").replace(/>/g,">"); db.Configuration.save(conf); })'
];
public
static
$commands
=
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment