summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-04-02 01:42:01 +0000
committerGo MAEDA <maeda@farend.jp>2018-04-02 01:42:01 +0000
commita17661e8d80d042da4c1ac0eed218b979e3fbd46 (patch)
tree199c0992549f89fcfe4ef34dfa867f48cade94fa /public
parented48b0708a7e0753b2e1f7916775069254c019b2 (diff)
downloadredmine-a17661e8d80d042da4c1ac0eed218b979e3fbd46.tar.gz
redmine-a17661e8d80d042da4c1ac0eed218b979e3fbd46.zip
Use button as additional option for contextmenu (#26655).
Patch by Felix Gliesche. git-svn-id: http://svn.redmine.org/redmine/trunk@17252 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public')
-rw-r--r--public/images/3_bullets.pngbin0 -> 1250 bytes
-rw-r--r--public/javascripts/context_menu.js3
-rw-r--r--public/stylesheets/application.css4
-rw-r--r--public/stylesheets/responsive.css5
4 files changed, 9 insertions, 3 deletions
diff --git a/public/images/3_bullets.png b/public/images/3_bullets.png
new file mode 100644
index 000000000..616593b2a
--- /dev/null
+++ b/public/images/3_bullets.png
Binary files differ
diff --git a/public/javascripts/context_menu.js b/public/javascripts/context_menu.js
index cd2cf0884..9bc64b171 100644
--- a/public/javascripts/context_menu.js
+++ b/public/javascripts/context_menu.js
@@ -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;
}
}
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index 35bd4ca04..fa9e44bdc 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -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); }
diff --git a/public/stylesheets/responsive.css b/public/stylesheets/responsive.css
index 76e2d5945..fb156863a 100644
--- a/public/stylesheets/responsive.css
+++ b/public/stylesheets/responsive.css
@@ -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 */
}