text: webpackJsonp(["app/js/group/thread-add/index"],{d5fb0e67d2d4c1ebaaed:function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),l=n("b334fd7e4c5a19234db2"),i=a(l),u=function(){function e(t){r(this,e),this.$ele=t,this.initEvent()}return o(e,[{key:"initEvent",value:function(){var e=this;this.$ele.on("click",'[data-role="delte-item"]',function(t){return e._deleteItem(t)})}},{key:"_deleteItem",value:function(e){var t=$(e.currentTarget).button("loading");$.post(t.data("url"),{},function(e){"ok"==e.msg&&((0,i.default)("success",Translator.trans("删除成功！")),t.closest(".js-attachment-list").siblings(".js-upload-file").show(),t.closest(".js-attachment-list").closest("div").siblings('[data-role="fileId"]').val(""),t.closest("div").remove(),$(".js-upload-file").show())})}}]),e}();t.default=u},0:function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}var r=n("d5fb0e67d2d4c1ebaaed"),o=a(r),l=$("#user-thread-form"),i="#groupthread-save-btn",u="thread_content";new o.default(l);var s=CKEDITOR.replace(u,{toolbar:"Thread",filebrowserImageUploadUrl:$("#"+u).data("imageUploadUrl"),allowedContent:!0,height:300});s.on("change",function(){$("#"+u).val(s.getData())}),s.on("blur",function(){$("#"+u).val(s.getData())});var d=l.validate({currentDom:i,rules:{"thread[title]":{required:!0,minlength:2,maxlength:100},"thread[content]":{required:!0,minlength:2}}});$(i).click(function(){d.form()&&l.submit()})}});