cleanp: bookmarks

This commit is contained in:
Rushabh Mehta 2013-02-06 14:20:07 +05:30
parent 255bc84206
commit 571ac87478
3 changed files with 3 additions and 3 deletions

View file

@ -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);
}

View file

@ -26,7 +26,7 @@ wn.ui.toolbar.RecentDocs = Class.extend({
$('.navbar .nav:first').append('<li class="dropdown">\
<a class="dropdown-toggle" data-toggle="dropdown" href="#" \
title="'+wn._("Recent")+'"\
onclick="return false;"><i class="icon-undo"></i> <b class="caret"></b></a>\
onclick="return false;"><i class="icon-arrow-left"></i> <b class="caret"></b></a>\
<ul class="dropdown-menu" id="toolbar-recent"></ul>\
</li>');
this.setup();

View file

@ -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):