Skip to content

Commit

Permalink
remove apps from tags
Browse files Browse the repository at this point in the history
  • Loading branch information
KodeStar authored and KodeStar committed Feb 18, 2018
1 parent 981665e commit 4c83680
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
2 changes: 1 addition & 1 deletion resources/views/tags/form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<div class="input">
<label>{{ __('app.apps.tag_name') }} *</label>
{!! Form::text('title', null, array('placeholder' => __('app.apps.title'), 'id' => 'appname', 'class' => 'form-control')) !!}
{!! Form::text('title', null, array('placeholder' => __('app.apps.title'), 'class' => 'form-control')) !!}
<hr />
<label>{{ __('app.apps.pinned') }}</label>
{!! Form::hidden('pinned', '0') !!}
Expand Down
24 changes: 0 additions & 24 deletions resources/views/tags/scripts.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,5 @@
// options
});
var availableTags = [
<?php
$supported = App\Item::supportedOptions();
foreach($supported as $sapp) {
echo '"'.$sapp.'",';
}
?>
];
$( "#appname" ).autocomplete({
source: availableTags,
select: function( event, ui ) {
$.post('/appload', { app: ui.item.value }, function(data) {
$('#appimage').html("<img src='/storage/"+data.icon+"' /><input type='hidden' name='icon' value='"+data.icon+"' />");
$('input[name=colour]').val(data.colour);
hueb.setColor( data.colour );
$('input[name=pinned]').prop('checked', true);
if(data.config != null) {
$.get('/view/'+data.config, function(getdata) {
$('#sapconfig').html(getdata).show();
});
}
}, "json");
}
});
});
</script>

0 comments on commit 4c83680

Please sign in to comment.