Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add final milkbox version and fixed the directory input size; add rel…

…ease 1.3.6

Signed-off-by: Fabian Vogelsteller <fabian@frozeman.de>
  • Loading branch information...
commit c5ccc4dd6dafe9271a73fe6c608dafa73bc9eba7 1 parent d852dc4
@frozeman frozeman authored
View
2  Assets/Connector/FileManager.php
@@ -155,7 +155,7 @@ protected function onDetail(){
<dt>${height}</dt><dd>' . $size[1] . 'px</dd>
</dl>
<h2>${preview}</h2>
- <a href="'.$url.'" data-milkbox="preview"><img src="' . $this->options['thumbnailPath'] . $this->getThumb($this->normalize($file)).$randomImage.'" class="preview" alt="preview" /></a>
+ <a href="'.$url.'" data-milkbox="preview" title="'.str_replace($_SERVER['DOCUMENT_ROOT'],'',$file).'"><img src="' . $this->options['thumbnailPath'] . $this->getThumb($this->normalize($file)).$randomImage.'" class="preview" alt="preview" /></a>
';
// text preview
}elseif (FileManagerUtility::startsWith($mime, 'text/') || $mime == 'application/x-javascript') {
View
6 Assets/Css/FileManager.css
@@ -439,13 +439,13 @@ div.filemanager a.filemanager-dir-title:hover {
}
div.filemanager input.filemanager-dir {
- margin-top: -5px;
+ margin-top: -4px;
background-color: #fbfbfb;
background-image: none !important;
border: 1px solid #ccc;
width: 70%;
- padding: 2px 5px;
- font-size: 15px;
+ padding: 1px 5px;
+ font-size: 14px;
}
div.filemanager span.filemanager-dir a.icon {
View
9 Assets/js/milkbox/milkbox.js
@@ -50,6 +50,7 @@ this.Milkbox = new Class({
this.activated;
this.busy = false;
this.paused = false;
+ this.closed = true;
this.intId;
this.loadCheckerId;
this.externalGalleries = [];
@@ -523,8 +524,8 @@ this.Milkbox = new Class({
//keyboard next/prev/close
$(window.document).addEvent('keydown',function(e){
- if(this.display.mode == 'single' || this.busy == true || this.closed !== false){ return; }
- e.preventDefault();
+ if(this.display.mode == 'single' || this.busy == true || this.closed){ return; }
+ if(e.key == 'right' || e.key == 'left' || e.key == 'space'){ e.preventDefault(); }
if(e.key == 'right' || e.key == 'space'){ this.navAux(e,'next'); }
else if(e.key == 'left'){ this.navAux(e,'prev'); }
else if(e.key == 'esc'){ this.close(true); }
@@ -642,7 +643,7 @@ var MilkboxDisplay= new Class({
this.mainbox = new Element('div', {
'id':'mbox-mainbox',
'styles': {
- 'position':'absolute',
+ 'position':(this.options.centered) ? 'fixed' : 'absolute',
'overflow':'hidden',
'display':'none',
'z-index':10000,
@@ -1077,5 +1078,5 @@ var MilkboxGallery = new Class({
//Creating Milkbox instance: you can comment this code and instantiate Milkbox somewhere else instead.
window.addEvent('domready', function(){
- milkbox = new Milkbox({ centered:true });
+ milkbox = new Milkbox({ centered:false });
});
View
2  package.yml
@@ -2,4 +2,4 @@ name: MooTools FileManager
author: cpojer
category: Interface
tags: [filemanager, upload, gallery, images, navigation]
-current: 1.3.5
+current: 1.3.6
Please sign in to comment.
Something went wrong with that request. Please try again.