can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r19413: LJSUP-9184: Submit button on Update.bml ...

Committer: dpetrov
LJSUP-9184: Submit button on Update.bml doesn't work in Opera (turbo)
U   trunk/htdocs/js/entry.js
Modified: trunk/htdocs/js/entry.js
===================================================================
--- trunk/htdocs/js/entry.js	2011-07-01 03:41:30 UTC (rev 19412)
+++ trunk/htdocs/js/entry.js	2011-07-01 04:14:40 UTC (rev 19413)
@@ -119,14 +119,16 @@
 		return false;
 	}
 
+	var security = $('security');
+
 	var custom_boxes = $('custom_boxes');
 	if(! custom_boxes){
 		return false;
 	}
 
-	updateRepostButtons(f.security.selectedIndex);
+	updateRepostButtons(security.selectedIndex);
 
-	if(f.security.selectedIndex != 3){
+	if(security.selectedIndex != 3){
 		custom_boxes.style.display = 'none';
 		return false;
 	}
@@ -134,7 +136,7 @@
 	var altlogin_username = $('altlogin_username');
 	if(altlogin_username != undefined && (altlogin_username.style.display == 'table-row' || altlogin_username.style
 		.display == 'block')){
-		f.security.selectedIndex = 0;
+		security.selectedIndex = 0;
 		custom_boxes.style.display = 'none';
 		alert("Custom security is only available when posting as the logged in user.");
 	} else {

Tags: can3p, js, livejournal
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments