1
0
mirror of synced 2024-11-26 06:46:04 +03:00

#4530 Add tooltip (title) to the 'remove all' 'X' icon. (#5291)

* #4530 Add tooltip (title) to the 'remove all' 'X' icon.

* #4530 Add tooltip (title) to the 'remove all' 'X' icon.

* #4530 Add tooltip (title) to the 'remove all'

* Revert dist folder.

* add tk.js from pull request.
This commit is contained in:
Nisha Kaushik 2018-09-16 00:52:54 +05:30 committed by Pedro Felipe de Azevedo Furtado
parent 933189b92e
commit 14a059d7ee
59 changed files with 197 additions and 1 deletions

View File

@ -39,6 +39,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Besig…'; return 'Besig…';
},
removeAllItems: function () {
return 'Verwyder alle items';
} }
}; };
}); });

View File

@ -25,6 +25,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'جاري البحث…'; return 'جاري البحث…';
},
removeAllItems: function () {
return 'قم بإزالة كل العناصر';
} }
}; };
}); });

View File

@ -22,6 +22,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Axtarılır…'; return 'Axtarılır…';
},
removeAllItems: function () {
return 'Bütün elementləri sil';
} }
}; };
}); });

View File

@ -42,6 +42,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Търсене…'; return 'Търсене…';
},
removeAllItems: function () {
return 'Премахнете всички елементи';
} }
}; };
}); });

View File

@ -50,6 +50,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Pretraga…'; return 'Pretraga…';
},
removeAllItems: function () {
return 'Uklonite sve stavke';
} }
}; };
}); });

View File

@ -47,6 +47,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Cercant…'; return 'Cercant…';
},
removeAllItems: function () {
return 'Treu tots els elements';
} }
}; };
}); });

View File

@ -56,6 +56,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Vyhledávání…'; return 'Vyhledávání…';
},
removeAllItems: function () {
return 'Odstraňte všechny položky';
} }
}; };
}); });

View File

@ -31,6 +31,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Søger…'; return 'Søger…';
},
removeAllItems: function () {
return 'Fjern alle elementer';
} }
}; };
}); });

View File

@ -35,6 +35,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Suche…'; return 'Suche…';
},
removeAllItems: function () {
return 'Entferne alle Gegenstände';
} }
}; };
}); });

View File

@ -43,6 +43,10 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Pyta se…'; return 'Pyta se…';
},
removeAllItems: function () {
// To DO : in Lower Sorbian.
return 'Remove all items';
} }
}; };
}); });

View File

@ -47,6 +47,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Αναζήτηση…'; return 'Αναζήτηση…';
},
removeAllItems: function () {
return 'Καταργήστε όλα τα στοιχεία';
} }
}; };
}); });

View File

@ -39,6 +39,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Searching…'; return 'Searching…';
},
removeAllItems: function () {
return 'Remove all items';
} }
}; };
}); });

View File

@ -47,6 +47,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Buscando…'; return 'Buscando…';
},
removeAllItems: function () {
return 'Eliminar todos los elementos';
} }
}; };
}); });

View File

@ -48,6 +48,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Otsin…'; return 'Otsin…';
},
removeAllItems: function () {
return 'Eemalda kõik esemed';
} }
}; };
}); });

View File

@ -46,6 +46,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Bilatzen…'; return 'Bilatzen…';
},
removeAllItems: function () {
return 'Kendu elementu guztiak';
} }
}; };
}); });

View File

@ -33,6 +33,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'در حال جستجو...'; return 'در حال جستجو...';
},
removeAllItems: function () {
return 'همه موارد را حذف کنید';
} }
}; };
}); });

View File

@ -25,6 +25,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Haetaan…'; return 'Haetaan…';
},
removeAllItems: function () {
return 'Poista kaikki kohteet';
} }
}; };
}); });

View File

@ -28,6 +28,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Recherche en cours…'; return 'Recherche en cours…';
},
removeAllItems: function () {
return 'Supprimer tous les articles';
} }
}; };
}); });

View File

@ -34,6 +34,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Buscando…'; return 'Buscando…';
},
removeAllItems: function () {
return 'Elimina todos os elementos';
} }
}; };
}); });

View File

@ -51,6 +51,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'מחפש…'; return 'מחפש…';
},
removeAllItems: function () {
return 'הסר את כל הפריטים';
} }
}; };
}); });

View File

@ -34,6 +34,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'खोज रहा है...'; return 'खोज रहा है...';
},
removeAllItems: function () {
return 'सभी वस्तुओं को हटा दें';
} }
}; };
}); });

View File

@ -39,6 +39,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Pretraga…'; return 'Pretraga…';
},
removeAllItems: function () {
return 'Ukloni sve stavke';
} }
}; };
}); });

View File

@ -43,6 +43,10 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Pyta so…'; return 'Pyta so…';
},
removeAllItems: function () {
// To DO : in Upper Sorbian.
return 'Remove all items';
} }
}; };
}); });

View File

@ -25,6 +25,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Keresés…'; return 'Keresés…';
},
removeAllItems: function () {
return 'Távolítson el minden elemet';
} }
}; };
}); });

View File

@ -33,6 +33,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Որոնում․․․'; return 'Որոնում․․․';
},
removeAllItems: function () {
return 'Հեռացնել բոլոր տարրերը';
} }
}; };
}); });

View File

@ -25,6 +25,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Mencari…'; return 'Mencari…';
},
removeAllItems: function () {
return 'Hapus semua item';
} }
}; };
}); });

View File

@ -36,6 +36,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Leita…'; return 'Leita…';
},
removeAllItems: function () {
return 'Fjarlægðu öll atriði';
} }
}; };
}); });

View File

@ -43,6 +43,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Sto cercando…'; return 'Sto cercando…';
},
removeAllItems: function () {
return 'Rimuovi tutti gli oggetti';
} }
}; };
}); });

View File

@ -31,6 +31,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return '検索しています…'; return '検索しています…';
},
removeAllItems: function () {
return 'すべてのアイテムを削除';
} }
}; };
}); });

View File

@ -32,6 +32,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'ძიება…'; return 'ძიება…';
},
removeAllItems: function () {
return 'ამოიღე ყველა ელემენტი';
} }
}; };
}); });

View File

@ -31,6 +31,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'កំពុងស្វែងរក...'; return 'កំពុងស្វែងរក...';
},
removeAllItems: function () {
return 'លុបធាតុទាំងអស់';
} }
}; };
}); });

View File

@ -31,6 +31,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return '검색 중…'; return '검색 중…';
},
removeAllItems: function () {
return '모든 항목 삭제';
} }
}; };
}); });

View File

@ -47,6 +47,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Ieškoma…'; return 'Ieškoma…';
},
removeAllItems: function () {
return 'Pašalinti visus elementus';
} }
}; };
}); });

View File

@ -46,6 +46,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Meklēšana…'; return 'Meklēšana…';
},
removeAllItems: function () {
return 'Noņemt visus vienumus';
} }
}; };
}); });

View File

@ -42,6 +42,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Пребарување…'; return 'Пребарување…';
},
removeAllItems: function () {
return 'Отстрани ги сите предмети';
} }
}; };
}); });

View File

@ -25,6 +25,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Mencari…'; return 'Mencari…';
},
removeAllItems: function () {
return 'Keluarkan semua item';
} }
}; };
}); });

View File

@ -25,6 +25,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Søker…'; return 'Søker…';
},
removeAllItems: function () {
return 'Fjern alle elementer';
} }
}; };
}); });

View File

@ -38,6 +38,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Zoeken…'; return 'Zoeken…';
},
removeAllItems: function () {
return 'Verwijder alle items';
} }
}; };
}); });

View File

@ -40,6 +40,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Trwa wyszukiwanie…'; return 'Trwa wyszukiwanie…';
},
removeAllItems: function () {
return 'Usuń wszystkie przedmioty';
} }
}; };
}); });

View File

@ -40,6 +40,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'لټول کيږي...'; return 'لټول کيږي...';
},
removeAllItems: function () {
return 'ټول توکي لرې کړئ';
} }
}; };
}); });

View File

@ -41,6 +41,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Buscando…'; return 'Buscando…';
},
removeAllItems: function () {
return 'Remover todos os itens';
} }
}; };
}); });

View File

@ -35,6 +35,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'A procurar…'; return 'A procurar…';
},
removeAllItems: function () {
return 'Remover todos os itens';
} }
}; };
}); });

View File

@ -41,6 +41,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Căutare…'; return 'Căutare…';
},
removeAllItems: function () {
return 'Eliminați toate elementele';
} }
}; };
}); });

View File

@ -53,6 +53,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Поиск…'; return 'Поиск…';
},
removeAllItems: function () {
return 'Удалить все элементы';
} }
}; };
}); });

View File

@ -54,6 +54,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Vyhľadávanie…'; return 'Vyhľadávanie…';
},
removeAllItems: function () {
return 'Odstráňte všetky položky';
} }
}; };
}); });

View File

@ -49,6 +49,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Iščem…'; return 'Iščem…';
},
removeAllItems: function () {
return 'Odstranite vse elemente';
} }
}; };
}); });

View File

@ -40,6 +40,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Duke kërkuar…'; return 'Duke kërkuar…';
},
removeAllItems: function () {
return 'Hiq të gjitha sendet';
} }
}; };
}); });

View File

@ -50,6 +50,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Претрага…'; return 'Претрага…';
},
removeAllItems: function () {
return 'Уклоните све ставке';
} }
}; };
}); });

View File

@ -50,6 +50,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Pretraga…'; return 'Pretraga…';
},
removeAllItems: function () {
return 'Уклоните све ставке';
} }
}; };
}); });

View File

@ -32,6 +32,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Söker…'; return 'Söker…';
},
removeAllItems: function () {
return 'Ta bort alla objekt';
} }
}; };
}); });

View File

@ -31,6 +31,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'กำลังค้นข้อมูล…'; return 'กำลังค้นข้อมูล…';
},
removeAllItems: function () {
return 'ลบรายการทั้งหมด';
} }
}; };
}); });

View File

@ -31,6 +31,10 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Gözlenýär…'; return 'Gözlenýär…';
},
removeAllItems: function () {
// TO DO : add in turkmen,
return 'Remove all items';
} }
}; };
}); });

View File

@ -31,6 +31,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Aranıyor…'; return 'Aranıyor…';
},
removeAllItems: function () {
return 'Tüm öğeleri kaldır';
} }
}; };
}); });

View File

@ -38,6 +38,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Пошук…'; return 'Пошук…';
},
removeAllItems: function () {
return 'Видалити всі елементи';
} }
}; };
}); });

View File

@ -32,6 +32,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return 'Đang tìm…'; return 'Đang tìm…';
},
removeAllItems: function () {
return 'Xóa tất cả các mục';
} }
}; };
}); });

View File

@ -31,6 +31,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return '搜索中…'; return '搜索中…';
},
removeAllItems: function () {
return '删除所有项目';
} }
}; };
}); });

View File

@ -28,6 +28,9 @@ define(function () {
}, },
searching: function () { searching: function () {
return '搜尋中…'; return '搜尋中…';
},
removeAllItems: function () {
return '刪除所有項目';
} }
}; };
}); });

View File

@ -97,8 +97,10 @@ define([
return; return;
} }
var removeAll = this.options.get('translations').get('removeAllItems');
var $remove = $( var $remove = $(
'<span class="select2-selection__clear">' + '<span class="select2-selection__clear" title="' + removeAll() +'">' +
'&times;' + '&times;' +
'</span>' '</span>'
); );

View File

@ -79,6 +79,26 @@ test('clear is displayed for placeholder', function (assert) {
); );
}); });
test('clear icon should have title displayed', function (assert) {
var selection = new AllowClearPlaceholder(
$('#qunit-fixture .single-with-placeholder'),
allowClearOptions
);
var $selection = selection.render();
selection.update([{
id: 'one',
test: 'one'
}]);
assert.equal(
$selection.find('.select2-selection__clear').attr('title'),
'Remove all items',
'The clear icon should have title displayed'
);
});
test('clicking clear will set the placeholder value', function (assert) { test('clicking clear will set the placeholder value', function (assert) {
var $element = $('#qunit-fixture .single-with-placeholder'); var $element = $('#qunit-fixture .single-with-placeholder');