CRM 2011 java script changes for rollup 12 13

Here you can get all java script changes which you have to change to migrate from crm2011 rollup11 to rollup 12/13.

Java Script for disabling filter lookup view selector :-

Java Script for disabling filter lookup view selector :-

For Rollup 11,

document.getElementById(“Lookup Id”).disableViewPicker = 1;

For Rollup 12,13 for cross browser support.

document.getElementById(“Lookup Id”)._behaviors[0].AddParam(“DisableViewPicker”, “1”);

document.getElementById(“Lookup Id “)._behaviors[0].set_showProperty(1);

Java Script for hiding New Button :-

For Rollup 11,

document.getElementById(“Lookup Id”).disableViewPicker = 1;

For Rollup 12,13 for cross browser support.

document.getElementById(“Lookup Id”)._behaviors[0].AddParam(“ShowNewButton”, “0”);

document.getElementById(“Lookup Id”)._behaviors[0].set_showProperty(0);