File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed
Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -191,6 +191,15 @@ $(function() {
191191 $ ( '.stats-auth' ) . show ( ) ;
192192 }
193193 } ) ;
194+
195+ $ ( '#vstobjects' ) . bind ( 'submit' , function ( evt ) {
196+ $ ( 'input[disabled]' ) . each ( function ( i , elm ) {
197+ var copy_elm = $ ( elm ) . clone ( true ) ;
198+ $ ( copy_elm ) . attr ( 'type' , 'hidden' ) ;
199+ $ ( copy_elm ) . removeAttr ( 'disabled' ) ;
200+ $ ( elm ) . after ( copy_elm ) ;
201+ } ) ;
202+ } ) ;
194203} ) ;
195204
196205function WEBrandom ( ) {
@@ -221,12 +230,3 @@ function elementHideShow(elementToHideOrShow){
221230 var el = document . getElementById ( elementToHideOrShow ) ;
222231 el . style . display = el . style . display === 'none' ? 'block' : 'none' ;
223232}
224-
225- $ ( '#vstobjects' ) . bind ( 'submit' , function ( evt ) {
226- $ ( 'input[disabled]' ) . each ( function ( i , elm ) {
227- var copy_elm = $ ( elm ) . clone ( true ) ;
228- $ ( copy_elm ) . attr ( 'type' , 'hidden' ) ;
229- $ ( copy_elm ) . removeAttr ( 'disabled' ) ;
230- $ ( elm ) . after ( copy_elm ) ;
231- } ) ;
232- } ) ;
Original file line number Diff line number Diff line change 1313 }
1414 }
1515 ?>
16- < a href ="# " class ="ui-button " title ="<?=__('Save')?> " onclick ="document.getElementById(' vstobjects').submit(); "> < i class ="fas fa-save status-icon purple "> </ i > < ?=__('Save')?> </ a >
16+ < a href ="# " class ="ui-button " title ="<?=__('Save')?> " onclick ="$('# vstobjects').submit(); "> < i class ="fas fa-save status-icon purple "> </ i > < ?=__('Save')?> </ a >
1717 </ div >
1818 </ div >
1919 </ div >
Original file line number Diff line number Diff line change 1313 }
1414 }
1515 ?>
16- < a href ="# " class ="ui-button " title ="<?=__('Save')?> " onclick ="document.getElementById(' vstobjects').submit(); "> < i class ="fas fa-save status-icon purple "> </ i > < ?=__('Save')?> </ a >
16+ < a href ="# " class ="ui-button " title ="<?=__('Save')?> " onclick ="$('# vstobjects').submit(); "> < i class ="fas fa-save status-icon purple "> </ i > < ?=__('Save')?> </ a >
1717 </ div >
1818 </ div >
1919 </ div >
You can’t perform that action at this time.
0 commit comments