Sha256: caf511d5c04c3d173504628f4157a23629c113460b95bb0142fcfb3da0f20867
Contents?: true
Size: 588 Bytes
Versions: 12
Compression:
Stored size: 588 Bytes
Contents
- singular = popup.to_s.singularize :plain new crm.Popup({ trigger : "select_#{singular}", target : "jumpbox", under : "select_#{singular}", appear : 0.3, fade : 0.3, before_show : function() { $("jumpbox_menu").hide(); $("jumpbox_label").innerHTML = "#{t(popup)}:" $("jumpbox_label").show(); crm.auto_complete("#{popup}", "#{related.class.to_s.downcase.pluralize}/#{related.id}"); }, after_show : function() { $("auto_complete_query").focus(); }, after_hide : function() { } });
Version data entries
12 entries across 12 versions & 1 rubygems