Bugzilla – Attachment 25193 Details for
Bug 11737
Use new DataTables include in quotes management template
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11737: (follow-up) fnReloadAjax.js is duplicated
Bug-11737-follow-up-fnReloadAjaxjs-is-duplicated.patch (text/plain), 2.70 KB, created by
Jonathan Druart
on 2014-02-11 09:32:13 UTC
(
hide
)
Description:
Bug 11737: (follow-up) fnReloadAjax.js is duplicated
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-02-11 09:32:13 UTC
Size:
2.70 KB
patch
obsolete
>From cddeacd5c6ec643538abe2708cfa4b1ec64d9417 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Tue, 11 Feb 2014 10:28:23 +0100 >Subject: [PATCH] Bug 11737: (follow-up) fnReloadAjax.js is duplicated > >the file dataTables.fnReloadAjax.js exists in the interface and >themelang directories. >It is only used in quotes.tt. >So the unused one can be removed. > >test plan: >git grep fnReloadAjax.js >should return only 1 ref (quotes.tt) > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > .../lib/jquery/plugins/dataTables.fnReloadAjax.js | 50 -------------------- > 1 file changed, 50 deletions(-) > delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/dataTables.fnReloadAjax.js > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/dataTables.fnReloadAjax.js b/koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/dataTables.fnReloadAjax.js >deleted file mode 100644 >index 0eac52a..0000000 >--- a/koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/dataTables.fnReloadAjax.js >+++ /dev/null >@@ -1,50 +0,0 @@ >-$.fn.dataTableExt.oApi.fnReloadAjax = function ( oSettings, sNewSource, fnCallback, bStandingRedraw ) >-{ >- if ( typeof sNewSource != 'undefined' && sNewSource != null ) >- { >- oSettings.sAjaxSource = sNewSource; >- } >- this.oApi._fnProcessingDisplay( oSettings, true ); >- var that = this; >- var iStart = oSettings._iDisplayStart; >- var aData = []; >- >- this.oApi._fnServerParams( oSettings, aData ); >- >- oSettings.fnServerData( oSettings.sAjaxSource, aData, function(json) { >- /* Clear the old information from the table */ >- that.oApi._fnClearTable( oSettings ); >- >- /* Got the data - add it to the table */ >- var aData = (oSettings.sAjaxDataProp !== "") ? >- that.oApi._fnGetObjectDataFn( oSettings.sAjaxDataProp )( json ) : json; >- >- for ( var i=0 ; i<aData.length ; i++ ) >- { >- that.oApi._fnAddData( oSettings, aData[i] ); >- } >- >- oSettings.aiDisplay = oSettings.aiDisplayMaster.slice(); >- that.fnDraw(); >- >- if ( typeof bStandingRedraw != 'undefined' && bStandingRedraw === true ) >- { >- oSettings._iDisplayStart = iStart; >- that.fnDraw( false ); >- } >- >- that.oApi._fnProcessingDisplay( oSettings, false ); >- >- /* Callback user function - for event handlers etc */ >- if ( typeof fnCallback == 'function' && fnCallback != null ) >- { >- fnCallback( oSettings ); >- } >- }, oSettings ); >-} >- >-/* Example call to load a new file */ >-//oTable.fnReloadAjax( 'media/examples_support/json_source2.txt' ); >- >-/* Example call to reload from original file */ >-//oTable.fnReloadAjax(); >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11737
:
25182
|
25188
|
25192
| 25193