diff options
author | shimizukawa <shimizukawa@gmail.com> | 2014-10-09 22:41:32 +0900 |
---|---|---|
committer | shimizukawa <shimizukawa@gmail.com> | 2014-10-09 22:41:32 +0900 |
commit | 6e138746619973287809b83843b038fc2de69127 (patch) | |
tree | e829b3ea3fae66f30d50dce0f76e313f42ac699d | |
parent | 6075136a5b59e5fdb1b2dafd5f890f039a380ed3 (diff) | |
download | sphinx-6e138746619973287809b83843b038fc2de69127.tar.gz |
fix: remove alert() from bizstyle js.
change: overkilled breadcrumb stripping.
-rw-r--r-- | sphinx/themes/bizstyle/static/bizstyle.js_t | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sphinx/themes/bizstyle/static/bizstyle.js_t b/sphinx/themes/bizstyle/static/bizstyle.js_t index 1950d392..dfa90090 100644 --- a/sphinx/themes/bizstyle/static/bizstyle.js_t +++ b/sphinx/themes/bizstyle/static/bizstyle.js_t @@ -19,16 +19,14 @@ $(document).ready(function(){ if (item.text.length > 20) { var tmpstr = item.text $(item).attr("title", tmpstr); - $(item).text(tmpstr.substr(0, 5) + "..."); - alert(i + ":" + item.text + ":" + $(item).attr("title") + ":" + $(item).size()); + $(item).text(tmpstr.substr(0, 17) + "..."); } }); $("div.related:last ul li:not(.right) a").slice(1).each(function(i, item){ if (item.text.length > 20) { var tmpstr = item.text $(item).attr("title", tmpstr); - $(item).text(tmpstr.substr(0, 5) + "..."); - alert(i + ":" + item.text + ":" + $(item).attr("title") + ":" + $(item).size()); + $(item).text(tmpstr.substr(0, 17) + "..."); } }); }); |