@@ -59,10 +59,8 @@ var DragDropImport = {
5959 *
6060 * @param {string } hash, hash for specific file upload
6161 * @param {number } percent (float), file upload percentage
62- *
63- * @return {void }
6462 */
65- setProgress : function ( hash , percent ) {
63+ setProgress : function ( hash , percent ) : void {
6664 $ ( '.pma_sql_import_status div li[data-hash="' + hash + '"]' )
6765 . children ( 'progress' ) . val ( percent ) ;
6866 } ,
@@ -71,10 +69,8 @@ var DragDropImport = {
7169 *
7270 * @param {object } formData FormData object for a specific file
7371 * @param {string } hash hash of the current file upload
74- *
75- * @return {void }
7672 */
77- sendFileToServer : function ( formData , hash ) {
73+ sendFileToServer : function ( formData , hash ) : void {
7874 var jqXHR = $ . ajax ( {
7975 xhr : function ( ) {
8076 var xhrobj = $ . ajaxSettings . xhr ( ) ;
@@ -145,10 +141,8 @@ var DragDropImport = {
145141 * Triggered when an object is dragged into the PMA UI
146142 *
147143 * @param {MouseEvent } event obj
148- *
149- * @return {void }
150144 */
151- dragEnter : function ( event ) {
145+ dragEnter : function ( event ) : void {
152146 // We don't want to prevent users from using
153147 // browser's default drag-drop feature on some page(s)
154148 if ( $ ( '.noDragDrop' ) . length !== 0 ) {
@@ -186,10 +180,8 @@ var DragDropImport = {
186180 * Triggered when dragged file is being dragged over PMA UI
187181 *
188182 * @param {MouseEvent } event obj
189- *
190- * @return {void }
191183 */
192- dragOver : function ( event ) {
184+ dragOver : function ( event ) : void {
193185 // We don't want to prevent users from using
194186 // browser's default drag-drop feature on some page(s)
195187 if ( $ ( '.noDragDrop' ) . length !== 0 ) {
@@ -207,10 +199,8 @@ var DragDropImport = {
207199 * Triggered when dragged objects are left
208200 *
209201 * @param {MouseEvent } event obj
210- *
211- * @return {void }
212202 */
213- dragLeave : function ( event ) {
203+ dragLeave : function ( event ) : void {
214204 // We don't want to prevent users from using
215205 // browser's default drag-drop feature on some page(s)
216206 if ( $ ( '.noDragDrop' ) . length !== 0 ) {
@@ -229,10 +219,8 @@ var DragDropImport = {
229219 * @param {string } hash unique hash for a certain upload
230220 * @param {boolean } aborted true if upload was aborted
231221 * @param {boolean } status status of sql upload, as sent by server
232- *
233- * @return {void }
234222 */
235- importFinished : function ( hash , aborted , status ) {
223+ importFinished : function ( hash , aborted , status ) : void {
236224 $ ( '.pma_sql_import_status div li[data-hash="' + hash + '"]' )
237225 . children ( 'progress' ) . hide ( ) ;
238226 var icon = 'icon ic_s_success' ;
@@ -272,10 +260,8 @@ var DragDropImport = {
272260 * From this function, the AJAX Upload operation is initiated
273261 *
274262 * @param event object
275- *
276- * @return {void }
277263 */
278- drop : function ( event ) {
264+ drop : function ( event ) : void {
279265 // We don't want to prevent users from using
280266 // browser's default drag-drop feature on some page(s)
281267 if ( $ ( '.noDragDrop' ) . length !== 0 ) {
@@ -355,10 +341,7 @@ var DragDropImport = {
355341} ;
356342
357343/**
358- * Called when some user drags, dragover, leave
359- * a file to the PMA UI
360- * @param {object }, Event data
361- * @return {void }
344+ * Called when some user drags, dragover, leave a file to the PMA UI
362345 */
363346$ ( document ) . on ( 'dragenter' , DragDropImport . dragEnter ) ;
364347$ ( document ) . on ( 'dragover' , DragDropImport . dragOver ) ;
0 commit comments