Skip to Content
Menu
This question has been flagged
3260 Views

Hi All,

I want to show a pop up box when a user is logged in the database first time ,required Information in the pop up box is user latest connection from res.users table.

How to acheive this task by javascript/jquerry Need a help...............?

bind_hashchange: function() {
var self = this;
$(window).bind('hashchange', this.on_hashchange);
var state = $.bbq.getState(true);
if (_.isEmpty(state) || state.action == "login") {
alert('################################## Login alert%%%%%%%%%%%%%%%%') //Now I got Pop up,but no data?
self.menu.is_bound.done(function() {
new instance.web.Model("res.users").call("read", [self.session.uid, ["action_id"]]).done(function(data) {
if(data.action_id) {
self.action_manager.do_action(data.action_id[0]);
self.menu.open_action(data.action_id[0]);
} else {
var first_menu_id = self.menu.$el.find("a:first").data("menu");
if(first_menu_id) {
self.menu.menu_click(first_menu_id);
}
}
});
});
} else {
$(window).trigger('hashchange');
}
},

I try to add some alert in chrome.js file --------



Avatar
Discard

Hi Dep did you get any solution for this?? I am also trying to do this.

Yes I got the solution you just changed the chrome.js file from web

On Jan 13, 2016 4:14 PM, "Logicious" <prasanth.logicious@gmail.com> wrote:

Hi Dep did you get any solution for this?? I am also trying to do this.

--
Logicious