[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [8284] property: notifier
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [8284] property: notifier |
Date: |
Tue, 13 Dec 2011 14:18:32 +0000 |
Revision: 8284
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8284
Author: sigurdne
Date: 2011-12-13 14:18:32 +0000 (Tue, 13 Dec 2011)
Log Message:
-----------
property: notifier
Modified Paths:
--------------
trunk/property/inc/class.uiproject.inc.php
trunk/property/js/yahoo/lookup.vendor.index.js
trunk/property/js/yahoo/project.edit.js
trunk/property/js/yahoo/tts.view.js
trunk/property/templates/base/project.xsl
Modified: trunk/property/inc/class.uiproject.inc.php
===================================================================
--- trunk/property/inc/class.uiproject.inc.php 2011-12-13 10:00:58 UTC (rev
8283)
+++ trunk/property/inc/class.uiproject.inc.php 2011-12-13 14:18:32 UTC (rev
8284)
@@ -944,6 +944,8 @@
$values['contact_id'] =
phpgw::get_var('contact', 'int', 'POST');
$auto_create = false;
+ $values['notify_contact_id'] =
phpgw::get_var('notify_contact_id', 'int', 'POST');
+
$datatable = array();
/*$datatable['config']['base_java_url'] =
"menuaction:'property.uiproject.edit',"
Modified: trunk/property/js/yahoo/lookup.vendor.index.js
===================================================================
--- trunk/property/js/yahoo/lookup.vendor.index.js 2011-12-13 10:00:58 UTC
(rev 8283)
+++ trunk/property/js/yahoo/lookup.vendor.index.js 2011-12-13 14:18:32 UTC
(rev 8284)
@@ -1,7 +1,12 @@
//--------------------------------------------------------
// Declaration of lookup.vendor.index vars
//--------------------------------------------------------
+ this.myParticularRenderEvent = function()
+ {
+ }
+ var toolTips = [{}]
+
//define SelectButton
var oMenuButton_0;
var selectsButtons = [
@@ -30,13 +35,13 @@
if(flag_particular_setting=='init')
{
//category
- eval("var path_values = "+base_java_url+"");
+ eval("var path_values = "+base_java_url+"");
index =
locate_in_array_options(0,"value",path_values.cat_id);
- if(index)
- {
- oMenuButton_0.set("label", ("<em>" +
array_options[0][index][1] + "</em>"));
+ if(index)
+ {
+ oMenuButton_0.set("label", ("<em>" +
array_options[0][index][1] + "</em>"));
}
-
+
//focus initial
oMenuButton_0.focus();
}
Modified: trunk/property/js/yahoo/project.edit.js
===================================================================
--- trunk/property/js/yahoo/project.edit.js 2011-12-13 10:00:58 UTC (rev
8283)
+++ trunk/property/js/yahoo/project.edit.js 2011-12-13 14:18:32 UTC (rev
8284)
@@ -104,6 +104,48 @@
/********************************************************************************/
+ this.notify_contact_lookup = function()
+ {
+ //self.name ="first_Window";
+ var oArgs =
{menuaction:'property.uilookup.addressbook',column:'notify_contact'};
+ var strURL = phpGWLink('index.php', oArgs);
+
Window1=window.open(strURL,"Search","left=50,top=100,width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
+ }
+
+
+
+ this.refresh_notify_contact=function()
+ {
+ if(document.getElementById('notify_contact').value)
+ {
+ base_java_url['notify_contact'] =
document.getElementById('notify_contact').value;
+ }
+
+ if(document.getElementById('notify_contact').value !=
notify_contact)
+ {
+ base_java_url['action'] = 'refresh_notify_contact';
+alert('refresh_notify_contact');
+// execute_async(myDataTable_3);
+ notify_contact =
document.getElementById('notify_contact').value;
+ }
+ }
+
+
+ this.onDOMAttrModified = function(e)
+ {
+alert('refresh_notify_contact');
+ var attr = e.attrName || e.propertyName
+ var target = e.target || e.srcElement;
+ if (attr.toLowerCase() == 'notify_contact')
+ {
+
+ refresh_notify_contact();
+ }
+ }
+
+
+
+
YAHOO.util.Event.addListener(window, "load", function()
{
loader = new YAHOO.util.YUILoader();
@@ -117,5 +159,20 @@
loader.insert();
});
+YAHOO.util.Event.addListener(window, "load", function()
+{
+ d = document.getElementById('notify_contact');
+ if(d)
+ {
+ if (d.attachEvent)
+ {
+ d.attachEvent('onpropertychange', onDOMAttrModified,
false);
+ }
+ else
+ {
+ d.addEventListener('DOMAttrModified',
onDOMAttrModified, false);
+ }
+ }
+});
Modified: trunk/property/js/yahoo/tts.view.js
===================================================================
--- trunk/property/js/yahoo/tts.view.js 2011-12-13 10:00:58 UTC (rev 8283)
+++ trunk/property/js/yahoo/tts.view.js 2011-12-13 14:18:32 UTC (rev 8284)
@@ -179,14 +179,14 @@
d = document.getElementById('vendor_id');
if(d)
{
- if (d.attachEvent)
- {
- d.attachEvent('onpropertychange', onDOMAttrModified, false);
+ if (d.attachEvent)
+ {
+ d.attachEvent('onpropertychange', onDOMAttrModified,
false);
+ }
+ else
+ {
+ d.addEventListener('DOMAttrModified',
onDOMAttrModified, false);
+ }
}
- else
- {
- d.addEventListener('DOMAttrModified', onDOMAttrModified, false);
- }
- }
});
Modified: trunk/property/templates/base/project.xsl
===================================================================
--- trunk/property/templates/base/project.xsl 2011-12-13 10:00:58 UTC (rev
8283)
+++ trunk/property/templates/base/project.xsl 2011-12-13 14:18:32 UTC (rev
8284)
@@ -595,9 +595,25 @@
<xsl:when test="suppresscoordination =''">
<div id="coordination">
+ <script type="text/javascript">
+ </script>
+ <xsl:variable name="lang_contact_statustext"><xsl:value-of
select="php:function('lang', 'click this link to select')" /></xsl:variable>
<table cellpadding="2" cellspacing="2" width="80%"
align="center">
<tr>
<td valign="top">
+ <a
href="javascript:notify_contact_lookup()" title="{$lang_contact_statustext}">
+ <xsl:value-of
select="php:function('lang', 'contact')" />
+ </a>
+ </td>
+ <td><table><tr><td>
+ <input size="5" type="text" id
= "notify_contact" name="notify_contact" value="0"
title="{$lang_contact_statustext}">
+ </input>
+ <input size="30" type="text"
name="notify_contact_name" value="" onClick="notify_contact_lookup();" readonly
= 'readonly' title="{$lang_contact_statustext}"/>
+ </td></tr></table></td>
+ </tr>
+
+ <tr>
+ <td valign="top">
<xsl:value-of
select="lang_branch"/>
</td>
<td>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [8284] property: notifier,
Sigurd Nes <=