Whitespace

This commit is contained in:
PMKuipers 2023-05-19 16:45:25 +02:00
parent cc6101194f
commit 27cb13fbfc

View File

@ -49,7 +49,7 @@ let strings = load_strings({
const in_systemcontext = (contextid <= 1); const in_systemcontext = (contextid <= 1);
window.addEventListener('resize',fixLineWrappers); window.addEventListener('resize',fixLineWrappers);
let app = new Vue({ let app = new Vue({
el: '#root', el: '#root',
data: { data: {
@ -100,7 +100,7 @@ let strings = load_strings({
// load studyplan from hash if applicable // load studyplan from hash if applicable
const hash = location.hash.replace('#',''); const hash = location.hash.replace('#','');
const parts = hash.split("-"); const parts = hash.split("-");
if(!!parts && parts.length > 0){ if(!!parts && parts.length > 0){
for(let idx in app.studyplans){ for(let idx in app.studyplans){
if(app.studyplans[idx].id == parts[0]){ if(app.studyplans[idx].id == parts[0]){
@ -121,7 +121,7 @@ let strings = load_strings({
} }
} }
app.usedcontexts = contexts; app.usedcontexts = contexts;
}).fail(notification.exception); }).fail(notification.exception);
}, },
computed: { computed: {
dropdown_title(){ dropdown_title(){
@ -141,15 +141,15 @@ let strings = load_strings({
const params = new URLSearchParams(location.search); const params = new URLSearchParams(location.search);
params.set('categoryid', ctx.id); params.set('categoryid', ctx.id);
window.location.search = params.toString(); window.location.search = params.toString();
}, },
closeStudyplan() { closeStudyplan() {
app.activestudyplan = null; app.activestudyplan = null;
app.associatedstudents = []; app.associatedstudents = [];
app.studentstudyplan = []; app.studentstudyplan = [];
app.displayedstudyplan = null; app.displayedstudyplan = null;
}, },
selectStudyplan(studyplan,studentid){ selectStudyplan(studyplan,studentid){
// fetch studyplan // fetch studyplan
app.loadingstudyplan = true; app.loadingstudyplan = true;
@ -178,7 +178,7 @@ let strings = load_strings({
} }
} }
} }
}).fail(notification.exception); }).fail(notification.exception);
}).fail(function(error){ }).fail(function(error){
notification.exception(error); notification.exception(error);
@ -209,8 +209,7 @@ let strings = load_strings({
app.studentstudyplan = null; app.studentstudyplan = null;
app.displayedstudyplan = app.activestudyplan; app.displayedstudyplan = app.activestudyplan;
} }
}, },
}); });
} }