diff --git a/erpnext/home/page/dashboard/dashboard.js b/erpnext/home/page/dashboard/dashboard.js index 8ef2ffb0c52..e8f2992208d 100644 --- a/erpnext/home/page/dashboard/dashboard.js +++ b/erpnext/home/page/dashboard/dashboard.js @@ -1,6 +1,5 @@ pscript.onload_dashboard = function() { // load jqplot - $.scriptPath = 'js/' wn.require('lib/css/jqpot.css'); wn.require('lib/js/legacy/jquery/jquery.jqplot.min.js'); wn.require('lib/js/legacy/jquery/jqplot-plugins/jqplot.barRenderer.js'); diff --git a/erpnext/patches/jan_mar_2012/website.py b/erpnext/patches/jan_mar_2012/website.py index dfa0a3d5f1c..777e0ef06d9 100644 --- a/erpnext/patches/jan_mar_2012/website.py +++ b/erpnext/patches/jan_mar_2012/website.py @@ -16,10 +16,14 @@ def execute(): reload_doc('website', 'doctype', 'top_bar_item') reload_doc('website', 'doctype', 'contact_us_settings') reload_doc('website', 'doctype', 'about_us_settings') + reload_doc('website', 'doctype', 'blog') + reload_doc('website', 'doctype', 'blog_subscriber') reload_doc('website', 'page', 'home') reload_doc('website', 'page', 'contact') reload_doc('website', 'page', 'about') + reload_doc('website', 'page', 'blog') + reload_doc('website', 'page', 'unsubscribe') def add_website_manager(): """add website manager to system manager""" diff --git a/erpnext/selling/page/sales_dashboard/sales_dashboard.js b/erpnext/selling/page/sales_dashboard/sales_dashboard.js index cdb5c7cf526..d15c6023336 100644 --- a/erpnext/selling/page/sales_dashboard/sales_dashboard.js +++ b/erpnext/selling/page/sales_dashboard/sales_dashboard.js @@ -5,11 +5,10 @@ pscript['onload_Sales Dashboard'] = function() { $dh(pscript.mnt_div); $dh(pscript.mnt_div1); //pscript.dx_axis = []; - - if($.jqplot) pscript.all_onchnge(); - else - // import the library - $c_js('jquery/jquery.jqplot.min.js', pscript.all_onchnge); + + wn.require('lib/css/jqpot.css'); + wn.require('lib/js/legacy/jquery/jquery.jqplot.min.js'); + pscript.all_onchnge(); } //======================================================================= pscript.make_filters = function(){ diff --git a/erpnext/startup/event_handlers.py b/erpnext/startup/event_handlers.py index 8b1a7cfe8dc..603d8f33f8d 100644 --- a/erpnext/startup/event_handlers.py +++ b/erpnext/startup/event_handlers.py @@ -42,7 +42,7 @@ def boot_session(bootinfo): if webnotes.session['user']=='Guest': bootinfo['topbar'] = webnotes.model.doc.getsingle('Top Bar Settings') bootinfo['topbaritems'] = webnotes.conn.sql("""select label, std_page, custom_page, parent_label - from `tabTop Bar Item`""", as_dict=1) + from `tabTop Bar Item` where parent='Top Bar Settings' order by idx asc""", as_dict=1) else: bootinfo['letter_heads'] = get_letter_heads() diff --git a/erpnext/website/doctype/blog_subscriber/__init__.py b/erpnext/website/doctype/blog_subscriber/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/erpnext/website/doctype/blog_subscriber/blog_subscriber.txt b/erpnext/website/doctype/blog_subscriber/blog_subscriber.txt new file mode 100644 index 00000000000..1b4a9872055 --- /dev/null +++ b/erpnext/website/doctype/blog_subscriber/blog_subscriber.txt @@ -0,0 +1,29 @@ +# DocType, Blog Subscriber +[ + + # These values are common in all dictionaries + { + 'creation': '2012-01-27 17:18:33', + 'docstatus': 0, + 'modified': '2012-01-27 17:18:33', + 'modified_by': 'Administrator', + 'owner': 'Administrator' + }, + + # These values are common for all DocType + { + 'colour': 'White:FFF', + 'doctype': 'DocType', + 'module': 'Website', + 'name': '__common__', + 'section_style': 'Simple', + 'show_in_menu': 0, + 'version': 1 + }, + + # DocType, Blog Subscriber + { + 'doctype': 'DocType', + 'name': 'Blog Subscriber' + } +] \ No newline at end of file diff --git a/erpnext/website/js/topbar.js b/erpnext/website/js/topbar.js index 85d975bdb4e..788ed62f6c6 100644 --- a/erpnext/website/js/topbar.js +++ b/erpnext/website/js/topbar.js @@ -20,7 +20,7 @@ erpnext.topbar.TopBar = Class.extend({ $('header').append('