[ Index ]

MailPress 7.2

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/js/ -> mp_mailinglist_dropdown.js (source)

   1  var mp_ml_select = {
   2  
   3      ml : null,
   4  
   5      init : function() {
   6          mp_ml_select.ml = jQuery('#' + mp_ml_select_L10n.select);
   7  
   8          mp_ml_select.ml.change( function() { return mp_ml_select.submit(); });
   9          jQuery('form#' + mp_ml_select_L10n.form).submit( function() { return mp_ml_select.submit(); });
  10  
  11      },
  12  
  13      submit : function() {
  14          return (-1 == mp_ml_select.ml.val()) ? mp_ml_select.ko() : mp_ml_select.ok();
  15      },
  16  
  17      ok : function() {
  18          mp_ml_select.ml.css('background-color', '');
  19                  return true;
  20      },
  21  
  22      ko : function() {
  23          alert(mp_ml_select_L10n.error);
  24          mp_ml_select.ml.css('background-color', '#fdd');
  25          return false;
  26      }
  27  };
  28  jQuery(document).ready( function() { mp_ml_select.init(); });


Generated: Tue May 19 15:55:14 2020 Cross-referenced by PHPXref 0.7.1