Skip to content

Commit f422174

Browse files
committed
Use free icon by default for awesome 5
Close mar10#912
1 parent 3d0c5b1 commit f422174

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

demo/sample-ext-glyph-awesome5.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
<link href="../src/skin-awesome/ui.fancytree.css" rel="stylesheet" class="skinswitcher">
1313
<script src="../src/jquery.fancytree.js"></script>
14+
<script src="../src/jquery.fancytree.dnd5.js"></script>
1415
<script src="../src/jquery.fancytree.glyph.js"></script>
1516

1617
<!-- Start_Exclude: This block is not part of the sample code -->
@@ -32,9 +33,18 @@
3233
$(function(){
3334
// Initialize Fancytree
3435
$("#tree").fancytree({
35-
extensions: ["glyph"],
36+
extensions: ["dnd5", "glyph"],
3637
checkbox: true,
3738
selectMode: 3,
39+
dnd5: {
40+
autoExpandMS: 1500,
41+
dragStart: function(node, data) {
42+
return true;
43+
},
44+
dragEnter: function(node, data) {
45+
return true;
46+
},
47+
},
3848
glyph: {
3949
preset: "awesome5",
4050
map: {}

src/jquery.fancytree.glyph.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
radioSelected: "fas fa-circle",
9999
radioUnknown: "far fa-dot-circle",
100100
dragHelper: "fas fa-arrow-right",
101-
dropMarker: "fas fa-long-arrow-right",
101+
dropMarker: "fas fa-long-arrow-alt-right",
102102
error: "fas fa-exclamation-triangle",
103103
expanderClosed: "fas fa-caret-right",
104104
expanderLazy: "fas fa-angle-right",

0 commit comments

Comments
 (0)