File tree 10 files changed +27
-22
lines changed
Config/view/adminhtml/templates/page/system/config/robots
Theme/view/frontend/templates/html
Widget/view/adminhtml/templates/instance
dev/tests/js/jasmine/tests/lib/mage
10 files changed +27
-22
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,14 @@ $jsonHelper = $this->helper('Magento\Framework\Json\Helper\Data');
16
16
17
17
<script>
18
18
require([
19
- 'prototype '
20
- ], function () {
19
+ 'jquery '
20
+ ], function ($ ) {
21
21
window.resetRobotsToDefault = function(){
22
- $('design_search_engine_robots_custom_instructions').value = <?php
22
+ $('# design_search_engine_robots_custom_instructions').val( <?php
23
23
/* @escapeNotVerified */ echo $ jsonHelper ->jsonEncode ($ block ->getRobotsDefaultCustomInstructions ())
24
- ?> ;
24
+ ?> ) ;
25
25
}
26
26
});
27
27
</script>
28
28
29
- <?php echo $ block ->getButtonHtml () ?>
29
+ <?php echo $ block ->getButtonHtml (); ?>
Original file line number Diff line number Diff line change 5
5
*/
6
6
?>
7
7
<script>
8
- jQuery(function() {
9
- window.print();
10
- });
8
+ require(
9
+ [
10
+ 'jquery'
11
+ ],
12
+ function($) {
13
+ $(function() {
14
+ window.print();
15
+ });
16
+ }
17
+ );
11
18
</script>
Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ define([
380
380
} ,
381
381
382
382
/**
383
- * Change page to previos
383
+ * Change page to previous
384
384
*/
385
385
previousPage : function ( ) {
386
386
this . currentPage ( this . currentPage ( ) - 1 ) ;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ define([
36
36
this . validation [ 'required-entry' ] = false ;
37
37
this . required ( false ) ;
38
38
} else {
39
- if ( ! option [ 'is_region_required' ] ) {
39
+ if ( option && ! option [ 'is_region_required' ] ) {
40
40
this . error ( false ) ;
41
41
this . validation = _ . omit ( this . validation , 'required-entry' ) ;
42
42
} else {
Original file line number Diff line number Diff line change 8
8
require([
9
9
'jquery',
10
10
'mage/template',
11
- 'prototype'
12
- ], function(jQuery, mageTemplate){
11
+ ], function($, mageTemplate){
13
12
14
13
setSettings = function(urlTemplate, codeElement, themeElement) {
15
14
var url;
16
15
17
- if (!jQuery ('#edit_form').valid()) {
16
+ if (!$ ('#edit_form').valid()) {
18
17
return false;
19
18
}
20
- codeElement = $F(codeElement);
21
- themeElement = $F(themeElement);
22
19
23
20
url = mageTemplate(urlTemplate, {
24
21
data: {
25
- 'code': codeElement,
26
- 'theme_id': themeElement
22
+ 'code': $('#' + codeElement).val() ,
23
+ 'theme_id': $('#' + themeElement).val()
27
24
}
28
25
});
29
26
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ define([
99
99
expect ( $ ( navSelector + ':eq(1)' ) . attr ( 'data-active' ) === 'true' ) . toBeTruthy ( ) ;
100
100
} ) ;
101
101
102
- it ( 'show previos ' , function ( ) {
102
+ it ( 'show previous ' , function ( ) {
103
103
galleryAPI . prev ( ) ;
104
104
expect ( $ ( navSelector + ':eq(0)' ) . attr ( 'data-active' ) === 'true' ) . toBeTruthy ( ) ;
105
105
} ) ;
Original file line number Diff line number Diff line change 202
202
* @protected
203
203
*/
204
204
_onError : function ( ) {
205
- this . trigger ( 'processStop' ) ;
205
+ $ ( 'body' ) . trigger ( 'processStop' ) ;
206
206
207
207
if ( this . options . errorUrl ) {
208
208
location . href = this . options . errorUrl ;
Original file line number Diff line number Diff line change 8
8
< div data-gallery-role ="fotorama__focusable-start " tabindex ="-1 "> </ div >
9
9
< div class ="fotorama__wrap fotorama__wrap--css3 fotorama__wrap--slide fotorama__wrap--toggle-arrows ">
10
10
< div class ="fotorama__stage " data-fotorama-stage ="fotorama__stage ">
11
- < div class ="fotorama__arr fotorama__arr--prev " tabindex ="0 " role ="button " aria-label ="Previos " data-gallery-role ="arrow ">
11
+ < div class ="fotorama__arr fotorama__arr--prev " tabindex ="0 " role ="button " aria-label ="Previous " data-gallery-role ="arrow ">
12
12
< div class ="fotorama__arr__arr "> </ div >
13
13
</ div >
14
14
< div class ="fotorama__stage__shaft " tabindex ="0 " data-gallery-role ="stage-shaft ">
25
25
< div class ="fotorama__nav-wrap " data-gallery-role ="nav-wrap ">
26
26
< div class ="fotorama__nav fotorama__nav--thumbs ">
27
27
< div class ="fotorama__fullscreen-icon " data-gallery-role ="fotorama__fullscreen-icon " tabindex ="0 " aria-label ="Exit fullscreen " role ="button "> </ div >
28
- < div class ="fotorama__thumb__arr fotorama__thumb__arr--left " role ="button " aria-label ="Previos " data-gallery-role ="arrow " tabindex = "-1 ">
28
+ < div class ="fotorama__thumb__arr fotorama__thumb__arr--left " role ="button " aria-label ="Previous " data-gallery-role ="arrow " tabindex = "-1 ">
29
29
< div class ="fotorama__thumb--icon "> </ div >
30
30
</ div >
31
31
< div class ="fotorama__nav__shaft ">
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ define([
38
38
'EEEE' : 'dddd' ,
39
39
'EEE' : 'ddd' ,
40
40
'e' : 'd' ,
41
+ 'yyyy' : 'YYYY' ,
41
42
'y' : 'YYYY' ,
42
43
'a' : 'A'
43
44
} ;
Original file line number Diff line number Diff line change 326
326
] ,
327
327
"stripped-min-length" : [
328
328
function ( value , element , param ) {
329
- return $ ( value ) . text ( ) . length >= param ;
329
+ return value . length >= param ;
330
330
} ,
331
331
'Please enter at least {0} characters'
332
332
] ,
You can’t perform that action at this time.
0 commit comments