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.

Revisions

  1. amelekesov created this gist Nov 3, 2015.
    25 changes: 25 additions & 0 deletions js-tygh-core.js.diff
    Original 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)