in data-storage/src/dataStorage/notesDialogs.ts [40:83]
public initialize() {
super.initialize();
this._$container = $(domElem('div')).addClass('.edit-note-container').appendTo(this._element);
this._noteValidationError = <Notifications.MessageAreaControl>Controls.BaseControl.createIn(Notifications.MessageAreaControl, this._$container, { closeable: false });
var inputId = "noteTitle" + Controls.getId();
$(domElem("label"))
.attr("for", inputId)
.text("Title:")
.appendTo(this._$container);
var titleDiv = $(domElem('div')).appendTo(this._$container);
this._$inputTitle = $(domElem("textarea", "note-title"))
.addClass('requiredInfoLight')
.addClass('textbox')
.attr("type", "text")
.attr("id", inputId)
.appendTo(titleDiv);
this._$inputTitle.select();
inputId = "noteUserOnly" + Controls.getId();
$(domElem("label"))
.attr("for", inputId)
.text("User-Only")
.appendTo(this._$container);
var userOnlyDiv = $(domElem('div')).appendTo(this._$container);
this._$inputUserOnly = $(domElem("input", "note-user-only"))
.attr("type", "checkbox")
.attr("id", inputId)
.appendTo(userOnlyDiv);
if (this._options.note) {
this._$inputTitle.val(this._options.note.title);
this._$inputUserOnly.prop('checked', this._options.note.userOnly);
this._$inputTitle.select();
}
this.updateOkButton(true);
}