You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
614 B
22 lines
614 B
var EditDialog = function (parent) {
|
|
this.Parent = parent;
|
|
|
|
this.Setup = function () {
|
|
$("#edit-sure-btn").on("click", this.OnSureButtonClick.bind(this));
|
|
$("#edit-cancel-btn").on("click", this.HideDialog.bind(this));
|
|
$("#edit-close").on("click", this.HideDialog.bind(this));
|
|
};
|
|
|
|
this.Show = function (data) {
|
|
$('#edit-dialog').show();
|
|
$("#username").textbox('setValue', data.Name);
|
|
};
|
|
|
|
this.OnSureButtonClick = function () {
|
|
$('#edit-dialog').hide();
|
|
};
|
|
|
|
this.HideDialog = function () {
|
|
$('#edit-dialog').hide();
|
|
};
|
|
};
|