Merge pull request #522 from DimalChandrasiri/release-3.0.x

Fix for multiple popup issue
revert-dabc3590
Rasika Perera 8 years ago committed by GitHub
commit 0b983855cf

@ -67,6 +67,6 @@ function attachEvents() {
function toggleEnrollment(){
$(modalPopupContent).html($("#qr-code-modal").html());
generateQRCode(modalPopupContent + " .qr-code");
showPopup();
modalDialog.show();
}
}

@ -282,16 +282,5 @@
{{#zone "bottomJs"}}
{{js "/js/download.js"}}
<script type="text/javascript">
$(".download-link").click(function () {
toggleEnrollment();
});
function toggleEnrollment() {
$(".modalpopup-content").html($("#qr-code-modal").html());
generateQRCode(".modalpopup-content .qr-code");
showPopup();
}
</script>
{{js "/js/jquery.validate.js"}}
{{/zone}}

@ -73,10 +73,9 @@ function generateQRCode(qrCodeClass) {
}
function toggleEnrollment() {
console.log("something happenedfd!");
$(".modal-content").html($("#qr-code-modal").html());
generateQRCode(".modal-content .qr-code");
showPopup();
modalDialog.show();
}
var updateNotificationCountOnSuccess = function (data, textStatus, jqXHR) {
@ -345,10 +344,6 @@ $.fn.collapse_nav_sub = function () {
}
};
$(".download-link").click(function(){
toggleEnrollment();
});
$(document).ready(function () {
$.sidebar_toggle();
if (typeof $.fn.collapse == 'function') {

@ -75,7 +75,7 @@ function generateQRCode(qrCodeClass) {
function toggleEnrollment() {
$(".modal-content").html($("#qr-code-modal").html());
generateQRCode(".modal-content .qr-code");
showPopup();
modalDialog.show();
}
var updateNotificationCountOnSuccess = function (data, textStatus, jqXHR) {

Loading…
Cancel
Save