|
@@ -142,16 +142,16 @@
|
|
|
compareWith = $.trim(form.find('.disallow-if-value-same-as').text());
|
|
|
if(compareWith && parsed) {
|
|
|
if(!parsed.value) {
|
|
|
- alert('Plan cannot be empty!');
|
|
|
+ alert('Value cannot be empty!');
|
|
|
return false;
|
|
|
}
|
|
|
let newValue = $('<div/>').html(parsed.value).text().replace(/[^a-zA-Z0-9]/g, '');
|
|
|
if(newValue === '') {
|
|
|
- alert('Plan cannot be empty!');
|
|
|
+ alert('Value cannot be empty!');
|
|
|
return false;
|
|
|
}
|
|
|
if(newValue === compareWith) {
|
|
|
- alert('New plan should be different from the previous plan!');
|
|
|
+ alert('New value should be different from the previous value!');
|
|
|
return false;
|
|
|
}
|
|
|
}
|