/* Copyright (C) YOOtheme GmbH, YOOtheme Proprietary Use License (http://www.yootheme.com/license) */

(function(b){var a=function(){};b.extend(a.prototype,{name:"ZooDashboard",options:{edit_ids:[]},initialize:function(a,c){this.options=b.extend({},this.options,c);var d=this;a.find(".actions a.action.edit").each(function(){-1<b.inArray(b(this).siblings("a.action.delete").attr("data-id").toString(),d.options.edit_ids)&&b(this).closest("tr").find("a").each(function(){b(this).attr("href",b(this).attr("href").replace(/task=edit_([\w\d]*)/i,"task=edit_$1_zoo"))})});a.find("a.button-secondary:first").each(function(){var a=
b(this).clone();b(this).after(a.text("Use ZOO").addClass("zoo").attr("href",a.attr("href")+"_zoo"))})}});b.fn[a.prototype.name]=function(){var e=arguments,c=e[0]?e[0]:null;return this.each(function(){var d=b(this);if(a.prototype[c]&&d.data(a.prototype.name)&&"initialize"!=c)d.data(a.prototype.name)[c].apply(d.data(a.prototype.name),Array.prototype.slice.call(e,1));else if(!c||b.isPlainObject(c)){var f=new a;a.prototype.initialize&&f.initialize.apply(f,b.merge([d],e));d.data(a.prototype.name,f)}else b.error("Method "+
c+" does not exist on jQuery."+a.name)})}})(jQuery);
