Hide crossposter checkboxes when trying to post to an alternate account
(clicking the "Switch" link). Also fixes the submit button text when there are
no custom friends groups.
Patch by kareila.
diffs (54 lines):
diff -r 419d66008bc2 -r 167f8645244e htdocs/js/entry.js
--- a/htdocs/js/entry.js Sat Jul 04 08:34:43 2009 +0000
+++ b/htdocs/js/entry.js Sat Jul 04 09:56:53 2009 +0000
@@ -132,30 +132,32 @@ function altlogin (e) {
var mood_preview = $('mood_preview');
mood_preview.style.display = 'none';
- f = document.updateForm;
- if (! f) return false;
- f.action = 'update.bml?altlogin=1';
-
- var custom_boxes = $('custom_boxes');
- if (! custom_boxes) return false;
- custom_boxes.style.display = 'none';
- if (f.security) {
- f.security.options[3] = null;
- }
-
- f.security.selectedIndex = 0;
+ changeSubmit('Post to Journal');
- if (e) {
- e.cancelBubble = true;
- if (e.stopPropagation) e.stopPropagation();
- }
-
- changeSubmit('Post to Journal');
+ $('xpostdiv').style.display = 'none';
if ($('usejournal_username')) {
changeSecurityOptions($('usejournal_username').value);
} else {
changeSecurityOptions('');
+ }
+
+ f = document.updateForm;
+ if (! f) return false;
+ f.action = 'update.bml?altlogin=1';
+
+ if (f.security) {
+ f.security.options[3] = null;
+ f.security.selectedIndex = 0;
+ }
+
+ var custom_boxes = $('custom_boxes');
+ if (! custom_boxes) return false;
+ custom_boxes.style.display = 'none';
+
+ if (e) {
+ e.cancelBubble = true;
+ if (e.stopPropagation) e.stopPropagation();
}
return false;
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog