|
From: <ken...@us...> - 2009-01-14 19:06:22
|
Revision: 1090
http://andro.svn.sourceforge.net/andro/?rev=1090&view=rev
Author: kendowns
Date: 2009-01-14 19:06:18 +0000 (Wed, 14 Jan 2009)
Log Message:
-----------
X6: Allow calls to conventional pages with pre-filled search criteria
Modified Paths:
--------------
trunk/andro/clib/x6.js
Modified: trunk/andro/clib/x6.js
===================================================================
--- trunk/andro/clib/x6.js 2009-01-14 17:19:22 UTC (rev 1089)
+++ trunk/andro/clib/x6.js 2009-01-14 19:06:18 UTC (rev 1090)
@@ -1392,7 +1392,7 @@
*/
newWindow: function() {
var entireGet = 'index.php?'+this.makeString()+'&x4Return=exit';
- $a.openWindow(entireGet);
+ x6.openWindow(entireGet);
},
/******/
@@ -4326,8 +4326,8 @@
x6.json.addParm('x6action','fetchRow');
x6.json.addParm('x6w_skey',skey);
if(x6.json.execute(true)) {
- x6bb.fwSet('dbRow_'+this.zTable,a.data.row);
- var rowNew = a.data.row;
+ x6bb.fwSet('dbRow_'+this.zTable,x6.data.row);
+ var rowNew = x6.data.row;
}
}
else {
@@ -5704,6 +5704,22 @@
delete json;
x6dialogs.clear();
}
+
+ // Initialization. If we see "search_" inputs that are
+ // not empty, execute the search and pick the first one.
+ if( $(self).find("[id^=search][value!=]").length > 0) {
+ self.fetch();
+ var jqRow = self.jqCurrentRow();
+ if(jqRow.length>0) {
+ var rowId = jqRow[0].id;
+ var aRowId = rowId.split('_');
+ var skey = aRowId.pop();
+ console.log(rowId,aRowId,skey);
+ setTimeout(function() {
+ x6events.fireEvent('reqEditRow_'+table,skey);
+ },900);
+ }
+ }
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|