From 27cb13fbfcd3015b1e6607c55d3737a7a021366b Mon Sep 17 00:00:00 2001 From: PMKuipers Date: Fri, 19 May 2023 16:45:25 +0200 Subject: [PATCH] Whitespace --- amd/src/page-view-plan.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/amd/src/page-view-plan.js b/amd/src/page-view-plan.js index 8afc1f1..bc8ce4c 100644 --- a/amd/src/page-view-plan.js +++ b/amd/src/page-view-plan.js @@ -49,7 +49,7 @@ let strings = load_strings({ const in_systemcontext = (contextid <= 1); - window.addEventListener('resize',fixLineWrappers); + window.addEventListener('resize',fixLineWrappers); let app = new Vue({ el: '#root', data: { @@ -100,7 +100,7 @@ let strings = load_strings({ // load studyplan from hash if applicable const hash = location.hash.replace('#',''); const parts = hash.split("-"); - + if(!!parts && parts.length > 0){ for(let idx in app.studyplans){ if(app.studyplans[idx].id == parts[0]){ @@ -121,7 +121,7 @@ let strings = load_strings({ } } app.usedcontexts = contexts; - }).fail(notification.exception); + }).fail(notification.exception); }, computed: { dropdown_title(){ @@ -141,15 +141,15 @@ let strings = load_strings({ const params = new URLSearchParams(location.search); params.set('categoryid', ctx.id); window.location.search = params.toString(); - + }, closeStudyplan() { app.activestudyplan = null; app.associatedstudents = []; app.studentstudyplan = []; app.displayedstudyplan = null; - }, - + }, + selectStudyplan(studyplan,studentid){ // fetch studyplan app.loadingstudyplan = true; @@ -178,7 +178,7 @@ let strings = load_strings({ } } } - }).fail(notification.exception); + }).fail(notification.exception); }).fail(function(error){ notification.exception(error); @@ -209,8 +209,7 @@ let strings = load_strings({ app.studentstudyplan = null; app.displayedstudyplan = app.activestudyplan; } - + }, }); } -