File tree Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Original file line number Diff line number Diff line change 971971 } ) ;
972972 } ,
973973 modified_save : function ( ) {
974- < << << << HEAD
975974 return this . screen . save_tree_state ( ) . then ( ( ) => {
976975 this . screen . current_view . set_value ( ) ;
977976 if ( this . screen . modified ( ) ) {
977+ this . show ( ) ;
978978 return Sao . common . sur_3b . run (
979979 Sao . i18n . gettext ( 'This record has been modified\n' +
980980 'do you want to save it?' ) )
986986 var record_id = null ;
987987 if ( this . screen . current_record ) {
988988 record_id = this . screen . current_record . id ;
989- = === ===
990- this . screen . save_tree_state ( ) ;
991- this . screen . current_view . set_value ( ) ;
992- if ( this . screen . modified ( ) ) {
993- this . show ( ) ;
994- return Sao . common . sur_3b . run (
995- Sao . i18n . gettext ( 'This record has been modified\n' +
996- 'do you want to save it?' ) )
997- . then ( result => {
998- switch ( result ) {
999- case 'ok' :
1000- return this . save ( ) ;
1001- case 'ko' :
1002- var record_id = this . screen . current_record . id ;
1003- return this . reload ( false ) . then ( ( ) => {
1004- if ( record_id < 0 ) {
1005- return jQuery . Deferred ( ) . reject ( true ) ;
1006- > >>> >>> d873a9f1ba ( Add tab management menu and shortcuts ( #473 ) )
1007989 }
1008990 return this . reload ( false ) . then ( ( ) => {
1009991 if ( record_id !== null ) {
You can’t perform that action at this time.
0 commit comments