Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
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
edx
edx-platform
Commits
20f958e6
Commit
20f958e6
authored
Jul 31, 2012
by
Rocky Duan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix: resize input for defaulttext (tagsinput)
parent
c43d5d23
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
common/static/js/vendor/jquery.tagsinput.js
+2
-1
lms/static/coffee/src/discussion.coffee
+1
-1
No files found.
common/static/js/vendor/jquery.tagsinput.js
View file @
20f958e6
...
@@ -227,6 +227,7 @@
...
@@ -227,6 +227,7 @@
markup
=
markup
+
'</div><div class="tags_clear"></div></div>'
;
markup
=
markup
+
'</div><div class="tags_clear"></div></div>'
;
$
(
markup
).
insertAfter
(
this
);
$
(
markup
).
insertAfter
(
this
);
$
(
data
.
holder
).
css
(
'width'
,
settings
.
width
);
$
(
data
.
holder
).
css
(
'width'
,
settings
.
width
);
$
(
data
.
holder
).
css
(
'min-height'
,
settings
.
height
);
$
(
data
.
holder
).
css
(
'min-height'
,
settings
.
height
);
...
@@ -240,6 +241,7 @@
...
@@ -240,6 +241,7 @@
$
(
data
.
fake_input
).
css
(
'color'
,
settings
.
placeholderColor
);
$
(
data
.
fake_input
).
css
(
'color'
,
settings
.
placeholderColor
);
$
(
data
.
fake_input
).
resetAutosize
(
settings
);
$
(
data
.
fake_input
).
resetAutosize
(
settings
);
$
(
data
.
fake_input
).
doAutosize
(
settings
);
$
(
data
.
holder
).
bind
(
'click'
,
data
,
function
(
event
)
{
$
(
data
.
holder
).
bind
(
'click'
,
data
,
function
(
event
)
{
$
(
event
.
data
.
fake_input
).
focus
();
$
(
event
.
data
.
fake_input
).
focus
();
});
});
...
@@ -260,7 +262,6 @@
...
@@ -260,7 +262,6 @@
if
(
jQuery
.
Autocompleter
!==
undefined
)
{
if
(
jQuery
.
Autocompleter
!==
undefined
)
{
onSelectCallback
=
settings
.
autocomplete
.
onItemSelect
;
onSelectCallback
=
settings
.
autocomplete
.
onItemSelect
;
settings
.
autocomplete
.
onItemSelect
=
function
()
{
settings
.
autocomplete
.
onItemSelect
=
function
()
{
console
.
log
(
"here"
);
$
(
data
.
real_input
).
addTag
(
$
(
data
.
fake_input
).
val
(),
{
focus
:
true
,
unique
:
(
settings
.
unique
)});
$
(
data
.
real_input
).
addTag
(
$
(
data
.
fake_input
).
val
(),
{
focus
:
true
,
unique
:
(
settings
.
unique
)});
$
(
data
.
fake_input
).
resetAutosize
(
settings
);
$
(
data
.
fake_input
).
resetAutosize
(
settings
);
if
(
onSelectCallback
)
{
if
(
onSelectCallback
)
{
...
...
lms/static/coffee/src/discussion.coffee
View file @
20f958e6
...
@@ -439,7 +439,7 @@ Discussion =
...
@@ -439,7 +439,7 @@ Discussion =
autocomplete
:
autocomplete
:
remoteDataType
:
'json'
remoteDataType
:
'json'
interactive
:
true
interactive
:
true
defaultText
:
"Tag your post"
defaultText
:
"Tag your post
: press enter after each tag
"
height
:
"30px"
height
:
"30px"
width
:
"85%"
width
:
"85%"
removeWithBackspace
:
true
removeWithBackspace
:
true
...
...
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