introduce datasrc2src(selector) js function
This commit is contained in:
parent
ef7225b4f6
commit
d6ff8dc9b6
@ -173,11 +173,7 @@ ACL.prototype.on_custom = function(event) {
|
|||||||
that.deny_cid = [];
|
that.deny_cid = [];
|
||||||
that.deny_gid = [];
|
that.deny_gid = [];
|
||||||
|
|
||||||
$("#acl-list-content .acl-list-item img[data-src]").each(function(i, el) {
|
datasrc2src('#acl-list-content .acl-list-item img[data-src]');
|
||||||
//Replace data-src attribute with src attribute for every image
|
|
||||||
$(el).attr('src', $(el).data("src"));
|
|
||||||
$(el).removeAttr("data-src");
|
|
||||||
});
|
|
||||||
|
|
||||||
that.update_view('custom');
|
that.update_view('custom');
|
||||||
that.on_submit();
|
that.on_submit();
|
||||||
|
@ -92,6 +92,13 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function datasrc2src(selector) {
|
||||||
|
$(selector).each(function(i, el) {
|
||||||
|
$(el).attr("src", $(el).data("src"));
|
||||||
|
$(el).removeAttr("data-src");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function confirmDelete() {
|
function confirmDelete() {
|
||||||
return confirm(aStr.delitem);
|
return confirm(aStr.delitem);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user