equal
deleted
inserted
replaced
|
1 /** |
|
2 * @output wp-admin/js/comment.js |
|
3 */ |
|
4 |
1 /* global postboxes, commentL10n */ |
5 /* global postboxes, commentL10n */ |
2 |
6 |
3 /** |
7 /** |
4 * @summary Binds to the document ready event. |
8 * Binds to the document ready event. |
5 * |
9 * |
6 * @since 2.5.0 |
10 * @since 2.5.0 |
7 * |
11 * |
8 * @param {jQuery} $ The jQuery object. |
12 * @param {jQuery} $ The jQuery object. |
9 */ |
13 */ |
16 stamp = $timestamp.html(), |
20 stamp = $timestamp.html(), |
17 $timestampwrap = $timestampdiv.find( '.timestamp-wrap' ), |
21 $timestampwrap = $timestampdiv.find( '.timestamp-wrap' ), |
18 $edittimestamp = $timestampdiv.siblings( 'a.edit-timestamp' ); |
22 $edittimestamp = $timestampdiv.siblings( 'a.edit-timestamp' ); |
19 |
23 |
20 /** |
24 /** |
21 * @summary Adds event that opens the time stamp form if the form is hidden. |
25 * Adds event that opens the time stamp form if the form is hidden. |
22 * |
26 * |
23 * @listens $edittimestamp:click |
27 * @listens $edittimestamp:click |
24 * |
28 * |
25 * @param {Event} event The event object. |
29 * @param {Event} event The event object. |
26 * @returns {void} |
30 * @returns {void} |
35 } |
39 } |
36 event.preventDefault(); |
40 event.preventDefault(); |
37 }); |
41 }); |
38 |
42 |
39 /** |
43 /** |
40 * @summary Resets the time stamp values when the cancel button is clicked. |
44 * Resets the time stamp values when the cancel button is clicked. |
41 * |
45 * |
42 * @listens .cancel-timestamp:click |
46 * @listens .cancel-timestamp:click |
43 * |
47 * |
44 * @param {Event} event The event object. |
48 * @param {Event} event The event object. |
45 * @returns {void} |
49 * @returns {void} |
57 $timestamp.html( stamp ); |
61 $timestamp.html( stamp ); |
58 event.preventDefault(); |
62 event.preventDefault(); |
59 }); |
63 }); |
60 |
64 |
61 /** |
65 /** |
62 * @summary Sets the time stamp values when the ok button is clicked. |
66 * Sets the time stamp values when the ok button is clicked. |
63 * |
67 * |
64 * @listens .save-timestamp:click |
68 * @listens .save-timestamp:click |
65 * |
69 * |
66 * @param {Event} event The event object. |
70 * @param {Event} event The event object. |
67 * @returns {void} |
71 * @returns {void} |