DJIN#51508 Geen filter op kleurbolletjes opdrachten
svn path=/Website/trunk/; revision=39252
This commit is contained in:
@@ -593,7 +593,7 @@ function opdr_list(params)
|
||||
{
|
||||
var flagIcon = flagkey == 0 ? "fa-circle-o" : "fa-circle";
|
||||
// Met hidden flagkey voor sortering. 999 zorgt dat bij 1 keer sorteren de gevlagde direct bovenaan staan
|
||||
displ = "<div class='clickParent' " + ((urole == "bo" || urole == "fo") ? "onclick='toggleOpdrFlag(event, "+ opdrkey +");'":"")
|
||||
displ = "<div class='clickParent' " + ((urole == "bo" || urole == "fo" || S("mld_performer_can_change_flags")=="true") ? "onclick='toggleOpdrFlag(event, "+ opdrkey +");'":"")
|
||||
+ " title='"+safe.htmlattr(ttl)+"'>"
|
||||
+ "<i id='opdrflag"+opdrkey+"' flagkey='"+flagkey+"' class='fa "+flagIcon+" opdrflag"+flagkey+"'></i>"
|
||||
+ "<span style='display:none'>"+(flagkey||999)+"</span></div>";
|
||||
@@ -759,7 +759,8 @@ function opdr_list(params)
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
$(".clickParent").parent().on("click", function(e) { e.stopPropagation(); $(this).find("> .clickParent").trigger("click"); });
|
||||
if ($(".clickParent").parent().attr("click")) // to fix infinite click events in case there is no click event on the parent
|
||||
$(".clickParent").parent().on("click", function(e) { e.stopPropagation(); $(this).find("> .clickParent").trigger("click"); });
|
||||
});
|
||||
|
||||
function openLegenda()
|
||||
|
||||
@@ -369,8 +369,7 @@ oRs.close();
|
||||
</tr>
|
||||
<% }
|
||||
}
|
||||
|
||||
if (!justClose && S("mld_opdracht_flags") > 1 && !frontend) // Flags checkboxen -->
|
||||
if ((!justClose || S("mld_performer_can_change_flags")=="true") && S("mld_opdracht_flags") > 1 && (!frontend || S("mld_performer_can_change_flags")=="true")) // Flags checkboxen -->
|
||||
{
|
||||
%>
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user