Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into developer
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna committed Feb 18, 2018
2 parents 402f4ee + 7974d78 commit 1e0f3f3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 19 deletions.
26 changes: 12 additions & 14 deletions resources/assets/js/components/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ document.addEventListener('turbolinks:load', function() {
style: '',
target: '_self',
errors: {
title: false,
label: false,
slug: false,
title: false,
label: false,
slug: false,
},
},
methods: {
Expand All @@ -40,23 +40,22 @@ document.addEventListener('turbolinks:load', function() {
slug: false,
};

if(!this.title){
this.errors.title = valid = true;
if (!this.title) {
this.errors.title = valid = true;
}

if(!this.label){
this.errors.label = valid = true;
if (!this.label) {
this.errors.label = valid = true;
}

if(!this.slug){
this.errors.slug = valid = true;
if (!this.slug) {
this.errors.slug = valid = true;
}

return !valid;
},
add: function() {

if(!this.checkForm()){
if (!this.checkForm()) {
return;
}

Expand Down Expand Up @@ -95,9 +94,8 @@ document.addEventListener('turbolinks:load', function() {
this.load(data);
},
save: function() {

if(!this.checkForm()) {
return;
if (!this.checkForm()) {
return;
}

$('li[data-id=' + this.id + ']').data({
Expand Down
4 changes: 2 additions & 2 deletions resources/lang/en/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
],

'validation' => [
'required' => 'Please fill in the field.'
]
'required' => 'Please fill in the field.',
],

];
5 changes: 2 additions & 3 deletions resources/lang/ru/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,9 @@
],
],


'validation' => [
'required' => 'Пожалуйста заполните поле.'
]
'required' => 'Пожалуйста заполните поле.',
],



Expand Down

0 comments on commit 1e0f3f3

Please sign in to comment.