mp-wp_genesis 1 jQuery(document).ready( function($) {
mp-wp_genesis 2 jQuery('.hide-if-no-js').show();
mp-wp_genesis 3 jQuery('.hide-if-js').hide();
mp-wp_genesis 4
mp-wp_genesis 5 var stamp = $('#timestamp').html();
mp-wp_genesis 6 $('.edit-timestamp').click(function () {
mp-wp_genesis 7 if ($('#timestampdiv').is(":hidden")) {
mp-wp_genesis 8 $('#timestampdiv').slideDown("normal");
mp-wp_genesis 9 $('.edit-timestamp').hide();
mp-wp_genesis 10 }
mp-wp_genesis 11 return false;
mp-wp_genesis 12 });
mp-wp_genesis 13
mp-wp_genesis 14 $('.cancel-timestamp').click(function() {
mp-wp_genesis 15 $('#timestampdiv').slideUp("normal");
mp-wp_genesis 16 $('#mm').val($('#hidden_mm').val());
mp-wp_genesis 17 $('#jj').val($('#hidden_jj').val());
mp-wp_genesis 18 $('#aa').val($('#hidden_aa').val());
mp-wp_genesis 19 $('#hh').val($('#hidden_hh').val());
mp-wp_genesis 20 $('#mn').val($('#hidden_mn').val());
mp-wp_genesis 21 $('#timestamp').html(stamp);
mp-wp_genesis 22 $('.edit-timestamp').show();
mp-wp_genesis 23 return false;
mp-wp_genesis 24 });
mp-wp_genesis 25
mp-wp_genesis 26 $('.save-timestamp').click(function () { // crazyhorse - multiple ok cancels
mp-wp_genesis 27 $('#timestampdiv').slideUp("normal");
mp-wp_genesis 28 $('.edit-timestamp').show();
mp-wp_genesis 29 $('#timestamp').html(
mp-wp_genesis 30 commentL10n.submittedOn + ' <b>' +
mp-wp_genesis 31 $( '#mm option[value=' + $('#mm').val() + ']' ).text() + ' ' +
mp-wp_genesis 32 $('#jj').val() + ', ' +
mp-wp_genesis 33 $('#aa').val() + ' @ ' +
mp-wp_genesis 34 $('#hh').val() + ':' +
mp-wp_genesis 35 $('#mn').val() + '</b> '
mp-wp_genesis 36 );
mp-wp_genesis 37 return false;
mp-wp_genesis 38 });
mp-wp_genesis 39 });