Browse Source

Adding the slider-ID to the wrapping element.

As it's the unique identifier, the namespace-index should also be added as ID of the slider-element.
pull/204/head
Emanuel 12 years ago
parent
commit
b7b7375104
  1. 6
      responsiveslides.js

6
responsiveslides.js

@ -142,8 +142,10 @@
this.id = slideClassPrefix + i; this.id = slideClassPrefix + i;
}); });
// Add max-width and classes // Add max-width, id and classes
$this.addClass(namespace + " " + namespaceIdx); $this
.addClass(namespace + " " + namespaceIdx)[0]
.id = namespaceIdx;
if (options && options.maxwidth) { if (options && options.maxwidth) {
$this.css("max-width", maxw); $this.css("max-width", maxw);
} }

Loading…
Cancel
Save