Skip to content

Reformat the javascript code as per magento standards. #15352

@sanganinamrata

Description

@sanganinamrata
  1. Magento 2.2.4
  2. PHP 7.1.15
  3. MySQL 14.14
  4. Ubuntu

Use javascript inside *.phtml file it's legacy code that we try to refactor according to Magento way.
For that we have <script type="text/x-magento-init" /> tag, where we declare path to JS file and pass parameters if they are needed.

Preconditions

N/A

Steps to reproduce

N/A

Expected result

JS Script code should be removed from template file and treated as a separate component

Actual result

Affected file: app/code/Magento/Tax/view/adminhtml/templates/class/page/edit.phtml
JS script is added directly to template file.(Wrong coding format)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Event: dmcdindiaFixed in 2.1.xThe issue has been fixed in 2.1 release lineFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Format is validGate 1 Passed. Automatic verification of issue format passed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions