[pLog-svn] r3441 - plog/trunk/js/ui
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Sat May 20 12:24:31 GMT 2006
Author: jondaley
Date: 2006-05-20 12:24:31 +0000 (Sat, 20 May 2006)
New Revision: 3441
Modified:
plog/trunk/js/ui/common.js
Log:
I couldn't remove multiple users in firefox/linux. Does this break anything for anyone else? Is there a better way to fix this?
Modified: plog/trunk/js/ui/common.js
===================================================================
--- plog/trunk/js/ui/common.js 2006-05-20 12:10:51 UTC (rev 3440)
+++ plog/trunk/js/ui/common.js 2006-05-20 12:24:31 UTC (rev 3441)
@@ -431,9 +431,12 @@
function editBlogRemoveSelected()
{
userList = document.getElementById( 'userList' );
- for( i = 0; i < userList.options.length; i++ ) {
- if( userList.options[i].selected )
+ length = userList.options.length;
+ for( i = 0; i < length; i++ ) {
+ if( userList.options[i].selected ){
userList.options[i] = null;
+ i--; length--;
+ }
}
return( true );
}
@@ -441,4 +444,4 @@
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
-}
\ No newline at end of file
+}
More information about the pLog-svn
mailing list