Fix file editing linkages

This commit is contained in:
Dane Everitt 2016-01-21 23:58:06 -05:00
parent 52229d5d2e
commit ccfe444930

View file

@ -51,7 +51,7 @@
<input type="hidden" name="file" value="{{ $file }}" /> <input type="hidden" name="file" value="{{ $file }}" />
{!! csrf_field() !!} {!! csrf_field() !!}
<button class="btn btn-primary btn-sm" id="save_file" type="submit">{{ trans('strings.save') }}</button> <button class="btn btn-primary btn-sm" id="save_file" type="submit">{{ trans('strings.save') }}</button>
<a href="/server/{{ $server->uuidShort }}/files?dir={{ rawurlencode($directory) }}"><button class="btn btn-default btn-sm">{{ trans('server.files.back') }}</button></a> <a href="/server/{{ $server->uuidShort }}/files?dir={{ rawurlencode($directory) }}" class="text-muted pull-right"><small>{{ trans('server.files.back') }}</small></a>
</div> </div>
</div> </div>
@endcan @endcan
@ -97,7 +97,7 @@ $(document).ready(function () {
contents: fileContents contents: fileContents
} }
}).done(function (data) { }).done(function (data) {
$('#tpl_messages').html('<div class="alert alert-success">{{ trans('server.files.saved') }}</div>'); $('#tpl_messages').html('<div class="alert alert-success">{{ trans('server.files.saved') }}</div>').show().delay(3000).slideUp();
}).fail(function (jqXHR) { }).fail(function (jqXHR) {
$('#tpl_messages').html('<div class="alert alert-danger">' + jqXHR.responseText + '</div>'); $('#tpl_messages').html('<div class="alert alert-danger">' + jqXHR.responseText + '</div>');
}).always(function () { }).always(function () {