Skip to content

Commit f2facff

Browse files
committed
Refresh icon now using DIV & CSS spritesheet
Also has title now like other files & icons Files/folders now now use file-folder-icons.png for icons
1 parent ef55c48 commit f2facff

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

files.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</head>
1010

1111
<body onLoad="top.ICEcoder.fileManager()" onDblClick="top.ICEcoder.openFile()" onKeyDown="return top.ICEcoder.interceptKeys('files', event);" onKeyUp="top.ICEcoder.resetKeys(event);">
12-
<div class="refresh" onClick="top.ICEcoder.refreshFileManager()"><img src="proxy.php?url=https%3A%2F%2Fgithub.com%2Fimages%2F%3C%2Fspan%3Erefresh%3Cspan+class%3D"x x-first x-last">.png"></div>
12+
<div title="Refresh" onClick="top.ICEcoder.refreshFileManager()" class="refresh"></div>
1313

1414
<?php
1515
$ICEcoder["restrictedFiles"] = $_SESSION['restrictedFiles'];
@@ -142,7 +142,7 @@ public function getIterator() {
142142
$varOutput .= $fileBytes ? $fileBytes : "0";
143143
// Output the JS vars
144144
echo $varOutput;
145-
echo ";\n</script>\n";
145+
echo ";\n</script>";
146146
?>
147147

148148
<iframe name="fileControl" style="display: none"></iframe>

lib/files.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ table, caption, tbody, tfoot, thead, tr, th, td {
1919

2020
body {margin: 0; overflow: auto}
2121

22-
.refresh {position: fixed; right: 0; margin-right: 15px; cursor: pointer}
22+
.refresh {position: fixed; display: inline-block; width: 14px; height: 14px; background: url('../images/file-manager-icons.png') -100px -16px no-repeat; right: 0; margin-right: 15px; cursor: pointer}
2323

2424
.fileManager {
2525
margin: 15px 0 15px 22px;
@@ -36,7 +36,7 @@ body {margin: 0; overflow: auto}
3636

3737
/* Default file */
3838
.fileManager LI.pft-directory:before, .fileManager LI.pft-file:before {
39-
position: absolute; display: block; width: 16px; height: 16px; content: ""; margin-top: -2px; margin-left: -23px; background:url(../images/file-manager-icons.png) no-repeat 0 0;
39+
position: absolute; display: block; width: 16px; height: 16px; content: ""; margin-top: -2px; margin-left: -23px; background:url(../images/file-folder-icons.png) no-repeat 0 0;
4040
}
4141
.fileManager LI.dirOpen:before {background-position: -16px 0}
4242

0 commit comments

Comments
 (0)