Skip to content

Instantly share code, notes, and snippets.

@amelekesov
Created November 3, 2015 13:32
Show Gist options
  • Save amelekesov/b44664f3c99a411233de to your computer and use it in GitHub Desktop.
Save amelekesov/b44664f3c99a411233de to your computer and use it in GitHub Desktop.
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment