Commit 14a2e156 by Saliya Randunu

fix alert popup size

parent 77754721
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
<script type="text/javascript"> <script type="text/javascript">
var Popup = null; var Popup = null;
var PopupCoupon = null; var PopupCoupon = null;
var PopupAlert = null;
$(document).ready(function() $(document).ready(function()
{ {
setTabingSideBarHeight(); setTabingSideBarHeight();
...@@ -57,6 +58,12 @@ ...@@ -57,6 +58,12 @@
width : 500, height : 400 width : 500, height : 400
}); });
PopupAlert = new jBox('Modal', {
id : "change-plan",
overlay : true,
width : 350, height : 300
});
var isinvliadCoupon = getParameterByName("invalidcoupon"); var isinvliadCoupon = getParameterByName("invalidcoupon");
if (isinvliadCoupon==='true'){ if (isinvliadCoupon==='true'){
...@@ -98,8 +105,8 @@ ...@@ -98,8 +105,8 @@
if($(this).prop("tagName") === "A"){ if($(this).prop("tagName") === "A"){
$(this).prop("onclick", null).off("click"); $(this).prop("onclick", null).off("click");
$(this).css("cursor","arrow").click(function(){ $(this).css("cursor","arrow").click(function(){
PopupCoupon.setContent($("#force-to-choose-popup")); PopupAlert.setContent($("#force-to-choose-popup"));
PopupCoupon.open(); PopupAlert.open();
return false; return false;
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment