Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove limit, show all images on sidebar

  • Loading branch information...
commit fdd6be9a82229934354d94f8a43290bbd4abe291 1 parent 2a0a372
René Kersten endorfin authored tuupola committed
Showing with 18 additions and 15 deletions.
  1. +14 −11 assets.css
  2. +4 −4 assets.js
25 assets.css
View
@@ -1,7 +1,7 @@
.pages .page {
- margin-left: 150px;
+ margin-left: 250px;
position: relative;
- right: 150px;
+ right: 250px;
}
/* This would show the sidebar.
@@ -23,24 +23,28 @@
}
div#assets_page {
- width: 150px;
- position: absolute;
+ width: 250px;
+ height: 305px;
+ position: absolute;
+ overflow: auto;
}
#assets_folder {
- width: 150px;
+ width: 250px;
position: absolute;
}
#assets_folder > select {
- width: 150px;
+ width: 250px;
}
#assets_page img,
#assets_list img {
+ display: block;
+ float: left;
border: 1px solid #ccc;
padding: 2px;
- margin: 2px 0px 0px 0px;
+ margin: 3px;
width: 64px;
height: 64px;
}
@@ -51,12 +55,11 @@ div#assets_page {
height: 64px;
}
-#content textarea {
- height: 290px;
-}
-
#assets_tools {
float: right;
}
+#content textarea {
+ height: 292px;
+}
8 assets.js
View
@@ -75,10 +75,10 @@ jQuery(function($) {
.prepend('<div id="assets_folder"><img src="../frog/plugins/assets/images/indicator.gif" /></div>');
var left = $('.page textarea:visible').offset().left + $('.page textarea:visible').outerWidth() + 5;
- var top = $('.page textarea:visible').offset().top - 1 ;
+ var top = $('.page textarea:visible').offset().top - 30 ;
$('#assets_page')
- .load(frog_root + '/admin/?/plugin/assets/latest/8')
+ .load(frog_root + '/admin/?/plugin/assets/latest/0')
.css('top', top)
.css('left', left);
@@ -89,7 +89,7 @@ jQuery(function($) {
.load(frog_root + '/admin/?/plugin/assets/pulldown', function() {
$('select', this).bind('change', function() {
var folder = $(this).val().replace(/\//g, ':');
- $("#assets_page").load(frog_root + '/admin/?/plugin/assets/latest/8/' + folder);
+ $("#assets_page").load(frog_root + '/admin/?/plugin/assets/latest/0/' + folder);
});
})
.css('top', top_2)
@@ -116,4 +116,4 @@ jQuery(function($) {
$(window).trigger('resize');
});
-});
+});
Please sign in to comment.
Something went wrong with that request. Please try again.