* Move tab functionality to a separate module
* Fix broken library placeholders * Restrict tab width and add text panning to tab name * General bugfixing and cleanup of tab functionality
This commit is contained in:
parent
0d80f857d3
commit
8dcea06077
9 changed files with 272 additions and 225 deletions
|
@ -157,27 +157,14 @@ $(document).ready(function () {
|
|||
getUsabilityHint();
|
||||
}
|
||||
});
|
||||
},
|
||||
"fnCreatedRow": function(nRow) {
|
||||
$(nRow).find("td").hover(
|
||||
function () {
|
||||
var sw = $(this)[0].scrollWidth, iw = $(this).innerWidth();
|
||||
if (sw > iw) {
|
||||
$(this).stop().animate({
|
||||
textIndent: "-" + (sw - iw) + "px"
|
||||
}, sw * 8);
|
||||
}
|
||||
},
|
||||
function () {
|
||||
$(this).stop().animate({
|
||||
textIndent: "0"
|
||||
}, 500);
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
var parent = $("#recent_uploads"),fn = getPanTextFunctions();
|
||||
parent.on("mouseenter", "td", fn.mousein);
|
||||
parent.on("mouseleave", "td", fn.mouseout);
|
||||
|
||||
self.isRecentUploadsRefreshTimerActive = false;
|
||||
|
||||
self.startRefreshingRecentUploads = function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue