File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
kitsune/sumo/static/sumo/js Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -407,17 +407,18 @@ import collapsibleAccordionInit from "sumo/js/protocol-details-init";
407407
408408 function initReadyForL10n ( ) {
409409 var $watchDiv = $ ( '#revision-list .l10n' ) ,
410+ $modal = $ ( '[data-modal-id="ready-for-l10n-modal"]' ) ,
410411 post_url , checkbox_id ;
411412
412413 $watchDiv . find ( 'a.markasready' ) . on ( "click" , function ( ) {
413414 var $check = $ ( this ) ;
414415 post_url = $check . data ( 'url' ) ;
415416 checkbox_id = $check . attr ( 'id' ) ;
416- $ ( '#ready-for-l10n-modal span.revtime') . html ( '(' + $check . data ( 'revdate' ) + ')' ) ;
417+ $modal . find ( ' span.revtime') . html ( '(' + $check . data ( 'revdate' ) + ')' ) ;
417418 } ) ;
418419
419- $ ( '#ready-for-l10n-modal input[type=submit], #ready-for-l10n-modal button[type=submit]') . on ( "click" , function ( ) {
420- var csrf = $ ( '#ready-for-l10n-modal input[name=csrfmiddlewaretoken]') . val ( ) ;
420+ $modal . find ( ' input[type=submit], button[type=submit]') . on ( "click" , function ( ) {
421+ var csrf = $modal . find ( ' input[name=csrfmiddlewaretoken]') . val ( ) ;
421422 if ( post_url !== undefined && checkbox_id !== undefined ) {
422423 $ . ajax ( {
423424 type : 'POST' ,
You can’t perform that action at this time.
0 commit comments