Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. actionLinksFor: aTask on: aListElement
  2.     | e |
  3.     e := WebElement new.
  4.     e add: (self completeLinkFor: aTask).
  5.     (e addTextSmall: ' | '; addNilLinkText: 'edit')
  6.         class: #'todo-actionlink';
  7.         onClickPopup: (ToDoTaskWidget newForEdit: aTask) thenUpdate: aListElement.
  8.     (e addTextSmall: ' | '; addLinkTo: '#' png: #buttonDeletePng title: 'Delete this task')
  9.         onClickPopup:
  10.             (WebDialog newConfirm
  11.                 text: 'Do you really want to delete that task?';
  12.                 ifTrue:
  13.                     [self observee deleteTask: aTask.
  14.                     aListElement update]<- No special messages expected ->).       
  15.     ^e
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement