changelog_bot (changelog_bot) wrote in changelog,
changelog_bot
changelog_bot
changelog

[livejournal] r17706: LJSUP-7374: js error on page /update.bml...

Committer: dpetrov
LJSUP-7374: js error on page /update.bml
U   trunk/htdocs/stc/fck/editor/dialog/common/fck_dialog_common.js
Modified: trunk/htdocs/stc/fck/editor/dialog/common/fck_dialog_common.js
===================================================================
--- trunk/htdocs/stc/fck/editor/dialog/common/fck_dialog_common.js	2010-11-16 11:27:21 UTC (rev 17705)
+++ trunk/htdocs/stc/fck/editor/dialog/common/fck_dialog_common.js	2010-11-17 07:01:55 UTC (rev 17706)
@@ -99,8 +99,11 @@
 
 function SelectField( elementId )
 {
-	var element = GetE( elementId ) ;
-	element.focus() ;
+    //added try catch because the tab can be hidden at this moment
+    try {
+        var element = GetE( elementId ) ;
+        element.focus() ;
+    } catch( e ) {};
 
 	// element.select may not be available for some fields (like <select>).
 	if ( element.select )

Tags: changelog_bot, 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