9 loadAudit : function (id, el)
12 url : baseURL + '/Roo/mtrack_change',
16 ontable : 'mtrack_ticket',
21 success : function(res) {
23 // render it into a template..
25 Roo.each(res.data, function(cg) {
28 out+= Pman.MTrack.template.change_commit(cg);
31 if (!cg.reason.length && !cg.audit.length) {
35 if ( !cg.reason.length || cg.reason == 'Changed' || cg.reason == 'Created' || cg.reason.match(/Hours worked:/)) {
36 out+= Pman.MTrack.template.change_simple(cg);
39 out+= Pman.MTrack.template.change_comment(cg);
42 el.dom.innerHTML = '<ul>' + out + '</ul>';
44 el.select('.change-log-item').on('click', Pman.MTrack.auditToggle);
49 auditToggle : function(e,y)
52 var id = this.id.split('-').pop();
53 Roo.get('change-expand-' + id).setVisibilityMode(Roo.Element.DISPLAY);
54 Roo.get('change-expand-' + id).toggle(true);
55 Roo.get('change-expander-' + id).toggleClass('change-log-item-expanded')
60 pushState: function(cfg)
66 window.history.pushState( { url: cfg.url }, cfg.title, cfg.href);
67 Roo.log("MtrackWeb.pushState: history push state");