Created
November 3, 2015 13:32
-
-
Save amelekesov/b44664f3c99a411233de to your computer and use it in GitHub Desktop.
Revisions
-
amelekesov created this gist
Nov 3, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ diff --git a/js/tygh/core.js b/js/tygh/core.js index 8a9c75c..8024d74 100644 --- a/js/tygh/core.js +++ b/js/tygh/core.js @@ -1191,15 +1191,12 @@ var Tygh = { frms.addClass('cm-processed-form'); frms.ceFormValidator(); - if (_.area == 'A') { - frms.filter('[method=post]:not(.cm-disable-check-changes)').addClass('cm-check-changes'); - var elms = (frms.length == 0) ? elm : frms; - - $('textarea.cm-wysiwyg', elms).appear(function() { - $(this).ceEditor(); - }); + frms.filter('[method=post]:not(.cm-disable-check-changes)').addClass('cm-check-changes'); + var elms = (frms.length == 0) ? elm : frms; - } + $('textarea.cm-wysiwyg', elms).appear(function() { + $(this).ceEditor(); + }); }, formatPrice: function(value, decplaces)