Revert "simplify"

This reverts commit c6d9528c5c1b8c03ecc20fcf14c88393663cf451.
This commit is contained in:
James Campos 2011-06-15 14:30:27 -07:00
parent c6d9528c5c
commit c9542f1790
2 changed files with 5 additions and 1 deletions

View File

@ -1007,9 +1007,12 @@
$.append(overlay, dialog); $.append(overlay, dialog);
$.append(d.body, overlay); $.append(d.body, overlay);
options.cb.time.call($('input[name=time]', dialog)); options.cb.time.call($('input[name=time]', dialog));
return $.bind(overlay, 'click', function() { $.bind(overlay, 'click', function() {
return $.rm(overlay); return $.rm(overlay);
}); });
return $.bind(dialog.firstElementChild, 'click', function(e) {
return e.stopPropagation();
});
}, },
tab: function() { tab: function() {
var content, div, _i, _len, _results; var content, div, _i, _len, _results;

View File

@ -790,6 +790,7 @@ options =
options.cb.time.call $('input[name=time]', dialog) options.cb.time.call $('input[name=time]', dialog)
$.bind overlay, 'click', -> $.rm overlay $.bind overlay, 'click', -> $.rm overlay
$.bind dialog.firstElementChild, 'click', (e) -> e.stopPropagation()
tab: -> tab: ->
content = $$ '#main, #flavors, #time' content = $$ '#main, #flavors, #time'