diff --git a/src/main/resources/Ideas/IdeasClass.xml b/src/main/resources/Ideas/IdeasClass.xml index e47e2c7..fa6c024 100644 --- a/src/main/resources/Ideas/IdeasClass.xml +++ b/src/main/resources/Ideas/IdeasClass.xml @@ -493,12 +493,7 @@ if(xm.document == 'Ideas.WebHome') { var docTitle = button.parent().siblings('.doc_title'); - docName = xm.space + '.' + docTitle.text(); - // Compute the docName for a non terminal idea (the url ends with a "/"). - var docUrl = docTitle.children('a').get(0).href; - if (docUrl.length - docUrl.lastIndexOf('/') == 1) { - docName += '.' + 'WebHome'; - } + docName = button.parent().siblings('.doc_fullName').text(); } if(status != "$services.localization.render('Ideas.IdeasClass_status_open')") { @@ -518,7 +513,7 @@ } var url = new XWiki.Document('IdeasVoteService', 'Ideas').getURL('get', - ('xpage=plain&outputSyntax=plain&page=' + docName + '&action=' + addVote)); + ('xpage=plain&outputSyntax=plain&page=' + encodeURIComponent(docName) + '&action=' + addVote)); // Ajax request. $.ajax({ url : url, @@ -735,6 +730,11 @@ } .no-hover-con:hover, .no-hover-pro:hover { opacity: 0.5; +} +.xwiki-livetable-display-header tr th:first-child, +.xwiki-livetable-display-header tr td:first-child, +.xwiki-livetable-display-body tr td:first-child { + display: none; } diff --git a/src/main/resources/Ideas/IdeasHomeSheet.xml b/src/main/resources/Ideas/IdeasHomeSheet.xml index e165ec9..83a0913 100644 --- a/src/main/resources/Ideas/IdeasHomeSheet.xml +++ b/src/main/resources/Ideas/IdeasHomeSheet.xml @@ -50,6 +50,7 @@ $xwiki.ssx.use("Ideas.IdeasClass") ## Load the User Picker style for the "Assigned to" column #set($discard = $xwiki.ssfx.use('uicomponents/widgets/userpicker/userPicker.css')) #set ($columnsProperties = { + 'doc.fullName': {'type': 'text'}, 'nbvotes': {"type":"number","size":10,"html":true}, 'nbagainst': {"type":"number","size":10,"html":true}, 'nbestimate': {"type":"number","size":10,"html":true}, @@ -70,7 +71,7 @@ $xwiki.ssx.use("Ideas.IdeasClass") 'selectedColumn': 'status', 'defaultOrder': 'asc' }) -#set ($columns = ['nbvotes','nbagainst','doc.title','nbestimate','status','priority','assignement','doc.date', 'doc.author', '_actions']) +#set ($columns = ['doc.fullName', 'nbvotes','nbagainst','doc.title', 'nbestimate','status','priority','assignement','doc.date', 'doc.author', '_actions']) #livetable($doc $columns $columnsProperties $options) {{/velocity}}