Permalink
Browse files

Move ObjById() to util.php so other pages can use it.

  • Loading branch information...
1 parent 0e06a08 commit 4df8859b9cee6bb69d2cb76e4196ce8dbb987e8f @dooglus committed Oct 3, 2011
Showing with 15 additions and 11 deletions.
  1. +0 −11 commission.php
  2. +15 −0 util.php
View
@@ -127,17 +127,6 @@ function active_table_cell_link_for_commission($uid, $txid, $orderid, $sub, $amo
}
?>
-function ObjById(id)
-{
- if (document.getElementById)
- var returnVar = document.getElementById(id);
- else if (document.all)
- var returnVar = document.all[id];
- else if (document.layers)
- var returnVar = document.layers[id];
- return returnVar;
-}
-
function Color(oid, color)
{
var txs = tx[oid];
View
@@ -1,3 +1,18 @@
+<script type="text/javascript">
+
+function ObjById(id)
+{
+ if (document.getElementById)
+ var returnVar = document.getElementById(id);
+ else if (document.all)
+ var returnVar = document.all[id];
+ else if (document.layers)
+ var returnVar = document.layers[id];
+ return returnVar;
+}
+
+</script>
+
<?php
require_once 'db.php';
require_once 'jsonRPCClient.php';

0 comments on commit 4df8859

Please sign in to comment.