← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20696: minor

 

------------------------------------------------------------
revno: 20696
committer: Halvdan Hoem Grelland <halvdanhg@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2015-10-14 12:44:38 +0200
message:
  minor
modified:
  dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/entry.fileresource.js


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/entry.fileresource.js'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/entry.fileresource.js	2015-10-06 17:11:19 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/entry.fileresource.js	2015-10-14 10:44:38 +0000
@@ -42,8 +42,7 @@
                 type: 'POST',
                 dataType: 'json',
                 data: postData,
-                success: function()
-                {
+                success: function() {
                     $fileinfoName.text( '' );
                     $fileinfoSize.text( '' );
                     $fileinfo.hide();
@@ -163,26 +162,22 @@
             multipart: true,
             replaceFileInput: false,
             progressInterval: 250, /* ms */
-            start: function( e )
-            {
+            start: function( e ) {
                 $button.button( 'disable' );
                 $progressBar.toggleClass( 'upload-progress-bar-complete', false );
                 $fileinfo.hide();
                 $progress.show();
             },
-            progress: function( e, data )
-            {
+            progress: function( e, data ) {
                 updateProgress( data.loaded, data.total );
             },
-            fail: function( e, data )
-            {
+            fail: function( e, data ) {
                 console.error( data.errorThrown );
 
                 setHeaderDelayMessage( i18n_file_upload_failed );
                 setButtonUpload();
             },
-            done: function( e, data )
-            {
+            done: function( e, data ) {
                 var fileResource = data.result.response.fileResource;
                 $field.val( fileResource.id );