AAIT#83573 commentaar en feedback verbeterd

svn path=/Website/trunk/; revision=67776
This commit is contained in:
2025-01-29 09:56:08 +00:00
parent bc82f3b47b
commit 1fdb3644a1
3 changed files with 22 additions and 5 deletions

View File

@@ -212,7 +212,7 @@ __Log("== Entering shorturl.asp ==");
if (bookmark_naam != 'faclikedeeplink' && new Perslid(falluser_key).checkAutorisation("WEB_PRSSYS", true)) if (bookmark_naam != 'faclikedeeplink' && new Perslid(falluser_key).checkAutorisation("WEB_PRSSYS", true))
{ {
INTERNAL_ERROR_FALLBACK_CANNOT_HAVE_PRSSYS; INTERNAL_ERROR_FALLBACK_CANNOT_HAVE_PRSSYS;
// fac_like_deep.asp staan we wel toe, die heeft een Session.Abandon(); // fac_like_deep.asp & fac_like.asp staan we wel toe, die hebben een Session.Abandon();
} }
Session("fallback_user_key") = falluser_key; // wordt opgepikt door loginTry.asp Session("fallback_user_key") = falluser_key; // wordt opgepikt door loginTry.asp
} }

View File

@@ -51,10 +51,13 @@ if (Session("login_by_fallback")) {
} }
<% } %> <% } %>
function fac_submit_callback(json) { function fac_submit_callback(json) {
$("#buttons").remove();
$(".card-body").text(json.result);
json.close = true; json.close = true;
FcltMgr.closeDetail(window, json); FcltMgr.closeDetail(window, json);
// Als we standalone zijn, zijn we nog niet gesloten en passen we de pagina clientside aan om feedback weer te geven
$("#buttons").remove();
if (json.result) {
$(".card-body").text(json.result);
}
} }
function fac_submit() function fac_submit()

View File

@@ -28,6 +28,20 @@ var opmerking = getFParam("flike_opmerk", "");
like.save_like(key, node, oordeel_int, opmerking); like.save_like(key, node, oordeel_int, opmerking);
result.success = true; var txt = L("lcl_fac_liked_deep");
// Als de tekst exact 9 slashes heeft dan is dat de scheider voor 10(!) teksten.
// Je mag teksten leeglaten: dan wordt de eerstvolgende hogere gebruikt
// Voorbeeld '////4 of lager/Precies 5///8 of lager//Een {0}! Wij zijn blij dat U zo tevreden bent.'
var txt_arr = txt.split("/");
if (txt_arr.length == 10) {
txt = "";
for (var i = oordeel_int - 1; !txt && i < txt_arr.length; i++) {
txt = txt_arr[i].format(oordeel_int);
}
}
result = {
success: true,
result: txt
}
Response.Write(JSON.stringify(result)); Response.Write(JSON.stringify(result));
%><% ASPPAGE_END(); %> %><% ASPPAGE_END(); %>