Removed useless keyboard shortcut

This commit is contained in:
Frederic Guillot 2016-06-24 19:31:34 -04:00
parent 49d312d5a4
commit cead21691e
No known key found for this signature in database
GPG Key ID: 92D77191BA7FBC99
4 changed files with 2 additions and 8 deletions

View File

@ -19,7 +19,6 @@
<h3><?= t('Task view') ?></h3>
<ul>
<li><?= t('Edit task') ?> = <strong>e</strong></li>
<li><?= t('Edit description') ?> = <strong>d</strong></li>
<li><?= t('New subtask') ?> = <strong>s</strong></li>
<li><?= t('New comment') ?> = <strong>c</strong></li>
<li><?= t('New internal link') ?> = <strong>l</strong></li>
@ -33,4 +32,4 @@
<li><?= t('Close dialog box') ?> = <strong>ESC</strong></li>
<li><?= t('Submit a form') ?> = <strong>CTRL+ENTER</strong> <?= t('or') ?> <strong>⌘+ENTER</strong></li>
</ul>
</div>
</div>

View File

@ -4,7 +4,6 @@
<section
class="sidebar-container" id="task-view"
data-edit-url="<?= $this->url->href('TaskModificationController', 'edit', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>"
data-description-url="<?= $this->url->href('TaskModificationController', 'description', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>"
data-subtask-url="<?= $this->url->href('SubtaskController', 'create', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>"
data-internal-link-url="<?= $this->url->href('TaskInternalLinkController', 'create', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>"
data-comment-url="<?= $this->url->href('CommentController', 'create', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>">

File diff suppressed because one or more lines are too long

View File

@ -11,10 +11,6 @@ Kanboard.Task.prototype.keyboardShortcuts = function() {
self.app.get("Popover").open(taskView.data("edit-url"));
});
Mousetrap.bind("d", function() {
self.app.get("Popover").open(taskView.data("description-url"));
});
Mousetrap.bind("c", function() {
self.app.get("Popover").open(taskView.data("comment-url"));
});