15 lines
379 B
JavaScript
15 lines
379 B
JavaScript
function FillMessage(id, msg) {
|
|
var control = $("#" + id);
|
|
if (control.val() !== "" && msg !== "")
|
|
control.val(control.val() + msg);
|
|
else if (msg !== "")
|
|
control.val(msg);
|
|
control.focus();
|
|
}
|
|
function togglePhrase(id) {
|
|
if ($("#" + id).hasClass("hide"))
|
|
$("#" + id).removeClass("hide");
|
|
else
|
|
$("#" + id).addClass("hide");
|
|
}
|