From 168ba3994e4d425e5969c4b1bd3090176458cba0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Wed, 15 May 2013 13:41:08 +0200 Subject: [PATCH] simplify --HG-- extra : rebase_source : 4bf414bce486565a29ca928e77b55f6d2a55718d --- epubreader.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/epubreader.php b/epubreader.php index 771f949..c48fd33 100644 --- a/epubreader.php +++ b/epubreader.php @@ -35,14 +35,10 @@ $book->initSpineComponent (); getComponent: function (componentId, callback) { $.ajax({ url: "epubfs.php?comp=" + componentId, - type: 'get' - , dataType: 'text' - , error: function () {alert ("error");} - , success: function (data, textStatus, jqXHR ) { - //alert (textStatus); - //alert (data); - callback (data); - } + type: 'get', + dataType: 'text', + error: function () {alert ("error");}, + success: callback }); }, getMetaData: function(key) {