Skip to content
Browse files

Icon Chooser Bug Fix

  • Loading branch information...
1 parent 6264d9c commit f251078b45480fa28f85f0d26e40fc3781cd1687 @joshuagatcke committed Feb 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 0.92beta/elements.html
View
4 0.92beta/elements.html
@@ -757,13 +757,13 @@ <h3 id="horizontal-rules">Horizontal Rules</h3>
$('#icon-size').change(function(){
icons.removeClass('small medium large x-large').addClass($(this).attr('value'));
var iconClass = $('.icon.selected').attr('class').replace(' selected', "");
- iconCode.html('&lt;span class=&quot;'+iconClass+'&quot;&gt;'+$('.icon.selected').text()+'&lt;/span&gt;');
+ iconCode.html('&lt;span class=&quot;'+iconClass+'&quot; data-icon="'+$('.icon.selected').text()+'"&gt;&lt;/span&gt;');
});
$('#icon-color').change(function(){
icons.removeClass('gray darkgray black white red blue green pink').addClass($(this).attr('value'));
var iconClass = $('.icon.selected').attr('class').replace(' selected', "");
- iconCode.html('&lt;span class=&quot;'+iconClass+'&quot;&gt;'+$('.icon.selected').text()+'&lt;/span&gt;');
+ iconCode.html('&lt;span class=&quot;'+iconClass+'&quot; data-icon="'+$('.icon.selected').text()+'"&gt;&lt;/span&gt;');
});
icons.click(function(){

0 comments on commit f251078

Please sign in to comment.
Something went wrong with that request. Please try again.