1 parent
6bcb3c9868
commit
84d80a454f
6 files changed
+7
-1
No files matched your search
@@ -1509,6 +1509,7 @@
|
||||
},
|
||||
record_modified: function() {
|
||||
this.activate_save();
|
||||
this.info_bar.refresh();
|
||||
},
|
||||
record_saved: function() {
|
||||
this.activate_save();
|
||||
|
||||
@@ -409,6 +409,7 @@
|
||||
},
|
||||
record_modified: function() {
|
||||
this.activate_save();
|
||||
this.info_bar.refresh();
|
||||
},
|
||||
activate_save: function() {
|
||||
if (this.but_ok.hasClass('disabled') && this.screen.modified()) {
|
||||
|
||||
+2
-1
@@ -162,8 +162,9 @@
|
||||
this.states[definition.state] = button;
|
||||
return button;
|
||||
},
|
||||
record_message: function() {
|
||||
record_modified: function() {
|
||||
this.update_buttons();
|
||||
this.info_bar.refresh();
|
||||
},
|
||||
update_buttons: function() {
|
||||
var record = this.screen.current_record;
|
||||
|
||||
@@ -639,6 +639,7 @@ class Form(TabContent):
|
||||
if self.widget_get().props.window:
|
||||
self.activate_save()
|
||||
GLib.idle_add(_record_modified)
|
||||
self.info_bar_refresh()
|
||||
|
||||
def record_saved(self):
|
||||
self.activate_save()
|
||||
|
||||
@@ -381,6 +381,7 @@ class WinForm(NoModal, InfoBar):
|
||||
|
||||
def record_modified(self, *args):
|
||||
self.activate_save()
|
||||
self.info_bar_refresh()
|
||||
|
||||
def activate_save(self):
|
||||
modified = self.screen.modified()
|
||||
|
||||
@@ -191,6 +191,7 @@ class Wizard(InfoBar):
|
||||
|
||||
def record_modified(self):
|
||||
self.update_buttons()
|
||||
self.info_bar_refresh()
|
||||
|
||||
def update_buttons(self):
|
||||
record = self.screen.current_record
|
||||
|
||||
Reference in new issue
Block a user