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
95012759
Commit
95012759
authored
Oct 13, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixes
parent
7bc1400c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
12 deletions
+20
-12
zh-cn.js
lang/zh-cn/zh-cn.js
+3
-2
doc.js
ui/doc.js
+1
-1
netdisk.js
ui/menu/save/netdisk.js
+5
-6
ui.js
ui/ui.js
+11
-3
No files found.
lang/zh-cn/zh-cn.js
View file @
95012759
...
@@ -312,8 +312,9 @@ KityMinder.LANG['zh-cn'] = {
...
@@ -312,8 +312,9 @@ KityMinder.LANG['zh-cn'] = {
'clipboardunsupported'
:
'您的浏览器不支持剪贴板,请使用快捷键复制'
,
'clipboardunsupported'
:
'您的浏览器不支持剪贴板,请使用快捷键复制'
,
'save_success'
:
'文档已保存'
,
'load_success'
:
'<b>{0}</b> 加载成功'
,
'autosave_success'
:
'文档已自动保存'
'save_success'
:
'<b>{0}</b> 已保存于 {1}'
,
'autosave_success'
:
'<b>{0}</b> 已自动保存于 {1}'
},
},
'popupcolor'
:
{
'popupcolor'
:
{
'clearColor'
:
'清空颜色'
,
'clearColor'
:
'清空颜色'
,
...
...
ui/doc.js
View file @
95012759
...
@@ -58,7 +58,7 @@ KityMinder.registerUI('doc', function(minder) {
...
@@ -58,7 +58,7 @@ KityMinder.registerUI('doc', function(minder) {
}).
then
(
function
(
doc
)
{
}).
then
(
function
(
doc
)
{
loading
=
false
;
loading
=
false
;
if
(
doc
)
if
(
doc
)
notice
.
info
(
'<b>'
+
doc
.
title
+
'</b> 加载完成'
);
notice
.
info
(
minder
.
getLang
(
'ui.load_success'
,
doc
.
title
)
);
return
doc
;
return
doc
;
});
});
}
}
...
...
ui/menu/save/netdisk.js
View file @
95012759
...
@@ -183,10 +183,6 @@ KityMinder.registerUI('menu/save/netdisk', function(minder) {
...
@@ -183,10 +183,6 @@ KityMinder.registerUI('menu/save/netdisk', function(minder) {
if
(
!
file
.
modifyTime
)
throw
new
Error
(
'File Save Error'
);
if
(
!
file
.
modifyTime
)
throw
new
Error
(
'File Save Error'
);
saving
=
false
;
if
(
$mask
)
$mask
.
removeClass
(
'loading'
);
if
(
!
leaveTheMenu
)
{
if
(
!
leaveTheMenu
)
{
$menu
.
hide
();
$menu
.
hide
();
}
}
...
@@ -198,7 +194,7 @@ KityMinder.registerUI('menu/save/netdisk', function(minder) {
...
@@ -198,7 +194,7 @@ KityMinder.registerUI('menu/save/netdisk', function(minder) {
$doc
.
save
(
doc
);
$doc
.
save
(
doc
);
notice
.
info
(
msg
||
minder
.
getLang
(
'ui.save_success'
));
notice
.
info
(
msg
||
minder
.
getLang
(
'ui.save_success'
,
doc
.
title
,
file
.
modifyTime
.
toLocaleTimeString
()
));
setTimeout
(
function
()
{
setTimeout
(
function
()
{
$finder
.
list
(
$finder
.
pwd
(),
true
);
$finder
.
list
(
$finder
.
pwd
(),
true
);
...
@@ -210,7 +206,10 @@ KityMinder.registerUI('menu/save/netdisk', function(minder) {
...
@@ -210,7 +206,10 @@ KityMinder.registerUI('menu/save/netdisk', function(minder) {
notice
.
error
(
'err_save'
,
e
);
notice
.
error
(
'err_save'
,
e
);
}
}
return
minder
.
exportData
(
protocol
).
then
(
upload
).
then
(
finish
,
error
);
return
minder
.
exportData
(
protocol
).
then
(
upload
).
then
(
finish
,
error
).
then
(
function
()
{
if
(
$mask
)
$mask
.
removeClass
(
'loading'
);
saving
=
false
;
});
}
}
function
setFileName
()
{
function
setFileName
()
{
...
...
ui/ui.js
View file @
95012759
...
@@ -60,10 +60,18 @@
...
@@ -60,10 +60,18 @@
});
});
$
.
extend
(
$
,
{
$
.
extend
(
$
,
{
pajax
:
function
()
{
pajax
:
function
(
opt
)
{
var
defered
=
$
.
ajax
.
apply
(
$
,
arguments
)
;
opt
.
cache
=
false
;
return
Promise
.
resolve
(
defered
);
return
Promise
.
resolve
(
$
.
ajax
(
opt
)
);
}
}
});
});
// preload css images
$
(
function
()
{
var
list
=
[
"kmcat_warn.png"
,
"kmcat_sad.png"
,
"icons.png"
,
"template_large.png"
,
"history.png"
,
"feedback.png"
,
"iconpriority.png"
,
"iconprogress.png"
,
"template.png"
,
"layout.png"
,
"next-level.png"
,
"prev-level.png"
];
list
.
forEach
(
function
(
item
)
{
(
new
Image
()).
src
=
'ui/theme/default/images/'
+
item
;
});
});
})();
})();
\ No newline at end of file
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