cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
;(function(){
  $.fn.extend({
      "myjcrop" : function(option) {
          option = $.extend({},option||{}); 
          return this.each(function(){
                  $(this).click(function() {
                      $("#popub").remove();
                      var params = {'imgConWidth':option.imgConWidth,'imgConHeight':option.imgConHeight,'imgPrewWidth':option.imgPrewWidth,'imgPrewHeight':option.imgPrewHeight}
                      $.post(option.url,params,function(data,textStatus) {
                          $("body").append(data);
                          $.popupEleNoMask('popub');
                        $('#closepb').click(function(){
                            $.closePop('popub');
                        });
                        $("#imgFile").change(function() {
                            $("#imgForm").submit();
                        });
                        
                        
                      })
                  
                  });
          });
      }
  });
})(jQuery);