Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
PRONO Yann
kaamelott-soundboard
Commits
e0ef554c
Commit
e0ef554c
authored
8 years ago
by
Antoine
Browse files
Options
Download
Email Patches
Plain Diff
Empêche le rafraichissement de la page au clic du bouton retour du navigateur
parent
1074ba88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
js/app/app.js
js/app/app.js
+7
-1
No files found.
js/app/app.js
View file @
e0ef554c
...
...
@@ -3,6 +3,7 @@ define("app", function(require) {
var
Backbone
=
require
(
"
backbone
"
),
Marionette
=
require
(
"
marionette
"
),
$
=
require
(
"
jquery
"
),
Radio
=
require
(
"
backbone.radio
"
),
SoundboardController
=
require
(
"
controllers/soundboard
"
),
Likely
=
require
(
"
likely
"
),
...
...
@@ -27,7 +28,8 @@ define("app", function(require) {
},
start
:
function
start
()
{
var
soundboardController
=
new
SoundboardController
();
var
that
=
this
,
soundboardController
=
new
SoundboardController
();
this
.
router
.
processAppRoutes
(
soundboardController
,
{
""
:
"
index
"
,
...
...
@@ -37,6 +39,10 @@ define("app", function(require) {
if
(
Backbone
.
history
)
{
Backbone
.
history
.
start
();
this
.
trigger
(
"
backbone:history:start
"
);
$
(
window
).
on
(
'
popstate
'
,
function
()
{
that
.
router
.
navigate
(
Backbone
.
history
.
getFragment
(),
{
replace
:
true
});
});
}
likely
.
initiate
();
...
...
This diff is collapsed.
Click to expand it.
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