CAL-740 [IE8] Can not add an event by right clicking in calendar

Fix description: use trim method of JQuery, instead of trim method of String. Because IE doesn't support trim method of String.
Merge commit '7e7aa7236e51be2b12f4ab62f960c5cdb2c3997f' into HEAD