effective_bootstrap 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54d6f75d825fc409ef08f715bdd974299bbeb784
|
4
|
+
data.tar.gz: be920c3352e792b354482b958dbab822a65c69b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 669f5b6629989ff1a8e37aac3f7665a297962cd7e395366c70a4de10982df47004864c5cd3d2432eafa6ccf2f9b79e7ecfe1b767c0d86b3c3987ac2b32e02c64
|
7
|
+
data.tar.gz: 3a7ac50e997609ed3bbf05b2c8358d471cb87db7145d1e0a6d1cb3bb5fd6d91075fd1183c53d5dc31f641acc78976eaf58e188abff56276abf57cb663c6614ef
|
@@ -6788,6 +6788,13 @@ BaseTheme.DEFAULTS = (0, _extend2.default)(true, {}, _theme2.default.DEFAULTS, {
|
|
6788
6788
|
if (fileInput.files != null && fileInput.files[0] != null) {
|
6789
6789
|
var reader = new FileReader();
|
6790
6790
|
reader.onload = function (e) {
|
6791
|
+
// effective_bootstrap
|
6792
|
+
if(e.loaded > 1000000) {
|
6793
|
+
reader.abort();
|
6794
|
+
alert('image file size is too big! Please attach an image less than 1mb.');
|
6795
|
+
return;
|
6796
|
+
}
|
6797
|
+
|
6791
6798
|
var range = _this3.quill.getSelection(true);
|
6792
6799
|
_this3.quill.updateContents(new _quillDelta2.default().retain(range.index).delete(range.length).insert({ image: e.target.result }), _emitter2.default.sources.USER);
|
6793
6800
|
_this3.quill.setSelection(range.index + 1, _emitter2.default.sources.SILENT);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|