Improvement over previous commit

This commit is contained in:
Ludovic Marcotte
2015-02-11 14:39:57 -05:00
parent 9447437d6f
commit b4ea4d7e9f
2 changed files with 5 additions and 6 deletions

View File

@@ -653,11 +653,10 @@
const:name="forwardKeepCopy"
const:id="forwardKeepCopy"
var:checked="forwardKeepCopy" />
<var:string label:value="Keep a copy" /></label><br/>
<input type="hidden"
const:id="forwardConstraints"
var:value="forwardConstraints" />
<var:string label:value="Keep a copy" /></label><br/>
<script type="text/javascript">
var forwardConstraints = <var:string value="forwardConstraints" const:escapeHTML="NO"/>;
</script>
</div>
</div>
</var:if>

View File

@@ -79,7 +79,7 @@ function savePreferences(sender) {
}
// We check if we can only to internal/external addresses.
var constraints = parseInt($("forwardConstraints").value);
var constraints = parseInt(forwardConstraints);
if (constraints > 0) {
// We first extract the list of 'known domains' to SOGo