rayray
rayray

Reputation: 931

Knockoutjs binding issue JQuery UI tabs

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

Answers (1)

Anders
Anders

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

http://jsfiddle.net/H8xWY/

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

http://jsfiddle.net/uK5KL/20/

Upvotes: 1

Related Questions