From d1c2f87f2fa4e66f81f86ec72560b633712c613f Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 9 Sep 2016 19:04:40 +0200 Subject: [roomplanner] Implement marking tutor on plan --- modules-available/roomplanner/js/init.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules-available/roomplanner/js/init.js') diff --git a/modules-available/roomplanner/js/init.js b/modules-available/roomplanner/js/init.js index 454146d3..ef3d15a7 100644 --- a/modules-available/roomplanner/js/init.js +++ b/modules-available/roomplanner/js/init.js @@ -27,13 +27,14 @@ function initRoomplanner() { return; } var dediMgr = $('#dedi-mgr').prop('checked') ? 'on' : ''; + var tutorUuid = $('[istutor="true"]').attr('muuid'); $('#saveBtn').prop('disabled', true); $('#error-msg').hide(); $('#success-msg').hide(); $('#saving-msg').show(); var serializedCurrent = roomplanner.serialize(); $.post('?do=roomplanner&locationid=' + locationId, - { token: TOKEN, action: 'save', serializedRoom: serializedCurrent, managerip: managerip, dedimgr: dediMgr } + { token: TOKEN, action: 'save', serializedRoom: serializedCurrent, managerip: managerip, dedimgr: dediMgr, tutoruuid: tutorUuid } ).done(function ( data ) { if (data.indexOf('SUCCESS') !== -1) { window.close(); -- cgit v1.2.3-55-g7522