diff options
author | Bill Marquette <billm@pfsense.org> | 2005-09-03 17:31:25 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-09-03 17:31:25 +0000 |
commit | 7067dae5358eb87b629938a4740a835cbd7a8202 (patch) | |
tree | 6e2aaaac63f687be36d75df12457094f8771e191 | |
parent | e28f018e6c5d438410883489726aa663f2d79a25 (diff) | |
download | pfsense-7067dae5358eb87b629938a4740a835cbd7a8202.zip pfsense-7067dae5358eb87b629938a4740a835cbd7a8202.tar.gz |
Ticket #454
Export theme to javascript as theme (imaginative, I know)
use path to theme icons for x.gif
-rwxr-xr-x | usr/local/www/head.inc | 1 | ||||
-rwxr-xr-x | usr/local/www/row_helper.js | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/head.inc b/usr/local/www/head.inc index ca98497..9e71869 100755 --- a/usr/local/www/head.inc +++ b/usr/local/www/head.inc @@ -17,6 +17,7 @@ else <link rel="stylesheet" href="/themes/<?php echo $g['theme']; ?>/all.css" media="all" /> <link rel="stylesheet" type="text/css" href="/niftycssprintCode.css" media="print"> <script type="text/javascript" src="/themes/<?php echo $g['theme']; ?>/loader.js"></script> + <script type="text/javascript">var theme = "<?php echo $g['theme']; ?>"</script> <? /* diff --git a/usr/local/www/row_helper.js b/usr/local/www/row_helper.js index d24f0c3..9461067 100755 --- a/usr/local/www/row_helper.js +++ b/usr/local/www/row_helper.js @@ -35,7 +35,7 @@ var addRowTo = (function() { td = d.createElement("td"); td.rowSpan = "1"; - td.innerHTML = '<input type="image" src="/x.gif" onclick="removeRow(this); return false;" value="Delete">'; + td.innerHTML = '<input type="image" src="/themes/' + theme + '/images/icons/icon_x.gif" onclick="removeRow(this); return false;" value="Delete">'; tr.appendChild(td); tbody.appendChild(tr); }); |