simplify
--HG-- extra : rebase_source : 4bf414bce486565a29ca928e77b55f6d2a55718d
This commit is contained in:
parent
3a61b70445
commit
168ba3994e
|
@ -35,14 +35,10 @@ $book->initSpineComponent ();
|
||||||
getComponent: function (componentId, callback) {
|
getComponent: function (componentId, callback) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "epubfs.php?comp=" + componentId,
|
url: "epubfs.php?comp=" + componentId,
|
||||||
type: 'get'
|
type: 'get',
|
||||||
, dataType: 'text'
|
dataType: 'text',
|
||||||
, error: function () {alert ("error");}
|
error: function () {alert ("error");},
|
||||||
, success: function (data, textStatus, jqXHR ) {
|
success: callback
|
||||||
//alert (textStatus);
|
|
||||||
//alert (data);
|
|
||||||
callback (data);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getMetaData: function(key) {
|
getMetaData: function(key) {
|
||||||
|
|
Loading…
Reference in a new issue