Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var cropper;
- function startEditor(id)
- {
- dojo.xhrGet( {
- url: "/admin/store/edit-image/id/" + id,
- handleAs: "text",
- timeout: 5000,
- load: function(response, ioArgs) {
- cropper = new dijit.Dialog({title: "Edit Image",
- content: response}).show();
- return response;
- },
- error: function(response, ioArgs) {
- console.error("HTTP status code: ", ioArgs.xhr.status);
- return response;
- }
- });
- cropper.connect(cropper, 'hide', function() {
- alert('jam');
- setTimeout("alert('thisran');", 500);
- });
- }
Add Comment
Please, Sign In to add comment