Don't check for a password if xposting is disabled. Prevents spurious
errors.
Patch by afuna.
diffs (17 lines):
diff -r 574d2016a620 -r 568bf43b36e1 htdocs/js/xpost.js
--- a/htdocs/js/xpost.js Wed Mar 17 05:05:20 2010 +0000
+++ b/htdocs/js/xpost.js Wed Mar 17 05:08:45 2010 +0000
@@ -43,8 +43,12 @@ XPostAccount = new Class(Object, {
},
doChallengeResponse: function () {
+ var xpost_button = $("prop_xpost_check");
+
// check to see if we need to do a challenge/response for this.
- if ((! this.locked) && this.chalField != null && this.checkboxTag !=
null && this.checkboxTag.checked) {
+ if ((! this.locked) && this.chalField != null
+ && this.checkboxTag != null && this.checkboxTag.checked
+ && xpost_button != null && xpost_button.checked) {
this.locked = true;
if (this.passField == null || this.passField.value == null ||
this.passField.value == "") {
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog