app/views/cytoplasm/settings/edit.html.erb in cytoplasm-0.1.3 vs app/views/cytoplasm/settings/edit.html.erb in cytoplasm-0.1.4

- old
+ new

@@ -307,12 +307,10 @@ $('input[name=nav_background_color]').cytoColorPicker("value",$.Cytoplasm("vars","layout.header.nav.background")); // Fetch fonts $.cytoAjax("/cytoplasm/fonts/fetch_all",function(data){ console.log(data); - - // Directory select var fds = $('input[name=fonts_directory]'); var ffs = $('#fontfamilyselect'); var iffs = $('.ind_font_fam_select'); var ifs = $('.ind_font_select'); @@ -343,10 +341,11 @@ select.cytoSelect("refresh").data('font',fam[select.val()]); }); }); */ + // Directory select fds.cytoRadio("value",$.Cytoplasm("conf","fontloader.directory")).cytoRadio("options",{ events:{ change:$.debounce(100,true,function(e){ var fonts = {}; var imported = {}; @@ -369,9 +368,10 @@ ffs.cytoSelect("update",fonts); }) } }); + // Family select ffs.cytoSelect("options",{ events:{ change:function(cy,e){ var dir = fds.cytoRadio("value"); var f = data[dir][$(this).cytoSelect("value")]; \ No newline at end of file