• This project
    • Loading...
  • Sign in

fe / static-ci · Files

Go to a project

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Pipelines 0
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Members
  • Labels
  • Wiki
  • Forks
  • Network
  • Create a new issue
  • static-ci
  • public
  • assets
  • layer
  • layer.util.js
  • Init commit
    4552c510
    by 姜枫
    2016-05-27 14:45:27 +0800  
    Browse Files
layer.util.js 580 Bytes
Raw Blame History Permalink
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
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();
            }
        });
    }
};