Sha256: f09c8be7b5536aeb16b1106a03dd44fdd39a517c0d620f49bd675f63780b9bfa
Contents?: true
Size: 1.32 KB
Versions: 4
Compression:
Stored size: 1.32 KB
Contents
$(document).ready(function(){ $("#sidebar .classification_create").live("click",function(event){ event.preventDefault(); $.fancybox.showActivity(); var catalog_id = $("#fancybox-content #classification_catalog_id :selected").val(); var asset_id = $("#fancybox-content #classification_asset_id").val(); $.ajax({ type : "POST", cache : false, url : "/classifications?asset_id="+asset_id+"&catalog_id="+catalog_id, success: function(data) { $("#fancybox-content #sidebar").load("/asset/"+asset_id+"/classifications"); } }); $.fancybox.resize();; $.fancybox.hideActivity(); }); $("#sidebar .classification_drop").live("click",function(event){ event.preventDefault(); if (confirm("Are you sure?") == false){ return; }; $.fancybox.showActivity(); var classification_id = $(event.target).attr("classification_id"); var asset_id = $("#fancybox-content #classification_asset_id").val(); $.ajax({ type : "DELETE", cache : false, url : "/classifications/"+classification_id, success: function(data) { $("#fancybox-content #sidebar").load("/asset/"+asset_id+"/classifications"); } }); $.fancybox.resize(); $.fancybox.hideActivity(); }); });
Version data entries
4 entries across 4 versions & 1 rubygems