Merged in luisfernandosl/processmaker/BUG-10957 (pull request #798)

BUG 10957 "Feature request - Limit input document..." SOLVED
This commit is contained in:
Julio Cesar Laura Avendaño
2014-09-19 08:43:25 -04:00
2 changed files with 3 additions and 3 deletions

View File

@@ -30,7 +30,7 @@
<td colspan="2">{$form.fileTypes}</td>
</tr>
<tr>
<tr style="display: none;">
<td class="FormLabel" width="{$form_labelWidth}">{$INP_DOC_MAX_FILESIZE_LABEL}</td>
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.INP_DOC_MAX_FILESIZE_LABEL}</td>
</tr>

View File

@@ -37,8 +37,8 @@ leimnud.event.add(window, 'load', function() {
}
});
if (getField("INP_DOC_MAX_FILESIZE").value == 0 || getField("INP_DOC_MAX_FILESIZE").value == "") {
hideRow("INP_DOC_MAX_FILESIZE_LABEL");
if (getField("INP_DOC_MAX_FILESIZE").value != "" && parseInt(getField("INP_DOC_MAX_FILESIZE").value) > 0) {
showRow("INP_DOC_MAX_FILESIZE_LABEL");
}
var verifyInfo = function(oForm)