Prepare deployment

This commit is contained in:
benweet 2013-07-17 01:13:00 +01:00
parent fe80f1761c
commit 96312c9654
3 changed files with 22 additions and 20 deletions

View File

@ -1,5 +1,5 @@
CACHE MANIFEST CACHE MANIFEST
# Wed 10 Jul 2013 23:44:48 IST # Wed 17 Jul 2013 01:13:00 IST
CACHE: CACHE:
index.html index.html

16
js/main-min.js vendored
View File

@ -5052,9 +5052,10 @@ define("config", function() {}), define("settings", [ "underscore", "config" ],
n.stopPropagation(), n.preventDefault(); n.stopPropagation(), n.preventDefault();
var i = (n.dataTransfer || n.target).files; var i = (n.dataTransfer || n.target).files;
e("#modal-import-harddrive-markdown, #modal-import-harddrive-html").modal("hide"), e("#modal-import-harddrive-markdown, #modal-import-harddrive-html").modal("hide"),
t.each(i, function(e) { t.each(i, function(t) {
var t = new FileReader(); if (!e(n.target).is("#wmd-input") || !t.name.match(/.(jpe?g|png|gif)$/)) {
t.onload = function(e) { var i = new FileReader();
i.onload = function(e) {
return function(t) { return function(t) {
var n = t.target.result; var n = t.target.result;
if (n.match(/\uFFFD/)) return d.onError(e.name + " is a binary file."), void 0; if (n.match(/\uFFFD/)) return d.onError(e.name + " is a binary file."), void 0;
@ -5065,9 +5066,10 @@ define("config", function() {}), define("settings", [ "underscore", "config" ],
var r = u.createFile(i, n); var r = u.createFile(i, n);
u.selectFile(r); u.selectFile(r);
}; };
}(e); }(t);
var n = e.slice(0, IMPORT_FILE_MAX_CONTENT_SIZE); var o = t.slice(0, IMPORT_FILE_MAX_CONTENT_SIZE);
t.readAsText(n); i.readAsText(o);
}
}); });
} }
function s(e) { function s(e) {
@ -15294,9 +15296,9 @@ function(e) {
}).compact().object().value(); }).compact().object().value();
return i.onReady(function() { return i.onReady(function() {
function n(n) { function n(n) {
n.stopPropagation(), n.preventDefault();
var o = (n.dataTransfer || n.target).files, s = t.first(o); var o = (n.dataTransfer || n.target).files, s = t.first(o);
if (s.name.match(/.(jpe?g|png|gif)$/)) { if (s.name.match(/.(jpe?g|png|gif)$/)) {
n.stopPropagation(), n.preventDefault();
var a = new FileReader(); var a = new FileReader();
a.onload = function() { a.onload = function() {
return function(t) { return function(t) {

View File

@ -36,11 +36,11 @@ define([
}); });
function handleImgImport(evt) { function handleImgImport(evt) {
evt.stopPropagation();
evt.preventDefault();
var files = (evt.dataTransfer || evt.target).files; var files = (evt.dataTransfer || evt.target).files;
var file = _.first(files); var file = _.first(files);
if(file.name.match(/.(jpe?g|png|gif)$/)) { if(file.name.match(/.(jpe?g|png|gif)$/)) {
evt.stopPropagation();
evt.preventDefault();
var reader = new FileReader(); var reader = new FileReader();
reader.onload = (function(importedFile) { reader.onload = (function(importedFile) {
return function(e) { return function(e) {