2008-03-15 18:57:47 -04:00
|
|
|
jQuery(document).ready( function() {
|
2008-02-19 21:41:16 -05:00
|
|
|
add_postbox_toggles('comment');
|
|
|
|
|
2008-03-26 16:06:18 -04:00
|
|
|
// close postboxes that should be closed
|
|
|
|
jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed');
|
|
|
|
|
|
|
|
// show things that should be visible, hide what should be hidden
|
|
|
|
jQuery('.hide-if-no-js').show();
|
|
|
|
jQuery('.hide-if-js').hide();
|
|
|
|
|
2008-02-19 21:41:16 -05:00
|
|
|
jQuery('.edit-timestamp').click(function () {
|
2008-02-21 17:20:19 -05:00
|
|
|
if (jQuery('#timestampdiv').is(":hidden")) {
|
|
|
|
jQuery('#timestampdiv').slideDown("normal");
|
2008-03-26 16:06:18 -04:00
|
|
|
jQuery('.edit-timestamp').text(commentL10n.cancel);
|
2008-02-19 21:41:16 -05:00
|
|
|
} else {
|
2008-02-21 17:20:19 -05:00
|
|
|
jQuery('#timestampdiv').hide();
|
2008-03-26 16:06:18 -04:00
|
|
|
jQuery('#mm').val(jQuery('#hidden_mm').val());
|
|
|
|
jQuery('#jj').val(jQuery('#hidden_jj').val());
|
|
|
|
jQuery('#aa').val(jQuery('#hidden_aa').val());
|
|
|
|
jQuery('#hh').val(jQuery('#hidden_hh').val());
|
|
|
|
jQuery('#mn').val(jQuery('#hidden_mn').val());
|
|
|
|
jQuery('.edit-timestamp').text(commentL10n.edit);
|
2008-02-19 21:41:16 -05:00
|
|
|
}
|
2008-02-22 01:12:10 -05:00
|
|
|
return false;
|
2008-02-19 21:41:16 -05:00
|
|
|
});
|
2008-02-22 01:12:10 -05:00
|
|
|
});
|