diff --git a/app/views/origami/home/show.html.erb b/app/views/origami/home/show.html.erb
index 2946791f..22d909b9 100755
--- a/app/views/origami/home/show.html.erb
+++ b/app/views/origami/home/show.html.erb
@@ -491,7 +491,7 @@
window.location.href = '/origami/' + sale_id + '/other_charges'
}
else {
- alert("Please select an table!");
+ swal ( "Oops" , "Please select an table!" , "warning" );
}
return false;
@@ -510,7 +510,7 @@
window.location.href = '/origami/' + sale_id + '/discount'
}
else {
- alert("Please select an table!");
+ swal ( "Oops" , "Please select an table!" , "warning" );
}
return false;
@@ -584,8 +584,16 @@
url: ajax_url,
data: 'dining_id=' + dining_id + "&sale_id=" + sale_id,
success: function (result) {
- alert("Invoice updated")
+ swal({
+ title: "Information!",
+ text: "Invoice updated",
+ html: true,
+ closeOnConfirm: false,
+ closeOnCancel: false,
+ allowOutsideClick: false
+ }, function () {
window.location.reload();
+ });
}
});
})
diff --git a/app/views/origami/rooms/show.html.erb b/app/views/origami/rooms/show.html.erb
index 600eaf73..759a171c 100755
--- a/app/views/origami/rooms/show.html.erb
+++ b/app/views/origami/rooms/show.html.erb
@@ -498,7 +498,7 @@ $(document).ready(function(){
window.location.href = '/origami/' + sale_id + '/discount'
}
else {
- alert("Please select an table!");
+ swal ( "Oops" , "Please select an table!" , "warning" );
}
return false;
@@ -517,7 +517,7 @@ $(document).ready(function(){
window.location.href = '/origami/' + sale_id + '/other_charges'
}
else {
- alert("Please select an table!");
+ swal ( "Oops" , "Please select an table!" , "warning" );
}
return false;
@@ -600,8 +600,16 @@ $('#add_invoice').on('click',function(){
url: ajax_url,
data: 'dining_id='+ dining_id + "&sale_id=" + sale_id,
success:function(result){
- alert("Invoice updated")
- window.location.reload();
+ swal({
+ title: "Information!",
+ text: "Invoice updated",
+ html: true,
+ closeOnConfirm: false,
+ closeOnCancel: false,
+ allowOutsideClick: false
+ }, function () {
+ window.location.reload();
+ });
}
});
});