Fix for system registration, new systems couldnt be added.
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if (old('submit') != 'create')
|
||||
@if (old('submit') !== 'create')
|
||||
<div class="row">
|
||||
<div class="col-12 pb-2">
|
||||
<button type="button" name="submit" class="btn btn-success">Next</button><span id="next" class="m-2"><i class="spinner-border spinner-border-sm text-light d-none"></i></span>
|
||||
@@ -131,7 +131,7 @@
|
||||
switch (data.status) {
|
||||
case 200:
|
||||
// if json is null, means no match, won't do again.
|
||||
if(data.responseText==null || (data.responseText.length===0)) return;
|
||||
if(data.responseText===null || (data.responseText.length===0)) return;
|
||||
$('#create').empty().append(data.responseText);
|
||||
|
||||
@if($errors->count())
|
||||
@@ -166,7 +166,7 @@
|
||||
})
|
||||
}
|
||||
|
||||
if ({{ old('submit') == 'create' ? 'true' : 'false' }}) {
|
||||
if ({{ old('submit') === 'create' ? 'true' : 'false' }}) {
|
||||
getform();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user