KFNS#40765 inline kennisbankitems met displaymode = 0 (pop-up tonen = Ja) krijg class 'important' mee
svn path=/Website/branches/v2017.1/; revision=34114
This commit is contained in:
@@ -2843,19 +2843,22 @@ mld = {setmeldingstatus:
|
||||
|
||||
while (!oRs.EOF)
|
||||
{
|
||||
// KFNS#38663 -> always 'inline'
|
||||
var data = { faq_key: oRs("fac_faq_key").Value,
|
||||
has_kenm: oRs("aantal_kenm").Value > 0,
|
||||
question: oRs("fac_faq_question").Value,
|
||||
answer: safe.fclthtml(oRs("fac_faq_answer").Value),
|
||||
displaymode: oRs("displaymode").Value };
|
||||
|
||||
var displaymode = oRs("displaymode").Value;
|
||||
if (displaymode == 0) // Popup
|
||||
{
|
||||
if ( ((S("faq_kennisbank_popup") & 1) && canFAQUSEread) // Voor FE
|
||||
|| ((S("faq_kennisbank_popup") & 2) && canFAQFOFread)) // Voor FO
|
||||
result.popup_faq = true;
|
||||
data.extraClass = " important";
|
||||
}
|
||||
|
||||
// KFNS#38663 -> always 'inline'
|
||||
var data = { question: oRs("fac_faq_question").Value,
|
||||
answer: safe.fclthtml(oRs("fac_faq_answer").Value),
|
||||
displaymode: oRs("displaymode").Value };
|
||||
|
||||
data.faq_type = "faq_" + oRs("stdm_type") + oRs("alg_type");
|
||||
|
||||
var fac_url = oRs("fac_faq_url").value;
|
||||
|
||||
@@ -515,7 +515,9 @@ function show_fixed_faq(changed, fixed_faq)
|
||||
for (var i = 0; i < fixed_faq.length; i++)
|
||||
{
|
||||
var safequestion = $("<span>").text(fixed_faq[i].question).html().replace(/\n/g, "<br>");
|
||||
var $newrow = $("<tr class='trlabel flexlabel flexcollapsable flexcollapsed "+fixed_faq[i].faq_type+"'><td class='fixedfaqquestion lhint'>" + safequestion + "</td></tr>")
|
||||
var $newrow = $("<tr class='trlabel flexlabel flexcollapsable flexcollapsed "
|
||||
+fixed_faq[i].faq_type+(fixed_faq[i].extraClass?fixed_faq[i].extraClass:"")
|
||||
+"'><td class='fixedfaqquestion lhint'>" + safequestion + "</td></tr>")
|
||||
.click(function () {
|
||||
$(this).next().toggle();
|
||||
$(this).toggleClass('flexcollapsed');
|
||||
|
||||
Reference in New Issue
Block a user