Bug 12163 - fix adding new quotes
authorRobin Sheat <robin@catalyst.net.nz>
Wed, 30 Apr 2014 04:28:21 +0000 (16:28 +1200)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 6 May 2014 16:03:23 +0000 (16:03 +0000)
Something changed somewhere (maybe a new jQuery or datatables version)
and the javascript that redrew the table row after a new quote was saved
stopped working. This fixes the call to the datatables function so that
it matches the API.

Note that although the new quote didn't appear to be added, reloading
the page shows that it had been.

To test:
* Go and add a quote.
* Note that when you press enter after finishing the quote, the line
  stops being an editor, and becomes just a display, like it should.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt

index 007b2cb..25aceaa 100644 (file)
                                     var aRow = oTable.fnUpdate(
                                         newQuote,
                                         node,
+                                        undefined,
                                         false,
                                         false
                                     );