Last active
January 27, 2017 09:20
-
-
Save GodSaveEarth/efce33e6d647e0b60d3b2b7a7f0fca2c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// удалить все точки продаж в интерфейсе яндекс.маркет | |
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