Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-webui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
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
caosdb
Software
caosdb-webui
Commits
3942d0c3
Commit
3942d0c3
authored
3 years ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
MAINT: replace console.log with logger
parent
a512e21a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!59
REL: release 0.4.1
Pipeline
#16906
passed
3 years ago
Stage: setup
Stage: linting
Stage: test
Stage: deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/core/js/ext_editmode_wysiwyg_text.js
+5
-5
5 additions, 5 deletions
src/core/js/ext_editmode_wysiwyg_text.js
with
5 additions
and
5 deletions
src/core/js/ext_editmode_wysiwyg_text.js
+
5
−
5
View file @
3942d0c3
...
...
@@ -59,14 +59,14 @@ var ext_editmode_wysiwyg_text = function ($, logger, ClassicEditor, edit_mode, g
},
},
})
console
.
lo
g
(
'
Initialized editor for
'
+
getPropertyName
(
prop
));
logger
.
debu
g
(
'
Initialized editor for
'
+
getPropertyName
(
prop
));
// Manually implement saving the data since edit mode is not
// a form to be submitted.
editor
.
model
.
document
.
on
(
"
change:data
"
,
(
e
)
=>
{
editor
.
updateSourceElement
();
});
}
catch
(
error
)
{
console
.
error
(
error
.
stack
);
logger
.
error
(
error
.
stack
);
}
}
...
...
@@ -86,20 +86,20 @@ var ext_editmode_wysiwyg_text = function ($, logger, ClassicEditor, edit_mode, g
// Insert an editor into all TEXT properties of the entity which is
// being edited.
document
.
body
.
addEventListener
(
edit_mode
.
start_edit
.
type
,
(
e
)
=>
{
console
.
lo
g
(
'
Replacing text areas ...
'
);
logger
.
debu
g
(
'
Replacing text areas ...
'
);
ext_editmode_wysiwyg_text
.
replaceTextAreas
(
e
.
target
);
},
true
);
// Listen to added properties and replace the textarea if necessary
document
.
body
.
addEventListener
(
edit_mode
.
property_added
.
type
,
(
e
)
=>
{
console
.
lo
g
(
'
Replacing textarea in
'
+
getPropertyName
(
e
.
target
));
logger
.
debu
g
(
'
Replacing textarea in
'
+
getPropertyName
(
e
.
target
));
ext_editmode_wysiwyg_text
.
insertEditorInProperty
(
e
.
target
);
},
true
)
// Listen to properties, the data type of which has changed. Mainly
// because of change from list to scalar and vice versa.
document
.
body
.
addEventListener
(
edit_mode
.
property_data_type_changed
.
type
,
(
e
)
=>
{
console
.
lo
g
(
'
Re-rendering
'
+
getPropertyName
(
e
.
target
));
logger
.
debu
g
(
'
Re-rendering
'
+
getPropertyName
(
e
.
target
));
ext_editmode_wysiwyg_text
.
insertEditorInProperty
(
e
.
target
);
},
true
);
};
...
...
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