Sha256: d943e508e6adbd4aef08e5811230c6a62c86501f5b03fb7e79ce421dcc114bb5

Contents?: true

Size: 1.91 KB

Versions: 1

Compression:

Stored size: 1.91 KB

Contents

{:uriI"¼file:///Users/tyler/Development/guts/app/assets/javascripts/guts/navigation.js?type=application/javascript&pipeline=self&id=3012289f693a86a4f88e3fc130fedaa4c1f2e5e701f9c34ea1c939b334beb8cb:ET:load_pathI"9/Users/tyler/Development/guts/app/assets/javascripts;T:
filenameI"L/Users/tyler/Development/guts/app/assets/javascripts/guts/navigation.js;T:	nameI"guts/navigation;T:logical_pathI"guts/navigation.self.js;T:content_typeI"application/javascript;T:sourceI"‘jQuery(document).ready(function($) {
  if ($("body").attr("id").indexOf("guts_navigation_items") == -1) { return; }
  
  $(window).on("load", function() {
    if ($("body").attr("id").indexOf("guts_navigation_items_edit") == -1) { return; }
    
    //$("#navigation_item_navigatable_type").trigger("change");
  });
  
  $("#navigation_item_navigatable_type").on("change", function() {
    var value = $(this).val();
    if (value === "") {
      $("#navigation_item_navigatable_id").html("").hide();
      $("#navigation_item_custom").show();
    } else {
      $("#navigation_item_navigatable_id").html("").show();
      $("#navigation_item_custom").hide();

      $.getJSON($(this).data("callback-url"), {model: $(this).val()}, function(data) {
        $.each(data, function() { $("#navigation_item_navigatable_id").append('<option value="'+this.id+'">'+this.format+'</option>'); });
      });
    }
  });
});
;T:
metadata{:dependencieso:Set:
@hash{	I"environment-version;TTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"Zfile-digest:///Users/tyler/Development/guts/app/assets/javascripts/guts/navigation.js;TT:
requiredo;;{:stubbedo;;{:
linkso;;{:charsetI"
utf-8;F:digest"%¡yT<
Y/É>Š˜xa¯ ¤0÷ÐÓYEGV;]µ<öy:lengthi‘:dependencies_digest"%P@^¼e
]ûÈ™¦0vH_Ô_Ðg ;x3”¾Ø:idI"E3012289f693a86a4f88e3fc130fedaa4c1f2e5e701f9c34ea1c939b334beb8cb;F:
mtimel+ӀpV

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
guts-1.0.3 test/dummy/tmp/cache/assets/development/sprockets/v3.0/34QdjTHtbU5cODnQfPOe0xYm17dgWX3Vn5GacyuwmeM.cache