mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
fix: remove alert() from bizstyle js.
change: overkilled breadcrumb stripping.
This commit is contained in:
parent
4aa4d08a0a
commit
20d55bd5b6
@ -19,16 +19,14 @@ $(document).ready(function(){
|
|||||||
if (item.text.length > 20) {
|
if (item.text.length > 20) {
|
||||||
var tmpstr = item.text
|
var tmpstr = item.text
|
||||||
$(item).attr("title", tmpstr);
|
$(item).attr("title", tmpstr);
|
||||||
$(item).text(tmpstr.substr(0, 5) + "...");
|
$(item).text(tmpstr.substr(0, 17) + "...");
|
||||||
alert(i + ":" + item.text + ":" + $(item).attr("title") + ":" + $(item).size());
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$("div.related:last ul li:not(.right) a").slice(1).each(function(i, item){
|
$("div.related:last ul li:not(.right) a").slice(1).each(function(i, item){
|
||||||
if (item.text.length > 20) {
|
if (item.text.length > 20) {
|
||||||
var tmpstr = item.text
|
var tmpstr = item.text
|
||||||
$(item).attr("title", tmpstr);
|
$(item).attr("title", tmpstr);
|
||||||
$(item).text(tmpstr.substr(0, 5) + "...");
|
$(item).text(tmpstr.substr(0, 17) + "...");
|
||||||
alert(i + ":" + item.text + ":" + $(item).attr("title") + ":" + $(item).size());
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user