Fix user messages

I fixed the local storage service, user messages were jsut working fine.
I updated the UXD, they are now sticky to the right-bottom corner.
This commit is contained in:
Vince 2013-06-13 20:07:12 +02:00
parent 57b340adaa
commit e6e2f20d80
2 changed files with 9 additions and 10 deletions

View File

@ -125,25 +125,25 @@ body {
*/
.user-message {
position: absolute;
right: 0;
bottom: 0;
left: 25%;
background-color: #F9EDBE;
padding: 4px 12px;
padding-right: 20px;
padding: 10px 47px;
border-top-left-radius: 7px;
border-top-right-radius: 7px;
border-right: 0;
color: #222;
border: #F0C36D 1px solid;
border-right: 0;
border-bottom: 0;
font-weight: bold;
font-size: 13px;
z-index: 10000;
max-width: 300px;
}
.user-message .close {
position: absolute;
top: 0px;
right: 5px;
top: 6px;
right: 17px;
color: gray;
font-weight: bold;
cursor: pointer;

View File

@ -30,8 +30,8 @@
*/
ns.LocalStorageService.prototype.persistToLocalStorage_ = function() {
// console.log('[LocalStorage service]: Snapshot stored');
// window.localStorage.snapShot = this.framesheet.serialize();
console.log('[LocalStorage service]: Snapshot stored');
window.localStorage.snapShot = this.framesheet.serialize();
};
/**
@ -55,7 +55,6 @@
* @public
*/
ns.LocalStorageService.prototype.init = function(framesheet_) {
$.subscribe(Events.LOCALSTORAGE_REQUEST, $.proxy(this.persistToLocalStorageRequest_, this));
};