Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-widget
view
adminhtml
templates
instance
js.phtml
Go to the documentation of this file.
1
<?php
6
?>
7
<script>
8
require([
9
'jquery'
,
10
'mage/template'
,
11
],
function
($, mageTemplate){
12
13
setSettings =
function
(urlTemplate, codeElement, themeElement) {
14
var url;
15
16
if
(!$(
'#edit_form'
).valid()) {
17
return
false
;
18
}
19
20
url = mageTemplate(urlTemplate, {
21
data: {
22
'code'
: $(
'#'
+ codeElement).val(),
23
'theme_id'
: $(
'#'
+ themeElement).val()
24
}
25
});
26
27
setLocation(url);
28
};
29
});
30
</script>