mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
2284 - Replace JQuery Autocompleter plugin by JQuery UI Autocomplete widget - Cleanup tableHover
This commit is contained in:
@@ -292,7 +292,6 @@ EOF
|
||||
}
|
||||
$this->AddReadyScript(
|
||||
<<<EOF
|
||||
$('.prop_table').tableHover();
|
||||
var idx = 0;
|
||||
$('.prop_table tbody tr').each(function() {
|
||||
if ((idx % 2) == 0)
|
||||
|
||||
@@ -76,8 +76,6 @@ function ExportRun(data) {
|
||||
if (data.mime_type == 'text/html') {
|
||||
$('#export-content').parent().html(data.text_result);
|
||||
$('#export-text-result').show();
|
||||
$('#export-text-result .listResults').tableHover();
|
||||
$('#export-text-result .listResults').tablesorter({widgets: ['myZebra']});
|
||||
}
|
||||
else {
|
||||
if ($('#export-text-result').closest('ui-dialog').length == 0) {
|
||||
|
||||
@@ -379,7 +379,6 @@ function ExtKeyWidget(id, sTargetClass, sFilter, sTitle, bSelectMode, oWizHelper
|
||||
me.ajax_request = $.post(AddAppContext(GetAbsoluteUrlAppRoot()+'pages/ajax.render.php'), theMap,
|
||||
function (data) {
|
||||
$(sSearchAreaId).html(data);
|
||||
$(sSearchAreaId+' .listResults').tableHover();
|
||||
$('#fr_'+me.id+' input:radio').click(function () {
|
||||
me.UpdateButtons();
|
||||
});
|
||||
|
||||
@@ -251,7 +251,6 @@ function sprintf(format, etc) {
|
||||
updatePageDisplay(c);
|
||||
updateCounter(table, table.config.container);
|
||||
renderPager(table, table.config.container);
|
||||
$(table).tableHover();
|
||||
$('#loading', table.config.container).empty();
|
||||
|
||||
saveParams(table.config);
|
||||
|
||||
@@ -303,7 +303,6 @@ $(function()
|
||||
$.post(this.options.submit_to, oParams, function(data) {
|
||||
|
||||
$('#SearchResultsToAdd_'+me.id).html(data);
|
||||
$('#SearchResultsToAdd_'+me.id+' .listResults').tableHover();
|
||||
$('#count_'+me.id).change(function() {
|
||||
var c = this.value;
|
||||
me._onUpdateDlgButtons(c);
|
||||
|
||||
@@ -258,10 +258,9 @@ function LinksWidget(id, sClass, sAttCode, iInputId, sSuffix, bDuplicates, oWizH
|
||||
function (data) {
|
||||
if (data != '')
|
||||
{
|
||||
$('#'+me.id+'_empty_row').hide();
|
||||
$('#linkedset_'+me.id+' .listResults tbody').prepend(data);
|
||||
$('#linkedset_'+me.id+' .listResults').trigger('update');
|
||||
$('#linkedset_'+me.id+' .listResults').tableHover();
|
||||
$('#datatable_'+me.id+' .dataTables_empty').hide();
|
||||
$('#linkedset_'+me.id+' .listResults tbody').append(data);
|
||||
|
||||
$('#linkedset_'+me.id+' .listResults').trigger('update').trigger("applyWidgets"); // table is already sortable, just refresh it
|
||||
$('#linkedset_'+me.id+' :input').each(function () {
|
||||
$(this).trigger('validate', '');
|
||||
|
||||
@@ -203,7 +203,6 @@ function SearchFormForeignKeys(id, sTargetClass, sAttCode, oSearchWidgetElmt, sF
|
||||
function(data)
|
||||
{
|
||||
$(sSearchAreaId).html(data);
|
||||
$(sSearchAreaId+' .listResults').tableHover();
|
||||
$('#fr_'+me.id+' input:radio').click(function() { me.UpdateButtons(); });
|
||||
me.UpdateButtons();
|
||||
me.ajax_request = null;
|
||||
|
||||
Reference in New Issue
Block a user