-
-
-
\ No newline at end of file
diff --git a/resources/assets/js/components/image-picker.html b/resources/assets/js/components/image-picker.html
new file mode 100644
index 000000000..1a07b9274
--- /dev/null
+++ b/resources/assets/js/components/image-picker.html
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
\ No newline at end of file
diff --git a/resources/assets/js/components/image-picker.vue b/resources/assets/js/components/image-picker.vue
deleted file mode 100644
index e3c564eb9..000000000
--- a/resources/assets/js/components/image-picker.vue
+++ /dev/null
@@ -1,95 +0,0 @@
-
-
-
');
- elem.after(success);
- success.slideDown(400, function () {
- setTimeout(function () {
- success.slideUp(400, function () {
- success.remove();
- })
- }, 2000);
- });
-};
-
-// Show a failure messages from laravel. Searches for the name of the inputs.
-jQuery.fn.showFailure = function (messageMap) {
- var elem = $(this);
- $.each(messageMap, function (key, messages) {
- var input = elem.find('[name="' + key + '"]').last();
- var fail = $('
' + messages.join("\n") + '
');
- input.after(fail);
- fail.slideDown(400, function () {
- setTimeout(function () {
- fail.slideUp(400, function () {
- fail.remove();
- })
- }, 2000);
- });
- });
-
-};
-
-// Submit the form that the called upon element sits in.
-jQuery.fn.submitForm = function() {
- $(this).closest('form').submit();
-};
-
-// Dropdown menu display
-jQuery.fn.dropDown = function() {
- var container = $(this),
- menu = container.find('ul');
- container.find('[data-dropdown-toggle]').on('click', function() {
- menu.show().addClass('anim menuIn');
- container.mouseleave(function() {
- menu.hide();
- menu.removeClass('anim menuIn');
- });
- });
-};
\ No newline at end of file
diff --git a/resources/assets/js/pages/book-show.js b/resources/assets/js/pages/book-show.js
deleted file mode 100644
index 45159ad02..000000000
--- a/resources/assets/js/pages/book-show.js
+++ /dev/null
@@ -1,32 +0,0 @@
-
-module.exports = {
- el: '#book-dashboard',
- data: {
- searching: false,
- searchTerm: '',
- searchResults: ''
- },
- methods: {
- searchBook: function (e) {
- e.preventDefault();
- var term = this.searchTerm;
- if (term.length == 0) return;
- this.searching = true;
- this.searchResults = '';
- var searchUrl = this.$els.form.getAttribute('action');
- searchUrl += '?term=' + encodeURIComponent(term);
- this.$http.get(searchUrl, function (data) {
- this.$set('searchResults', data);
- });
- },
- checkSearchForm: function (e) {
- if (this.searchTerm.length < 1) {
- this.searching = false;
- }
- },
- clearSearch: function(e) {
- this.searching = false;
- this.searchTerm = '';
- }
- }
-};
\ No newline at end of file
diff --git a/resources/assets/js/pages/page-form.js b/resources/assets/js/pages/page-form.js
index 2bf722196..cadccb59c 100644
--- a/resources/assets/js/pages/page-form.js
+++ b/resources/assets/js/pages/page-form.js
@@ -98,7 +98,7 @@ module.exports = {
icon: 'image',
tooltip: 'Insert an image',
onclick: function() {
- ImageManager.show(function(image) {
+ window.ImageManager.showExternal(function(image) {
var html = '';
html += '';
html += '';
@@ -106,6 +106,7 @@ module.exports = {
});
}
});
+
// Paste image-uploads
editor.on('paste', function(e) {
if(e.clipboardData) {
diff --git a/resources/assets/js/services.js b/resources/assets/js/services.js
new file mode 100644
index 000000000..684a68450
--- /dev/null
+++ b/resources/assets/js/services.js
@@ -0,0 +1,12 @@
+"use strict";
+
+module.exports = function(ngApp) {
+
+ ngApp.factory('imageManagerService', function() {
+ return {
+ show: false,
+ showExternal: false
+ };
+ });
+
+};
\ No newline at end of file
diff --git a/resources/assets/sass/_image-manager.scss b/resources/assets/sass/_image-manager.scss
index 954e10ac0..3b3ce7d9c 100644
--- a/resources/assets/sass/_image-manager.scss
+++ b/resources/assets/sass/_image-manager.scss
@@ -1,7 +1,6 @@
.overlay {
background-color: rgba(0, 0, 0, 0.2);
position: fixed;
- display: none;
z-index: 95536;
width: 100%;
height: 100%;
diff --git a/resources/assets/sass/styles.scss b/resources/assets/sass/styles.scss
index c048aa9fe..710bee7ee 100644
--- a/resources/assets/sass/styles.scss
+++ b/resources/assets/sass/styles.scss
@@ -18,6 +18,10 @@
[v-cloak], [v-show] {display: none;}
+[ng\:cloak], [ng-cloak], .ng-cloak {
+ display: none !important;
+}
+
// Jquery Sortable Styles
.dragged {
position: absolute;
diff --git a/resources/views/base.blade.php b/resources/views/base.blade.php
index e8958f629..8a2e6bc98 100644
--- a/resources/views/base.blade.php
+++ b/resources/views/base.blade.php
@@ -52,8 +52,8 @@
@endif
@if($signedIn)
-
+ This image is used in the pages below, Click delete again to confirm you want to delete
+ this image.
+
+
+
+
+
+
+
+
+
+
+
+
Image deleted
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/views/settings/index.blade.php b/resources/views/settings/index.blade.php
index d1db1ed33..b5b5d0a4f 100644
--- a/resources/views/settings/index.blade.php
+++ b/resources/views/settings/index.blade.php
@@ -33,7 +33,7 @@
This image should be 43px in height. Large images will be scaled down.