comparison annotator_files/lib/plugin/unsupported.js @ 3:6356e78ccf5c

new version contains Annotator JS files to be used with FilesystemSite.
author casties
date Thu, 05 Apr 2012 19:37:27 +0200
parents
children 6979313586cf
comparison
equal deleted inserted replaced
2:4c6c8835fc5c 3:6356e78ccf5c
1 var __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
4 Annotator.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);