var EditLineWidth = function (parent) { this.Parent = parent; this.Dialog = $('#edit-line-width-dialog'); this.Setup = function () { $("#width-sure-btn").on("click", this.OnSureButtonClick.bind(this)); $("#width-cancel-btn").on("click", this.HideDialog.bind(this)); $("#width-close").on("click", this.HideDialog.bind(this)); }; this.Show = function (data) { this.Dialog.show(); $("#width").textbox('setValue', data.Value); }; this.OnSureButtonClick = function () { this.Dialog.hide(); }; this.HideDialog = function () { this.Dialog.hide(); }; };