o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1350420782.593559:@value"
{I"
class:EFI"ProcessedAsset; FI"logical_path; FI"+woople-theme/organization_dashboard.js; FI"
pathname; FI"a/Users/paul/Sites/woople-theme/app/assets/javascripts/woople-theme/organization_dashboard.js; FI"content_type; FI"application/javascript; FI"
mtime; FI"2012-10-16T16:53:01-04:00; FI"length; FiÅI"digest; F"%24f7b79840cb4274aeebb566d806f9e2I"source; FI"Å(function(){
function OrganizationDashboardController(options) {
this.debugMode = false;
this.reminderCallback = options.reminderCallback;
this.setupListeners();
}
OrganizationDashboardController.prototype.setupListeners = function() {
this.log('setup listeners');
this.mobileSetup();
this.bindReminderButtons();
};
OrganizationDashboardController.prototype.mobileSetup = function() {
if (this.isPhone()) {
$('#organization-accounts button').addClass('btn-large');
} else {
$('#organization-accounts').popover({
selector: '.status-alert',
placement: 'top',
template: '
'
});
}
};
OrganizationDashboardController.prototype.bindReminderButtons = function() {
this.log('bind reminder button events');
var reminderClick = function(userId) {
this.log('fire reminder callback');
this.reminderCallback(userId);
};
var clickBinder = function(button){
var userId = $(button).data('userId');
$(button).click(_.bind(reminderClick, this, userId));
};
var buttons = $('#organization-accounts .remind-column .btn');
_.each(buttons, clickBinder , this);
};
OrganizationDashboardController.prototype.log = function(message) {
if (!this.debugMode) return;
console.log("[OrganizationDashboardController]", message);
};
OrganizationDashboardController.prototype.isPhone = function() {
return $(window).width() <= 480 ? true : false;
};
this.OrganizationDashboardController = OrganizationDashboardController;
})(this);
; FI"dependency_digest; F"%536fc914572dae01e6b5afe462a8e6f4I"required_paths; F[I"a/Users/paul/Sites/woople-theme/app/assets/javascripts/woople-theme/organization_dashboard.js; FI"dependency_paths; F[{I" path; FI"a/Users/paul/Sites/woople-theme/app/assets/javascripts/woople-theme/organization_dashboard.js; FI"
mtime; FI"2012-10-16T16:53:01-04:00; FI"digest; F"%24f7b79840cb4274aeebb566d806f9e2I"
_version; F"%9f3b95dd7ea3030dc35985c0a8020862