diff --git a/main/webapp/modules/core/scripts/index/open-project-ui.js b/main/webapp/modules/core/scripts/index/open-project-ui.js index b5686d5d2..a6f9a73a7 100644 --- a/main/webapp/modules/core/scripts/index/open-project-ui.js +++ b/main/webapp/modules/core/scripts/index/open-project-ui.js @@ -138,7 +138,6 @@ Refine.OpenProjectUI.prototype._renderProjects = function(data) { '' + '' + '' + - '' + '' + '' + '' + @@ -183,41 +182,9 @@ Refine.OpenProjectUI.prototype._renderProjects = function(data) { } return false; }).appendTo( - $(tr.insertCell(tr.cells.length)).css('width', '1%') + $(tr.insertCell(tr.cells.length)) ); - var renameLink = $('') - .text($.i18n._('core-index-open')["rename"]) - .addClass("secondary") - .attr("href", "javascript:{}") - .click(function() { - var name = window.prompt($.i18n._('core-index-open')["new-title"], project.name); - if (name === null) { - return; - } - - name = $.trim(name); - if (project.name == name || name.length === 0) { - return; - } - - $.ajax({ - type: "POST", - url: "command/core/rename-project", - data: { "project" : project.id, "name" : name }, - dataType: "json", - success: function (data) { - if (data && typeof data.code != 'undefined' && data.code == "ok") { - nameLink.text(name); - } else { - alert($.i18n._('core-index-open')["warning-rename"]+" " + data.message); - } - } - }); - }).appendTo( - $(tr.insertCell(tr.cells.length)).css('width', '1%') - ); - var editMetadataLink = $('') .text($.i18n._('core-index-open')["edit-meta-data"]) .addClass("secondary") @@ -226,25 +193,24 @@ Refine.OpenProjectUI.prototype._renderProjects = function(data) { new EditMetadataDialog(project, $(this).parent().parent()); }) .appendTo( - $(tr.insertCell(tr.cells.length)).css('width', '3%') + $(tr.insertCell(tr.cells.length)) ); $('
') .html(project.date) .addClass("last-modified") - .appendTo($(tr.insertCell(tr.cells.length)).attr('width', '1%')); + .appendTo($(tr.insertCell(tr.cells.length))); var nameLink = $('') .addClass("project-name") .text(project.name) .attr("href", "project?project=" + project.id) - .appendTo($(tr.insertCell(tr.cells.length)).attr('width', '10%')); + .appendTo($(tr.insertCell(tr.cells.length))); - var appendMetaField = function(data, width) { - width = width || '1%'; + var appendMetaField = function(data) { $('
') .html(data) - .appendTo($(tr.insertCell(tr.cells.length)).attr('width', width)); + .appendTo($(tr.insertCell(tr.cells.length))); }; appendMetaField(project.creator); @@ -269,10 +235,9 @@ Refine.OpenProjectUI.prototype._renderProjects = function(data) { headers : { 0: { sorter: false }, 1: { sorter: false }, - 2: { sorter: false }, - 3: { sorter: "text" } + 2: { sorter: "text" } }, - sortList: [[3,1]], + sortList: [[2,1]], widthFixed: false }); } @@ -310,7 +275,7 @@ Refine.OpenProjectUI.prototype._onClickUploadFileButton = function(evt) { Refine.OpenProjectUI.refreshProject = function(tr, metaData) { var refreshMetaField = function(data, index) { - if (index === 4) { + if (index === 3) { $('a', $('td', tr).eq(index)) .text(data); } else { @@ -319,7 +284,7 @@ Refine.OpenProjectUI.refreshProject = function(tr, metaData) { } }; - var index = 4; + var index = 3; refreshMetaField(metaData.name, index); index++; refreshMetaField(metaData.creator, index); index++; refreshMetaField(metaData.subject,index); index++; diff --git a/main/webapp/modules/core/styles/index/open-project-ui.less b/main/webapp/modules/core/styles/index/open-project-ui.less index b14e4cb80..e0f5f250e 100644 --- a/main/webapp/modules/core/styles/index/open-project-ui.less +++ b/main/webapp/modules/core/styles/index/open-project-ui.less @@ -97,32 +97,27 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. } #projects-container > table thead th:nth-child(2) { - border: 0; - width: 3.5% -} - -#projects-container > table thead th:nth-child(3) { left-border: 0; width: 3% } -#projects-container > table thead th:nth-child(4) { +#projects-container > table thead th:nth-child(3) { width: 8% } -#projects-container > table thead th:nth-child(5) { +#projects-container > table thead th:nth-child(4) { width: 15% } -#projects-container > table thead th:nth-child(6) { +#projects-container > table thead th:nth-child(5) { width: 6% } -#projects-container > table thead th:nth-child(8) { - width: 35% +#projects-container > table thead th:nth-child(7) { + width: 38% } -#projects-container > table thead th:nth-child(9) { +#projects-container > table thead th:nth-child(8) { width: 5% }
'+$.i18n._('core-index-open')["last-mod"]+''+$.i18n._('core-index-open')["name"]+''+$.i18n._('core-index-open')["creator"]+'