From: hickert Date: Mon, 3 Dec 2007 07:59:07 +0000 (+0000) Subject: Enabled JS warning for ServerService. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2816fca5ba15b11353a0787d5fc7e8fc30fc8b86;p=gosa.git Enabled JS warning for ServerService. - If we try to leave the dialog without saving git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7971 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/ihtml/themes/default/MultiSelectWindow.tpl b/ihtml/themes/default/MultiSelectWindow.tpl index 2e2d19e79..e7ceae46b 100644 --- a/ihtml/themes/default/MultiSelectWindow.tpl +++ b/ihtml/themes/default/MultiSelectWindow.tpl @@ -133,7 +133,8 @@

{/if} - - +{if $IgnoreAccount} +{/if} + diff --git a/include/class_MultiSelectWindow.inc b/include/class_MultiSelectWindow.inc index 15284030d..f2be83034 100644 --- a/include/class_MultiSelectWindow.inc +++ b/include/class_MultiSelectWindow.inc @@ -38,6 +38,8 @@ class MultiSelectWindow{ var $SaveAdditionalVars = array(); // Additional Post vars to store var $module= ""; + var $IgnoreAccount = TRUE; + function ClearElementsList() { $this->array_Elements = array(); @@ -307,6 +309,11 @@ class MultiSelectWindow{ return(""); } + function EnableJSLeaveMsg($ignore = TRUE) + { + $this->IgnoreAccount = !$ignore; + } + /* Draw the list with all list elements and filters */ function Draw() { @@ -408,6 +415,7 @@ class MultiSelectWindow{ $smarty->assign("Summary" , $this->string_Summary); $smarty->assign("Title" , $this->string_Title); $smarty->assign("Information" , $this->string_Information); + $smarty->assign("IgnoreAccount" , $this->IgnoreAccount); /* Check for exeeded sizelimit */ $smarty->assign("hint" , print_sizelimit_warning()); diff --git a/plugins/admin/systems/class_divListSystemService.inc b/plugins/admin/systems/class_divListSystemService.inc index 15344f3b3..ca31601ba 100644 --- a/plugins/admin/systems/class_divListSystemService.inc +++ b/plugins/admin/systems/class_divListSystemService.inc @@ -12,6 +12,7 @@ class divListSystemService extends MultiSelectWindow $this->parent = $parent; $this->ui = get_userinfo(); + $this->EnableJSLeaveMsg(TRUE); /* Set list strings */ $this->SetTitle(_("Installed services"));