Skip to content

Commit

Permalink
Integrated kamilkp#7
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Vollstädt committed Aug 13, 2015
1 parent 7e6b01b commit 46a3de9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/angular-nestable.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,12 @@

function buildNestableHtml(model, tpl) {
var root = $('<div class="dd"></div>');
// create placeholder if the list is empty
if (!model.length) {
$('<div class="dd-empty"></div>').appendTo(root);
return root;
}
// create nested hierarchy
var rootList = $('<ol class="dd-list"></ol>').appendTo(root);
var draggableHandle = $nestable.enableDraggableHandle;
model.forEach(function f(item){
Expand Down Expand Up @@ -253,4 +259,4 @@
}
};
}]);
})(window, document, window.angular);
})(window, document, window.angular);

0 comments on commit 46a3de9

Please sign in to comment.