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

36
js/main-min.js vendored
View File

@ -5052,22 +5052,24 @@ 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();
return function(t) { i.onload = function(e) {
var n = t.target.result; return function(t) {
if (n.match(/\uFFFD/)) return d.onError(e.name + " is a binary file."), void 0; var n = t.target.result;
if (n = p ? p(n) : n, void 0 === n) return d.onError(e.name + " is not a valid HTML file."), if (n.match(/\uFFFD/)) return d.onError(e.name + " is a binary file."), void 0;
void 0; if (n = p ? p(n) : n, void 0 === n) return d.onError(e.name + " is not a valid HTML file."),
var i = e.name, o = i.lastIndexOf("."); void 0;
i = -1 !== o ? i.substring(0, o) : i; var i = e.name, o = i.lastIndexOf(".");
var r = u.createFile(i, n); i = -1 !== o ? i.substring(0, o) : i;
u.selectFile(r); var r = u.createFile(i, n);
}; u.selectFile(r);
}(e); };
var n = e.slice(0, IMPORT_FILE_MAX_CONTENT_SIZE); }(t);
t.readAsText(n); var o = t.slice(0, IMPORT_FILE_MAX_CONTENT_SIZE);
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) {