Merge pull request #218 from MindTooth/new_view

Cleaned of variable population in scripts.blade.php
This commit is contained in:
KodeStar
2018-06-22 11:15:26 +01:00
committed by GitHub

View File

@@ -5,16 +5,10 @@
var elem = $('.color-picker')[0];
var hueb = new Huebee( elem, {
// options
});
});
var availableTags = @json(App\Item::supportedOptions());
var availableTags = [
<?php
$supported = App\Item::supportedOptions();
foreach($supported as $sapp) {
echo '"'.$sapp.'",';
}
?>
];
$( "#appname" ).autocomplete({
source: availableTags,
select: function( event, ui ) {
@@ -35,4 +29,4 @@
$('.tags').select2();
});
</script>
</script>