~mwhudson/+junk/work_item_editor

« back to all changes in this revision

Viewing changes to work_item_editor.user.js

  • Committer: Michael-Doyle Hudson
  • Date: 2011-08-29 02:27:07 UTC
  • Revision ID: michael.hudson@linaro.org-20110829022707-xq9wmjjdlsye3mju
start adding new work item picker

Show diffs side-by-side

added added

removed removed

Lines of Context:
420
420
            }
421
421
        );
422
422
        var li = Y.Node.create('<li/>');
423
 
        li.appendChild(Y.Node.create('<a href="#" class="sprite add">Add new work item</a>'));
 
423
        var link = Y.Node.create(
 
424
            '<a href="#" class="sprite add js-action">Add new work item</a>');
 
425
        var picker = new Y.lazr.PrettyOverlay(
 
426
            {
 
427
                bodyContent:"My Overlay Body",
 
428
                visible: false
 
429
            }
 
430
        );
 
431
        picker.render();
 
432
        link.on(
 
433
            'click', function (e) {
 
434
                e.preventDefault();
 
435
                picker.show();
 
436
            });
 
437
        li.appendChild(link);
424
438
        ul.appendChild(li);
425
439
    }
426
440
}
 
 
b'\\ No newline at end of file'