diff --git a/public/js/wn/ui/toolbar/bookmarks.js b/public/js/wn/ui/toolbar/bookmarks.js index 0139e13d8a..13111060a8 100644 --- a/public/js/wn/ui/toolbar/bookmarks.js +++ b/public/js/wn/ui/toolbar/bookmarks.js @@ -42,7 +42,7 @@ wn.ui.toolbar.Bookmarks = Class.extend({ } // max length - if(this.bookmarks.length >= 17) { + if(this.bookmarks.length >= 11) { this.remove(this.bookmarks[this.bookmarks.length-1].route); } diff --git a/public/js/wn/ui/toolbar/recent.js b/public/js/wn/ui/toolbar/recent.js index ec34f51e92..f2296b07e4 100644 --- a/public/js/wn/ui/toolbar/recent.js +++ b/public/js/wn/ui/toolbar/recent.js @@ -26,7 +26,7 @@ wn.ui.toolbar.RecentDocs = Class.extend({ $('.navbar .nav:first').append(''); this.setup(); diff --git a/webnotes/model/code.py b/webnotes/model/code.py index bf60f40b6c..3a38facac4 100644 --- a/webnotes/model/code.py +++ b/webnotes/model/code.py @@ -126,7 +126,7 @@ def get_doctype_class(doctype, module): DocType = getattr(module, 'DocType') else: if not cint(webnotes.conn.get_value("DocType", doctype, "custom")): - raise e + raise Exception, "Unable to load module for :" + doctype class DocType: def __init__(self, d, dl):