layer.util.js
580 Bytes
var LayerUtil = {
openDialog: function(url, cb) {
$.get(url, function(data) {
layer.open({
type: 1,
shade: true,
title: false,
content: data,
end: function() {
cb();
}
});
});
},
load: function(html, cb) {
layer.open({
type: 1,
shade: true,
title: false,
content: html,
end: function() {
cb();
}
});
}
};