Fixing download modal issue on virtual firealarm

revert-dabc3590
Rasika Perera 8 years ago
parent e0499a5d86
commit b99bd42a91

@ -16,9 +16,9 @@
* under the License. * under the License.
*/ */
var modalPopup = ".wr-modalpopup"; var modalPopup = '.modal',
var modalPopupContainer = modalPopup + " .modalpopup-container"; modalPopupContainer = modalPopup + ' .modal-content',
var modalPopupContent = modalPopup + " .modalpopup-content"; modalPopupContent = modalPopup + ' .modal-content';
var body = "body"; var body = "body";
/* /*
@ -33,7 +33,7 @@ function setPopupMaxHeight() {
* Shows agent download popup. * Shows agent download popup.
*/ */
function showAgentDownloadPopup() { function showAgentDownloadPopup() {
$(modalPopup).show(); $(modalPopup).modal('show');
setPopupMaxHeight(); setPopupMaxHeight();
var deviceType = ""; var deviceType = "";
$('.deviceType').each(function () { $('.deviceType').each(function () {
@ -50,7 +50,7 @@ function hideAgentDownloadPopup() {
$('label[for=deviceName]').remove(); $('label[for=deviceName]').remove();
$('.control-group').removeClass('success').removeClass('error'); $('.control-group').removeClass('success').removeClass('error');
$(modalPopupContent).html(''); $(modalPopupContent).html('');
$(modalPopup).hide(); $(modalPopup).modal('hide');
} }
/* /*

Loading…
Cancel
Save