Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updates select.

  • Loading branch information...
commit da297f03f7695ad52aee362f78473cc6c6b4183d 1 parent a62d931
@lrsjng authored
View
17 src/_h5ai/client/css/inc/view.less
@@ -11,20 +11,21 @@
#selector {
position: absolute;
- left: 8px;
- top: 8px;
- width: 16px;
- height: 16px;
+ left: 0;
+ top: 0;
+ margin-top: -3px;
+ margin-left: -3px;
background-color: #fff;
border: 1px solid #555;
- border-radius: 100px;
- opacity: 0.7;
+ border-radius: 3px;
+ opacity: 0.6;
cursor: pointer;
+ .transition(all 0.2s ease-in-out);
.on-selected, .on-not-selected {
display: block;
- width: 16px;
- height: 16px;
+ width: 24px;
+ height: 24px;
}
&:hover {
View
8 src/_h5ai/client/js/inc/ext/select.js
@@ -117,6 +117,8 @@ modulejs.define('ext/select', ['_', '$', 'core/settings', 'core/resource', 'core
item.$view.find('a')
.on('mouseenter', function () {
+ var $icon = item.$view.find('.icon');
+
$('#selector').remove();
$('<div id="selector">' +
'<img src="' + resource.image('select') + '" class="on-selected" alt="selected" />' +
@@ -126,7 +128,6 @@ modulejs.define('ext/select', ['_', '$', 'core/settings', 'core/resource', 'core
event.stopImmediatePropagation();
event.preventDefault();
- console.log('icon', event);
item.$view.toggleClass('selected');
publish();
@@ -135,6 +136,7 @@ modulejs.define('ext/select', ['_', '$', 'core/settings', 'core/resource', 'core
})
.on('mouseleave', function () {
+ item.$view.find('a').removeClass('hover');
$('#selector').remove();
});
}
@@ -142,7 +144,7 @@ modulejs.define('ext/select', ['_', '$', 'core/settings', 'core/resource', 'core
onLocationChanged = function (item) {
- // _.each(item.content, initItem);
+ _.each(item.content, initItem);
publish();
},
@@ -150,7 +152,7 @@ modulejs.define('ext/select', ['_', '$', 'core/settings', 'core/resource', 'core
var selectionChanged = false;
- // _.each(added, initItem);
+ _.each(added, initItem);
_.each(removed, function (item) {
if (item.$view && item.$view.hasClass('selected')) {
View
2  src/_h5ai/server/php/inc/Archive.php
@@ -113,7 +113,7 @@ private function php_tar_header($filename, $size, $mtime, $type) {
. str_repeat("\0", 100) // linkname [100]
. "ustar\0" // magic [6]
. "00" // version [2]
- . str_repeat("\0", 80) // uname, gname, defmajor, devminor [32 + 32 + 8 + 8] ?92?
+ . str_repeat("\0", 80) // uname, gname, defmajor, devminor [32 + 32 + 8 + 8]
. str_pad($prefix, 155, "\0") // filename [155]
. str_repeat("\0", 12); // fill [12]
assert(strlen($header) === 512);
Please sign in to comment.
Something went wrong with that request. Please try again.