fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [7991]


From: Erik Holm-Larsen
Subject: [Fmsystem-commits] [7991]
Date: Wed, 02 Nov 2011 13:33:53 +0000

Revision: 7991
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7991
Author:   erikhl
Date:     2011-11-02 13:33:53 +0000 (Wed, 02 Nov 2011)
Log Message:
-----------


Modified Paths:
--------------
    trunk/rental/inc/class.uiparty.inc.php

Modified: trunk/rental/inc/class.uiparty.inc.php
===================================================================
--- trunk/rental/inc/class.uiparty.inc.php      2011-11-02 11:42:14 UTC (rev 
7990)
+++ trunk/rental/inc/class.uiparty.inc.php      2011-11-02 13:33:53 UTC (rev 
7991)
@@ -413,9 +413,16 @@
                                        $value['actions'][] = 
html_entity_decode(self::link(array('menuaction' => 'rental.uiparty.edit', 'id' 
=> $value['id'])));
                                        $value['labels'][] = lang('edit');
                                        
-                                       if(isset($value['is_inactive']) && 
$value['is_inactive'] == true)
+                                       if(isset($value['party_in_contract']) 
&& $value['party_in_contract'] == false)
                                        {
                                                $value['ajax'][] = true;
+                                               $value['alert'][] = true;
+                                               
+                                               $alertMessage = "Du er i ferd 
med å slette en kontraktspart.\n\n";
+                                               $alertMessage .= "Operasjonen 
kan ikke angres.\n\n";
+                                               $alertMessage .= "Vil du gjøre 
dette?";
+                                               
+                                               $value['alert'][] = 
$alertMessage;
                                                $value['actions'][] = 
html_entity_decode(self::link(array('menuaction' => 
'rental.uiparty.delete_party', 'id' => $value['id'])));
                                                $value['labels'][] = 
lang('delete');
                                        }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]