Reputation: 931
I have the following issue.
In the following JSFiddle1 the dialogs allow the editing of folders and the editing of links.
In this JSFiddle2 I try to add JQuery UI tabs to the previous JSfiddle and apply the model to a div in one of the tabs
ko.applyBindings(foldersModel, document.getElementById("folders-view"));
the dialogs do not work.
Any ideas?
Upvotes: 0
Views: 2204
Reputation: 17554
Your're not doing it right, use custom bindings handlers to achieve this instead. And since I'm such a nice guy I've already made my own bindings public and with a JSFiddle togo with it.. :P
https://github.com/AndersMalmgren/Knockout.Bindings
Sorry, but I've never seen so many logic errors in a code before :D Anyway, beacuse I was bored and are a nice guy i cleaned up the code somewhat and fixed the bugs
Upvotes: 1