Skip to content

Commit

Permalink
Merge branch '4.0-dev' into tiny_mce_plugin_toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
HLeithner committed Apr 21, 2019
2 parents 0b77877 + 2fdf140 commit b22a072
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 64 deletions.
60 changes: 24 additions & 36 deletions administrator/components/com_media/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion administrator/components/com_media/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"file-saver": "^1.3.3",
"vue": "^2.5.17",
"vue-focus": "^2.1.0",
"vue-focus-lock": "^1.3.0",
"vuex": "^2.5.0",
"vuex-persistedstate": "^2.4.2"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="form-group">
<label for="folder">{{ translate('COM_MEDIA_FOLDER_NAME') }}</label>
<input id="folder" class="form-control"
v-focus="true" v-model.trim="folder" @input="folder = $event.target.value"
v-model.trim="folder" @input="folder = $event.target.value"
required autocomplete="off">
</div>
</form>
Expand All @@ -21,11 +21,9 @@

<script>
import * as types from "./../../store/mutation-types";
import {focus} from 'vue-focus';
export default {
name: 'media-create-folder-modal',
directives: {focus: focus},
data() {
return {
folder: '',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
<template>
<div class="media-modal-backdrop" @click="close()">
<div class="modal" @click.stop style="display: flex">
<slot name="backdrop-close"></slot>
<div class="modal-dialog" :class="modalClass" role="alertdialog">
<div class="modal-content">
<div class="modal-header">
<slot name="header"></slot>
<button type="button" v-if="showClose" class="close" @click="close()"
aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<slot name="body"></slot>
</div>
<div class="modal-footer">
<slot name="footer"></slot>
</div>
</div>
</div>
<tab-lock>
<slot name="backdrop-close"></slot>
<div class="modal-dialog" :class="modalClass" role="alertdialog">
<div class="modal-content">
<div class="modal-header">
<slot name="header"></slot>
<button type="button" v-if="showClose" class="close" @click="close()"
aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<slot name="body"></slot>
</div>
<div class="modal-footer">
<slot name="footer"></slot>
</div>
</div>
</div>
</tab-lock>
</div>
</div>
</template>

<script>
import * as types from "./../../store/mutation-types";
export default {
name: 'media-modal',
props: {
Expand Down Expand Up @@ -68,4 +68,4 @@
document.removeEventListener('keydown', this.onKeyDown);
},
}
</script>
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<label for="name">{{ translate('COM_MEDIA_NAME') }}</label>
<div :class="{'input-group': extension.length}">
<input id="name" class="form-control" placeholder="Name"
v-focus="true" v-model.trim="name" @input="name = $event.target.value"
v-model.trim="name" @input="name = $event.target.value"
required autocomplete="off">
<span class="input-group-addon" v-if="extension.length">{{extension }}</span>
</div>
Expand All @@ -24,11 +24,9 @@

<script>
import * as types from "./../../store/mutation-types";
import {focus} from 'vue-focus';
export default {
name: 'media-rename-modal',
directives: {focus: focus},
data() {
return {
originalName: '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import Infobar from "./components/infobar/infobar.vue";
import Upload from "./components/upload/upload.vue";
import Translate from "./plugins/translate";
import store from './store/store';
import Lock from 'vue-focus-lock';

// Add the plugins
Vue.use(Translate);
Expand All @@ -40,6 +41,7 @@ Vue.component('media-share-modal', ShareModal);
Vue.component('media-confirm-delete-modal', ConfirmDeleteModal);
Vue.component('media-infobar', Infobar);
Vue.component('media-upload', Upload);
Vue.component('tab-lock', Lock);

// Register MediaManager namespace
window.MediaManager = window.MediaManager || {};
Expand Down

0 comments on commit b22a072

Please sign in to comment.