1 |
- django.jQuery(document).ready(function(){jet.jQuery(function(e){function t(){var t=e(this),n=t.nextAll(".change-related, .delete-related");if(!n.length)return;var r=t.val();r?n.each(function(){var t=e(this);t.attr("href",t.attr("data-href-template").replace("__fk__",r))}):n.removeAttr("href")}var n=e(document);n.on("change",".related-widget-wrapper select",t),n.find(".related-widget-wrapper select").each(t),n.on("click",".related-widget-wrapper-link",function(e){this.href&&showRelatedObjectPopup(this),e.preventDefault()})})});
|