Skip to content

Commit d8e24a0

Browse files
Merge pull request #320 from AuthenticEshkinKot/master
Merge
2 parents 57129b1 + 69577a6 commit d8e24a0

File tree

3 files changed

+7
-17
lines changed

3 files changed

+7
-17
lines changed

Changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## 2.1.8 - 2021-02-14
8+
### Changed
9+
- Applied PR https://github.com/mantisbt-plugins/Taskodrome/pull/315
10+
711
## 2.1.7 - 2020-11-17
812
### Added
913
- Function to Convert Strings back to Enum (https://github.com/AuthenticEshkinKot/Taskodrome/pull/22)

Taskodrome/Taskodrome.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public function register()
1111
$this->description = plugin_lang_get("description");
1212
$this->page = 'config_page';
1313

14-
$this->version = "2.1.7";
14+
$this->version = "2.1.8";
1515
$this->requires = array(
1616
"MantisCore" => "2.0.0",
1717
);

Taskodrome/files/scripts/block/block.js

+2-16
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function Block(name, /** @type {ColumnHandler} */columnHandler, /** @type {Page}
3333
var columnIndex = columnHandler.getColumnIndexByCard(card);
3434
if (columnIndex != -1) {
3535
++m_cardCount;
36-
pushByDate(columnIndex, card);
36+
m_columns[columnIndex].push(card);
3737
m_blockGr.incCounter(columnIndex);
3838
}
3939
return columnIndex;
@@ -281,18 +281,4 @@ function Block(name, /** @type {ColumnHandler} */columnHandler, /** @type {Page}
281281
this.toBeDrawn = function() {
282282
return (m_cardCount != 0) || m_showIfEmpty;
283283
};
284-
285-
function pushByDate(columnIndex, card) {
286-
var column = m_columns[columnIndex];
287-
var i = 0;
288-
var done = false;
289-
while (i != column.length && !done) {
290-
if (column[i].getUpdateTime() > card.getUpdateTime()) {
291-
++i;
292-
} else {
293-
done = true;
294-
}
295-
}
296-
column.splice(i, 0, card);
297-
};
298-
};
284+
};

0 commit comments

Comments
 (0)