Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
scripta
eScriptorium
Commits
4eb7adbf
Commit
4eb7adbf
authored
Oct 15, 2020
by
EL HASSANE GARGEM
Browse files
onboarding seperate update and create document
parent
a0988d46
Changes
1
Show whitespace changes
Inline
Side-by-side
app/escriptorium/templates/core/document_form.html
View file @
4eb7adbf
...
...
@@ -171,6 +171,14 @@
<script
src=
"{% static 'js/help.js' %}"
></script>
{% if object %}
<script
type=
"text/javascript"
>
var
images_url
=
"
{% url 'document-images' pk=object.pk %}
"
;
</script>
{% else %}
<script
type=
"text/javascript"
>
var
images_url
=
"
#
"
;
</script>
{% endif %}
<script
type=
"text/javascript"
>
...
...
@@ -187,13 +195,11 @@ if (onboarding== "True" && !onboarding_document)
document_intro
.
oncomplete
(
function
()
{
userProfile
.
set
(
'
onboarding_document
'
,
true
);
exitonboarding
();
var
images_url
=
"
{% url 'document-images' pk=document.pk %}
"
;
window
.
location
.
href
=
images_url
;
});
}
</script>
{% endif %}
{% endblock %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment