source: OKFNAnnotator (for Zope)/annotator_files/lib/plugin/unsupported.js @ 3:6356e78ccf5c

Last change on this file since 3:6356e78ccf5c was 3:6356e78ccf5c, checked in by casties, 12 years ago

new version contains Annotator JS files to be used with FilesystemSite?.

File size: 1.0 KB
Line 
1var __hasProp = Object.prototype.hasOwnProperty,
2  __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor; child.__super__ = parent.prototype; return child; };
3
4Annotator.Plugin.Unsupported = (function(_super) {
5
6  __extends(Unsupported, _super);
7
8  function Unsupported() {
9    Unsupported.__super__.constructor.apply(this, arguments);
10  }
11
12  Unsupported.prototype.options = {
13    message: Annotator._t("Sorry your current browser does not support the Annotator")
14  };
15
16  Unsupported.prototype.pluginInit = function() {
17    var _this = this;
18    if (!Annotator.supported()) {
19      return $(function() {
20        Annotator.showNotification(_this.options.message);
21        if ((window.XMLHttpRequest === void 0) && (ActiveXObject !== void 0)) {
22          return $('html').addClass('ie6');
23        }
24      });
25    }
26  };
27
28  return Unsupported;
29
30})(Annotator.Plugin);
Note: See TracBrowser for help on using the repository browser.