Merge branch 'dev' of https://github.com/kiswa/TaskBoard into dev
This commit is contained in:
commit
e6cd183b97
@ -76,6 +76,7 @@ $app->post('/boards/remove', function() use($app, $jsonResponse) {
|
|||||||
}
|
}
|
||||||
R::trashAll($board->xownLane);
|
R::trashAll($board->xownLane);
|
||||||
R::trashAll($board->xownCategory);
|
R::trashAll($board->xownCategory);
|
||||||
|
R::trashAll($board->xownAutoaction);
|
||||||
R::trash($board);
|
R::trash($board);
|
||||||
R::exec('DELETE from board_user WHERE board_id = ?', [$data->boardId]);
|
R::exec('DELETE from board_user WHERE board_id = ?', [$data->boardId]);
|
||||||
$jsonResponse->addAlert('success', 'Removed board ' . $board->name . '.');
|
$jsonResponse->addAlert('success', 'Removed board ' . $board->name . '.');
|
||||||
|
27
build/Vagrantfile
vendored
Normal file
27
build/Vagrantfile
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
Vagrant.configure(2) do |config|
|
||||||
|
config.vm.box = "ubuntu/trusty32"
|
||||||
|
config.vm.network "forwarded_port", guest: 80, host: 8080
|
||||||
|
config.vm.synced_folder "../", "/taskboard"
|
||||||
|
config.vm.provision "shell", inline: <<-SHELL
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y curl php5 php5-cli php5-sqlite sqlite3 apache2 libapache2-mod-php5
|
||||||
|
sudo apt-get clean
|
||||||
|
sudo a2enmod rewrite
|
||||||
|
sudo a2enmod expires
|
||||||
|
echo "<VirtualHost *:80>
|
||||||
|
ServerAdmin webmaster@localhost
|
||||||
|
DocumentRoot /taskboard
|
||||||
|
ErrorLog /var/log/apache2/error.log
|
||||||
|
CustomLog /var/log/apache2/access.log combined
|
||||||
|
<Directory /taskboard>
|
||||||
|
AllowOverride All
|
||||||
|
Options All
|
||||||
|
Require all granted
|
||||||
|
</Directory>
|
||||||
|
</VirtualHost>" > /etc/apache2/sites-enabled/000-default.conf
|
||||||
|
sudo service apache2 restart
|
||||||
|
curl -sS https://getcomposer.org/installer | php
|
||||||
|
mv composer.phar /usr/local/bin/composer
|
||||||
|
cd /taskboard && composer install
|
||||||
|
SHELL
|
||||||
|
end
|
@ -315,6 +315,9 @@ textarea {
|
|||||||
margin: 5px;
|
margin: 5px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
.addItem input {
|
||||||
|
width: 90% !important;
|
||||||
|
}
|
||||||
.draggable-placeholder {
|
.draggable-placeholder {
|
||||||
height: 80px;
|
height: 80px;
|
||||||
box-shadow: inset 0px 0px 10px 0px rgba(51,51,51,.25);
|
box-shadow: inset 0px 0px 10px 0px rgba(51,51,51,.25);
|
||||||
|
@ -16,6 +16,10 @@ function ($scope, $routeParams, $location, $interval, $window,
|
|||||||
$location.path(path);
|
$location.path(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$scope.quickAdd = {
|
||||||
|
title: []
|
||||||
|
};
|
||||||
|
|
||||||
$scope.alerts = AlertService;
|
$scope.alerts = AlertService;
|
||||||
$scope.marked = function(text) {
|
$scope.marked = function(text) {
|
||||||
if (text) {
|
if (text) {
|
||||||
|
@ -39,6 +39,17 @@ function ($scope, BoardService) {
|
|||||||
$('.itemModal').on('hidden.bs.modal', function (e) {
|
$('.itemModal').on('hidden.bs.modal', function (e) {
|
||||||
that.reset();
|
that.reset();
|
||||||
});
|
});
|
||||||
|
if ($scope.quickAdd.title[laneId]) {
|
||||||
|
this.quickAddItem(laneId);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
quickAddItem: function(laneId) {
|
||||||
|
$('.itemModal').on('show.bs.modal', function(e) {
|
||||||
|
e.stopPropogation();
|
||||||
|
});
|
||||||
|
this.title = $scope.quickAdd.title[laneId];
|
||||||
|
$scope.submitItem(this);
|
||||||
|
delete $scope.quickAdd.title[laneId];
|
||||||
},
|
},
|
||||||
loadItem: function(item) {
|
loadItem: function(item) {
|
||||||
this.reset(item.lane_id);
|
this.reset(item.lane_id);
|
||||||
|
@ -82,8 +82,9 @@
|
|||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="addItem">
|
<div class="addItem form-inline">
|
||||||
<a role="button" class="btn btn-default fa fa-plus" data-toggle="modal"
|
<input class="form-control" type="text" data-ng-model="quickAdd.title[lane.id]" placeholder="Quick Add Item Title - Leave Blank for Dialog">
|
||||||
|
<a role="button" class="btn btn-default fa fa-plus form-control" data-toggle="modal"
|
||||||
data-target=".itemModal" data-ng-click="itemFormData.reset(lane.id)" title="Add Item"></a>
|
data-target=".itemModal" data-ng-click="itemFormData.reset(lane.id)" title="Add Item"></a>
|
||||||
</div>
|
</div>
|
||||||
<span data-on-load-callback="updateSortables"></span>
|
<span data-on-load-callback="updateSortables"></span>
|
||||||
|
Reference in New Issue
Block a user