Browse Source

Merge pull request #218 from MindTooth/new_view

Cleaned of variable population in scripts.blade.php
pull/224/merge
KodeStar 7 years ago
committed by GitHub
parent
commit
0184c9695b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      resources/views/items/scripts.blade.php

10
resources/views/items/scripts.blade.php

@ -7,14 +7,8 @@
// options // options
}); });
var availableTags = [ var availableTags = @json(App\Item::supportedOptions());
<?php
$supported = App\Item::supportedOptions();
foreach($supported as $sapp) {
echo '"'.$sapp.'",';
}
?>
];
$( "#appname" ).autocomplete({ $( "#appname" ).autocomplete({
source: availableTags, source: availableTags,
select: function( event, ui ) { select: function( event, ui ) {

Loading…
Cancel
Save