- function _openMyWindow(myOptions) {
- var selectedOptions = _getOptions();
- $window = $("<div/>");
- $window.append($('#junk-template').html());
- if (!myVM) {
- myVM = {
-
- MyOptions: ko.observableArray(myOptions),
- MySelectedOptions: ko.observableArray(selectedOptions != undefined ? selectedOptions : [])
- }
- }
-
- ko.applyBindings(myVM, $window[0]);
-
- $window.Window({
- width: '450px', height: 'auto', modal: true, zIndex: 998, maximizable: false, open: _openWindow($window), title: "Junk Title"
- });
- }
function _openMyWindow(myOptions) {
var selectedOptions = _getOptions();
$window = $("<div/>");
$window.append($('#junk-template').html());
if (!myVM) {
myVM = {
MyOptions: ko.observableArray(myOptions),
MySelectedOptions: ko.observableArray(selectedOptions != undefined ? selectedOptions : [])
}
}
ko.applyBindings(myVM, $window[0]);
$window.Window({
width: '450px', height: 'auto', modal: true, zIndex: 998, maximizable: false, open: _openWindow($window), title: "Junk Title"
});
}
No comments:
Post a Comment