FLUID-2467: fluid.pager.selfRender() hard-codes style class for root node.

Metadata

Source
FLUID-2467
Type
Bug
Priority
Blocker
Status
Closed
Resolution
Fixed
Assignee
y z
Reporter
Anastasia Cheetham
Created
2009-04-02T10:07:36.000-0400
Updated
2009-06-03T13:40:07.000-0400
Versions
  1. 1.0
Fixed Versions
  1. 1.1
Component
  1. Pager

Description

The fluid.pager.selfRender() function programmatically adds a hard-coded class name to the root node:

var root = that.locate("root");
root.addClass("fl-pager");

Instead of using "fl-pager" directly, the style name should be taken from the styles option (which would default to "fl-pager", and users should be allowed to override it:

root.addClass(options.styles.root);
...
fluid.defaults("fluid.pager.selfRender", {
styles: {
root: "fl-pager"
}
}

Attachments

Comments

  • y z commented 2009-05-07T10:16:42.000-0400

    this is a patch for the issue

  • y z commented 2009-05-07T10:31:32.000-0400

    this is a patch for the issue