r90532 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90531‎ | r90532 | r90533 >
Date:16:38, 21 June 2011
Author:zhenya
Status:deferred
Tags:
Comment:
Ajax function for saving status and showing it at once.
Modified paths:
  • /trunk/extensions/SocialProfile/UserStatus/UserStatus_AjaxFunctions.php (added) (history)

Diff [purge]

Index: trunk/extensions/SocialProfile/UserStatus/UserStatus_AjaxFunctions.php
@@ -0,0 +1,12 @@
 2+<?php
 3+$wgAjaxExportList[] = 'wfSaveStatus';
 4+function wfSaveStatus( $u_id, $status) {
 5+ $us_class = new UserStatusClass($u_id);
 6+ $us_class->setStatus($u_id, $status);
 7+ $user_status_array = $us_class->getStatus($u_id);
 8+ $buf=$user_status_array['us_status'];
 9+ $us ="$buf";
 10+ $us.=" <a href=\"javascript:toEditMode('$buf','$u_id');\">Edit</a>";
 11+ return $us;
 12+}
 13+?>
Property changes on: trunk/extensions/SocialProfile/UserStatus/UserStatus_AjaxFunctions.php
___________________________________________________________________
Added: svn:eol-style
114 + native

Status & tagging log