1
0
mirror of synced 2024-11-23 22:10:59 +01:00

Upgrade to latest React 16 (16.14.0), fix problems found when doing so.

This commit is contained in:
Jennifer Taylor 2022-10-08 19:09:35 +00:00
parent e27c99baa2
commit 1685191640
8 changed files with 282 additions and 24 deletions

View File

@ -105,7 +105,7 @@ var arcade_management = createReactClass({
event.preventDefault();
},
togglePaseliEnabled: function(event) {
togglePaseliEnabled: function() {
this.setState({paseli_enabled_saving: true})
AJAX.post(
Link.get('paseli_enabled'),
@ -117,10 +117,9 @@ var arcade_management = createReactClass({
});
}.bind(this)
);
event.preventDefault();
},
togglePaseliInfinite: function(event) {
togglePaseliInfinite: function() {
this.setState({paseli_infinite_saving: true})
AJAX.post(
Link.get('paseli_infinite'),
@ -132,10 +131,9 @@ var arcade_management = createReactClass({
});
}.bind(this)
);
event.preventDefault();
},
toggleMaskServicesURL: function(event) {
toggleMaskServicesURL: function() {
this.setState({mask_services_url_saving: true})
AJAX.post(
Link.get('mask_services_url'),
@ -147,7 +145,6 @@ var arcade_management = createReactClass({
});
}.bind(this)
);
event.preventDefault();
},
addBalance: function(event) {

View File

@ -82,7 +82,7 @@ var settings_view = createReactClass({
event.preventDefault();
},
toggleEarlyLate: function(event) {
toggleEarlyLate: function() {
this.setState({saving_early_late: true})
AJAX.post(
Link.get('updateearlylate'),
@ -99,10 +99,9 @@ var settings_view = createReactClass({
});
}.bind(this)
);
event.preventDefault();
},
toggleBackgroundCombo: function(event) {
toggleBackgroundCombo: function() {
this.setState({saving_background_combo: true})
AJAX.post(
Link.get('updatebackgroundcombo'),
@ -119,7 +118,6 @@ var settings_view = createReactClass({
});
}.bind(this)
);
event.preventDefault();
},
saveName: function(event) {

0
bemani/frontend/static/jquery-confirm.css Executable file → Normal file
View File

0
bemani/frontend/static/jquery-confirm.js vendored Executable file → Normal file
View File

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -54,6 +54,14 @@ div.navigation {
}
}
@media only screen and (min-width: 600px) {
div.jconfirm-box-container {
margin-left: 25%;
margin-right: 25%;
width: 50%;
}
}
@media only screen and (hover: none) {
.tinynav {
display: inline-block;

View File

@ -48,6 +48,14 @@ div.navigation {
}
}
@media only screen and (min-width: 600px) {
div.jconfirm-box-container {
margin-left: 25%;
margin-right: 25%;
width: 50%;
}
}
@media only screen and (hover: none) {
.tinynav {
display: inline-block;