Javascript bundling updated

Using VS extension: 'Bundler & Minifier'
This commit is contained in:
Gary Sharp
2016-09-29 18:34:06 +10:00
parent 5fcb81e9e8
commit 9baca7f633
59 changed files with 287 additions and 512 deletions
@@ -1,4 +1,4 @@
// WebcamJS v1.0
// WebcamJS v1.0
// Webcam library for capturing JPEG/PNG images in JavaScript
// Attempts getUserMedia, falls back to Flash
// Author: Joseph Huckaby: http://github.com/jhuckaby
@@ -561,8 +561,10 @@ Webcam.init();
var comments = dialog.find('input.comments')
.keypress(function (e) {
if (e.which === 13) {
result = true;
dialog.dialog("close");
if (!!comments.val()) {
result = true;
dialog.dialog("close");
}
}
});
@@ -573,8 +575,15 @@ Webcam.init();
autoOpen: true,
buttons: {
"Upload": function () {
result = true;
dialog.dialog("close");
if (!!comments.val()) {
result = true;
dialog.dialog("close");
window.setTimeout(function () {
comments.focus();
}, 1);
} else {
alert('Please provide a comment for this attachment.');
}
},
Cancel: function () {
dialog.dialog("close");
@@ -694,4 +703,4 @@ Webcam.init();
}
document.Disco.AttachmentUploader = attachmentUploader;
}(this, document, $, Webcam));
}(this, document, $, Webcam));