Umc_Base icon indicating copy to clipboard operation
Umc_Base copied to clipboard

prototype issue

Open sivajik34 opened this issue 8 years ago • 1 comments

magento version 2.2.2

$.mage.validation.prototype._onSuccess = function(response) { ... umc.js:29 Uncaught TypeError: Cannot read property 'prototype' of undefined

sivajik34 avatar Jan 17 '18 13:01 sivajik34

Hello, I have fixed this issue. Please modify below file.

app/code/Umc/Base/view/adminhtml/web/js/umc.js

add 'mage/validation/validation' in define

so it will be like below

define([
'jquery',
'mage/template',
'Magento_Ui/js/modal/confirm',
'jquery/jstree/jquery.jstree',
'mage/validation/validation'  //added this line
], function($, mageTemplate, confirm) {

After that deploy static content. Hope it helps :)

dhavalsolankidrc avatar Nov 23 '18 09:11 dhavalsolankidrc