Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

Commit

Permalink
Fixing bug related to popover not showing in Modal
Browse files Browse the repository at this point in the history
  • Loading branch information
tgpatel committed Oct 29, 2014
1 parent 8f90fd5 commit 6221e8f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vcweb/core/templates/experimenter/edit-configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,9 @@ <h4 class="modal-title">Edit Details and Click Save</h4>
var model = ko.mapping.fromJS(data, mapping);

var updateModal = function(action, template, data) {
model.activateModal(action);
model.template(template);
model.modalData(data);
model.activateModal(action);
}

model.template = ko.observable();
Expand Down
2 changes: 1 addition & 1 deletion vcweb/core/templates/experimenter/show-configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ <h4 class="panel-title">
' [x '+ self.repeat() +']': self.name() + ' ' + self.sequence_number();
};
self.toggleVisibility = function() {
self.isExpanded(!model.isExpanded());
self.isExpanded(!self.isExpanded());
};
}

Expand Down
2 changes: 1 addition & 1 deletion vcweb/static/js/ko/knockout.helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ ko.bindingHandlers.showModal = {
$(element).modal('show');
// this is to focus input field inside dialog
$("input", element).focus();
$('.has-popover').popover({'trigger':'hover'});
$('.has-popover', element).popover({'trigger':'hover'});
}
else {
$(element).modal('hide');
Expand Down

0 comments on commit 6221e8f

Please sign in to comment.