SVN: toys/rsget.pl/data/main.js
sparky
sparky at pld-linux.org
Thu Mar 3 21:49:37 CET 2011
Author: sparky
Date: Thu Mar 3 21:49:37 2011
New Revision: 12184
Modified:
toys/rsget.pl/data/main.js
Log:
- don't be so annoying when asking for captcha
Modified: toys/rsget.pl/data/main.js
==============================================================================
--- toys/rsget.pl/data/main.js (original)
+++ toys/rsget.pl/data/main.js Thu Mar 3 21:49:37 2011
@@ -106,7 +106,17 @@
al = 1;
}
if ( al )
- alert( "Assist needed" );
+ window.setTimeout( ask_for_help, 500 );
+}
+
+var assist_alert = 0;
+function ask_for_help()
+{
+ if ( assist_alert )
+ return;
+ assist_alert = 1;
+ alert( "Please, solve captcha" );
+ assist_alert = 0;
}
function add_DL_commands( list )
More information about the pld-cvs-commit
mailing list