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
9be4b055
Commit
9be4b055
authored
Jul 06, 2018
by
hujun
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/test' into test
parents
1642d7b8
4002251f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
index.html
application/index/view/notice/index.html
+1
-1
notice.js
public/resource/js/notice.js
+10
-10
No files found.
application/index/view/notice/index.html
View file @
9be4b055
...
...
@@ -207,7 +207,7 @@
<label
for=
"inputEmail3"
class=
"col-sm-3 control-label"
>
标题:
</label>
<div
class=
"col-sm-9"
>
<input
type=
"text"
class=
"form-control btn6"
name=
"user_name"
id=
"announcement_title"
placeholder=
"请输入标题"
>
<span
class=
"use-span text-danger"
>
(
2
0字以内,显示在首页列表)
</span>
<span
class=
"use-span text-danger"
>
(
5
0字以内,显示在首页列表)
</span>
</div>
</div>
...
...
public/resource/js/notice.js
View file @
9be4b055
...
...
@@ -319,21 +319,21 @@ define (['doT', 'text!temp/notice_template_tpl.html','ckfinder','ckfinderStart',
$
(
"#announcement_title"
).
focus
();
return
;
}
if
(
params
.
title
.
length
>
20
)
{
alert
(
'标题字数20以内'
);
$
(
"#announcement_title"
).
focus
();
return
;
}
//
if (params.title.length > 20) {
//
alert('标题字数20以内');
//
$("#announcement_title").focus();
//
return ;
//
}
if
(
params
.
content
==
''
)
{
alert
(
'内容不能为空'
);
$
(
"#announcement_content"
).
focus
();
return
;
}
if
(
params
.
content
.
length
>
250
)
{
alert
(
'公告内容字数250以内'
);
$
(
"#announcement_content"
).
focus
();
return
;
}
//
if (params.content.length > 250) {
//
alert('公告内容字数250以内');
//
$("#announcement_content").focus();
//
return ;
//
}
$
.
ajax
({
url
:
'/index/addNotice'
,
type
:
'POST'
,
...
...
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