svnno****@sourc*****
svnno****@sourc*****
2009年 1月 7日 (水) 16:24:29 JST
Revision: 920 http://svn.sourceforge.jp/view?root=slashdotjp&view=rev&rev=920 Author: tach Date: 2009-01-07 16:24:28 +0900 (Wed, 07 Jan 2009) Log Message: ----------- fix usermode setting on firefox prefs Modified Paths: -------------- test/images/Makefile test/images/all-minified.js -------------- next part -------------- Modified: test/images/Makefile =================================================================== --- test/images/Makefile 2009-01-07 06:51:33 UTC (rev 919) +++ test/images/Makefile 2009-01-07 07:24:28 UTC (rev 920) @@ -46,6 +46,7 @@ $(jses): %: %.js $(patsubst %, %.js, $(jses)): %: %.orig cat $@.orig | \ + sed -e 's/if(name=="usermode"){/if(name=="firehose_usermode"){/' | \ sed -e 's/ Firehose / アレたま /' | \ sed -e 's/"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"/"日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"/' | \ sed -e 's/"Sun","Mon","Tue","Wed","Thu","Fri","Sat"/"日","月","火","水","木","金","土"/' | \ Modified: test/images/all-minified.js =================================================================== --- test/images/all-minified.js 2009-01-07 06:51:33 UTC (rev 919) +++ test/images/all-minified.js 2009-01-07 07:24:28 UTC (rev 920) @@ -1340,7 +1340,7 @@ function toggleFirehoseTagbox(id){$('#fhtagbox-'+id).toggleClasses('tagbox','hide');after_article_moved($('#firehose-'+id)[0]);} function firehose_set_options(name,value,context){if(firehose_user_class===0){return;} if(name=="color"&&value===undefined){return;} -var pairs=[["orderby","createtime","popularity","time","popularity"],["orderby","popularity","time","popularity","createtime"],["orderdir","ASC","asc","desc","DESC"],["orderdir","DESC","desc","asc","ASC"],["mode","full","abbrev","full","fulltitle"],["mode","fulltitle","full","abbrev","full"]];var params={};params.setting_name=name;params.context=context;params.op='firehose_set_options';params.reskey=reskey_static;var theForm=document.forms.firehoseform;if(name=="usermode"){value=value?1:0;params.setusermode=1;params[name]=value;} +var pairs=[["orderby","createtime","popularity","time","popularity"],["orderby","popularity","time","popularity","createtime"],["orderdir","ASC","asc","desc","DESC"],["orderdir","DESC","desc","asc","ASC"],["mode","full","abbrev","full","fulltitle"],["mode","fulltitle","full","abbrev","full"]];var params={};params.setting_name=name;params.context=context;params.op='firehose_set_options';params.reskey=reskey_static;var theForm=document.forms.firehoseform;if(name=="firehose_usermode"){value=value?1:0;params.setusermode=1;params[name]=value;} if(name=="nodates"||name=="nobylines"||name=="nothumbs"||name=="nocolors"||name=="mixedmode"||name=="nocommentcnt"||name=="nomarquee"||name=="noslashboxes"){value=value?1:0;params[name]=value;params.setfield=1;var classname;if(name=="nodates"){classname="date";}else if(name=="nobylines"){classname="nickname";} if(classname){$('#firehoselist .'+classname).setClass(classname+value?' hide':'');}} if(name=="fhfilter"&&theForm){for(i=0;i<theForm.elements.length;i++){if(theForm.elements[i].name=="fhfilter"){firehose_settings.fhfilter=theForm.elements[i].value;}}