[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [13812] property - more on sessions
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [13812] property - more on sessions |
Date: |
Mon, 31 Aug 2015 09:44:25 +0000 |
Revision: 13812
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13812
Author: sigurdne
Date: 2015-08-31 09:44:24 +0000 (Mon, 31 Aug 2015)
Log Message:
-----------
property - more on sessions
Modified Paths:
--------------
trunk/property/inc/class.uiproject.inc.php
trunk/property/templates/base/project.xsl
Modified: trunk/property/inc/class.uiproject.inc.php
===================================================================
--- trunk/property/inc/class.uiproject.inc.php 2015-08-30 12:06:15 UTC (rev
13811)
+++ trunk/property/inc/class.uiproject.inc.php 2015-08-31 09:44:24 UTC (rev
13812)
@@ -1174,17 +1174,13 @@
);
}
-
- $save='';
- if (isset($values['save']))
+ if ( $save= phpgw::get_var('save', 'bool'))
{
if($GLOBALS['phpgw']->session->is_repost())
{
//
$receipt['error'][]=array('msg'=>lang('Hmm... looks like a repost!'));
}
- $save=true;
-
if(isset($config->config_data['invoice_acl']) &&
$config->config_data['invoice_acl'] == 'dimb')
{
if(!$this->acl_manage)
Modified: trunk/property/templates/base/project.xsl
===================================================================
--- trunk/property/templates/base/project.xsl 2015-08-30 12:06:15 UTC (rev
13811)
+++ trunk/property/templates/base/project.xsl 2015-08-31 09:44:24 UTC (rev
13812)
@@ -49,7 +49,7 @@
}
</script>
<script type="text/javascript">
- $(document).ready(function(){
+ $(document).ready(function(){
$('form[name=form]').submit(function(e) {
e.preventDefault();
@@ -70,6 +70,7 @@
}
else
{
+
document.getElementsByName("save")[0].value = 1;
document.form.submit();
}
}
@@ -866,6 +867,7 @@
<xsl:variable name="lang_save">
<xsl:value-of select="lang_save"/>
</xsl:variable>
+ <input type="hidden" name='save' value=""/>
<input type="submit" name="values[save]"
value="{$lang_save}" onMouseout="window.status='';return true;">
<xsl:attribute name="title">
<xsl:value-of
select="lang_save_statustext"/>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [13812] property - more on sessions,
Sigurd Nes <=