[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [7450] frontend: more on entity
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [7450] frontend: more on entity |
Date: |
Wed, 29 Jun 2011 08:32:33 +0000 |
Revision: 7450
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7450
Author: sigurdne
Date: 2011-06-29 08:32:32 +0000 (Wed, 29 Jun 2011)
Log Message:
-----------
frontend: more on entity
Modified Paths:
--------------
trunk/frontend/js/yahoo/entity.list.js
Added Paths:
-----------
trunk/frontend/js/yahoo/entity.view.js
Modified: trunk/frontend/js/yahoo/entity.list.js
===================================================================
--- trunk/frontend/js/yahoo/entity.list.js 2011-06-29 06:55:29 UTC (rev
7449)
+++ trunk/frontend/js/yahoo/entity.list.js 2011-06-29 08:32:32 UTC (rev
7450)
@@ -45,42 +45,7 @@
{
if(flag_particular_setting=='init')
{
- //category
-/*
- index =
locate_in_array_options(0,"value",path_values.cat_id);
- if(index)
- {
- oMenuButton_0.set("label", ("<em>" +
array_options[0][index][1] + "</em>"));
- }
-*/
- //district
- index =
locate_in_array_options(1,"value",path_values.district_id);
- if(index)
- {
- oMenuButton_1.set("label", ("<em>" +
array_options[1][index][1] + "</em>"));
- }
- //status
- index =
locate_in_array_options(2,"value",path_values.status);
- if(index)
- {
- oMenuButton_2.set("label", ("<em>" +
array_options[2][index][1] + "</em>"));
- }
-
- //filter
- index =
locate_in_array_options(3,"value",path_values.filter);
- if(index)
- {
- oMenuButton_3.set("label", ("<em>" +
array_options[3][index][1] + "</em>"));
- }
-
- //district
- index =
locate_in_array_options(4,"value",path_values.criteria_id);
- if(index)
- {
- oMenuButton_4.set("label", ("<em>" +
array_options[4][index][1] + "</em>"));
- }
-
//eliminate "no category" option because is necesary
have a category in the PHP query
// delete oMenuButton_0.getMenu().itemData[0];
//correcting it. now look for value
Added: trunk/frontend/js/yahoo/entity.view.js
===================================================================
--- trunk/frontend/js/yahoo/entity.view.js (rev 0)
+++ trunk/frontend/js/yahoo/entity.view.js 2011-06-29 08:32:32 UTC (rev
7450)
@@ -0,0 +1,41 @@
+var myDataSource, myDataTable, myContextMenu;
+var myPaginator_0, myDataTable_0
+
+
+/********************************************************************************/
+var FormatterCenter = function(elCell, oRecord, oColumn, oData)
+{
+ elCell.innerHTML = "<center>"+oData+"</center>";
+}
+
+/********************************************************************************/
+
+ this.myParticularRenderEvent = function()
+ {
+ }
+
+
+ var show_picture = function(elCell, oRecord, oColumn, oData)
+ {
+ if(oRecord.getData('img_id'))
+ {
+ var oArgs = {menuaction:'property.uigallery.view_file',
file:oRecord.getData('directory') + '/' + oRecord.getData('file_name')};
+ var sUrl = phpGWLink('index.php', oArgs);
+ elCell.innerHTML = "<a href=\""+sUrl+"\"
title=\""+oRecord.getData('file_name')+"\" id=\""+oRecord.getData('img_id')+"\"
rel=\"colorbox\" target=\"_blank\"><img src=\""+sUrl+"&thumb=1\"
alt=\""+oRecord.getData('file_name')+"\" /></a>";
+ }
+ }
+
+
+YAHOO.util.Event.addListener(window, "load", function()
+ {
+ var loader = new YAHOO.util.YUILoader();
+ loader.addModule({
+ name: "anyone",
+ type: "js",
+ fullpath: property_js
+ });
+
+ loader.require("anyone");
+ loader.insert();
+ });
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [7450] frontend: more on entity,
Sigurd Nes <=