Merge pull request #4193 from owncloud/versions_fix_css

Versions fix css
This commit is contained in:
Morris Jobke 2013-08-17 03:01:24 -07:00
commit 50147bfbd1
2 changed files with 6 additions and 9 deletions

View File

@ -1,3 +1,7 @@
#dropdown.drop-versions {
width:22em;
}
#found_versions li { #found_versions li {
width: 100%; width: 100%;
cursor: default; cursor: default;
@ -39,6 +43,3 @@
float: right; float: right;
} }
.drop-versions #makelink {
float: left;
}

View File

@ -104,9 +104,9 @@ function createVersionsDropdown(filename, files) {
success: function(result) { success: function(result) {
var versions = result.data.versions; var versions = result.data.versions;
if (result.data.endReached === true) { if (result.data.endReached === true) {
document.getElementById("show-more-versions").style.display="none"; $("#show-more-versions").css("display", "none");
} else { } else {
document.getElementById("show-more-versions").style.display="block"; $("#show-more-versions").css("display", "block");
} }
if (versions) { if (versions) {
$.each(versions, function(index, row) { $.each(versions, function(index, row) {
@ -132,8 +132,6 @@ function createVersionsDropdown(filename, files) {
download ='<a href="' + path + "?file=" + files + '&revision=' + revision.version + '">'; download ='<a href="' + path + "?file=" + files + '&revision=' + revision.version + '">';
download+='<img'; download+='<img';
download+=' src="' + OC.imagePath('core', 'actions/download') + '"'; download+=' src="' + OC.imagePath('core', 'actions/download') + '"';
download+=' id="' + revision.version + '"';
download+=' value="' + files + '"';
download+=' name="downloadVersion" />'; download+=' name="downloadVersion" />';
download+=name; download+=name;
download+='</a>'; download+='</a>';
@ -143,8 +141,6 @@ function createVersionsDropdown(filename, files) {
revert+=' value="' + files + '">'; revert+=' value="' + files + '">';
revert+='<img'; revert+='<img';
revert+=' src="' + OC.imagePath('core', 'actions/history') + '"'; revert+=' src="' + OC.imagePath('core', 'actions/history') + '"';
revert+=' id="' + revision.version + '"';
revert+=' value="' + files + '"';
revert+=' name="revertVersion"'; revert+=' name="revertVersion"';
revert+='/>'+t('files_versions', 'Restore')+'</span>'; revert+='/>'+t('files_versions', 'Restore')+'</span>';