Skip to content

Commit

Permalink
Merge pull request mantisbt-plugins#320 from AuthenticEshkinKot/master
Browse files Browse the repository at this point in the history
Merge
  • Loading branch information
AuthenticEshkinKot authored Feb 14, 2021
2 parents 57129b1 + 69577a6 commit d8e24a0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 deletions.
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## 2.1.8 - 2021-02-14
### Changed
- Applied PR https://github.com/mantisbt-plugins/Taskodrome/pull/315

## 2.1.7 - 2020-11-17
### Added
- Function to Convert Strings back to Enum (https://github.com/AuthenticEshkinKot/Taskodrome/pull/22)
Expand Down
2 changes: 1 addition & 1 deletion Taskodrome/Taskodrome.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public function register()
$this->description = plugin_lang_get("description");
$this->page = 'config_page';

$this->version = "2.1.7";
$this->version = "2.1.8";
$this->requires = array(
"MantisCore" => "2.0.0",
);
Expand Down
18 changes: 2 additions & 16 deletions Taskodrome/files/scripts/block/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function Block(name, /** @type {ColumnHandler} */columnHandler, /** @type {Page}
var columnIndex = columnHandler.getColumnIndexByCard(card);
if (columnIndex != -1) {
++m_cardCount;
pushByDate(columnIndex, card);
m_columns[columnIndex].push(card);
m_blockGr.incCounter(columnIndex);
}
return columnIndex;
Expand Down Expand Up @@ -281,18 +281,4 @@ function Block(name, /** @type {ColumnHandler} */columnHandler, /** @type {Page}
this.toBeDrawn = function() {
return (m_cardCount != 0) || m_showIfEmpty;
};

function pushByDate(columnIndex, card) {
var column = m_columns[columnIndex];
var i = 0;
var done = false;
while (i != column.length && !done) {
if (column[i].getUpdateTime() > card.getUpdateTime()) {
++i;
} else {
done = true;
}
}
column.splice(i, 0, card);
};
};
};

0 comments on commit d8e24a0

Please sign in to comment.