[pLog-svn] r3292 - plog/trunk/js/ui
Mark Wu
markplace at gmail.com
Fri Apr 28 03:45:43 GMT 2006
Hi Glen:
Now, the pre-select result will keeped, now matter how many items you
selected before you add category.
About the order of categories when you add through the Ajax, I don't want to
change it .. Because looks more clean and intuitive.
Mark
> -----Original Message-----
> From: plog-svn-bounces at devel.lifetype.net
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of
> mark at devel.lifetype.net
> Sent: Friday, April 28, 2006 11:18 AM
> To: plog-svn at devel.lifetype.net
> Subject: [pLog-svn] r3292 - plog/trunk/js/ui
>
> Author: mark
> Date: 2006-04-28 03:17:38 +0000 (Fri, 28 Apr 2006) New Revision: 3292
>
> Modified:
> plog/trunk/js/ui/plogui.js
> Log:
> Keep the preselect result when you add a new category through ajax.
>
> Modified: plog/trunk/js/ui/plogui.js
> ===================================================================
> --- plog/trunk/js/ui/plogui.js 2006-04-27 21:18:13 UTC
> (rev 3291)
> +++ plog/trunk/js/ui/plogui.js 2006-04-28 03:17:38 UTC
> (rev 3292)
> @@ -115,8 +115,9 @@
> {
> tmpText = $( 'postCategories'
> ).options[i-1].text;
> tmpValue = $( 'postCategories'
> ).options[i-1].value;
> + tmpSelected = $( 'postCategories'
> ).options[i-1].selected;
> $( 'postCategories' ).options[i] = new
> Option( tmpText, tmpValue );
> - $( 'postCategories'
> ).options[i].selected = false;
> + $( 'postCategories'
> ).options[i].selected = tmpSelected;
> }
> $( 'postCategories' ).options[0] = new Option(
> catName, catId );
> $( 'postCategories' ).options[0].selected = true;
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn
More information about the pLog-svn
mailing list