- { more_messages }
- { postCtls }
+
diff --git a/web/react/components/post_right.jsx b/web/react/components/post_right.jsx
index ad8b54012d..49c12ad9c6 100644
--- a/web/react/components/post_right.jsx
+++ b/web/react/components/post_right.jsx
@@ -296,6 +296,10 @@ module.exports = React.createClass({
return (
+
+
Drop a file to upload it.
+
![]()
+
{searchForm}
diff --git a/web/sass-files/sass/partials/_files.scss b/web/sass-files/sass/partials/_files.scss
index 65775f01ee..9bf6fd83a5 100644
--- a/web/sass-files/sass/partials/_files.scss
+++ b/web/sass-files/sass/partials/_files.scss
@@ -194,11 +194,12 @@
border-right: 1px solid #ddd;
vertical-align: center;
- // helper to center the image icon in the preview window
- .file-details__preview-helper {
- height: 100%;
- display: inline-block;
- vertical-align: middle;
- }
- }
+ // helper to center the image icon in the preview window
+ .file-details__preview-helper {
+ height: 100%;
+ display: inline-block;
+ vertical-align: middle;
}
+ }
+}
+
diff --git a/web/sass-files/sass/partials/_post.scss b/web/sass-files/sass/partials/_post.scss
index 98b17120d4..0af5c01e2a 100644
--- a/web/sass-files/sass/partials/_post.scss
+++ b/web/sass-files/sass/partials/_post.scss
@@ -107,6 +107,29 @@ body.ios {
}
#post-list {
+ .center-file-overlay {
+ top: 0px;
+ height: 100%;
+ width: 59.7%;
+ position: fixed;
+ z-index: 2147483646;
+ -moz-box-shadow: 0px 0px 3px #8a8a8a;
+ -webkit-box-shadow: 0px 0px 3px #8a8a8a;
+ box-shadow: 0px 0px 3px #8a8a8a;
+
+ .invisible {
+ visibility: hidden;
+ }
+ .visible {
+ visibility: visible;
+ }
+ .center-file-help-text {
+
+ }
+ .center-file-help-picture {
+
+ }
+ }
.post-list-holder-by-time {
background: #fff;
overflow-y: scroll;
diff --git a/web/sass-files/sass/partials/_post_right.scss b/web/sass-files/sass/partials/_post_right.scss
index 4cf3e32a17..41b7aaada2 100644
--- a/web/sass-files/sass/partials/_post_right.scss
+++ b/web/sass-files/sass/partials/_post_right.scss
@@ -1,5 +1,28 @@
.post-right__container {
+ .right-file-overlay {
+ height: 100%;
+ width: 100%;
+ position: fixed;
+ z-index: 2147483646;
+ -moz-box-shadow: 0px 0px 3px #8a8a8a;
+ -webkit-box-shadow: 0px 0px 3px #8a8a8a;
+ box-shadow: 0px 0px 3px #8a8a8a;
+
+ .invisible {
+ visibility: hidden;
+ }
+ .visible {
+ visibility: visible;
+ }
+ .right-file-help-text {
+
+ }
+ .right-file-help-picture {
+
+ }
+ }
+
.post-right-root-message {
padding: 1em 1em 0;
}
diff --git a/web/static/js/jquery-dragster/LICENSE b/web/static/js/jquery-dragster/LICENSE
new file mode 100644
index 0000000000..b8b51dc0bc
--- /dev/null
+++ b/web/static/js/jquery-dragster/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Jan Martin
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web/static/js/jquery-dragster/README.md b/web/static/js/jquery-dragster/README.md
new file mode 100644
index 0000000000..1c28adaf09
--- /dev/null
+++ b/web/static/js/jquery-dragster/README.md
@@ -0,0 +1,17 @@
+Include [jquery.dragster.js](https://rawgithub.com/catmanjan/jquery-dragster/master/jquery.dragster.js) in page.
+
+Works in IE.
+
+```javascript
+$('.element').dragster({
+ enter: function (dragsterEvent, event) {
+ $(this).addClass('hover');
+ },
+ leave: function (dragsterEvent, event) {
+ $(this).removeClass('hover');
+ },
+ drop: function (dragsterEvent, event) {
+ $(this).removeClass('hover');
+ }
+});
+```
\ No newline at end of file
diff --git a/web/static/js/jquery-dragster/jquery.dragster.js b/web/static/js/jquery-dragster/jquery.dragster.js
new file mode 100644
index 0000000000..db73fe3f09
--- /dev/null
+++ b/web/static/js/jquery-dragster/jquery.dragster.js
@@ -0,0 +1,85 @@
+// 1.0.3
+/*
+The MIT License (MIT)
+
+Copyright (c) 2015 Jan Martin
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+*/
+(function ($) {
+
+ $.fn.dragster = function (options) {
+ var settings = $.extend({
+ enter: $.noop,
+ leave: $.noop,
+ over: $.noop,
+ drop: $.noop
+ }, options);
+
+ return this.each(function () {
+ var first = false,
+ second = false,
+ $this = $(this);
+
+ $this.on({
+ dragenter: function (event) {
+ if (first) {
+ second = true;
+ return;
+ } else {
+ first = true;
+ $this.trigger('dragster:enter', event);
+ }
+ event.preventDefault();
+ },
+ dragleave: function (event) {
+ if (second) {
+ second = false;
+ } else if (first) {
+ first = false;
+ }
+ if (!first && !second) {
+ $this.trigger('dragster:leave', event);
+ }
+ event.preventDefault();
+ },
+ dragover: function (event) {
+ $this.trigger('dragster:over', event);
+ event.preventDefault();
+ },
+ drop: function (event) {
+ if (second) {
+ second = false;
+ } else if (first) {
+ first = false;
+ }
+ if (!first && !second) {
+ $this.trigger('dragster:drop', event);
+ }
+ event.preventDefault();
+ },
+ 'dragster:enter': settings.enter,
+ 'dragster:leave': settings.leave,
+ 'dragster:over': settings.over,
+ 'dragster:drop': settings.drop
+ });
+ });
+ };
+
+}(jQuery));
diff --git a/web/templates/head.html b/web/templates/head.html
index 7a7d4fe8e8..dd5e9f46e6 100644
--- a/web/templates/head.html
+++ b/web/templates/head.html
@@ -32,6 +32,8 @@
+
+