Advertisement
Guest User

Untitled

a guest
May 29th, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. (function() {
  2. 'use strict';
  3. window.Cockpit.SystemPlugins = window.Cockpit.SystemPlugins || { PluginFinder: {} }
  4. window.Cockpit.SystemPlugins.PluginFinder.PluginFinderConfig = function PluginFinderConfig() {
  5. var self = this;
  6. self.get = function (pluginName, callback) {
  7. $.get('/system-plugin/plugin-finder/config/' + pluginName, function (config) {
  8. if (callback !== undefined)
  9. callback(config);
  10. });
  11. };
  12. self.set = function (pluginName, config) {
  13. $.post('/system-plugin/plugin-finder/config/' + pluginName, config);
  14. };
  15. };
  16. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement