Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Basthon
Basthon Notebook
Commits
f316bae2
Commit
f316bae2
authored
Nov 01, 2020
by
Romain Casati
Browse files
Events are taken from GUI (not from Notebook).
parent
d03bdc68
Changes
1
Hide whitespace changes
Inline
Side-by-side
notebook/basthon/gui.js
View file @
f316bae2
...
...
@@ -20,6 +20,8 @@ window.basthonGUI = (function () {
// keeping back dialog module from notebook.
that
.
dialog
=
that
.
notebook
.
dialog
;
// keeping back events from notebook.
that
.
events
=
that
.
notebook
.
events
;
/*
loading content from query string or from local storage.
...
...
@@ -37,8 +39,7 @@ window.basthonGUI = (function () {
'
output_added.OutputArea
'
,
'
output_updated.OutputArea
'
,
'
output_appended.OutputArea
'
]
)
{
that
.
notebook
.
events
.
bind
(
event
,
()
=>
{
that
.
saveToStorage
();
}
);
that
.
events
.
bind
(
event
,
()
=>
{
that
.
saveToStorage
();
}
);
}
/* all errors redirected to notification system */
...
...
@@ -176,7 +177,7 @@ Un lien vers la page de Basthon avec le contenu actuel du script a été créé.
<br>
<i class="fa fa-exclamation-circle"></i> Attention, partager un script trop long peut ne pas fonctionner avec certains navigateurs.
`
);
that
.
notebook
.
events
.
trigger
(
'
before_share.Notebook
'
);
that
.
events
.
trigger
(
'
before_share.Notebook
'
);
const
url
=
that
.
notebook
.
toURL
(
key
);
that
.
dialog
.
modal
({
notebook
:
that
.
notebook
,
...
...
@@ -197,7 +198,7 @@ Un lien vers la page de Basthon avec le contenu actuel du script a été créé.
},
}
});
that
.
notebook
.
events
.
trigger
(
'
notebook_shared.Notebook
'
);
that
.
events
.
trigger
(
'
notebook_shared.Notebook
'
);
};
/**
...
...
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