Skip to content

Instantly share code, notes, and snippets.

@GodSaveEarth
Last active January 27, 2017 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GodSaveEarth/efce33e6d647e0b60d3b2b7a7f0fca2c to your computer and use it in GitHub Desktop.
Save GodSaveEarth/efce33e6d647e0b60d3b2b7a7f0fca2c to your computer and use it in GitHub Desktop.
// удалить все точки продаж в интерфейсе яндекс.маркет
var s = $("input[name=secret-key]").val();
var id = $("input[name=id]").val();
$.each( $("input[name=outlet-id]"), function( key, value ) {
var oid = $(value).val();
var a = {
"secret-key": s,
outletId: oid,
id: id,
a: "d"
};
$.ajax({
dataType: "script",
url: "/gate/delete-outlet.xml",
data: a
});
location.reload();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment