Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
7c4e8636
Commit
7c4e8636
authored
Aug 29, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
f47c7b77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
schoolBusinessNew.js
public/resource/js/schoolBusinessNew.js
+4
-6
No files found.
public/resource/js/schoolBusinessNew.js
View file @
7c4e8636
...
@@ -179,8 +179,6 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
...
@@ -179,8 +179,6 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
if
(
confirm
(
'确定删除该文件吗?'
))
{
if
(
confirm
(
'确定删除该文件吗?'
))
{
var
_imgId
=
_this
.
parent
().
attr
(
'data-imgid'
);
var
_imgId
=
_this
.
parent
().
attr
(
'data-imgid'
);
_this
.
parent
().
remove
();
_this
.
parent
().
remove
();
user
.
addDeleteNewsEvent
();
};
};
});
});
//图片预览点击放大事件
//图片预览点击放大事件
...
@@ -263,14 +261,14 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
...
@@ -263,14 +261,14 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
}));
}));
}
}
//添加删除附件事件
//添加删除附件事件
//
user.addDeleteNewsEvent();
user
.
addDeleteNewsEvent
();
}
else
{}
}
else
{}
}
}
});
});
},
},
addDeleteNewsEvent
:
function
(){
addDeleteNewsEvent
:
function
(){
//
$('.delet-pic-btn').unbind('click').bind('click',function(){
$
(
'.delet-pic-btn'
).
unbind
(
'click'
).
bind
(
'click'
,
function
(){
var
file_id
=
$
(
this
).
parent
(
'li'
).
attr
(
'id'
)
-
0
;
var
file_id
=
$
(
this
).
parent
(
'li'
).
attr
(
'id'
)
-
0
;
$
.
ajax
({
$
.
ajax
({
url
:
'/index/delNewsFile'
,
url
:
'/index/delNewsFile'
,
...
@@ -284,8 +282,8 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
...
@@ -284,8 +282,8 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
}
}
}
}
});
});
//
}
}
//
);
);
},
},
getDistrict
:
function
(
fn
)
{
getDistrict
:
function
(
fn
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment