mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Collapse crazyhorse to trunk. Incoming! see #7552
git-svn-id: https://develop.svn.wordpress.org/trunk@8691 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+20
-6
@@ -1,5 +1,5 @@
|
||||
jQuery(document).ready( function() {
|
||||
add_postbox_toggles('comment');
|
||||
postboxes.add_postbox_toggles('comment');
|
||||
|
||||
// close postboxes that should be closed
|
||||
jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed');
|
||||
@@ -10,17 +10,31 @@ jQuery(document).ready( function() {
|
||||
|
||||
jQuery('.edit-timestamp').click(function () {
|
||||
if (jQuery('#timestampdiv').is(":hidden")) {
|
||||
jQuery('#curtime').slideUp("normal");
|
||||
jQuery('#timestampdiv').slideDown("normal");
|
||||
jQuery('.edit-timestamp').text(commentL10n.cancel);
|
||||
} else {
|
||||
jQuery('#timestampdiv').hide();
|
||||
jQuery('#timestampdiv').slideUp("normal");
|
||||
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);
|
||||
jQuery('#curtime').slideDown("normal");
|
||||
}
|
||||
return false;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
jQuery('.save-timestamp').click(function () { // crazyhorse - multiple ok cancels
|
||||
jQuery('#timestampdiv').hide();
|
||||
var link = jQuery('.timestamp a').clone( true );
|
||||
jQuery('.timestamp').show().html(
|
||||
jQuery( '#mm option[value=' + jQuery('#mm').val() + ']' ).text() + ' ' +
|
||||
jQuery('#jj').val() + ',' +
|
||||
jQuery('#aa').val() + '@' +
|
||||
jQuery('#hh').val() + ':' +
|
||||
jQuery('#mn').val() + ' '
|
||||
).append( link );
|
||||
jQuery('#curtime').slideDown("normal");
|
||||
return false;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user