line_items.js in modules/AOS_Products_Quotes

I removed product line button in line_items.js in modules/AOS_Products_Quotes:

footer_cell.innerHTML="<input type=‘button’ tabindex=‘116’ class=‘button’ value=’"+SUGAR.language.get(module_sugar_grp1, ‘LBL_ADD_PRODUCT_LINE’)+"’ id=’"+productTable.id+“addProductLine’ onclick='insertProductLine(”"+productTable.id+"",""+groupn+"")’ />";

and now i cant get it back! I uploaded line_items.js from copy and repaired…

Seems Like A Cache Issue…

I am currently working on this.

The “updgrade safe” method they always talk about is to put the js file in the /custom/modules/ folder

/custom/modules/AOS_Products_Quotes/line_items.js

there is a line in the controller to check for the existence of this js file.

Then make your changes there and you won’t mess up the core files.

1 Like