PluginProbe
CSS & JavaScript Toolbox / 8.0.2
CSS & JavaScript Toolbox v8.0.2
trunk 0.3 0.8 10 10.1 11 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 11.9.1 12 12.0 12.0.1 12.0.3 12.0.4 12.0.5 12.0.6 12.0.7 6.0 6.0.11 All 60 releases
css-javascript-toolbox / views / extensions / plugins-list / public / js / default / default.js

default.js in CSS & JavaScript Toolbox 8.0.2, at views/extensions/plugins-list/public/js/default/default.js

56 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 *
3 */
4
5 /**
6 *
7 */
8 (function($) {
9
10 /**
11 *
12 */
13 var CJTExtensionsPluginsListViewDefault = {
14
15 /**
16 * put your comment there...
17 *
18 */
19 server : CJTServer,
20
21 /**
22 * put your comment there...
23 *
24 * @param event
25 */
26 _onsetup : function(event) {
27 // Getting component name from clicked link!
28 var component = CJTUtilities.parseString(decodeURI(/\#(.+)/.exec(event.target.href)[1]));
29 // Build request parameters.
30 var request = {
31 view : 'setup/activation-form',
32 component : component,
33 /* Thickbox */
34 TB_iframe : true,
35 height : 280
36 };
37 // Get URL to activation form.
38 var url = this.server.getRequestURL('setup', 'activationFormView', request);
39 // Show dialog!
40 tb_show(CJTExtensionsPluginsListViewDefaultI18N.activationFormTitle, url);
41 },
42
43 /**
44 * put your comment there...
45 *
46 */
47 init : function() {
48 $('.license-key a').click($.proxy(this._onsetup, this));
49 }
50
51 }
52
53 // Initioalize form when document ready!
54 $($.proxy(CJTExtensionsPluginsListViewDefault.init, CJTExtensionsPluginsListViewDefault));
55
56 })(jQuery);