@@ -74,16 +74,6 @@ var profiles = (function ($, undefined) {
7474 $ ( file_input ) . siblings ( '.invalid-feedback' ) . removeClass ( 'd-block' ) ;
7575 } ;
7676
77- /**
78- * Submits img update
79- *
80- * @param {Event } event the triggered event
81- */
82- const submit_img_update = function ( event ) {
83- const file_input = event . target ;
84- $ ( file_input ) . closest ( 'form' ) . submit ( ) ;
85- } ;
86-
8777 /**
8878 * Reindex numbers in field ids, names, and labels to match sort order,
8979 * e.g. if the first item's name is "thing[3]", rename it to "thing[0]"
@@ -557,7 +547,6 @@ var profiles = (function ($, undefined) {
557547 deobfuscate_mail_links : deobfuscate_mail_links ,
558548 on_list_updated : on_list_updated ,
559549 preview_selected_image : preview_selected_image ,
560- submit_img_update : submit_img_update ,
561550 replace_icon : replace_icon ,
562551 registerTagEditors : registerTagEditors ,
563552 registerProfilePickers : registerProfilePickers ,
@@ -582,7 +571,6 @@ $(function() {
582571 //show preview of uploaded image
583572 $ ( 'input[type="file"]' ) . on ( 'change' , function ( e ) {
584573 profiles . preview_selected_image ( e ) ;
585- profiles . submit_img_update ( e ) ;
586574 } ) ;
587575
588576 // enable drag and drop sorting for items with sortable class
0 commit comments