9 'Magento_Ui/js/modal/alert',
15 VarienExport = Class.create();
16 VarienExport.prototype = {
17 initialize:
function() {
22 this.previousGridEntity =
'';
28 modifyFilterGrid:
function() {
29 if ($(
'entity') && $F(
'entity') && $F(
'entity') !=
'catalog_product') {
30 $$(
'col:first-child').each(
function(el) {
33 $$(
'th.no-link:first-child').each(
function(el) {
36 $$(
'td.a-center').each(
function(el) {
45 getFilter:
function() {
46 if ($(
'entity') && $F(
'entity')) {
47 var url =
"<?= /* @escapeNotVerified */ $block->getUrl('*/*/getFilter') ?>";
48 var entity = $F(
'entity');
49 if (entity != this.previousGridEntity) {
50 this.previousGridEntity = entity;
51 url += ((url.slice(-1) !=
'/') ?
'/' :
'') +
'entity/' + entity;
52 new Ajax.Request(url, {
55 onComplete:
function(transport) {
56 var responseText = transport.responseText.replace(/>\s+</g,
'><');
57 $(
'export_filter_grid_container').update(responseText);
58 this.modifyFilterGrid();
59 $(
'export_filter_container').show();
60 $(
'messages').update();
64 this.modifyFilterGrid();
67 this.previousGridEntity =
'';
68 $(
'export_filter_container').hide();
78 getFile =
function() {
79 if ($(
'entity') && $F(
'entity')) {
80 var
form = $(
'export_filter_form');
81 var oldAction =
form.action;
82 var url = oldAction + ((oldAction.slice(-1) !=
'/') ?
'/' :
'') +
'entity/' + $F(
'entity')
83 +
'/file_format/' + $F(
'file_format');
84 if ($F(
'fields_enclosure')) {
85 url +=
'/fields_enclosure/' + $F(
'fields_enclosure');
89 form.action = oldAction;
92 content:
'Invalid data' 97 varienExport =
new VarienExport();
jquery extjs ext tree mage adminhtml form