1
0
Fork 0

Create Profile\Photos\Upload class

This commit is contained in:
Hypolite Petovan 2022-10-30 00:17:54 -04:00
commit 39765e6018
6 changed files with 296 additions and 15 deletions

View file

@ -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",

View file

@ -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) {