Commit 252f966a authored by Florian Fittkau's avatar Florian Fittkau

minor

parent 6f0bac3e
......@@ -14,9 +14,10 @@ class ShowTaskDialogTagLib {
\$( '#dialog-showTask' ).dialog({
autoOpen: false,
height: 550,
height: 600,
width: 650,
modal: true,
resizable: false,
buttons: {
'Save': function() {
\$.ajax({
......@@ -27,12 +28,28 @@ class ShowTaskDialogTagLib {
});
},
'Delete': function() {
\$.ajax({
url: "/scrumboard/userStory/deleteTask?taskId=" + \$('#taskId').val()
}).done(function ( data ) {
\$( '#dialog-showTask' ).dialog( 'close' );
location.reload();
});
\$("#dialog-sureToDelete").dialog({
bgiframe: true,
autoOpen: true,
height: 150,
modal: true,
resizable: false,
buttons: {
Yes: function() {
\$.ajax({
url: "/scrumboard/userStory/deleteTask?taskId=" + \$('#taskId').val()
}).done(function ( data ) {
\$(this).dialog('close');
\$( '#dialog-showTask' ).dialog( 'close' );
location.reload();
});
},
No: function() {
\$(this).dialog('close');
}
}
});
},
Cancel: function() {
\$( this ).dialog( 'close' );
......
......@@ -77,6 +77,9 @@
<div id="dialog-showTask" title="Show Task">
</div>
<div id="dialog-sureToDelete" title="Really delete?">
</div>
<script type="text/javascript">
$(function() {
<g:movableColumnUserStory name="column"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment