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.
 
 
 
 

40 lines
964 B

var AddDialog = function (parent) {
this.Parent = parent;
this.Setup = function () {
$("#sure-btn").on("click", this.OnSureButtonClick.bind(this));
$("#cancel-btn").on("click", this.HideDialog.bind(this));
$("#close").on("click", this.HideDialog.bind(this));
};
this.Show = function () {
$('#add-dialog').show();
};
this.OnSureButtonClick = function () {
this.HideDialog();
this.AddOrg();
};
this.AddOrg = function () {
$.ajax({
type: "POST",
dataType: 'text',
url: '/OrgManagement/Add',
data: {
},
success: function () {
this.Parent.ReLoadTableData();
}.bind(this)
});
};
this.HideDialog = function () {
$('#add-dialog').hide();
};
this.clearInput = function () {
$("#name").textbox('setValue', '');
};
};