2008-09-17 02:50:34 +02:00
|
|
|
jQuery(document).ready( function($) {
|
2008-03-26 21:06:18 +01:00
|
|
|
jQuery('.hide-if-no-js').show();
|
|
|
|
jQuery('.hide-if-js').hide();
|
|
|
|
|
2008-09-17 02:50:34 +02:00
|
|
|
var stamp = $('#timestamp').html();
|
|
|
|
$('.edit-timestamp').click(function () {
|
|
|
|
if ($('#timestampdiv').is(":hidden")) {
|
|
|
|
$('#timestampdiv').slideDown("normal");
|
|
|
|
$('.edit-timestamp').hide();
|
2008-02-20 03:41:16 +01:00
|
|
|
}
|
2008-09-17 02:50:34 +02:00
|
|
|
return false;
|
|
|
|
});
|
|
|
|
|
|
|
|
$('.cancel-timestamp').click(function() {
|
|
|
|
$('#timestampdiv').slideUp("normal");
|
|
|
|
$('#mm').val($('#hidden_mm').val());
|
|
|
|
$('#jj').val($('#hidden_jj').val());
|
|
|
|
$('#aa').val($('#hidden_aa').val());
|
|
|
|
$('#hh').val($('#hidden_hh').val());
|
|
|
|
$('#mn').val($('#hidden_mn').val());
|
|
|
|
$('#timestamp').html(stamp);
|
|
|
|
$('.edit-timestamp').show();
|
2008-02-22 07:12:10 +01:00
|
|
|
return false;
|
2008-08-20 23:42:31 +02:00
|
|
|
});
|
|
|
|
|
2008-09-17 02:50:34 +02:00
|
|
|
$('.save-timestamp').click(function () { // crazyhorse - multiple ok cancels
|
|
|
|
$('#timestampdiv').slideUp("normal");
|
|
|
|
$('.edit-timestamp').show();
|
|
|
|
$('#timestamp').html(
|
2008-11-03 08:06:36 +01:00
|
|
|
commentL10n.submittedOn + ' <b>' +
|
2008-09-17 02:50:34 +02:00
|
|
|
$( '#mm option[value=' + $('#mm').val() + ']' ).text() + ' ' +
|
|
|
|
$('#jj').val() + ', ' +
|
|
|
|
$('#aa').val() + ' @ ' +
|
|
|
|
$('#hh').val() + ':' +
|
2008-11-03 08:06:36 +01:00
|
|
|
$('#mn').val() + '</b> '
|
2008-09-17 02:50:34 +02:00
|
|
|
);
|
2008-08-20 23:42:31 +02:00
|
|
|
return false;
|
|
|
|
});
|
2008-12-05 08:36:53 +01:00
|
|
|
});
|