@@ -40,7 +40,7 @@ const DatabaseEvents = {
4040 $elm = $ ( 'table.rte_table' ) . last ( ) . find ( 'input[name=item_name]' ) ;
4141 if ( $elm . val ( ) === '' ) {
4242 $elm . trigger ( 'focus' ) ;
43- alert ( Messages . strFormEmpty ) ;
43+ alert ( window . Messages . strFormEmpty ) ;
4444 return false ;
4545 }
4646 $elm = $ ( 'table.rte_table' ) . find ( 'textarea[name=item_definition]' ) ;
@@ -50,7 +50,7 @@ const DatabaseEvents = {
5050 } else {
5151 $ ( 'textarea[name=item_definition]' ) . last ( ) . trigger ( 'focus' ) ;
5252 }
53- alert ( Messages . strFormEmpty ) ;
53+ alert ( window . Messages . strFormEmpty ) ;
5454 return false ;
5555 }
5656 // The validation has so far passed, so now
@@ -63,7 +63,7 @@ const DatabaseEvents = {
6363 if ( $this . attr ( 'id' ) === 'bulkActionExportButton' ) {
6464 var combined = {
6565 success : true ,
66- title : Messages . strExport ,
66+ title : window . Messages . strExport ,
6767 message : '' ,
6868 error : ''
6969 } ;
@@ -106,7 +106,7 @@ const DatabaseEvents = {
106106 * for jQueryUI dialog buttons
107107 */
108108 var buttonOptions = { } ;
109- buttonOptions [ Messages . strClose ] = function ( ) {
109+ buttonOptions [ window . Messages . strClose ] = function ( ) {
110110 $ ( this ) . dialog ( 'close' ) . remove ( ) ;
111111 } ;
112112 /**
@@ -155,7 +155,7 @@ const DatabaseEvents = {
155155 Functions . ajaxRemoveMessage ( $msg ) ;
156156 // Now define the function that is called when
157157 // the user presses the "Go" button
158- that . buttonOptions [ Messages . strGo ] = function ( ) {
158+ that . buttonOptions [ window . Messages . strGo ] = function ( ) {
159159 // Move the data from the codemirror editor back to the
160160 // textarea, where it can be used in the form submission.
161161 if ( typeof window . CodeMirror !== 'undefined' ) {
@@ -168,7 +168,7 @@ const DatabaseEvents = {
168168 */
169169 var data = $ ( 'form.rte_form' ) . last ( ) . serialize ( ) ;
170170 $msg = Functions . ajaxShowMessage (
171- Messages . strProcessingRequest
171+ window . Messages . strProcessingRequest
172172 ) ;
173173 var url = $ ( 'form.rte_form' ) . last ( ) . attr ( 'action' ) ;
174174 $ . post ( url , data , function ( data ) {
@@ -270,7 +270,7 @@ const DatabaseEvents = {
270270 } ) ; // end $.post()
271271 } // end "if (that.validate())"
272272 } ; // end of function that handles the submission of the Editor
273- that . buttonOptions [ Messages . strClose ] = function ( ) {
273+ that . buttonOptions [ window . Messages . strClose ] = function ( ) {
274274 $ ( this ) . dialog ( 'close' ) ;
275275 } ;
276276 /**
@@ -342,7 +342,7 @@ const DatabaseEvents = {
342342 * @var msg jQuery object containing the reference to
343343 * the AJAX message shown to the user
344344 */
345- var $msg = Functions . ajaxShowMessage ( Messages . strProcessingRequest ) ;
345+ var $msg = Functions . ajaxShowMessage ( window . Messages . strProcessingRequest ) ;
346346 var params = Functions . getJsConfirmCommonParam ( this , $this . getPostData ( ) ) ;
347347 $ . post ( url , params , function ( data ) {
348348 if ( data . success === true ) {
@@ -399,12 +399,12 @@ const DatabaseEvents = {
399399
400400 dropMultipleDialog : function ( $this ) {
401401 // We ask for confirmation here
402- $this . confirm ( Messages . strDropRTEitems , '' , function ( ) {
402+ $this . confirm ( window . Messages . strDropRTEitems , '' , function ( ) {
403403 /**
404404 * @var msg jQuery object containing the reference to
405405 * the AJAX message shown to the user
406406 */
407- var $msg = Functions . ajaxShowMessage ( Messages . strProcessingRequest ) ;
407+ var $msg = Functions . ajaxShowMessage ( window . Messages . strProcessingRequest ) ;
408408
409409 // drop anchors of all selected rows
410410 var dropAnchors = $ ( 'input.checkall:checked' ) . parents ( 'tr' ) . find ( '.drop_anchor' ) ;
@@ -495,15 +495,15 @@ const DatabaseEvents = {
495495 $elm = this . $ajaxDialog . find ( 'input[name=item_interval_value]' ) ;
496496 if ( $elm . val ( ) === '' ) {
497497 $elm . trigger ( 'focus' ) ;
498- alert ( Messages . strFormEmpty ) ;
498+ alert ( window . Messages . strFormEmpty ) ;
499499 return false ;
500500 }
501501 } else {
502502 // The execute_at field must not be empty for "once off" events
503503 $elm = this . $ajaxDialog . find ( 'input[name=item_execute_at]' ) ;
504504 if ( $elm . val ( ) === '' ) {
505505 $elm . trigger ( 'focus' ) ;
506- alert ( Messages . strFormEmpty ) ;
506+ alert ( window . Messages . strFormEmpty ) ;
507507 return false ;
508508 }
509509 }
0 commit comments