added orders to confirm report / phone allows more digits now / added reports to rails admin navigation
This commit is contained in:
@@ -156,7 +156,7 @@ var validateDeliveryDestinationForm = function() {
|
||||
_deliveryDestinationErrors['email'] = "Email mora biti ispravno upisan";
|
||||
}
|
||||
|
||||
var phoneRegex = /[\d\s-]{7,8}/i;
|
||||
var phoneRegex = /[\d\s-]{8,12}/i;
|
||||
if (Validation.safeString(_deliveryDestination.get('phone')).search(phoneRegex) < 0) {
|
||||
_deliveryDestinationErrors['phone'] = "Telefon mora biti ispravan";
|
||||
}
|
||||
@@ -261,7 +261,7 @@ AppDispatcher.register(function(payload) {
|
||||
takeItemOut(action.itemId);
|
||||
break;
|
||||
case CartConstants.CART_DATA_LOADED:
|
||||
// do nothing - jsut emmit change
|
||||
// do nothing - just emmit change
|
||||
break;
|
||||
case CartConstants.SAVE_CART_STATE_FOR_ITEM:
|
||||
if (isDeliveryDestinationValid()) {
|
||||
|
||||
Reference in New Issue
Block a user