Rev 2071 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 2071 | Rev 2080 | ||
|---|---|---|---|
| Line 59... | Line 59... | ||
| 59 | 59 | ||
| 60 | 60 | ||
| 61 | /* Loop through all the aliases and create sliders */ |
61 | /* Loop through all the aliases and create sliders */ |
| 62 | jQuery.each(pageInstance.aliases, function(n, alias) |
62 | jQuery.each(pageInstance.aliases, function(n, alias) |
| 63 | { |
63 | { |
| - | 64 | var name = alias; |
|
| - | 65 | ||
| - | 66 | if (aliasNames[alias]) |
|
| - | 67 | { |
|
| - | 68 | name = aliasNames[alias]; |
|
| - | 69 | } |
|
| - | 70 | ||
| 64 | /* Create the slider HTML from the template and add it to the DOM */ |
71 | /* Create the slider HTML from the template and add it to the DOM */ |
| 65 | pageInstance.pageSliderElements[alias] = $("#page-dimmers-slider-template").tmpl({ alias: |
72 | pageInstance.pageSliderElements[alias] = $("#page-dimmers-slider-template").tmpl({ alias: name, name: name, value: 0 }).appendTo(pageInstance.pageContentElement).trigger("create"); |
| 66 | 73 | ||
| 67 | /* Before we have any value it should be disabled */ |
74 | /* Before we have any value it should be disabled */ |
| 68 | pageInstance.pageSliderElements[alias].find("input").slider("disable"); |
75 | pageInstance.pageSliderElements[alias].find("input").slider("disable"); |
| 69 | 76 | ||
| 70 | /* Bind a change event to the slider */ |
77 | /* Bind a change event to the slider */ |