Skip to content
Snippets Groups Projects
Commit 4928b6eb authored by Kate Arzamastseva's avatar Kate Arzamastseva
Browse files

mediamanager resizable

parent e1dc10a4
No related branches found
No related tags found
No related merge requests found
......@@ -354,14 +354,43 @@ var dw_mediamanager = {
DOKU_BASE + 'lib/exe/ajax.php',
params,
function (data) {
jQuery('.ui-resizable').each(function(){
jQuery(this).resizable('destroy');
});
$content.html(data);
dw_mediamanager.prepare_content($content);
dw_mediamanager.updatehide();
dw_mediamanager.update_resizable(0);
},
'html'
);
},
update_resizable: function (count_width) {
jQuery(".layout").resizable({ handles: 'e' });
jQuery(".layout").bind("resize", function(event, ui) {
var w = 0;
jQuery(".layout").each(function() {
w += jQuery(this).width();
});
jQuery('#id-mediamanager-layout').width(w+30);
});
var w = 0;
jQuery(".layout").each(function() {
if (count_width) jQuery(this).width(jQuery(this).width());
w += jQuery(this).width();
});
jQuery('#id-mediamanager-layout').width(w+30);
var windowHeight = jQuery(window).height();
var height = windowHeight - 300;
jQuery('.scroll-container').each(function (i) {
jQuery(this).height(height);
});
},
prepare_content: function ($content) {
// hide syntax example
$content.find('div.example:visible').hide();
......@@ -642,4 +671,8 @@ function hasFlash(version){
return ver >= version;
}
jQuery(document).ready(function() {
dw_mediamanager.update_resizable(1);
});
jQuery(dw_mediamanager.init);
.mediamanager {
width: 100%;
overflow-y: auto;
overflow-x: auto;
}
.mediamanager .mediamanager-slider {
width: auto;
}
.mediamanager .mediamanager-slider .layout {
float: left;
margin-left: 5px;
margin-right: 5px;
float: left;
}
.mediamanager .scroll-container {
/*height: 0px;*/
overflow-y: auto;
overflow-x: hidden;
padding: 0;
......@@ -32,17 +31,17 @@
.mediamanager-link-thumbnails {
background: url('../../images/icon-thumb.png') 0 -4px no-repeat;
padding-left: 30px;
display: block;
float: left;
display: inline-block;
width: 0;
overflow: hidden;
margin-left: 10px;
}
.mediamanager-link-list {
background: url('../../images/icon-list.png') 0 -4px no-repeat;
padding-left: 30px;
display: block;
float: left;
display: inline-block;
width: 0;
overflow: hidden;
}
......@@ -242,6 +241,10 @@ form.meta textarea.edit {
margin-bottom: 5px;
}
.ui-resizable-e:hover {
background-color: #dadada;
}
.idx .selected {
color: red !important;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment