cleanp: bookmarks
This commit is contained in:
parent
255bc84206
commit
571ac87478
3 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue