[Slashdotjp-dev 1478] [1009] Fix: sortable slashboxes is enabled only in toppage

アーカイブの一覧に戻る

svnno****@sourc***** svnno****@sourc*****
2009年 2月 13日 (金) 18:26:19 JST


Revision: 1009
          http://svn.sourceforge.jp/view?root=slashdotjp&view=rev&rev=1009
Author:   tach
Date:     2009-02-13 18:26:19 +0900 (Fri, 13 Feb 2009)

Log Message:
-----------
Fix: sortable slashboxes is enabled only in toppage

Modified Paths:
--------------
    images/trunk/Makefile
    images/trunk/all-minified.js


-------------- next part --------------
Modified: images/trunk/Makefile
===================================================================
--- images/trunk/Makefile	2009-02-13 07:44:36 UTC (rev 1008)
+++ images/trunk/Makefile	2009-02-13 09:26:19 UTC (rev 1009)
@@ -85,6 +85,7 @@
 		sed -e "s/'top' : 'left';/'上の' : '左の';/" | \
 		sed -e 's/hidden comment</個の隠れコメント</' | \
 		sed -e 's/hidden comments</個の隠れコメント</' | \
+		sed -e "s/\$$('#slashboxes').sortable(/\$$('.section-mainpage #index #slashboxes').sortable(/" | \
 		perl fix-comments.js.pl >> $@
 	echo >> $@
 	if [ -f $@.jp ]; then cat $@.jp >> $@; fi

Modified: images/trunk/all-minified.js
===================================================================
--- images/trunk/all-minified.js	2009-02-13 07:44:36 UTC (rev 1008)
+++ images/trunk/all-minified.js	2009-02-13 09:26:19 UTC (rev 1009)
@@ -1308,7 +1308,7 @@
 function jquery_fn(fn){return function(expr){var $list=fn(this);if(expr!==undefined){$list=$list.filter(expr);}
 return this.pushStack($.unique($list));};}
 function elem_fn(fn){return function(elem){var $list=fn($(elem));if($list.length){return $list[0];}}}})(Slash.jQuery);;(function($){function save_slashboxes(){ajax_update({op:'page_save_user_boxes',reskey:reskey_static,bids:$('#slashboxes div.title').map(function(){return this.id.slice(0,-6);}).get().join(',')});}
-$(function(){$('#slashboxes').sortable({axis:'y',containment:'parent',handle:'.title',opacity:0.8,update:save_slashboxes}).find('> div.block > div.title > h4').
+$(function(){$('.section-mainpage #index #slashboxes').sortable({axis:'y',containment:'parent',handle:'.title',opacity:0.8,update:save_slashboxes}).find('> div.block > div.title > h4').
 append('<span class="closebox">x</span>').find('span.closebox').click(function(){$(this).nearest_parent('div.block').remove();save_slashboxes();});});})(Slash.jQuery);;var context_triggers,well_known_tags;function animate_wiggle($selector){$selector.animate({left:'-=3px'},20).animate({left:'+=6px'},20).animate({left:'-=6px'},20).animate({left:'+=6px'},20).animate({left:'-=3px'},20).queue(function(){$(this).css({left:''}).dequeue();});}
 var tag_server_fns={broadcast_tag_lists:function(broadcasts,options){var tuples=('<notify>'+broadcasts).split(/\n?<([\w:]*)>/).slice(1);if(tuples&&tuples.length>=2){var $listeners=$('.ready[context]',this);while(tuples.length>=2){var data=tuples.pop();var context=tuples.pop();var context_name=context.split(':')[0];$listeners.filter('[context*='+context_name+']').each(function(){if(this.receive_broadcast){this.receive_broadcast(data,context,options);}});}
 recompute_css_classes(this,$listeners);}



Slashdotjp-dev メーリングリストの案内
アーカイブの一覧に戻る