DesktopLibrary.js 501 B

12345678910111213141516171819202122232425262728
  1. // Copyright (c) 2006-2020, JGraph Ltd
  2. /**
  3. *
  4. */
  5. DesktopLibrary = function(ui, data, fileObj)
  6. {
  7. LocalLibrary.call(this, ui, data, fileObj.name);
  8. this.fileObj = fileObj;
  9. };
  10. //Extends LocalLibrary
  11. mxUtils.extend(DesktopLibrary, LocalLibrary);
  12. /**
  13. *
  14. */
  15. DesktopLibrary.prototype.getHash = function()
  16. {
  17. return 'S' + encodeURIComponent(this.fileObj.path);
  18. };
  19. /**
  20. *
  21. */
  22. DesktopLibrary.prototype.save = function(revision, success, error)
  23. {
  24. LocalFile.prototype.saveFile.apply(this, arguments);
  25. };