The branch, master has been updated
via 7049046a552440255cb9540cbea49a6c3b149d66 (commit)
from 1cc51458b50229117028de2cfda8aad994fcfec6 (commit)
- Log -----------------------------------------------------------------
commit 7049046a552440255cb9540cbea49a6c3b149d66
Author: Piotr Przybylski <[email protected]>
Date: Wed Apr 27 20:54:57 2011 +0200
Fixed and simplified setSelectOptions
Deselecting was broken
-----------------------------------------------------------------------
Summary of changes:
js/functions.js | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/js/functions.js b/js/functions.js
index 6894e15..d808a0c 100644
--- a/js/functions.js
+++ b/js/functions.js
@@ -705,19 +705,13 @@ function setCheckboxes( container_id, state ) {
*
* @param string the form name
* @param string the element name
- * @param boolean whether to check or to uncheck the element
+ * @param boolean whether to check or to uncheck options
*
* @return boolean always true
*/
function setSelectOptions(the_form, the_select, do_check)
{
-
- if( do_check ) {
- $("form[name='"+ the_form
+"']").find("select[name='"+the_select+"']").find("option").attr('selected',
'selected');
- }
- else {
- $("form[name='"+ the_form
+"']").find("select[name="+the_select+"]").find("option").removeAttr('selected');
- }
+ $("form[name='"+ the_form +"']
select[name='"+the_select+"']").find("option").attr('selected', do_check);
return true;
} // end of the 'setSelectOptions()' function
hooks/post-receive
--
phpMyAdmin
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Phpmyadmin-git mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-git