Ray's changes for orbit bar

This commit is contained in:
Christophe Vilayphiou committed 2012-04-06 18:06:57 +08:00
1 parent 7f8047a645
commit 253f4bcb54
5 files changed
+903 -856

No files matched your search

+2 -1
View File
@@ -11,4 +11,5 @@
//= require jquery.tinyscrollbar.min
//= require orbit-1.0
//= require tinymce-jquery
//= require tinymce_orbit
//= require tinymce_orbit
//= require orbit-bar-search
@@ -0,0 +1,20 @@
$(document).on('click', '.orbit-bar-search', function (){
if ($(this).parents('.search').hasClass('visible')){
$(this).parents('.search').stop().animate({
'width':'28px',
});
$(this).parents('.search').css({
'background-color': 'transparent',
});
$(this).parents('.search').removeClass('visible');
}
else{
$(this).parents('.search').stop().animate({
'width':'265px',
});
$(this).parents('.search').css({
'background-color': 'rgba(0, 0, 0, 0.5)',
});
$(this).parents('.search').addClass('visible');
}
});