Skip to content

Commit

Permalink
trello
Browse files Browse the repository at this point in the history
  • Loading branch information
mambax7 committed Jul 6, 2020
1 parent 9443d12 commit e16bde4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions admin/trello.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
];

$projectName = 'StartTuts';
$projectManagement = new TrelloManagement();
$statusResult = $projectManagement->getAllStatus();
$trelloManagement = new TrelloManagement();
$statusResult = $trelloManagement->getAllStatus();

foreach ($statusResult as $statusRow) {
// $itemResult[] = $projectManagement->getProjectTaskByStatus($statusRow['id'], $projectName);
// $itemResult[] = $projectManagement->getProjectTaskByStatus($statusRow['itemid'], $statusRow['itemid']);
// $itemResult[] = $trelloManagement->getProjectTaskByStatus($statusRow['id'], $projectName);
// $itemResult[] = $trelloManagement->getProjectTaskByStatus($statusRow['itemid'], $statusRow['itemid']);
}

//$xoopsTpl->assign('taskResult', $itemResult);
Expand Down
4 changes: 2 additions & 2 deletions admin/trellostatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

use XoopsModules\Publisher\TrelloManagement;

$projectManagement = new TrelloManagement();
$trelloManagement = new TrelloManagement();

$statusId = $_GET['status'];
$itemId = $_GET['itemid'];

$result = $projectManagement->editTaskStatus($statusId, $itemId);
$result = $trelloManagement->editTaskStatus($statusId, $itemId);
5 changes: 2 additions & 3 deletions assets/js/trello.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
$( function() {
var url = 'edit-status.php';
var url = 'trellostatus.php';
$('ul[itemid^="sort"]').sortable({
connectWith: ".sortable",
receive: function (e, ui) {
var status_id = $(ui.item).parent(".sortable").data("status-id");
var item_id = $(ui.item).data("item-id");
$.ajax({
url: url+'?status_id='+status_id+'&item_id='+item_id,
url: url+'?status='+status_id+'&itemid='+item_id,
success: function(response){
}
});
}

}).disableSelection();
} );
1 change: 1 addition & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
- timezone conversion (ihackcode)
- Convert user time to Server time on saving items (ihackcode)
- added Save/Load Permissions to test data - based on work by Goffy (mamba)
- added Trello board, based on https://phppot.com/php/trello-like-drag-and-drop-cards-for-project-management-software/ (mamba)


TODO:
Expand Down
2 changes: 1 addition & 1 deletion templates/admin/publisher_trello.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
data-status-id="<{$item.status}>">
<{if $item.status == $k}>
<li class="text-row ui-sortable-handle"
data-task-id="<{$item.itemid}>">
data-item-id="<{$item.itemid}>">
<{$item.itemid}> <{$item.title}>
</li>
<{/if}>
Expand Down

0 comments on commit e16bde4

Please sign in to comment.