Sha256: 6b7b51d273d3b898033361154a02cd480dc63408f953b9e036d9b341b7a9fd09

Contents?: true

Size: 1.31 KB

Versions: 16

Compression:

Stored size: 1.31 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"$social_networking/directives.js;FI"
pathname;TI"t/Users/usabilitymonitor/Desktop/Github/social_networking/app/assets/javascripts/social_networking/directives.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+µVI"length;Ti@I"digest;TI"%bc59f9c1fc546d45103b128adb85ec7c;FI"source;TI"@;(function() {
  "use strict";

  // Displays pertinent information about a profile.
  function profileStatus() {
    return {
      template: '<h2>{{ profile.username }}</h2>' +
                '<h3 ng-class="profile.isAdmin ? \'invisible\' : \'\'">' +
                  'Last seen: {{ profile.latestAction | timeFromNow }}' +
                '</h3>'
    };
  }

  // Listen for 'focusOn' event and focus on the input.
  function focusOn() {
    return function(scope, elem, attr) {
      return scope.$on('focusOn', function(e, name) {
        if (name === attr.focusOn) {
          return elem[0].focus();
        }
      });
    };
  }

  // Create a module and register the directives.
  angular.module('socialNetworking.directives', [])
    .directive('profileStatus', profileStatus)
    .directive('focusOn', focusOn);
})();
;TI"required_assets_digest;TI"%c04bc203076a02640a508401c471b03e;FI"
_version;TI"%069e88c06b889877799890854d7f4c40;F

Version data entries

16 entries across 8 versions & 1 rubygems

Version Path
social_networking-0.13.1 spec/dummy/tmp/cache/assets/development/sprockets/4c521ae9f204745ddc16d6b12bd6f9b9
social_networking-0.13.1 spec/dummy/tmp/cache/assets/development/sprockets/475dc33f5fb92e0769369132229081a4
social_networking-0.13.0 spec/dummy/tmp/cache/assets/development/sprockets/4c521ae9f204745ddc16d6b12bd6f9b9
social_networking-0.13.0 spec/dummy/tmp/cache/assets/development/sprockets/475dc33f5fb92e0769369132229081a4
social_networking-0.11.8 spec/dummy/tmp/cache/assets/development/sprockets/475dc33f5fb92e0769369132229081a4
social_networking-0.11.8 spec/dummy/tmp/cache/assets/development/sprockets/4c521ae9f204745ddc16d6b12bd6f9b9
social_networking-0.11.5 spec/dummy/tmp/cache/assets/development/sprockets/475dc33f5fb92e0769369132229081a4
social_networking-0.11.5 spec/dummy/tmp/cache/assets/development/sprockets/4c521ae9f204745ddc16d6b12bd6f9b9
social_networking-0.11.4 spec/dummy/tmp/cache/assets/development/sprockets/475dc33f5fb92e0769369132229081a4
social_networking-0.11.4 spec/dummy/tmp/cache/assets/development/sprockets/4c521ae9f204745ddc16d6b12bd6f9b9
social_networking-0.11.3 spec/dummy/tmp/cache/assets/development/sprockets/475dc33f5fb92e0769369132229081a4
social_networking-0.11.3 spec/dummy/tmp/cache/assets/development/sprockets/4c521ae9f204745ddc16d6b12bd6f9b9
social_networking-0.11.0 spec/dummy/tmp/cache/assets/development/sprockets/4c521ae9f204745ddc16d6b12bd6f9b9
social_networking-0.11.0 spec/dummy/tmp/cache/assets/development/sprockets/475dc33f5fb92e0769369132229081a4
social_networking-0.10.0 spec/dummy/tmp/cache/assets/development/sprockets/475dc33f5fb92e0769369132229081a4
social_networking-0.10.0 spec/dummy/tmp/cache/assets/development/sprockets/4c521ae9f204745ddc16d6b12bd6f9b9