Skip to content

Commit

Permalink
issue #45 browser testing
Browse files Browse the repository at this point in the history
  • Loading branch information
akate committed Aug 7, 2011
1 parent c73047a commit f517998
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
6 changes: 3 additions & 3 deletions inc/media.php
Expand Up @@ -1422,9 +1422,9 @@ function media_printfile_thumbs($item,$auth,$jump=false){

} else {
echo '<a name="d_:'.$item['id'].'" class="image" title="'.$item['id'].'" href="'.
media_managerURL(array('image' => hsc($item['id']))).'"><div>';
media_managerURL(array('image' => hsc($item['id']))).'"><span>';
echo media_printicon($item['id']);
echo '</div></a>';
echo '</span></a>';
}
//echo '<input type=checkbox />';
echo '<a href="'.media_managerURL(array('image' => hsc($item['id']))).'" name=
Expand Down Expand Up @@ -1482,7 +1482,7 @@ function media_printimgdetail($item, $fullscreen=false){
if ($fullscreen) {
echo '<a name="d_:'.$item['id'].'" class="image'.$index.'" title="'.$item['id'].'" href="'.
media_managerURL(array('image' => hsc($item['id']))).'">';
echo '<div><img src="'.$src.'" '.$att.' /></div>';
echo '<span><img src="'.$src.'" '.$att.' /></span>';
echo '</a>';
}
}
Expand Down
6 changes: 6 additions & 0 deletions lib/scripts/media.js
Expand Up @@ -546,6 +546,12 @@ var dw_mediamanager = {
$select.append(new Option(LANG.media_diff_portions, "portions"));
$label.append($select);
$form.append($label);

// for IE
var select = document.getElementById('mediamanager__difftype');
select.options[0].text = LANG.media_diff_both;
select.options[1].text = LANG.media_diff_opacity;
select.options[2].text = LANG.media_diff_portions;
},

/**
Expand Down
19 changes: 14 additions & 5 deletions lib/tpl/default/mediamanager.css
Expand Up @@ -124,6 +124,12 @@
float: right;
}

* html #mediamanager__sort,
*+html #mediamanager__sort {
position: relative;
margin-top: -18px;
}

/* File list */

#mediamanager__file_list {
Expand Down Expand Up @@ -159,7 +165,6 @@

*+html .mediamanager-thumbs li {
display: inline;
height: 130px;
}

.mediamanager-thumbs li .image,
Expand All @@ -174,8 +179,8 @@
display: none;
}

.mediamanager-thumbs li .image div,
.mediamanager-thumbs li .image0 div {
.mediamanager-thumbs li .image span,
.mediamanager-thumbs li .image0 span {
vertical-align: middle;
display: table-cell;
width: 100px;
Expand All @@ -188,6 +193,7 @@
.mediamanager-thumbs li .date {
display: block;
overflow: hidden;
width: 90px;
white-space: nowrap;
}

Expand Down Expand Up @@ -257,8 +263,8 @@
max-height: 16px;
}

.mediamanager-list li .image div,
.mediamanager-list li .image1 div {
.mediamanager-list li .image span,
.mediamanager-list li .image1 span {
vertical-align: middle;
text-align: center;
display: table-cell;
Expand Down Expand Up @@ -348,6 +354,9 @@ form.meta textarea.edit {
* html #mediamanager__diff_table li {
display: inline;
}
*+html #mediamanager__diff_table li {
display: inline;
}

/* Image diff */

Expand Down

0 comments on commit f517998

Please sign in to comment.