Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d57544ebfd | |||
| c3896e1962 |
@@ -13,7 +13,7 @@
|
|||||||
(function () {
|
(function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var THRESHOLD = 100; // ms; a press on a card held longer than this is a drag, not a click
|
var THRESHOLD = 110; // ms; a press on a card held longer than this is a drag, not a click
|
||||||
var pressStart = 0;
|
var pressStart = 0;
|
||||||
|
|
||||||
function onDown(e) {
|
function onDown(e) {
|
||||||
|
|||||||
@@ -18,6 +18,8 @@
|
|||||||
var group = document.createElement("span");
|
var group = document.createElement("span");
|
||||||
group.className = "ot-recurrence-status";
|
group.className = "ot-recurrence-status";
|
||||||
|
|
||||||
|
var radios = [];
|
||||||
|
|
||||||
for (var i = 0; i < select.options.length; i++) {
|
for (var i = 0; i < select.options.length; i++) {
|
||||||
var opt = select.options[i];
|
var opt = select.options[i];
|
||||||
|
|
||||||
@@ -30,15 +32,21 @@
|
|||||||
|
|
||||||
var radio = document.createElement("input");
|
var radio = document.createElement("input");
|
||||||
radio.type = "radio";
|
radio.type = "radio";
|
||||||
radio.name = "ot-recurrence-status";
|
// No name attribute on purpose: a named radio would be SUBMITTED with the form,
|
||||||
|
// and Kanboard rejects the extra key ("invalid identifier"). These are display
|
||||||
|
// only -- the hidden <select> carries the value -- so we enforce the mutual
|
||||||
|
// exclusivity ourselves.
|
||||||
radio.value = opt.value;
|
radio.value = opt.value;
|
||||||
radio.checked = opt.value === select.value;
|
radio.checked = opt.value === select.value;
|
||||||
radio.style.marginRight = "4px";
|
radio.style.marginRight = "4px";
|
||||||
|
radios.push(radio);
|
||||||
|
|
||||||
radio.addEventListener("change", function () {
|
radio.addEventListener("change", function () {
|
||||||
if (this.checked) {
|
for (var k = 0; k < radios.length; k++) {
|
||||||
select.value = this.value;
|
radios[k].checked = (radios[k] === this);
|
||||||
select.dispatchEvent(new Event("change", { bubbles: true }));
|
|
||||||
}
|
}
|
||||||
|
select.value = this.value;
|
||||||
|
select.dispatchEvent(new Event("change", { bubbles: true }));
|
||||||
});
|
});
|
||||||
|
|
||||||
label.appendChild(radio);
|
label.appendChild(radio);
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ class Plugin extends Base
|
|||||||
|
|
||||||
public function getPluginVersion()
|
public function getPluginVersion()
|
||||||
{
|
{
|
||||||
return '1.3.1';
|
return '1.3.3';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getPluginHomepage()
|
public function getPluginHomepage()
|
||||||
|
|||||||
Reference in New Issue
Block a user