/* * bootstrap-table - v1.4.0 - 2014-11-21 * https://github.com/wenzhixin/bootstrap-table * Copyright (c) 2014 zhixin wen * Licensed MIT License */ !function(a){"use strict";a.extend(a.fn.bootstrapTable.defaults,{editable:!0});var b=a.fn.bootstrapTable.Constructor,c=b.prototype.initTable,d=b.prototype.initBody;b.prototype.initTable=function(){var b=this;c.apply(this,Array.prototype.slice.apply(arguments)),this.options.editable&&a.each(this.options.columns,function(a,c){if(c.editable){var d=c.formatter;c.formatter=function(a,e,f){var g=d?d(a,e,f):a;return['"+g+""].join("")}}})},b.prototype.initBody=function(){var b=this;d.apply(this,Array.prototype.slice.apply(arguments)),this.options.editable&&a.each(this.options.columns,function(a,c){c.editable&&b.$body.find('a[data-name="'+c.field+'"]').editable(c.editable)})}}(jQuery);