Permalink
Browse files

Adding minified link js

  • Loading branch information...
1 parent e8550e9 commit 61e5f9f44c0efc6f8434ad71fe09f8a2659ce812 @cheesegrits cheesegrits committed Jan 11, 2017
Showing with 2 additions and 0 deletions.
  1. +2 −0 plugins/fabrik_list/link/link-min.js
@@ -0,0 +1,2 @@
+/*! Fabrik */
+define(["jquery","fab/list-plugin"],function(a,b){var c=new Class({Extends:b,options:{link:"",fabrikLink:!1,windowTitle:""},initialize:function(a){this.parent(a)},buttonAction:function(){var b=this.list.getForm().getElements("input[name^=ids]").filter(function(a){return a.checked}),c=b.map(function(a){return a.get("value")}),d={};if(b.each(function(a){var b=a.get("value");d[b]=this.list.getRow(b)}.bind(this)),""!==this.options.link){a.each(Fabrik.Windows,function(a,b){a.test(/^custom\./)&&b.close()});var e=this.options.link;if(a.each(d[c[0]],function(a,b){"__pk_val"===a&&(a="rowid");var c=new RegExp("{"+a+"}");e=e.replace(c,b)}),this.options.fabrikLink&&this.list.options.ajax_links){var f="xhr";e+=e.contains("?")?"&":"?",e+="tmpl=component&ajax=1",e+="&format=partial";var g={id:"custom."+this.list.id,title:this.options.windowTitle,loadMethod:f,contentURL:e,width:this.list.options.popup_width,height:this.list.options.popup_height};null!==this.list.options.popup_offset_x&&(g.offset_x=this.list.options.popup_offset_x),null!==this.list.options.popup_offset_y&&(g.offset_y=this.options.popup_offset_y),Fabrik.getWindow(g)}else window.location=e}}});return c});

0 comments on commit 61e5f9f

Please sign in to comment.