anchor.diff:      $('<div class="dialog">')
         .html(dialogHtml)
         .dialog({
  -        title: cd.dialogTitle(title),
  +        title: cd.dialogTitle('start'),
           autoOpen: true,
           width: 350,
           modal: true,
           closeOnEscape: true,
  -        close: function() {
  -          okOrCancel();
  -          $(this).remove();
  -        },
  -        buttons: {
  -          ok: function() {
  -            okOrCancel();
  -            $(this).remove();
  -          }
  -        }
  +        close: function() { okOrCancel(); $(this).remove(); },
  +        buttons: { ok: function() { okOrCancel(); $(this).remove(); } }
         });
     };
   
  
positive.code: 
  $(function() {
  
    var startDialog = function(title, id, avatarName, dialogHtml) {
      var url = '/kata/edit/' + id + '?avatar=' + avatarName;
      var okOrCancel = function() {
        window.location.href = cd.homePageUrl(id);
  
negative.code:       if (dojo.full) {
          cd.dialog(dojo.full_dialog_html, 'start', 'ok').dialog('open');
        } else {
          startDialog(id, dojo.avatar_name, dojo.start_dialog_html);
        }
      });
    });
  