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
ef3a3a47
Commit
ef3a3a47
authored
Oct 24, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拖拽移动体验优化
parent
a68e07dd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
zh-cn.js
lang/zh-cn/zh-cn.js
+1
-1
_netdisk.less
ui/theme/default/css/_netdisk.less
+1
-1
netdiskfinder.js
ui/widget/netdiskfinder.js
+12
-6
No files found.
lang/zh-cn/zh-cn.js
View file @
ef3a3a47
...
...
@@ -141,7 +141,7 @@ KityMinder.LANG['zh-cn'] = {
'move_file_confirm'
:
'确定把 "{0}" 移动到 "{1}" 吗?'
,
'rename'
:
'重命名'
,
'rename_success'
:
'<b>{0}</b> 重命名成功'
,
'move_success'
:
'<b>{0}</b> 移动成功'
,
'move_success'
:
'<b>{0}</b> 移动成功
到 <b>{1}</b>
'
,
'command'
:
{
'appendsiblingnode'
:
'插入同级主题'
,
...
...
ui/theme/default/css/_netdisk.less
View file @
ef3a3a47
...
...
@@ -164,7 +164,7 @@
display: inline-block;
width: 20px;
height: 20px;
margin-left: 1
5
px;
margin-left: 1
0
px;
vertical-align: middle;
border-radius: 2px;
box-sizing: border-box;
...
...
ui/widget/netdiskfinder.js
View file @
ef3a3a47
...
...
@@ -254,20 +254,26 @@ KityMinder.registerUI('widget/netdiskfinder', function(minder) {
}
function
dragOver
(
e
)
{
e
.
preventDefault
();
if
(
$
(
e
.
target
).
hasClass
(
'filename'
))
e
.
preventDefault
();
}
function
dirDragEnter
(
e
)
{
if
(
!
$
(
e
.
target
).
hasClass
(
'dir'
))
return
;
$
(
e
.
target
).
addClass
(
'drag-enter'
);
var
$target
=
$
(
e
.
target
).
closest
(
'.dir'
);
$target
.
addClass
(
'drag-enter'
);
if
(
e
.
target
!=
$target
[
0
])
$target
.
addClass
(
'enter-child'
);
}
function
dirDragLeave
(
e
)
{
$
(
e
.
target
).
removeClass
(
'drag-enter'
);
if
(
$
(
e
.
target
).
hasClass
(
'dir'
))
{
if
(
$
(
e
.
target
).
hasClass
(
'enter-child'
))
{
return
$
(
e
.
target
).
removeClass
(
'enter-child'
);
}
$
(
e
.
target
).
removeClass
(
'drag-enter'
);
}
}
function
dirDrop
(
e
)
{
var
$target
=
$
(
e
.
target
).
removeClass
(
'drag-enter'
);
var
$target
=
$
(
e
.
target
).
closest
(
'.dir'
).
removeClass
(
'drag-enter'
);
if
(
!
$target
.
hasClass
(
'dir'
))
return
;
...
...
@@ -290,7 +296,7 @@ KityMinder.registerUI('widget/netdiskfinder', function(minder) {
mv
(
sourcePath
,
destinationPath
).
then
(
function
()
{
$dragging
.
remove
();
Finder
.
fire
(
'mv'
,
sourcePath
,
destinationPath
,
SIGNATURE
);
notice
.
info
(
minder
.
getLang
(
'ui.move_success'
,
destination
.
filename
));
notice
.
info
(
minder
.
getLang
(
'ui.move_success'
,
source
.
filename
,
destination
.
filename
));
})[
'catch'
](
function
(
e
)
{
notice
.
error
(
'err_move_file'
,
e
);
}).
then
(
function
()
{
...
...
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