SVN: toys/rsget.pl/data: main.css main.js
sparky
sparky at pld-linux.org
Sun Sep 13 13:22:24 CEST 2009
Author: sparky
Date: Sun Sep 13 13:22:24 2009
New Revision: 10591
Modified:
toys/rsget.pl/data/main.css
toys/rsget.pl/data/main.js
Log:
- updates for captcha
Modified: toys/rsget.pl/data/main.css
==============================================================================
--- toys/rsget.pl/data/main.css (original)
+++ toys/rsget.pl/data/main.css Sun Sep 13 13:22:24 2009
@@ -188,3 +188,22 @@
.tools span:hover {
text-decoration: underline;
}
+
+
+li.captcha {
+ height: 60px;
+}
+li.captcha iframe {
+ float: left;
+ height: 50px;
+ width: 20px;
+}
+li.captcha img {
+ display: block;
+ float: left;
+}
+
+li.captcha input {
+ width: auto;
+ margin-left: 20px;
+}
Modified: toys/rsget.pl/data/main.js
==============================================================================
--- toys/rsget.pl/data/main.js (original)
+++ toys/rsget.pl/data/main.js Sun Sep 13 13:22:24 2009
@@ -70,12 +70,42 @@
if ( !old )
continue;
- old.parentNode.replaceChild( ne, old );
+ if ( id == "f_notify" )
+ update_notify( ne, old );
+ else
+ old.parentNode.replaceChild( ne, old );
if ( id == "f_dllist" || id == "f_addlist" || id == "f_listask" )
add_DL_commands( ne );
}
}
+function update_notify( n_f, o_f )
+{
+ var nid = {};
+ var n = n_f.lastChild;
+ var o = o_f.lastChild;
+
+ var node;
+ while ( node = n.firstChild ) {
+ var id = node.getAttribute( 'id' );
+ nid[ id ] = node;
+ node.parentNode.removeChild( node );
+ }
+ for ( var i = o.childNodes.length - 1; i >= 0; i-- ) {
+ node = o.childNodes[ i ];
+ var id = node.getAttribute( 'id' );
+ if ( nid[ id ] ) {
+ delete nid[ id ];
+ } else {
+ node.parentNode.removeChild( node );
+ }
+ }
+ for ( var id in nid ) {
+ node = nid[ id ];
+ o.appendChild( node );
+ }
+}
+
function add_DL_commands( list )
{
var divs = list.getElementsByTagName( 'div' );
More information about the pld-cvs-commit
mailing list