All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.org.richfaces.toolbar.js Maven / Gradle / Ivy

There is a newer version: 4.6.21.ayg
Show newest version
(function ($, rf) {

    rf.ui = rf.ui || {};

  rf.ui.toolbarHandlers = function(options) {
      if (options.id && options.events) {
          $('.rf-tb-itm', document.getElementById(options.id)).on(
              options.events);
      }
      var groups = options.groups;
      if (groups && groups.length > 0) {
          var group;
          for (var i = 0; i < groups.length; i++) {
              group = groups[i];
              if (group) {
                  var groupIds = group.ids;
                  var y;
                  var groupElements = [];
                  for (var y = 0; y < groupIds.length; y++) {
                      groupElements.push(document.getElementById(groupIds[y]));
                  }
                  $(groupElements).on(group.events);
              }
          }
      }
  }

})(RichFaces.jQuery, RichFaces);




© 2015 - 2024 Weber Informatics LLC | Privacy Policy