source: OKFNAnnotator (for Zope)/annotator_files/lib/plugin/unsupported.js @ 4:6979313586cf

Last change on this file since 4:6979313586cf was 4:6979313586cf, checked in by casties, 12 years ago

new version of annotator.

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