mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 13:30:28 +01:00
Use button as additional option for contextmenu (#26655).
Patch by Felix Gliesche. git-svn-id: http://svn.redmine.org/redmine/trunk@17298 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
BIN
public/images/3_bullets.png
Normal file
BIN
public/images/3_bullets.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
@@ -5,7 +5,7 @@ var contextMenuObserving;
|
||||
|
||||
function contextMenuRightClick(event) {
|
||||
var target = $(event.target);
|
||||
if (target.is('a')) {return;}
|
||||
if (target.is('a:not(.js-contextmenu)')) {return;}
|
||||
var tr = target.closest('.hascontextmenu').first();
|
||||
if (tr.length < 1) {return;}
|
||||
event.preventDefault();
|
||||
@@ -218,6 +218,7 @@ function contextMenuInit() {
|
||||
if (!contextMenuObserving) {
|
||||
$(document).click(contextMenuClick);
|
||||
$(document).contextmenu(contextMenuRightClick);
|
||||
$(document).on('click', '.js-contextmenu', contextMenuRightClick);
|
||||
contextMenuObserving = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -228,6 +228,7 @@ table.list td.checkbox { width: 15px; padding: 2px 0 0 0; }
|
||||
table.list td.checkbox input {padding:0px;}
|
||||
table.list td.buttons, div.buttons { white-space:nowrap; text-align: right; }
|
||||
table.list td.buttons a, div.buttons a { margin-right: 0.6em; }
|
||||
table.list td.buttons a:last-child, div.buttons a:last-child { margin-right: 0; }
|
||||
table.list td.buttons img, div.buttons img {vertical-align:middle;}
|
||||
table.list td.reorder {width:15%; white-space:nowrap; text-align:center; }
|
||||
table.list table.progress td {padding-right:0px;}
|
||||
@@ -473,7 +474,7 @@ div.issue.overdue .due-date .value { color: #c22; }
|
||||
|
||||
#issue_tree table.issues, #relations table.issues { border: 0; }
|
||||
#issue_tree td.checkbox, #relations td.checkbox {display:none;}
|
||||
#relations td.buttons {padding:0;}
|
||||
#relations td.buttons, #issue_tree td.buttons {padding:0;}
|
||||
|
||||
fieldset.collapsible {border-width: 1px 0 0 0;}
|
||||
fieldset.collapsible>legend { padding-left: 16px; background: url(../images/arrow_expanded.png) no-repeat 0% 40%; cursor:pointer; }
|
||||
@@ -1308,6 +1309,7 @@ div.wiki img {vertical-align:middle; max-width:100%;}
|
||||
.icon-project { background-image: url(../images/projects.png); }
|
||||
.icon-add-bullet { background-image: url(../images/bullet_add.png); }
|
||||
.icon-shared { background-image: url(../images/link.png); }
|
||||
.icon-actions { background-image: url(../images/3_bullets.png); }
|
||||
|
||||
.icon-file { background-image: url(../images/files/default.png); }
|
||||
.icon-file.text-plain { background-image: url(../images/files/text.png); }
|
||||
|
||||
@@ -793,11 +793,13 @@
|
||||
width: 33.33%; /* three columns for all cells that are not subject */
|
||||
}
|
||||
|
||||
#issue_tree .issues, #issue_tree .issue,
|
||||
#relations .issues, #relations .issue {
|
||||
position: relative; /* needed for .buttons positioning */
|
||||
}
|
||||
|
||||
/* positioniong of unline button */
|
||||
#issue_tree .issue > td.buttons,
|
||||
#relations .issue > td.buttons {
|
||||
text-align: right;
|
||||
position: absolute;
|
||||
@@ -806,11 +808,12 @@
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
#issue_tree .issue .buttons a,
|
||||
#relations .issue .buttons a {
|
||||
vertical-align: middle;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
#issue_tree .issue > td.subject,
|
||||
#relations .issue > td.subject {
|
||||
padding-right: 25px; /* this is the spaces that .buttons uses next to subject */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user