Sha256: 6dc20b89686f36a6e330d7f044844a10a3540a14d638f95951b6d92874cb7221

Contents?: true

Size: 1.25 KB

Versions: 4

Compression:

Stored size: 1.25 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"hatchy/users/edit.js;TI"
pathname;TI"b/home/bauser/Documents/dev/ruby/opensource/hatchy/app/assets/javascripts/hatchy/users/edit.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+ž¯•VI"length;Ti%I"digest;TI"%9bc2af9b334029a8aed49c7951912f60;FI"source;TI"%var edit = (function(){
	// Cache DOM
	var $rowSections = $('.container-fluid .hidden');
	var $currentRow = $('.container-fluid .hidden' + window.location.hash + '_dashboard');
	var $menuLinks = $('#user_menu li a');
  var $hashLink = $.grep( $( '#user_menu li a' ), function (o) {
    return o.hash == window.location.hash;
  });

	// Bind Events
	$menuLinks.on('click', toggleMenuActive);

	// Functions
	function showHashLocation() {
    $currentRow.removeClass('hidden');
    $($hashLink).parent().addClass('active');
  }

  function toggleMenuActive() {
    $menuLinks.parent().removeClass('active');
    $rowSections.addClass('hidden');
    $(this).parent().addClass('active');
    $('.container-fluid' + this.hash + '_dashboard').removeClass('hidden');
  }

  showHashLocation();

	return{};
})();
;TI"required_assets_digest;TI"%2ee22214fd5d5698a5eb785d252dd8c6;FI"
_version;TI"%2be930bcbfd3c3e00190e2193dda5c7c;F

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
hatchy-0.0.6.pre spec/dummy/tmp/cache/assets/development/sprockets/6de647c9f4ed6eab93fde5b1d14fa8d1
hatchy-0.0.6.pre spec/dummy/tmp/cache/assets/development/sprockets/74616b97e75a1dd4f47c89c3682a5962
hatchy-0.0.5.pre spec/dummy/tmp/cache/assets/development/sprockets/6de647c9f4ed6eab93fde5b1d14fa8d1
hatchy-0.0.5.pre spec/dummy/tmp/cache/assets/development/sprockets/74616b97e75a1dd4f47c89c3682a5962