Fix ajax category/element add/edit/delete.
Fix ajax category/element add/edit/delete.

mozilla/moztrap,mozilla/moztrap,bobsilverberg/moztrap,bobsilverberg/moztrap,mozilla/moztrap,mccarrmb/moztrap,mccarrmb/moztrap,mozilla/moztrap,bobsilverberg/moztrap,shinglyu/moztrap,mozilla/moztrap,mccarrmb/moztrap,shinglyu/moztrap,shinglyu/moztrap,shinglyu/moztrap,mccarrmb/moztrap,bobsilverberg/moztrap,shinglyu/moztrap,mccarrmb/moztrap