2010-10-29 69 views
0

即時通訊使用jquery ui potlet,我需要初始化dropper的portles。 現在當頁面加載portles崩潰時處於開啓模式。在初始化portlet中使用jquery ui

謝謝。

+0

您可以提供的任何代碼? – pex 2010-10-29 19:15:41

+0

即時通訊使用上面的默認代碼 – ulima69 2010-10-29 19:23:15

回答

0

使用默認的第代碼喜PEX IM:

$(function() { 
     $(".column").sortable({ 
      connectWith: '.column' 
     }); 

     $(".portlet").addClass("ui-widget ui-widget-content ui-helper-clearfix ui-corner-all") 
      .find(".portlet-header") 
       .addClass("ui-widget-header ui-corner-all") 
       .prepend('<span class="ui-icon ui-icon-minusthick"></span>') 
       .end() 
      .find(".portlet-content"); 

     $(".portlet-header .ui-icon").click(function() { 
      $(this).toggleClass("ui-icon-minusthick").toggleClass("ui-icon-plusthick"); 
      $(this).parents(".portlet:first").find(".portlet-content").toggle(); 
     }); 

     $(".column").disableSelection(); 
    });