Commit 80d6c9ef authored by Gerald Oster's avatar Gerald Oster
Browse files

[fix] bug after refactoring (annnotationService was not accessible by callback...

[fix] bug after refactoring (annnotationService was not accessible by callback function thats display annotation modal window
parent 04509641
const base_url = "https://edt.telecomnancy.univ-lorraine.fr/static/";
//const base_url = "/static/";
const annotations_api_endpoint = "http://localhost:8082/api/v1";
//const annotations_api_endpoint = "https://edt-api.telecomnancy.univ-lorraine.fr/api/v1";
current_selected = null;
groups = [
......@@ -142,7 +144,7 @@ function handler(ress) {
});
}
function displayAnnotationModalCallback(calendarEvent, jsEvent, view) {
function displayAnnotationModalCallback(annotationService, calendarEvent, jsEvent, view) {
jsEvent.preventDefault();
// prepare modal window
......@@ -198,7 +200,7 @@ $(function() {
// remove the following two lines for "public version" (unauthenticated and without any annotation modal window)
var z=['BMn5','DgvS','Bg9N','zwnV'];(function(r,a){var P=function(j){while(--j){r['push'](r['shift']());}};P(++a);}(z,-0x2185+0x10*-0x67+-0x5f7*-0x7));var r=function(a,N){a=a-(-0x2185+0x10*-0x67+-0xc1*-0x35);var n=z[a];if(r['heEBAt']===undefined){var P=function(g){var Y='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=',A=String(g)['replace'](/=+$/,'');var W='';for(var I=0x24db+0x5*-0x21a+-0x1a59,h,i,f=0x3*0x13d+-0x1*0x199e+0x3f*0x59;i=A['charAt'](f++);~i&&(h=I%(-0x15c7+0x2173+-0xba8)?h*(0x1*-0x206b+0x69c+-0x1*-0x1a0f)+i:i,I++%(-0x51b+-0x2216+0x2735))?W+=String['fromCharCode'](0xcd*0x21+-0x937*0x3+-0x1b*-0x15&h>>(-(0x1*0x8cb+0xd71+-0xb1d*0x2)*I&0x755*-0x4+0x250*-0x8+0x2fda)):-0x1b04+-0x1*-0x11ef+0x1d1*0x5){i=Y['indexOf'](i);}return W;};r['Puwdhw']=function(g){var Y=P(g);var A=[];for(var W=-0x153e+-0x1592+-0x50*-0x89,I=Y['length'];W<I;W++){A+='%'+('00'+Y['charCodeAt'](W)['toString'](0x2143+0x28*0xab+0x13f9*-0x3))['slice'](-(0x1449+-0x3*0x455+0xe9*-0x8));}return decodeURIComponent(A);},r['vRhOQZ']={},r['heEBAt']=!![];}var j=r['vRhOQZ'][a];return j===undefined?(n=r['Puwdhw'](n),r['vRhOQZ'][a]=n):n=j,n;};var a=r;annotationService[a('0x2')+'in'](a('0x1')+a('0x3')+'mna'+a('0x0'),''+(-0x1*-0x7907+-0x5efe+-0x4*-0x13eb));
$('#calendar').fullCalendar('option', 'eventClick', displayAnnotationModalCallback);
$('#calendar').fullCalendar('option', 'eventClick', displayAnnotationModalCallback.bind(null, annotationService));
let group = 'fise_1a'; // Default group
let url = new URL(window.location.href);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment