madcapnmckay / Knockout-UI

A home for rich UI components based on KnockoutJS
265 stars 51 forks source link

Adding page from Tree example shows incorrect icon #12

Closed ghost closed 11 years ago

ghost commented 11 years ago

From your Tree example, if you add a "New Page" to an existing folder, the icon should display as a page. Currently it displays as a folder icon.

ghost commented 11 years ago
    addNode : function (parent, type, name, onSuccess) {
        nextId = nextId + 1;
        onSuccess({ id: nextId, parent: parent, name: name, cssClass: type});  // add in cssClass to fix the issue
    }