Fixed a few bugs regarding sending empty responses. If no file is selected for upload an alert will appeart to notify the user.

This commit is contained in:
Dario Milicic
2014-08-11 11:19:47 +02:00
parent 89d9f7a6ed
commit 228262bf70
4 changed files with 28 additions and 11 deletions
+2 -2
View File
@@ -30,8 +30,8 @@ $(document).ready(function() {
var dialogDefinition = ev.data.definition;
// Check if the definition is from the dialog we're
// interested in (the 'image2' and 'fileupload' dialog).
if ( dialogName == 'image2' || dialogName == 'fileupload') {
// interested in (the 'image2' and 'fileuploadDialog' dialog).
if ( dialogName == 'image2' || dialogName == 'fileuploadDialog') {
var dialogObj = dialogDefinition.dialog;
dialogObj.on("show", function() {