Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kityminder-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吴志俊
kityminder-core
Commits
9bc78868
Commit
9bc78868
authored
Apr 24, 2014
by
campaign
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加保存时可修改文件名
parent
5573c91c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
social.js
social/social.js
+3
-3
No files found.
social/social.js
View file @
9bc78868
...
@@ -304,7 +304,7 @@ $( function () {
...
@@ -304,7 +304,7 @@ $( function () {
// 加载用户头像
// 加载用户头像
function
loadAvator
()
{
function
loadAvator
()
{
var
$img
=
$
(
'<img />'
).
attr
(
{
var
$img
=
$
(
'<img />'
).
attr
(
{
'src'
:
'
../
social/loading.gif'
,
'src'
:
'social/loading.gif'
,
'width'
:
16
,
'width'
:
16
,
'height'
:
16
'height'
:
16
}
).
prependTo
(
$user_btn
);
}
).
prependTo
(
$user_btn
);
...
@@ -483,7 +483,8 @@ $( function () {
...
@@ -483,7 +483,8 @@ $( function () {
}
}
function
generateRemotePath
()
{
function
generateRemotePath
()
{
return
'/apps/kityminder/'
+
minder
.
getMinderTitle
()
+
'.km'
;
var
filename
=
prompt
(
"文件名字:"
,
minder
.
getMinderTitle
()
)
||
minder
.
getMinderTitle
()
;
return
'/apps/kityminder/'
+
filename
+
'.km'
;
}
}
function
save
()
{
function
save
()
{
...
@@ -501,7 +502,6 @@ $( function () {
...
@@ -501,7 +502,6 @@ $( function () {
var
timeout
=
setTimeout
(
function
()
{
var
timeout
=
setTimeout
(
function
()
{
error
(
'保存到云盘超时,可能是网络不稳定导致。'
);
error
(
'保存到云盘超时,可能是网络不稳定导致。'
);
},
15000
);
},
15000
);
sto
.
uploadTextFile
(
data
,
remotePath
||
generateRemotePath
(),
{
sto
.
uploadTextFile
(
data
,
remotePath
||
generateRemotePath
(),
{
ondup
:
remotePath
?
sto
.
constant
.
ONDUP_OVERWRITE
:
sto
.
constant
.
ONDUP_NEWCOPY
,
ondup
:
remotePath
?
sto
.
constant
.
ONDUP_OVERWRITE
:
sto
.
constant
.
ONDUP_NEWCOPY
,
success
:
function
(
savedFile
)
{
success
:
function
(
savedFile
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment