This commit is contained in:
2021-03-25 23:34:54 -03:00
parent 8fe357cc95
commit 2bc6958a1c
2 changed files with 4 additions and 3 deletions

View File

@ -69,7 +69,7 @@
@push('scripts')
<script type="text/javascript">
function findUnidades(proyecto) {
$.getJSON('{!!$locations['api']!!}/unidades/no_reservadas/' + proyecto + '/1', function(data) {
$.getJSON('{!!$locations['api_url']!!}/unidades/no_reservadas/' + proyecto + '/1', function(data) {
var unidades = $('#departamento')
unidades.html('')
$.each(data, function(i, el) {
@ -83,7 +83,7 @@
var unis = []
function agregarUnidad(tipo) {
var proyecto = $('#proyecto').val()
$.getJSON('{!!$locations['api']!!}/unidades/no_reservadas/' + proyecto + '/' + tipo, function(data) {
$.getJSON('{!!$locations['api_url']!!}/unidades/no_reservadas/' + proyecto + '/' + tipo, function(data) {
var unidades = $('#unidades')
var n = unis[unis.length - 1] + 1;
if (unis.length == 0) {