anchor.diff:      - for (var i = 0; i < data.modules.length; i+=2)
           .row
               +insertModule(data.modules[i])
  -            +insertModule(data.modules[i + 1])
  +            - if ((i + 1) != data.modules.length)
  +                +insertModule(data.modules[i + 1])
   
   
   block ScriptsPluginBlock
  
positive.code:                     }
                  }
              };
  
              var id = $('input[name="id"]', $form).val();
              var serverId = $form.closest('.card').find('select[name="server"] > option:selected').val();
  
negative.code:                 });
              }).trigger('change');
  
              $('.settings-form').each(function () {
                  var form = $(this);
                  validateForm({elementErrorClass: 'dummy'}, form, {
                      interval: {
                          required: true,
                          min: 1,
                          max: 60,
                          digits: true
                      },
                      repeat: {
                          required: true,
                          digits: true
                      },
                      'warning-value': {
                          required: true,
                          number: true
                      },
                      'critical-value': {
                          required: true,
                          number: true
                      }
                  }, function () {
                      onSaveMetricSettings(form)
                  });
              });
  
          });