Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
leizi929
Sortable
提交
ff260458
S
Sortable
项目概览
leizi929
/
Sortable
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Sortable
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
ff260458
编写于
7月 18, 2015
作者:
R
RubaXa
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into gh-pages
上级
969e3130
e912d00e
变更
8
展开全部
隐藏空白更改
内联
并排
Showing
8 changed file
with
26 addition
and
13 deletion
+26
-13
README.md
README.md
+2
-2
Sortable.js
Sortable.js
+3
-4
Sortable.min.js
Sortable.min.js
+2
-2
bower.json
bower.json
+1
-1
component.json
component.json
+1
-1
ng-sortable.js
ng-sortable.js
+4
-3
react-sortable-mixin.js
react-sortable-mixin.js
+10
-0
st/app.js
st/app.js
+3
-0
未找到文件。
README.md
浏览文件 @
ff260458
...
...
@@ -583,11 +583,11 @@ Link to the active instance.
```
html
<!-- CDNJS :: Sortable (https://cdnjs.com/) -->
<script src="//cdnjs.cloudflare.com/ajax/libs/Sortable/1.2.
0
/Sortable.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/Sortable/1.2.
1
/Sortable.min.js"></script>
<!-- jsDelivr :: Sortable (http://www.jsdelivr.com/) -->
<script src="//cdn.jsdelivr.net/sortable/1.2.
0
/Sortable.min.js"></script>
<script src="//cdn.jsdelivr.net/sortable/1.2.
1
/Sortable.min.js"></script>
<!-- jsDelivr :: Sortable :: Latest (http://www.jsdelivr.com/) -->
...
...
Sortable.js
浏览文件 @
ff260458
...
...
@@ -655,8 +655,7 @@
clearInterval
(
this
.
_loopId
);
clearInterval
(
autoScroll
.
pid
);
clearTimeout
(
this
.
dragStartTimer
);
clearTimeout
(
this
.
_dragStartTimer
);
// Unbind events
_off
(
document
,
'
drop
'
,
this
);
...
...
@@ -885,7 +884,7 @@
selector
=
selector
.
split
(
'
.
'
);
var
tag
=
selector
.
shift
().
toUpperCase
(),
re
=
new
RegExp
(
'
\\
s(
'
+
selector
.
join
(
'
|
'
)
+
'
)
\\
s
'
,
'
g
'
);
re
=
new
RegExp
(
'
\\
s(
'
+
selector
.
join
(
'
|
'
)
+
'
)
(?=
\\
s)
'
,
'
g
'
);
do
{
if
(
...
...
@@ -1128,7 +1127,7 @@
};
Sortable
.
version
=
'
1.2.
0
'
;
Sortable
.
version
=
'
1.2.
1
'
;
/**
...
...
Sortable.min.js
浏览文件 @
ff260458
此差异已折叠。
点击以展开。
bower.json
浏览文件 @
ff260458
...
...
@@ -6,7 +6,7 @@
"knockout-sortable.js"
,
"react-sortable-mixin.js"
],
"version"
:
"1.2.
0
"
,
"version"
:
"1.2.
1
"
,
"homepage"
:
"http://rubaxa.github.io/Sortable/"
,
"authors"
:
[
"RubaXa <ibnRubaXa@gmail.com>"
...
...
component.json
浏览文件 @
ff260458
{
"name"
:
"Sortable"
,
"main"
:
"Sortable.js"
,
"version"
:
"1.2.
0
"
,
"version"
:
"1.2.
1
"
,
"homepage"
:
"http://rubaxa.github.io/Sortable/"
,
"repo"
:
"RubaXa/Sortable"
,
"authors"
:
[
...
...
ng-sortable.js
浏览文件 @
ff260458
...
...
@@ -25,8 +25,9 @@
angular
.
module
(
'
ng-sortable
'
,
[])
.
constant
(
'
version
'
,
'
0.3.7
'
)
.
directive
(
'
ngSortable
'
,
[
'
$parse
'
,
function
(
$parse
)
{
.
constant
(
'
ngSortableVersion
'
,
'
0.3.7
'
)
.
constant
(
'
ngSortableConfig
'
,
{})
.
directive
(
'
ngSortable
'
,
[
'
$parse
'
,
'
ngSortableConfig
'
,
function
(
$parse
,
ngSortableConfig
)
{
var
removed
,
nextSibling
;
...
...
@@ -67,7 +68,7 @@
scope
:
{
ngSortable
:
"
=?
"
},
link
:
function
(
scope
,
$el
,
attrs
)
{
var
el
=
$el
[
0
],
options
=
scope
.
ngSortable
||
{}
,
options
=
angular
.
extend
(
scope
.
ngSortable
||
{},
ngSortableConfig
)
,
source
=
getSource
(
el
),
watchers
=
[],
sortable
...
...
react-sortable-mixin.js
浏览文件 @
ff260458
...
...
@@ -134,6 +134,16 @@
this
.
_sortableInstance
=
Sortable
.
create
((
this
.
refs
[
options
.
ref
]
||
this
).
getDOMNode
(),
copyOptions
);
},
componentWillReceiveProps
:
function
(
nextProps
)
{
var
newState
=
{},
modelName
=
_getModelName
(
this
),
items
=
nextProps
[
modelName
];
if
(
items
)
{
newState
[
modelName
]
=
items
;
this
.
setState
(
newState
);
}
},
componentWillUnmount
:
function
()
{
this
.
_sortableInstance
.
destroy
();
...
...
st/app.js
浏览文件 @
ff260458
...
...
@@ -148,6 +148,9 @@
// Angular example
angular
.
module
(
'
todoApp
'
,
[
'
ng-sortable
'
])
.
constant
(
'
ngSortableConfig
'
,
{
onEnd
:
function
()
{
console
.
log
(
'
default onEnd()
'
);
}})
.
controller
(
'
TodoController
'
,
[
'
$scope
'
,
function
(
$scope
)
{
$scope
.
todos
=
[
{
text
:
'
learn angular
'
,
done
:
true
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录