User:Writ Keeper/Scripts/teahouseTalkbackLink.js: Difference between revisions

Content deleted Content added
use mw.api
error handling
Line 64:
else
{
alert('There was an error requesting the page editcreate. Code: ' + data);
}
}).fail(function(data) {
alert('There was an error using AJAX to editcreate the page. Error: ' + data);
});
}
Line 92:
}
}).fail(function(data) {
alert('There was an error using AJAX to edit the page. Error: ' + data);
});
}