member upload avatar
This commit is contained in:
@ -36,14 +36,8 @@ var GlobalConfigs = {{.globalConfigs|jsonJs}}; // 2014/11/9 beta2
|
|||||||
require.config({
|
require.config({
|
||||||
baseUrl: '/public',
|
baseUrl: '/public',
|
||||||
paths: {
|
paths: {
|
||||||
// ajax upload image/attach
|
'avatar': 'member/js/avatar',
|
||||||
'avatar': 'js/plugins/avatar',
|
'fileupload': 'js/plugins/libs-min/fileupload',
|
||||||
'jquery.ui.widget': 'js/plugins/libs-min/jquery.ui.widget',
|
|
||||||
'fileupload': 'js/plugins/libs-min/jquery.fileupload',
|
|
||||||
'iframe-transport': 'js/plugins/libs-min/jquery.iframe-transport',
|
|
||||||
},
|
|
||||||
shim: {
|
|
||||||
'fileupload': {deps: ['jquery.ui.widget', 'iframe-transport']}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$(function() {
|
$(function() {
|
||||||
|
3
public/js/plugins/libs-min/fileupload.js
Normal file
3
public/js/plugins/libs-min/fileupload.js
Normal file
File diff suppressed because one or more lines are too long
@ -1,7 +1,5 @@
|
|||||||
// upload attachment
|
|
||||||
// 依赖note
|
|
||||||
var urlPrefix = UrlPrefix;
|
var urlPrefix = UrlPrefix;
|
||||||
define('avatar', ['jquery.ui.widget', 'fileupload'], function(){
|
define('avatar', ['fileupload'], function(){
|
||||||
// Helper function that formats the file sizes
|
// Helper function that formats the file sizes
|
||||||
function formatFileSize(bytes) {
|
function formatFileSize(bytes) {
|
||||||
if (typeof bytes !== 'number') {
|
if (typeof bytes !== 'number') {
|
Reference in New Issue
Block a user