From d0490d12181c24059cca20b1b8ed1cfd2ada63e3 Mon Sep 17 00:00:00 2001
From: ftimme <ft@falkotimme.com>
Date: Tue, 13 Sep 2011 11:36:47 -0400
Subject: [PATCH] - Changed scrigo.js.php to allow JavaScript inside content loaded through Ajax.

---
 interface/lib/classes/plugin_listview.inc.php |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/interface/lib/classes/plugin_listview.inc.php b/interface/lib/classes/plugin_listview.inc.php
index ee254da..e543e25 100644
--- a/interface/lib/classes/plugin_listview.inc.php
+++ b/interface/lib/classes/plugin_listview.inc.php
@@ -83,6 +83,11 @@
 					$sql_order_by = $this->options["sql_order_by"];
 				}
 				
+				// Loading language field
+                $lng_file = "lib/lang/".$_SESSION["s"]["language"]."_".$app->listform->listDef['name']."_list.lng";
+                include($lng_file);
+                $listTpl->setVar($wb);
+				
 
                 // Get the data
                 $records = $app->db->queryAllRecords("SELECT * FROM ".$app->listform->listDef["table"]." WHERE $sql_where $sql_order_by $limit_sql");
@@ -115,18 +120,13 @@
 
                                 // The variable "id" contains always the index field
                                 $rec["id"] = $rec[$idx_key];
-								$rec["delete_confirmation"] = $app->lng('delete_confirmation');
+								$rec["delete_confirmation"] = $wb['delete_confirmation'];
 
                                 $records_new[] = $rec;
                         }
                 }
 
                 $listTpl->setLoop('records',@$records_new);
-
-                // Loading language field
-                $lng_file = "lib/lang/".$_SESSION["s"]["language"]."_".$app->listform->listDef['name']."_list.lng";
-                include($lng_file);
-                $listTpl->setVar($wb);
 
                 // Setting Returnto information in the session
                 $list_name = $app->listform->listDef["name"];

--
Gitblit v1.9.1