Mercurial > hg > agora-ahsan
diff templates/snippet/snippet_details.js @ 120:3cd28df6f85b
Rename <option> attr for pygments style select
From name to data-name, because <option>s don't have names.
For the validator.
author | dellsystem <ilostwaldo@gmail.com> |
---|---|
date | Fri, 14 Sep 2012 21:54:56 -0400 (2012-09-15) |
parents | 7d753658dc0e |
children | cdfc1d269a75 |
line wrap: on
line diff
--- a/templates/snippet/snippet_details.js +++ b/templates/snippet/snippet_details.js @@ -23,7 +23,7 @@ */ var currentStyle = $('#change-highlighting').attr('data-default'); $('#change-highlighting').change(function () { - var newStyle = $(this).find(':selected').attr('name'); + var newStyle = $(this).find(':selected').attr('data-name'); $('.snippet').removeClass(currentStyle).addClass(newStyle); currentStyle = newStyle;