/*! Fabrik */
define(["jquery","admin/pluginmanager"],function(n,t){return new Class({Extends:t,Implements:[Options,Events],options:{plugin:""},initialize:function(n){this.parent([]),this.setOptions(n),this.watchSelector()},watchSelector:function(){void 0!==n&&n("#jform_plugin").bind("change",function(n){this.changePlugin(n)}.bind(this)),document.id("jform_plugin").addEvent("change",function(n){n.stop(),this.changePlugin(n)}.bind(this))},changePlugin:function(n){new Request.HTML({url:"index.php",data:{option:"com_fabrik",task:"cron.getPluginHTML",format:"raw",plugin:n.target.get("value")},update:document.id("plugin-container"),onComplete:function(){this.updateBootStrap()}.bind(this)}).send()}})});