<commit_before><%@ page import="java.util.*, javax.faces.context.*, javax.faces.application.*,
                 javax.faces.el.*, org.sakaiproject.tool.messageforums.*"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://sakaiproject.org/jsf/sakai" prefix="sakai" %>
<%@ taglib uri="http://sakaiproject.org/jsf/messageforums" prefix="mf" %>
<jsp:useBean id="msgs" class="org.sakaiproject.util.ResourceLoader" scope="session">
   <jsp:setProperty name="msgs" property="baseName" value="org.sakaiproject.api.app.messagecenter.bundle.Messages"/>
</jsp:useBean>

<!--jsp/discussionForum/area/dfEditRank.jsp-->
<f:view>

<sakai:view title="Forums">
<link rel="stylesheet" href="/messageforums-tool/css/msgcntr.css" type="text/css" />
<link rel="stylesheet" href="/messageforums-tool/css/jquery-ui-1.7.2.custom.css" type="text/css" />
<link rel="stylesheet" href="/messageforums-tool/css/forum_rank.css" type="text/css" />

<script type="text/javascript" src="/library/js/jquery/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="/library/js/jquery/ui/1.10.3/jquery-ui.1.10.3.full.min.js"></script>
<script type="text/javascript" src="/library/js/fluid-latest/InfusionAll.js"></script>
<script type="text/javascript" src="/messageforums-tool/js/json2.js"></script>
<script type="text/javascript" src="/messageforums-tool/js/Scroller.js"></script>
<script type="text/javascript" src="/messageforums-tool/js/forum.js"></script>
<script type="text/javascript" src="/messageforums-tool/js/forum_rank.js"></script>
<script type="text/JavaScript">
    var thresholdHint='<%=msgs.getString("rank_threshold_hint")%>';
    function showThresholdHint(obj){
        if (obj.value == '') {
            obj.value=thresholdHint; 
        }
    }
    function hideThresholdHint(obj){
        if (obj.value == thresholdHint ) {
            obj.value='';
        }
    }
</script>
    <h:form enctype="multipart/form-data" id="addRank">
            <sakai:tool_bar_message value="#{msgs.edit_rank}" />

            <%-- Validation Message--%>
            <f:verbatim><div id="topAlert" style="display:none; padding:1em 0;"></f:verbatim>
            <h:outputText styleClass="messageAlert" value="#{msgs.add_validate}" />
            <f:verbatim></div></f:verbatim>

            <f:verbatim><div id="imageSizeAlert" style="display:block"></f:verbatim>
            <h:panelGrid columns="1" cellpadding="10px" rendered="#{ForumTool.forumRankBean.imageSizeErr eq 'true' }">
                <h:outputText styleClass="messageAlert" value="#{msgs.image_size_err}"  />
            </h:panelGrid><commit_msg>SAK-26613 fix js when editing a rank. Patch from Gao Jun<commit_after><%@ page import="java.util.*, javax.faces.context.*, javax.faces.application.*,
                 javax.faces.el.*, org.sakaiproject.tool.messageforums.*"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://sakaiproject.org/jsf/sakai" prefix="sakai" %>
<%@ taglib uri="http://sakaiproject.org/jsf/messageforums" prefix="mf" %>
<jsp:useBean id="msgs" class="org.sakaiproject.util.ResourceLoader" scope="session">
   <jsp:setProperty name="msgs" property="baseName" value="org.sakaiproject.api.app.messagecenter.bundle.Messages"/>
</jsp:useBean>

<!--jsp/discussionForum/area/dfEditRank.jsp-->
<f:view>

<sakai:view title="Forums">
<link rel="stylesheet" href="/messageforums-tool/css/msgcntr.css" type="text/css" />
<link rel="stylesheet" href="/library/js/jquery/ui/1.10.3/css/ui-lightness/jquery-ui-1.10.3.custom.min.css" type="text/css" />
<link rel="stylesheet" href="/messageforums-tool/css/forum_rank.css" type="text/css" />

<script type="text/javascript" src="/library/js/jquery/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="/library/js/jquery/ui/1.10.3/jquery-ui.1.10.3.full.min.js"></script>
<script type="text/javascript" src="/messageforums-tool/js/fluidframework-min.js"></script>
<script type="text/javascript" src="/messageforums-tool/js/json2.js"></script>
<script type="text/javascript" src="/messageforums-tool/js/Scroller.js"></script>
<script type="text/javascript" src="/messageforums-tool/js/forum.js"></script>
<script type="text/javascript" src="/messageforums-tool/js/forum_rank.js"></script>
<script type="text/JavaScript">
    var thresholdHint='<%=msgs.getString("rank_threshold_hint")%>';
    function showThresholdHint(obj){
        if (obj.value == '') {
            obj.value=thresholdHint; 
        }
    }
    function hideThresholdHint(obj){
        if (obj.value == thresholdHint ) {
            obj.value='';
        }
    }
</script>
    <h:form enctype="multipart/form-data" id="addRank">
            <sakai:tool_bar_message value="#{msgs.edit_rank}" />

            <%-- Validation Message--%>
            <f:verbatim><div id="topAlert" style="display:none; padding:1em 0;"></f:verbatim>
            <h:outputText styleClass="messageAlert" value="#{msgs.add_validate}" />
            <f:verbatim></div></f:verbatim>

            <f:verbatim><div id="imageSizeAlert" style="display:block"></f:verbatim>
            <h:panelGrid columns="1" cellpadding="10px" rendered="#{ForumTool.forumRankBean.imageSizeErr eq 'true' }">
                <h:outputText styleClass="messageAlert" value="#{msgs.image_size_err}"  />
            </h:panelGrid>
{'fraction_non_alphanumeric': 0.19908172635445362, 'fraction_numerical': 0.009182736455463728, 'mean_word_length': 4.075489282385834, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 97, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7592441', 'n_tokens_mistral': 1916, 'n_tokens_neox': 1829, 'n_words': 229}