Skip to content

Commit

Permalink
SAM-3193. Removed javascript control on update button, currently is a…
Browse files Browse the repository at this point in the history
…lways enabled. (sakaiproject#4616)
  • Loading branch information
mateullas authored and ern committed Jul 21, 2017
1 parent 7074016 commit bea4d63
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions samigo/samigo-app/src/webapp/jsf/questionpool/editPool.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function textCounter(field, maxlimit) {
}
function initPage()
{
disableIt();checkUpdate();
checkUpdate();
var importButton = document.getElementById('editform:import');
if (importButton !== null)
{
Expand All @@ -67,7 +67,7 @@ function textCounter(field, maxlimit) {
</script>
</head>

<f:verbatim><body onload="disableIt();checkUpdate();collapseRowsByLevel(</f:verbatim><h:outputText value="#{questionpool.htmlIdLevel}"/><f:verbatim>);flagRows();<%= request.getAttribute("html.body.onload") %>;"></f:verbatim>
<f:verbatim><body onload="checkUpdate();collapseRowsByLevel(</f:verbatim><h:outputText value="#{questionpool.htmlIdLevel}"/><f:verbatim>);flagRows();<%= request.getAttribute("html.body.onload") %>;"></f:verbatim>

<div class="portletBody container-fluid">
<h:form id="editform">
Expand Down Expand Up @@ -102,7 +102,7 @@ function textCounter(field, maxlimit) {
<div class="form-group row">
<h:outputLabel for="namefield" value="#{questionPoolMessages.p_name}" styleClass="col-sm-2 form-control-label"/>
<div class="col-sm-6">
<h:inputText readonly="#{questionpool.importToAuthoring == 'true' || questionpool.owner!=questionpool.currentPool.owner}" onchange="inIt()" id="namefield" size="30" maxlength="255" value="#{questionpool.currentPool.displayName}" styleClass="form-control"/>
<h:inputText readonly="#{questionpool.importToAuthoring == 'true' || questionpool.owner!=questionpool.currentPool.owner}" id="namefield" size="30" maxlength="255" value="#{questionpool.currentPool.displayName}" styleClass="form-control"/>
</div>
</div>
<div class="form-group row">
Expand All @@ -114,7 +114,7 @@ function textCounter(field, maxlimit) {
<h:panelGroup layout="block" styleClass="form-group row">
<h:outputLabel for="orgfield" value="#{questionPoolMessages.dept}" styleClass="col-sm-2 form-control-label"/>
<div class="col-sm-6">
<h:inputText readonly="#{questionpool.importToAuthoring == 'true' || questionpool.owner!=questionpool.currentPool.owner}" onchange="inIt()" id="orgfield" size="30" maxlength="255" value="#{questionpool.currentPool.organizationName}" styleClass="form-control"/>
<h:inputText readonly="#{questionpool.importToAuthoring == 'true' || questionpool.owner!=questionpool.currentPool.owner}" id="orgfield" size="30" maxlength="255" value="#{questionpool.currentPool.organizationName}" styleClass="form-control"/>
</div>
</h:panelGroup>
<h:panelGroup layout="block" styleClass="form-group row">
Expand All @@ -127,13 +127,13 @@ function textCounter(field, maxlimit) {
<h:panelGroup layout="block" styleClass="form-group row">
<h:outputLabel for="objfield" value="#{questionPoolMessages.obj}" styleClass="col-sm-2 form-control-label"/>
<div class="col-sm-6">
<h:inputText readonly="#{questionpool.importToAuthoring == 'true' || questionpool.owner!=questionpool.currentPool.owner}" onchange="inIt()" id="objfield" size="30" maxlength="255" value="#{questionpool.currentPool.objectives}" styleClass="form-control"/>
<h:inputText readonly="#{questionpool.importToAuthoring == 'true' || questionpool.owner!=questionpool.currentPool.owner}" id="objfield" size="30" maxlength="255" value="#{questionpool.currentPool.objectives}" styleClass="form-control"/>
</div>
</h:panelGroup>
<h:panelGroup layout="block" styleClass="form-group row">
<h:outputLabel for="keyfield" value="#{questionPoolMessages.keywords}" styleClass="col-sm-2 form-control-label"/>
<div class="col-sm-6">
<h:inputText readonly="#{questionpool.importToAuthoring == 'true' || questionpool.owner!=questionpool.currentPool.owner}" onchange="inIt()" id="keyfield" size="30" maxlength="255" value="#{questionpool.currentPool.keywords}" styleClass="form-control"/>
<h:inputText readonly="#{questionpool.importToAuthoring == 'true' || questionpool.owner!=questionpool.currentPool.owner}" id="keyfield" size="30" maxlength="255" value="#{questionpool.currentPool.keywords}" styleClass="form-control"/>
</div>
</h:panelGroup>

Expand Down

0 comments on commit bea4d63

Please sign in to comment.