diff options
Diffstat (limited to 'mayor-orig/mayor-naplo/www/skin')
-rw-r--r-- | mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/naplo.jquery.min.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/naplo.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/naplo.jquery.min.js index 251155a1..2337a13e 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/naplo.jquery.min.js +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/naplo.jquery.min.js @@ -385,11 +385,15 @@ ajaxGetZaroJegyAdat = function(zaroJegyId) { ajaxGetOraAdat = function(oraId) { + var policy = $('body').data('policy'); + if (policy=='parent') { // workaround a szuloknek + window.location.replace("index.php?page=naplo&sub=haladasi&f=hazifeladat&policy="+policy+"&sessionID="+$('body').data('sessionid')+"&oraId="+oraId); + } mayorLoaderStart(); postData = { 'oraId':oraId, 'mayorToken': ($('body').data('mayortoken')) } $.ajax({ type: "POST", - url: "index.php?page=naplo&sub=tools&f=getOraAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'), + url: "index.php?page=naplo&sub=tools&f=getOraAdat&policy="+policy+"&skin=ajax&sessionID="+$('body').data('sessionid'), data: postData, dataType: 'json' }).done(function( msg, status, jqXHR ) { |