From 64f672994de3f9fdae884f5c7db468d6b5789829 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 27 Oct 2013 16:10:49 +0000 Subject: [PATCH] Bind DLZ --- lam/HISTORY | 1 + lam/templates/lib/500_lam.js | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/lam/HISTORY b/lam/HISTORY index ea223d5c..cb1bc6f3 100644 --- a/lam/HISTORY +++ b/lam/HISTORY @@ -3,6 +3,7 @@ December 2013 4.4 - allow to set a custom label for each account type - Unix: switch also additional membership if primary group is changed (RFE 108) - LAM Pro: + -> Bind DLZ support -> Samba/Shadow: display password change date in self service -> Custom fields: support custom label and icon diff --git a/lam/templates/lib/500_lam.js b/lam/templates/lib/500_lam.js index 2a70289b..f11096d6 100644 --- a/lam/templates/lib/500_lam.js +++ b/lam/templates/lib/500_lam.js @@ -446,6 +446,28 @@ function saveScrollPosition(formName) { }).appendTo(jQuery('#' + formName)); } +/** + * Shows the dialog to create a DNS zone. + * + * @param title dialog title + * @param okText text for Ok button + * @param cancelText text for Cancel button + */ +function bindShowNewZoneDialog(title, okText, cancelText) { + var buttonList = {}; + buttonList[okText] = function() { document.forms["newBindZoneDialogForm"].submit(); }; + buttonList[cancelText] = function() { jQuery(this).dialog("close"); }; + jQuery('#newBindZoneDialog').dialog({ + modal: true, + title: title, + dialogClass: 'defaultBackground', + buttons: buttonList, + width: 'auto' + }); +} + + + jQuery(document).ready( function() { jQuery(document).tooltip({