瀏覽代碼

修复js不同步问题,修改modal的scss

guohh 8 年之前
父節點
當前提交
64716789af
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 1
      gulpfile.js
  2. 1 0
      src/js/modal.js

+ 1 - 1
gulpfile.js

@ -124,7 +124,7 @@ gulp.task('font', function () {
124 124
gulp.task('watch', function () {
125 125
    gulp.watch([fontSrc + "**"], ['font']);
126 126
    gulp.watch([sassSrc + "**"], ['cssMinify']);
127
    gulp.watch([src + 'src/js/*'], ['jsMinify']);
127
    gulp.watch([src + 'src/js/**'], ['jsMinify']);
128 128
});
129 129
130 130
// 静态服务器, 自动监听文件变化,更新页面,不需要build时,直接启动server

+ 1 - 0
src/js/modal.js

@ -224,6 +224,7 @@ define(["jquery", "ipuPath/modal-adapter"], function ($) {
224 224
        $.openModal(modal);
225 225
        return modal[0];
226 226
    };
227
    
227 228
    /*$.popup = function (modal, removeOnClose) {
228 229
        if (typeof removeOnClose === 'undefined') removeOnClose = true;
229 230
        if (typeof modal === 'string' && modal.indexOf('<') >= 0) {