Mercurial > hg > fapweb
changeset 399:23f22fb6f2d8
Rename a function.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 05 Dec 2013 15:51:29 +0200 |
parents | e6223ab525fc |
children | f0a09fbca728 |
files | majax.inc.php |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/majax.inc.php Thu Dec 05 15:36:12 2013 +0200 +++ b/majax.inc.php Thu Dec 05 15:51:29 2013 +0200 @@ -12,7 +12,7 @@ echo "<script type=\"text/javascript\">\n"; ?> -function closeMessageBox(callback, cb_data) +function jsCloseMessageBox(callback, cb_data) { var nitem = document.getElementById("messageBox"); if (nitem && nitem.style.display != "none") @@ -35,7 +35,7 @@ "<input id='msgBoxConfirmClose' type='button' value=' OK '>"+ "</div></div>"; - document.getElementById("msgBoxConfirmClose").onclick = function () { closeMessageBox(0, 0); } + document.getElementById("msgBoxConfirmClose").onclick = function () { jsCloseMessageBox(0, 0); } nitem.style.display = "block"; } @@ -53,8 +53,8 @@ "<input id='msgBoxConfirmOK' type='button' value=' OK '>"+ "</div></div>"; - document.getElementById("msgBoxConfirmCancel").onclick = function () { closeMessageBox(cb_cancel, cb_data); } - document.getElementById("msgBoxConfirmOK").onclick = function () { closeMessageBox(cb_ok, cb_data); } + document.getElementById("msgBoxConfirmCancel").onclick = function () { jsCloseMessageBox(cb_cancel, cb_data); } + document.getElementById("msgBoxConfirmOK").onclick = function () { jsCloseMessageBox(cb_ok, cb_data); } nitem.style.display = "block"; }