[CS-Project-svn_notify] SF.net SVN: cs-project: [782] trunk
Brought to you by:
crazedsanity
From: <cra...@us...> - 2008-02-06 02:49:39
|
Revision: 782 http://cs-project.svn.sourceforge.net/cs-project/?rev=782&view=rev Author: crazedsanity Date: 2008-02-05 18:49:35 -0800 (Tue, 05 Feb 2008) Log Message: ----------- AJAX calls to update current group on settings (admin only). Modified Paths: -------------- trunk/includes/content/settings.inc trunk/templates/content/settings/index.content.tmpl Modified: trunk/includes/content/settings.inc =================================================================== --- trunk/includes/content/settings.inc 2008-02-06 02:32:22 UTC (rev 781) +++ trunk/includes/content/settings.inc 2008-02-06 02:49:35 UTC (rev 782) @@ -444,4 +444,12 @@ return($objResponse); }//end regenerate_group_lists() + + +function ajax__change_current_group($groupId) { + $cache = new sessionCache("/userInput/content"); + $cache->set_cache("settings/showGroup", $groupId); + $objResponse = regenerate_group_lists($groupId); + return($objResponse); +}//end ajax__change_current_group() ?> Modified: trunk/templates/content/settings/index.content.tmpl =================================================================== --- trunk/templates/content/settings/index.content.tmpl 2008-02-06 02:32:22 UTC (rev 781) +++ trunk/templates/content/settings/index.content.tmpl 2008-02-06 02:49:35 UTC (rev 782) @@ -108,7 +108,7 @@ <b>Change current group:</b><BR> <SELECT> <!-- BEGIN show_group_list --> - <option onClick="javascript:document.location.href='/content/settings?showGroup=%%value%%'" %%selectedString%%>%%display%% (%%short_name%%)</option> + <option onClick="javascript:void(xajax_ajax__change_current_group(%%group_id%%))" %%selectedString%%>%%display%% (%%short_name%%)</option> <!-- END show_group_list --> </SELECT><BR><BR><hr> <b>Change Leader </b>({currentGroupLeader})<b> to:</b> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |