|
@@ -58,7 +58,7 @@ var Admin = {
|
|
|
|
|
|
setup_xeditable: function(subject) {
|
|
setup_xeditable: function(subject) {
|
|
jQuery('.x-editable', subject).editable({
|
|
jQuery('.x-editable', subject).editable({
|
|
- emptyclass: 'editable-empty btn btn-small',
|
|
|
|
|
|
+ emptyclass: 'editable-empty btn btn-sm',
|
|
emptytext: '<i class="glyphicon glyphicon-edit"></i>',
|
|
emptytext: '<i class="glyphicon glyphicon-edit"></i>',
|
|
success: function(response) {
|
|
success: function(response) {
|
|
if('KO' === response.status) {
|
|
if('KO' === response.status) {
|
|
@@ -116,7 +116,7 @@ var Admin = {
|
|
fieldShortDescription = input.closest('.field-container').find('.field-short-description'),
|
|
fieldShortDescription = input.closest('.field-container').find('.field-short-description'),
|
|
select2 = input.closest('.select2-container')
|
|
select2 = input.closest('.select2-container')
|
|
;
|
|
;
|
|
-
|
|
|
|
|
|
+
|
|
if (fieldShortDescription.length) {
|
|
if (fieldShortDescription.length) {
|
|
target = fieldShortDescription;
|
|
target = fieldShortDescription;
|
|
} else if (select2.length) {
|
|
} else if (select2.length) {
|