Browse Source

remove apps from tags

pull/105/head^2
KodeStar 7 years ago
parent
commit
4c83680ae9
  1. 2
      resources/views/tags/form.blade.php
  2. 24
      resources/views/tags/scripts.blade.php

2
resources/views/tags/form.blade.php

@ -11,7 +11,7 @@
<div class="input"> <div class="input">
<label>{{ __('app.apps.tag_name') }} *</label> <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 /> <hr />
<label>{{ __('app.apps.pinned') }}</label> <label>{{ __('app.apps.pinned') }}</label>
{!! Form::hidden('pinned', '0') !!} {!! Form::hidden('pinned', '0') !!}

24
resources/views/tags/scripts.blade.php

@ -6,29 +6,5 @@
// options // 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> </script>
Loading…
Cancel
Save