Skip to content

Commit

Permalink
fix: main menu columns same length
Browse files Browse the repository at this point in the history
move article requests to 2nd, right-side, column to balance menu
  • Loading branch information
phette23 committed Oct 25, 2024
1 parent 91aff35 commit bd5bd77
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions admin-js/mainpage.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ if (location.pathname.match('/cgi-bin/koha/mainpage.pl')) {
$(()=>{
// add new module buttons for pending article/purchase requests
let $menu = $('.biglinks-list')
$menu.eq(0).append('<li><a class="icon_general icon_serials" href="/cgi-bin/koha/circ/article-requests.pl?branchcode="><i class="fa fa-fw fa-newspaper"></i>Article requests</a></li>')
$menu.eq(1).append('<li><a class="icon_general icon_acquisitions" href="/cgi-bin/koha/suggestion/suggestion.pl?branchcode=__ANY__#ACCEPTED"><i class="fa fa-fw fa-gift"></i>Purchase Suggestions</a></li>')
$menu.eq(1)
.append('<li><a class="icon_general icon_serials" href="/cgi-bin/koha/circ/article-requests.pl?branchcode="><i class="fa fa-fw fa-newspaper"></i>Article requests</a></li>')
.append('<li><a class="icon_general icon_acquisitions" href="/cgi-bin/koha/suggestion/suggestion.pl?branchcode=__ANY__#ACCEPTED"><i class="fa fa-fw fa-gift"></i>Purchase Suggestions</a></li>')
})
}

0 comments on commit bd5bd77

Please sign in to comment.