Create Profile\Photos\Upload class
This commit is contained in:
parent
f826ce70ce
commit
39765e6018
6 changed files with 296 additions and 15 deletions
|
@ -167,9 +167,9 @@ var FileBrowser = {
|
|||
//AjaxUpload for images
|
||||
var image_uploader = new window.AjaxUpload("upload-image", {
|
||||
action:
|
||||
"wall_upload/" +
|
||||
"profile/" +
|
||||
FileBrowser.nickname +
|
||||
"?response=json&album=" +
|
||||
"/photos/upload?response=json&album=" +
|
||||
encodeURIComponent(FileBrowser.folder),
|
||||
name: "userfile",
|
||||
responseType: "json",
|
||||
|
|
|
@ -57,12 +57,13 @@ function enableOnUser(){
|
|||
$(document).ready(function() {
|
||||
|
||||
/* enable editor on focus and click */
|
||||
$("#profile-jot-text").focus(enableOnUser);
|
||||
$("#profile-jot-text").click(enableOnUser);
|
||||
$("#profile-jot-text")
|
||||
.focus(enableOnUser)
|
||||
.click(enableOnUser);
|
||||
|
||||
var uploader = new window.AjaxUpload(
|
||||
'wall-image-upload',
|
||||
{ action: 'wall_upload/{{$nickname}}',
|
||||
{ action: 'profile/{{$nickname}}/photos/upload',
|
||||
name: 'userfile',
|
||||
onSubmit: function(file,ext) { $('#profile-rotator').show(); },
|
||||
onComplete: function(file,response) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue