First commit
This commit is contained in:
36
application/demo/comment/edit/comment.saveButton.js
Normal file
36
application/demo/comment/edit/comment.saveButton.js
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
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";
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user