Removed Tips Common from each js file
This commit is contained in:
parent
ca552d86fb
commit
c297df5b16
@ -1,4 +1,4 @@
|
||||
$import(Tips Common)
|
||||
|
||||
|
||||
//Account filtering for cost center
|
||||
cur_frm.fields_dict['budget_details'].grid.get_field('account').get_query = function(doc) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
$import(Tips Common)
|
||||
|
||||
|
||||
//--------- ONLOAD -------------
|
||||
cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
$import(Tips Common)
|
||||
|
||||
|
||||
//--------- ONLOAD -------------
|
||||
cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
$import(Tips Common)
|
||||
|
||||
|
||||
//--------- ONLOAD -------------
|
||||
cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
//$import(Tips Common)
|
||||
//
|
||||
|
||||
//--------- ONLOAD -------------
|
||||
cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
||||
|
@ -13,7 +13,7 @@ def replace_code(old, new):
|
||||
print 'Found in %s' % t
|
||||
|
||||
if __name__=='__main__':
|
||||
old = """\.button("""
|
||||
new = ""
|
||||
old = """$import(Tips Common)"""
|
||||
new = " "
|
||||
replace_code(old, new)
|
||||
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
$import(Tips Common)
|
||||
|
||||
|
||||
//--------- ONLOAD -------------
|
||||
cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
$import(Tips Common)
|
||||
|
||||
|
||||
//--------- ONLOAD -------------
|
||||
cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
$import(Tips Common)
|
||||
|
||||
|
||||
//--------- ONLOAD -------------
|
||||
cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
$import(Tips Common)
|
||||
|
||||
|
||||
//--------- ONLOAD -------------
|
||||
cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
$import(Tips Common)
|
||||
|
||||
|
||||
//--------- ONLOAD -------------
|
||||
cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
//Tips not required
|
||||
/*
|
||||
$import(Tips Common)
|
||||
|
||||
|
||||
//--------- ONLOAD -------------
|
||||
cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
$import(Tips Common)
|
||||
|
||||
|
||||
cur_frm.cscript.onload = function(){
|
||||
cur_frm.cscript.get_tips(doc, cdt, cdn);
|
||||
|
@ -1,4 +1,4 @@
|
||||
$import(Tips Common)
|
||||
|
||||
|
||||
cur_frm.cscript.onload = function(){
|
||||
cur_frm.cscript.get_tips(doc, cdt, cdn);
|
||||
|
@ -1,4 +1,4 @@
|
||||
$import(Tips Common)
|
||||
|
||||
|
||||
//--------- ONLOAD -------------
|
||||
cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
$import(Tips Common)
|
||||
|
||||
|
||||
//--------- ONLOAD -------------
|
||||
cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
$import(Tips Common)
|
||||
|
||||
|
||||
//--------- ONLOAD -------------
|
||||
cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
||||
|
@ -4,14 +4,11 @@ import webnotes
|
||||
from webnotes.utils import add_days, add_months, add_years, cint, cstr, date_diff, default_fields, flt, fmt_money, formatdate, generate_hash, getTraceback, get_defaults, get_first_day, get_last_day, getdate, has_common, month_name, now, nowdate, replace_newlines, sendmail, set_default, str_esc_quote, user_format, validate_email_add
|
||||
from webnotes.model import db_exists
|
||||
from webnotes.model.doc import Document, addchild, removechild, getchildren, make_autoname, SuperDocType
|
||||
from webnotes.model.doclist import getlist, copy_doclist
|
||||
from webnotes.model.doclist import getlist
|
||||
from webnotes.model.code import get_obj, get_server_obj, run_server_obj, updatedb, check_syntax
|
||||
from webnotes import session, form, is_testing, msgprint, errprint
|
||||
|
||||
set = webnotes.conn.set
|
||||
sql = webnotes.conn.sql
|
||||
get_value = webnotes.conn.get_value
|
||||
in_transaction = webnotes.conn.in_transaction
|
||||
convert_to_lists = webnotes.conn.convert_to_lists
|
||||
|
||||
# -----------------------------------------------------------------------------------------
|
||||
@ -61,4 +58,4 @@ class DocType:
|
||||
def get_country(self):
|
||||
cty = sql("select value from `tabSingles` where field = 'country' and doctype = 'Control Panel'")
|
||||
|
||||
return cty and cty[0][0] or ''
|
||||
return cty and cty[0][0] or ''
|
||||
|
@ -5,8 +5,8 @@
|
||||
{
|
||||
'creation': '2010-08-08 17:09:24',
|
||||
'docstatus': 0,
|
||||
'modified': '2010-09-20 14:06:57',
|
||||
'modified_by': 'sneha@webnotestech.com',
|
||||
'modified': '2011-07-04 17:10:23',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'Administrator'
|
||||
},
|
||||
|
||||
@ -20,12 +20,31 @@
|
||||
'section_style': 'Simple',
|
||||
'server_code_error': ' ',
|
||||
'show_in_menu': 0,
|
||||
'version': 108
|
||||
'version': 110
|
||||
},
|
||||
|
||||
# These values are common for all DocPerm
|
||||
{
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 1,
|
||||
'name': '__common__',
|
||||
'parent': 'Setup Wizard Control',
|
||||
'parentfield': 'permissions',
|
||||
'parenttype': 'DocType',
|
||||
'permlevel': 0,
|
||||
'read': 1,
|
||||
'role': 'All',
|
||||
'write': 1
|
||||
},
|
||||
|
||||
# DocType, Setup Wizard Control
|
||||
{
|
||||
'doctype': 'DocType',
|
||||
'name': 'Setup Wizard Control'
|
||||
},
|
||||
|
||||
# DocPerm
|
||||
{
|
||||
'doctype': 'DocPerm'
|
||||
}
|
||||
]
|
@ -1,4 +1,4 @@
|
||||
$import(Tips Common)
|
||||
|
||||
|
||||
//--------- ONLOAD -------------
|
||||
cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
$import(Tips Common)
|
||||
|
||||
|
||||
// ONLOAD
|
||||
// ===================================================================================
|
||||
|
@ -1,4 +1,4 @@
|
||||
$import(Tips Common)
|
||||
|
||||
|
||||
//--------- ONLOAD -------------
|
||||
cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
$import(Tips Common)
|
||||
|
||||
|
||||
cur_frm.cscript.refresh = function(doc, cdt, cdn) {
|
||||
cur_frm.cscript.get_tips(doc, cdt, cdn);
|
||||
|
@ -1,4 +1,4 @@
|
||||
$import(Tips Common)
|
||||
|
||||
|
||||
//--------- ONLOAD -------------
|
||||
cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
$import(Tips Common)
|
||||
|
||||
|
||||
//--------- ONLOAD -------------
|
||||
cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
$import(Tips Common)
|
||||
|
||||
|
||||
//--------- ONLOAD -------------
|
||||
cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
||||
|
@ -5,8 +5,8 @@
|
||||
{
|
||||
'creation': '2010-12-16 23:46:03',
|
||||
'docstatus': 0,
|
||||
'modified': '2010-12-18 13:30:38',
|
||||
'modified_by': 'yogesh@webnotestech.com',
|
||||
'modified': '2011-07-04 16:58:27',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'Administrator'
|
||||
},
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
$import(Tips Common)
|
||||
|
||||
|
||||
//--------- ONLOAD -------------
|
||||
cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
$import(Tips Common)
|
||||
|
||||
|
||||
cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
||||
cur_frm.cscript.get_tips(doc, cdt, cdn);
|
||||
|
Loading…
Reference in New Issue
Block a user