Skip to content

阿树后台框架浏览器兼容bug #2

Description

@chenchenweb

在火狐浏览器下上传多图或多文件时无法上传
解决办法:在ashuwp_framework.js文件的166行代码处传入event
新的代码如下
//field multiple
$('.ashuwp_field_area .multiple_wrap').on('click','a.add_item',function(event){
event.preventDefault();

multiple_wrap = $(this).closest('.multiple_wrap');
data_name = $(this).attr('data_name');

html_format = $('#' + data_name).html();
count = 0;
count = multiple_wrap.find('.multiple_item').length + 1;

html_temp = html_format.replace(/({{i}})/g,count);

$(this).before(html_temp);
multiple_wrap.trigger('multiple_change');
ashuwp_gallery_sortable();

});
感谢阿树先生的框架

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions