37 lines
543 B
JavaScript
37 lines
543 B
JavaScript
|
|
import button from '/elements/button.js';
|
|
|
|
import tools from '/unify/tools.js';
|
|
|
|
|
|
export default class saveEditButton extends button {
|
|
|
|
text = "Save Message";
|
|
|
|
display = "none";
|
|
|
|
userContract;
|
|
|
|
|
|
async click( event ){
|
|
|
|
var result = await this.socketManager.get( "table", "save", this, "sign" );
|
|
|
|
this.parent.id = false;
|
|
|
|
this.hide();
|
|
|
|
this.parent._information._editButton.show();
|
|
|
|
this.parent.body.useCustomElement = false;
|
|
|
|
//this.parent.background = "#cdf0ce";
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|