o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1350505613.742166:@value"{I"
class:EFI"ProcessedAsset; FI"logical_path; F"6woople-theme/organization_dashboard_controller.jsI"
pathname; F"/Users/mundane/Developer/Applications/Rails/woople-theme/app/assets/javascripts/woople-theme/organization_dashboard_controller.jsI"content_type; FI"application/javascript; FI"
mtime; FI"2012-10-17T15:38:39-04:00; FI"length; FiI"digest; F"%2ac682f591efa25b9928f68be68d9d38I"source; FI"(function(){
function OrganizationDashboardController() {}
OrganizationDashboardController.prototype.init = function(options, debugMode) {
this.debugMode = debugMode != null ? debugMode : false;
this.reminderCallback = options.reminderCallback;
this.setupListeners();
this.log('initialize');
};
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 {
this.createPopover();
}
};
OrganizationDashboardController.prototype.createPopover = function() {
$('#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) console.log("[OrganizationDashboardController]", message);
};
OrganizationDashboardController.prototype.isPhone = function() {
return this.windowWidth() <= 480 ? true : false;
};
OrganizationDashboardController.prototype.windowWidth = function () {
return $(window).width();
};
this.OrganizationDashboardController = OrganizationDashboardController;
})(this);
; FI"dependency_digest; F"%b651d13bd2821abf6b0afedf9eafa259I"required_paths; F["/Users/mundane/Developer/Applications/Rails/woople-theme/app/assets/javascripts/woople-theme/organization_dashboard_controller.jsI"dependency_paths; F[{I" path; F"/Users/mundane/Developer/Applications/Rails/woople-theme/app/assets/javascripts/woople-theme/organization_dashboard_controller.jsI"
mtime; FI"2012-10-17T15:38:39-04:00; FI"digest; F"%2ac682f591efa25b9928f68be68d9d38I"
_version; F"%9f3b95dd7ea3030dc35985c0a8020862