This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let users = [user1,user2,user3]; | |
let promises = users.map(user => { | |
user.set('needsUpdate',true); | |
return user.save(); | |
}); | |
Ember.RSVP.all(promises) | |
.then(users => { | |
doSomethingWith(users); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
background: #000 !important; | |
color: #0f0 !important; | |
outline: solid #f00 1px !important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.sgh-flyout { | |
position: absolute; | |
top: 0; | |
left: 0; | |
z-index: 9999; | |
} | |
.sgh-icons { | |
position: relative; | |
float: left; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kgh = {}; | |
kgh.InitKatoGifHide = function(){ | |
// trigger message collapse when image is clicked | |
$(".page-org").delegate('.preview-image','click',function(e) { | |
e.preventDefault(); | |
$(e.target).closest('.message').find('.icon-collapse-alt').trigger('click'); | |
}); | |
} |