浏览代码

updating JS to ignore revision datetime when turning namespaces into labels

Garrick van Buren 12 年之前
父节点
当前提交
c5231a7417
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      assets/scripts/foreground.js

+ 2 - 2
assets/scripts/foreground.js

@@ -1,8 +1,8 @@
 jQuery(document).ready(function() {
   jQuery(document).foundation();
   // Split the namespace title into a title and a label
-  var $title = jQuery("h2:contains(':')").not(":contains('\"')").text().split(":");
-  jQuery("h2:contains(':')").not(":contains('\"')").html('<small class="label">' + $title[0] + '</small>' + $title[1]);
+  var $title = jQuery("h2:contains(':')").not(":contains('\"')").not(":contains('as of')").text().split(":");
+  jQuery("h2:contains(':')").not(":contains('\"')").not(":contains('as of')").html('<small class="label">' + $title[0] + '</small>' + $title[1]);
 
   // Turn categories into labels
   jQuery('#mw-normal-catlinks ul li a').addClass('label');