minify js, css

This commit is contained in:
bnu 2013-11-24 01:52:23 +09:00
parent 21be1718e6
commit 75a2a95ff0
7 changed files with 6 additions and 8 deletions

View file

@ -1,2 +1 @@
function doPoll(fo_obj){var checkcount=new Array(),item=new Array();for(var i=0;i<fo_obj.length;i++){var obj=fo_obj[i];if(obj.nodeName!='INPUT')continue;var name=obj.name;if(name.indexOf('checkcount')>-1){var t=name.split('_'),poll_srl_index=parseInt(t[1],10);checkcount[poll_srl_index]=obj.value;item[poll_srl_index]=new Array()}else if(name.indexOf('item_')>-1){var t=name.split('_'),poll_srl=parseInt(t[1],10),poll_srl_index=parseInt(t[2],10);if(obj.checked==true)item[poll_srl_index][item[poll_srl_index].length]=obj.value}};var poll_srl_indexes="";for(var poll_srl_index in checkcount){if(!checkcount.hasOwnProperty(poll_srl_index))continue;var count=checkcount[poll_srl_index],items=item[poll_srl_index];if(items.length<1||count<items.length){alert(poll_alert_lang);return false};poll_srl_indexes+=items.join(',')+','};fo_obj.poll_srl_indexes.value=poll_srl_indexes;procFilter(fo_obj,poll);return false};jQuery(function($){$('._poll_result').click(function(){var cls=$(this).attr('class'),srl,skin;try{srl=cls.match(/\b_srl_(\d+)\b/)[1];skin=cls.match(/\b_skin_(.+?)\b/)[1]}catch(e){};if(!srl)return false;if(!skin)skin='default'
function on_complete(ret){var $poll=$('#poll_'+srl),width;width=$poll.width();$poll.html(ret.tpl);$poll.width(width)};exec_xml('poll','procPollViewResult',{poll_srl:srl,skin:skin},on_complete,['error','message','tpl']);return false})})
function doPoll(a){for(var b=new Array,c=new Array,d=0;d<a.length;d++){var e=a[d];if("INPUT"==e.nodeName){var f=e.name;if(f.indexOf("checkcount")>-1){var g=f.split("_"),h=parseInt(g[1],10);b[h]=e.value,c[h]=new Array}else if(f.indexOf("item_")>-1){var g=f.split("_"),h=(parseInt(g[1],10),parseInt(g[2],10));1==e.checked&&(c[h][c[h].length]=e.value)}}}var i="";for(var h in b)if(b.hasOwnProperty(h)){var j=b[h],k=c[h];if(k.length<1||j<k.length)return alert(poll_alert_lang),!1;i+=k.join(",")+","}a.poll_srl_indexes.value=i,a.submit()}jQuery(function(a){a("._poll_result").click(function(){function b(b){var d,e=a("#poll_"+c);d=e.width(),e.html(b.tpl),e.width(d)}var c,d,e=a(this).attr("class");try{c=e.match(/\b_srl_(\d+)\b/)[1],d=e.match(/\b_skin_(.+?)\b/)[1]}catch(f){}return c?(d||(d="default"),exec_xml("poll","procPollViewResult",{poll_srl:c,skin:d},b,["error","message","tpl"]),!1):!1})});