diff --git a/include/views/default/crunchbutton/frontend/restaurant.phtml b/include/views/default/crunchbutton/frontend/restaurant.phtml index 6a6cebfba..2444c9494 100644 --- a/include/views/default/crunchbutton/frontend/restaurant.phtml +++ b/include/views/default/crunchbutton/frontend/restaurant.phtml @@ -410,3 +410,17 @@ + + + diff --git a/www/assets/css/style.css b/www/assets/css/style.css index 91787351f..50311e20d 100644 --- a/www/assets/css/style.css +++ b/www/assets/css/style.css @@ -257,6 +257,9 @@ html[xmlns] .clearfix { .order-warning, .order-warning h1{ font-size: 14px !important; } +.order-warning p{ + font-size: 12px; +} .order-warning strong { font-weight: bold; } @@ -264,12 +267,13 @@ html[xmlns] .clearfix { margin-top: 10px; } .order-warning ul li { + color: #d74924; cursor: pointer; margin: 10px 0; text-decoration: underline; + font-size: 12px; } - .show-more-restaurants { color: #FFF; font-size: 15px; diff --git a/www/assets/js/controllers.js b/www/assets/js/controllers.js index 4bc966300..59c43f9f1 100644 --- a/www/assets/js/controllers.js +++ b/www/assets/js/controllers.js @@ -574,6 +574,11 @@ NGApp.controller('RestaurantCtrl', function ($scope, $http, $routeParams, $rootS // Give time to close the modal. setTimeout( function(){ order.submit( true );; }, 300 ); } + $scope.addressOutOfRangePlaceAnyway = function(){ + $rootScope.closePopup(); + // Give time to close the modal. + setTimeout( function(){ order.submit( true );; }, 300 ); + } $scope.giftCardCreditPayment = function(){ $rootScope.closePopup(); diff --git a/www/assets/js/services.order.js b/www/assets/js/services.order.js index 506bb34e8..7d50fe0be 100644 --- a/www/assets/js/services.order.js +++ b/www/assets/js/services.order.js @@ -505,7 +505,8 @@ NGApp.factory('OrderService', function ($http, $location, $rootScope, $filter, A distance = service.location.km2Miles( distance ); if (!service.restaurant.deliveryHere(distance)) { - App.alert('Sorry, you are out of delivery range or have an invalid address.
Please check your address, or order takeout.'); + App.busy.unBusy(); + App.dialog.show( '.address-out-of-range-warning' ); App.busy.unBusy();