From 1435af64b5ab2615173a8a217c8fb719ac8a93be Mon Sep 17 00:00:00 2001 From: jke-openerp Date: Tue, 18 Feb 2014 14:11:59 +0100 Subject: [PATCH] [TYPO] Remove end whitespaces bzr revid: jke@openerp.com-20140218131159-8a5hj0i843m3r3dx --- .../calendar/static/src/js/base_calendar.js | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/addons/calendar/static/src/js/base_calendar.js b/addons/calendar/static/src/js/base_calendar.js index 0f5693eacbc..337895ee3d5 100644 --- a/addons/calendar/static/src/js/base_calendar.js +++ b/addons/calendar/static/src/js/base_calendar.js @@ -1,7 +1,7 @@ openerp.calendar = function(instance) { var _t = instance.web._t; var QWeb = instance.web.qweb; - instance.calendar = {} + instance.calendar = {}; instance.web.WebClient = instance.web.WebClient.extend({ @@ -11,8 +11,8 @@ openerp.calendar = function(instance) { get_next_notif: function() { var self= this; this.rpc("/calendar/notify") - .then( - function(result) { + .then( + function(result) { _.each(result, function(res) { setTimeout(function() { //If notification not already displayed, we add button and action on it @@ -21,25 +21,25 @@ openerp.calendar = function(instance) { res.message += QWeb.render("notify_footer"); a = self.do_notify(res.title,res.message,true); - $(".link2event").on('click', function() { + $(".link2event").on('click', function() { self.rpc("/web/action/load", { action_id: "calendar.action_calendar_event_notify", - }).then( function(r) { + }).then( function(r) { r.res_id = res.event_id; - return self.action_manager.do_action(r); - }); + return self.action_manager.do_action(r); + }); }); - a.element.find(".link2recall").on('click',function() { + a.element.find(".link2recall").on('click',function() { self.get_notif_box(this).find('.ui-notify-close').trigger("click"); - }); - a.element.find(".link2showed").on('click',function() { + }); + a.element.find(".link2showed").on('click',function() { self.get_notif_box(this).find('.ui-notify-close').trigger("click"); self.rpc("/calendar/notify_ack"); }); } //If notification already displayed in the past, we remove the css attribute which hide this notification else if (self.get_notif_box($.find(".eid_"+res.event_id)).attr("style") !== ""){ - self.get_notif_box($.find(".eid_"+res.event_id)).attr("style",""); + self.get_notif_box($.find(".eid_"+res.event_id)).attr("style",""); } },res.timer * 1000); }); @@ -48,7 +48,7 @@ openerp.calendar = function(instance) { }, check_notifications: function() { var self= this; - self.get_next_notif(); + self.get_next_notif(); setInterval(function(){ self.get_next_notif(); }, 5 * 60 * 1000 ); @@ -58,7 +58,7 @@ openerp.calendar = function(instance) { show_application: function() { this._super(); this.check_notifications(); - } + }, }); @@ -92,7 +92,7 @@ openerp.calendar = function(instance) { var reload_page = function(){ return location.replace(action_url); - } + }; reload_page(); }, @@ -108,7 +108,7 @@ openerp.calendar = function(instance) { }); }, map_tag: function(value){ - return _.map(value, function(el) {return {name: el[1], id:el[0], state: el[2]};}) + return _.map(value, function(el) {return {name: el[1], id:el[0], state: el[2]};}); }, get_render_data: function(ids){ var self = this; @@ -121,7 +121,7 @@ openerp.calendar = function(instance) { if (! self.get("effective_readonly")) { var tag_element = self.tags.tagElements(); _.each(data,function(value, key){ - $(tag_element[key]).find(".custom-edit").addClass(data[key][2]) + $(tag_element[key]).find(".custom-edit").addClass(data[key][2]); }); } } @@ -134,7 +134,7 @@ openerp.calendar = function(instance) { instance.session.session_bind(instance.session.origin).done(function () { new instance.calendar.invitation(null,db,action,id,view,attendee_data).appendTo($("body").addClass('openerp')); }); - } + };