From 10e44ace4c377167ed163b4d673c266ac2358155 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Sun, 2 Aug 2020 09:15:03 +0200 Subject: Rev: 4667 --- .../javascript/intezmeny/kepesitesek.jquery.min.js | 6 +++-- .../tankorTanarHozzarendeles.jquery.min.js | 3 ++- .../intezmeny/tovabbkepzes.jquery.min.js | 3 ++- .../javascript/tanev/targyBontas.jquery.min.js | 31 +++++++++++++++------- 4 files changed, 30 insertions(+), 13 deletions(-) (limited to 'mayor-orig/mayor-naplo/www/skin/classic') diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/kepesitesek.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/kepesitesek.jquery.min.js index 75cd36c3..a57f781b 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/kepesitesek.jquery.min.js +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/kepesitesek.jquery.min.js @@ -20,7 +20,8 @@ $(function() { targyId = element.data('targyid'); kepesitesId = element.data('kepesitesid'); - postData = { 'action':'delTargy', 'targyId':targyId, 'kepesitesId':kepesitesId } + // postData = { 'action':'delTargy', 'targyId':targyId, 'kepesitesId':kepesitesId } + postData = { 'action':'delTargy', 'targyId':targyId, 'kepesitesId':kepesitesId, 'mayorToken': ($('body').data('mayortoken')) } saltName = $('#kepesitesForm input.salt').prop('name'); saltValue = $('#kepesitesForm input.salt').val(); postData[saltName] = saltValue; @@ -40,7 +41,8 @@ $(function() { tanarId = element.data('tanarid'); kepesitesId = element.data('kepesitesid'); - postData = { 'action':'delTanar', 'tanarId':tanarId, 'kepesitesId':kepesitesId } + // postData = { 'action':'delTanar', 'tanarId':tanarId, 'kepesitesId':kepesitesId } + postData = { 'action':'delTanar', 'tanarId':tanarId, 'kepesitesId':kepesitesId, 'mayorToken': ($('body').data('mayortoken')) } saltName = $('#kepesitesForm input.salt').prop('name'); saltValue = $('#kepesitesForm input.salt').val(); postData[saltName] = saltValue; diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tankorTanarHozzarendeles.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tankorTanarHozzarendeles.jquery.min.js index 3a5df16f..2e975f4e 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tankorTanarHozzarendeles.jquery.min.js +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tankorTanarHozzarendeles.jquery.min.js @@ -299,7 +299,8 @@ $(function() { element.next('input#tankorNevExtra').show(); element.hide(); } else if (element.hasClass('tankorModosit')) { - postData = { 'tankorId':$('#updateWindowSide').data('target').data('tankorid'),'osztalyIds': [], 'tankorSzemeszter': [], 'tankorNevExtra': $('#updateWindowSide input#tankorNevExtra').val() } + // postData = { 'tankorId':$('#updateWindowSide').data('target').data('tankorid'),'osztalyIds': [], 'tankorSzemeszter': [], 'tankorNevExtra': $('#updateWindowSide input#tankorNevExtra').val() } + postData = { 'tankorId':$('#updateWindowSide').data('target').data('tankorid'),'osztalyIds': [], 'tankorSzemeszter': [], 'tankorNevExtra': $('#updateWindowSide input#tankorNevExtra').val(), 'mayorToken': ($('body').data('mayortoken')) } $('#updateWindowSide ul#tankorOsztaly input:checked').each(function(index){postData.osztalyIds.push($(this).val());}) $('#updateWindowSide ul#tankorSzemeszter input[type=text]').each(function(index){ if ($(this).val() != '') { diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tovabbkepzes.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tovabbkepzes.jquery.min.js index db9f0830..cc4a0426 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tovabbkepzes.jquery.min.js +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tovabbkepzes.jquery.min.js @@ -182,7 +182,8 @@ ajaxSetTanarAdat = function(tanarId,forduloDt,salt_name,salt_value) { postData = {'tanarId':tanarId, 'forduloDt':forduloDt, 'sessionID': $('body').data('sessionid'), - 'action':'modTanarTovabbkepzesForduloDt' } + 'action':'modTanarTovabbkepzesForduloDt', + 'mayorToken': ($('body').data('mayortoken')) } postData[salt_name] = salt_value; $.ajax({ type: "POST", diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/tanev/targyBontas.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/tanev/targyBontas.jquery.min.js index fd03b778..3b3e5ac3 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/tanev/targyBontas.jquery.min.js +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/tanev/targyBontas.jquery.min.js @@ -17,7 +17,8 @@ } ajaxGetTankorAdat = function(tankorId) { - postData = { 'tankorId':tankorId } + // postData = { 'tankorId':tankorId } + postData = { 'tankorId':tankorId, 'mayorToken': ($('body').data('mayortoken')) } $.ajax({ type: "POST", @@ -552,8 +553,8 @@ $(function() { } else if (element.hasClass('slideDown')) { slideDown(element); } else if (element.hasClass('addBontas')) { - - postData = { 'action':'addBontas', 'keys':element.closest('tr').data('keys')} +// postData = { 'action':'addBontas', 'keys':element.closest('tr').data('keys') } + postData = { 'action':'addBontas', 'keys':element.closest('tr').data('keys'), 'mayorToken': ($('body').data('mayortoken')) } saltName = $('#bontasForm input.salt').prop('name'); saltValue = $('#bontasForm input.salt').val(); postData[saltName] = saltValue; @@ -566,6 +567,11 @@ $(function() { }).done(function( msg, status, jqXHR ) { updateSalt(jqXHR.getResponseHeader('Etag')); processJSONAddBontas(msg); + + }).fail(function( jqXHR, textStatus, errorThrown ) { + //console.log('fail'); + //console.log(jqXHR); + }); } else if (element.hasClass('addBontasTargy')) { @@ -582,7 +588,8 @@ $(function() { $('#targyak').show().focus(); } else if (element.hasClass('selectTargy')) { - postData = { 'action':'addBontasTargy', 'keys':$('div#targyak').data('keys'), 'targyId':element.data('targyid') } + // postData = { 'action':'addBontasTargy', 'keys':$('div#targyak').data('keys'), 'targyId':element.data('targyid') } + postData = { 'action':'addBontasTargy', 'keys':$('div#targyak').data('keys'), 'targyId':element.data('targyid'), 'mayorToken': ($('body').data('mayortoken')) } saltName = $('#bontasForm input.salt').prop('name'); saltValue = $('#bontasForm input.salt').val(); postData[saltName] = saltValue; @@ -599,7 +606,8 @@ $(function() { } else if (element.hasClass('delBontas')) { - postData = { 'action':'delBontas', 'keys':element.closest('div.bontas').data('keys')} + // postData = { 'action':'delBontas', 'keys':element.closest('div.bontas').data('keys') } + postData = { 'action':'delBontas', 'keys':element.closest('div.bontas').data('keys'), 'mayorToken': ($('body').data('mayortoken')) } saltName = $('#bontasForm input.salt').prop('name'); saltValue = $('#bontasForm input.salt').val(); postData[saltName] = saltValue; @@ -622,7 +630,8 @@ $(function() { alert('Hiba! A bontás összóraszáma nagyobb a képzés-óratervben megadottnál!'); } { - postData = { 'targyId':element.data('targyid'), 'bontasIds':element.data('keys').toString().split(',') } + // postData = { 'targyId':element.data('targyid'), 'bontasIds':element.data('keys').toString().split(',') } + postData = { 'targyId':element.data('targyid'), 'bontasIds':element.data('keys').toString().split(','), 'mayorToken': ($('body').data('mayortoken')) } $.ajax({ type: "POST", @@ -640,8 +649,10 @@ $(function() { } else if (element.hasClass('tankorBontas') && !element.hasClass('tiltott')) { + // postData = { 'action':'bontasTankor', 'keys':$('#updateWindowSide').data('target').data('keys'), + // 'tankorId': element.data('tankorId'), 'hetiOraszam':element.data('hetiOraszam') } postData = { 'action':'bontasTankor', 'keys':$('#updateWindowSide').data('target').data('keys'), - 'tankorId': element.data('tankorId'), 'hetiOraszam':element.data('hetiOraszam') } + 'tankorId': element.data('tankorId'), 'hetiOraszam':element.data('hetiOraszam'), 'mayorToken': ($('body').data('mayortoken')) } saltName = $('#bontasForm input.salt').prop('name'); saltValue = $('#bontasForm input.salt').val(); postData[saltName] = saltValue; @@ -678,7 +689,8 @@ $(function() { } } else if (element.attr('id') == 'addTankor') { - postData = { 'action':'ujTankor', 'bontasIds':$('#updateWindowSide').data('target').data('keys').toString().split(',') } + // postData = { 'action':'ujTankor', 'bontasIds':$('#updateWindowSide').data('target').data('keys').toString().split(',') } + postData = { 'action':'ujTankor', 'bontasIds':$('#updateWindowSide').data('target').data('keys').toString().split(','), 'mayorToken': ($('body').data('mayortoken')) } $.ajax({ type: "POST", @@ -699,7 +711,8 @@ $(function() { ajaxGetTankorAdat(element.data('tankorid')); } else if (element.hasClass('tankorModosit')) { - postData = { 'tankorId':$('#updateWindowSide').data('target').data('tankorid'),'osztalyIds': [], 'tankorSzemeszter': [], 'tankorNevExtra': $('#updateWindowSide input#tankorNevExtra').val() } + // postData = { 'tankorId':$('#updateWindowSide').data('target').data('tankorid'),'osztalyIds': [], 'tankorSzemeszter': [], 'tankorNevExtra': $('#updateWindowSide input#tankorNevExtra').val() } + postData = { 'tankorId':$('#updateWindowSide').data('target').data('tankorid'),'osztalyIds': [], 'tankorSzemeszter': [], 'tankorNevExtra': $('#updateWindowSide input#tankorNevExtra').val(), 'mayorToken': ($('body').data('mayortoken')) } $('#updateWindowSide ul#tankorOsztaly input:checked').each(function(index){postData.osztalyIds.push($(this).val());}) $('#updateWindowSide ul#tankorSzemeszter input[type=text]').each(function(index){ if ($(this).val() != '') { -- cgit v1.2.3