mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +02:00
Inline editing of keywords enabled on admin newspost. Fixes empty space between tags in database (causing issues with 'related' SQL queries).
This commit is contained in:
4
e107_web/js/bootstrap-tag/bootstrap-tag.js
vendored
4
e107_web/js/bootstrap-tag/bootstrap-tag.js
vendored
@@ -138,13 +138,13 @@
|
||||
this.values.push(value)
|
||||
this.createBadge(value)
|
||||
|
||||
this.element.val(this.values.join(', '))
|
||||
this.element.val(this.values.join(','))
|
||||
}
|
||||
, remove: function ( index ) {
|
||||
if ( index >= 0 ) {
|
||||
this.values.splice(index, 1)
|
||||
this.element.siblings('.tag:eq(' + index + ')').remove()
|
||||
this.element.val(this.values.join(', '))
|
||||
this.element.val(this.values.join(','))
|
||||
}
|
||||
}
|
||||
, process: function () {
|
||||
|
Reference in New Issue
Block a user