Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/mogujie/TeamTalk
Browse files Browse the repository at this point in the history
  • Loading branch information
lanhu committed Apr 5, 2015
2 parents f60c89f + 435dd55 commit 416d1b0
Show file tree
Hide file tree
Showing 14 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions php/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
php/download/*
6 changes: 5 additions & 1 deletion php/application/controllers/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,18 @@ public function add()

public function edit()
{
$avatar = $this->input->post('avatar');
if(strpos($avatar, $this->config->config['msfs_url']) === false){
$avatar = $this->config->config['msfs_url'].$this->input->post('avatar');
}
$params = array(
'sex'=>$this->input->post('sex'),
'name'=>$this->input->post('name'),
'domain'=>$this->input->post('domain'),
'nick'=>$this->input->post('nick'),
'phone'=>$this->input->post('phone'),
'email'=>$this->input->post('email'),
'avatar'=>$this->config->config['msfs_url'].$this->input->post('avatar'),
'avatar'=>$avatar,
'departId'=>$this->input->post('departId'),
'status'=>$this->input->post('status'),
'updated'=>time()
Expand Down
3 changes: 2 additions & 1 deletion php/application/views/base/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
id:node.data('id')
}, function(data) {
var data = JSON.parse(data);
console.log(data);
$("#radio"+data.sex).attr("checked","checked");
$(".name").val(data.name);
$(".nick").val(data.nick);
Expand All @@ -150,7 +151,7 @@
if(data.avatar){
$(".avatar_show").attr("src",data.avatar).removeClass("hide");
}
$(".depart").val(data.depart);
$(".departId").val(data.departId);
$(".btn-margin").addClass("btn-margin-edit");
$(".btn-margin-edit").data('id',node.data('id'));
Expand Down
Binary file added php/download/1428048002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added php/download/1428048014.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added php/download/1428048238.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added php/download/1428048244.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added php/download/1428048250.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added php/download/1428048274.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added php/download/1428048305.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added php/download/1428048339.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added php/download/1428048381.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added php/download/1428048406.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added php/download/1428049085.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 416d1b0

Please sign in to comment.