diff --git a/assets/js/document.js b/assets/js/document.js
index <HASH>..<HASH> 100644
--- a/assets/js/document.js
+++ b/assets/js/document.js
@@ -106,7 +106,7 @@ function refLink() {
         .insertAfter($this)
         .click(function () {
             var id = $this.val() || 'new';
-            var refType = $this.data('ref').toLocaleLowerCase();
+            var refType = $this.data('ref');
             var url = [root, '/model/', refType, '/document/', id, '?_dialog=yes'].join('');
             window.showDialog($this, url);
         });
Update RefWidget to use modelName, not label, in the popups.