blak3r / yaai

SugarCRM Asterisk integration
http://www.sugarforge.org/projects/yaai
GNU General Public License v3.0
84 stars 85 forks source link

Notes not saved between reloads #161

Open Xytrix01 opened 10 years ago

Xytrix01 commented 10 years ago

Hi there, I'm using SugarCE 6.5.16 and Callinize/yaai 3.6.7 in Chrome and Firefox browsers. I seem to have everything working, pop ups happen for incoming and outgoing calls. The problem I am having is with the notes section in the pop up. When a call comes in, say from a new number, I start taking notes in the pop up window. When I click to associate the # to a new contact, the page loads the new contact form, the pop up refreshes, and all the notes are missing. I found the code to comment out to make it so the pop up stays open after clicking save, and that doesn't help. You can save the notes, then click on the new contact button, and the notes in the popup are gone. Same with the instance where it does recognize the number, and you click on the link to the contact, I loose everything there. Any ideas how I may solve this?

blak3r commented 10 years ago

What you are describing is the expected behavior... Generally people just add notes and click save.

I agree though this kinda sucks that you can lose info. In order to fix that I think the easiest solution would be to detect when notes are entered and the user is trying to leave the page and display "You're going to lose information if you navigate away from this page"...

Google chat does the same thing for what it's worth...

To solve it you'd have to write the notes to a cookie or local storage and then whenever the page is reloaded it'd have to pull the data from there and put it back in the chat box. We have an exciting new pro version that does the chat version in an entirely different way. Contact me at blake [at] callinize.com if you want to learn more about it.