refactored

This commit is contained in:
coderaiser 2013-01-24 09:27:12 -05:00
parent f217e1c50a
commit 1f9aaac68d
5 changed files with 24 additions and 53 deletions

View file

@ -108,6 +108,8 @@ with clicks on files.
* Changed icons font from foundicons to fonteollo
* Removed Octicons font.
2012.12.12, Version 0.1.8

View file

@ -13,16 +13,10 @@
/* http://fontello.com/ */
@font-face {
font-family: 'Fontello';
font-style: normal;
src: url("/font/fontello.eot");
src: url("/font/fontello.eot?#iefix") format('embedded-opentype'), url("/font/fontello.woff") format('woff'), url("/font/fontello.ttf") format('truetype'), url("/font/fontello.svg#cloudcmd") format('svg');
font-weight: normal;
src: url('/font/fontello.woff') format('woff');
}
@font-face {
font-family: 'Octicons Regular';
font-style: normal;
font-weight: normal;
src: local('Octicons Regular'), url('/font/Octicons.woff') format('woff');
}
@font-face {
@ -37,11 +31,6 @@ body{
background-color:white;
}
.menu{
margin-bottom: 0;
font: 16px 'Octicons Regular';
}
.path-icon{
position: relative;
top: 3px;
@ -148,7 +137,7 @@ body{
* установления курсора
*/
.current-file > .mini-icon{
left: -6px;
left: -6px;
}
/* freeupex */
.directory{
@ -274,26 +263,29 @@ a:hover, a:active {
color:white;
}
/* меняем иконки на шрифтовые*/
.fm-header{
display:none;
}
/* меняем иконки на шрифтовые*/
.mini-icon {
font: 60px 'Octicons Regular';
color: rgb(246, 224, 124);
color: rgba(246, 224, 124, 0.56);
font: 60px 'Fontello';
width: 40%;
height: 0;
margin-left: 0;
float: right;
position: relative;
top: -17px;
color: rgb(246, 224, 124);
color: rgba(246, 224, 124, 0.56);
top: 10px
}
.directory::before{
content: '\f216';
content: '\1f4c1';
}
.text-file::before{
color: rgb(26, 224, 124);
color: rgba(26, 224, 124, 0.56);
content: '\f211';
content: '\1f4c4';
}
.text-file{
background-image:none;

Binary file not shown.

View file

@ -11,17 +11,6 @@
</head>
<body>
<ul class="menu hidden">
<li>
<!-- http://css-tricks.com/examples/IconFont/ -->
<a href=settings onclick="return false;">
<span class="menu_icon settings hidden"></span>
</a>
<a href=refresh onclick="return false;">
<span class="menu_icon refresh" id=refresh></span>
</a>
</li>
</ul>
<div id=fm class=no-js>
</div>
<div id=keyspanel>

View file

@ -603,32 +603,20 @@ CloudCmd._ajaxLoad = function(pFullPath, pOptions){
}
}
DOM.ajax({
DOM.getCurrentFileContent({
url : lFSPath,
error : DOM.Images.showError,
success :function(data, textStatus, jqXHR){
/* если такой папки (или файла) нет
* прячем загрузку и показываем ошибку
*/
if(!jqXHR.responseText.indexOf('Error:'))
return DOM.showError(jqXHR);
CloudCmd._createFileTable(lPanel, data);
success :function(pData){
CloudCmd._createFileTable(lPanel, pData);
CloudCmd._changeLinks(lPanel);
/* Сохраняем структуру каталогов в localStorage,
* если он поддерживаеться браузером
*/
/* переводим таблицу файлов в строку, для
* сохранения в localStorage
*/
var lJSON_s = Util.stringifyJSON(data);
* сохранения в localStorage
*/
var lJSON_s = Util.stringifyJSON(pData);
Util.log(lJSON_s.length);
/* если размер данных не очень бошьой
* сохраняем их в кэше
*/
* сохраняем их в кэше
*/
if(lJSON_s.length < 50000 )
DOM.Cache.set(lPath, lJSON_s);
}