Commit 86e8a476 authored by arthurf's avatar arthurf Committed by Paris Liakos

Issue #1884670 by arthurf: Remove unused JS files

parent 133fe608
(function ($) {
namespace('Drupal.media.browser.plugin');
Drupal.media.browser.plugin.fromurl = function (mediaBrowser, options) {
return {
init: function () {
tabset = mediaBrowser.getTabset();
tabset.tabs('add', '#fromurl', 'From URL');
mediaBrowser.listen('tabs.show', function (e, id) {
if (id == 'fromurl') {
// We only need to set this once.
// We probably could set it upon load.
if (mediaBrowser.getActivePanel().html() == '') {
mediaBrowser.getActivePanel().html(options.fromUrlForm);
}
}
});
}
};
};
// For now, I guess self registration makes sense.
// Really though, we should be doing it via drupal_add_js and some settings
// from the drupal variable.
// @todo: needs a review.
Drupal.media.browser.register('fromurl', Drupal.media.browser.plugin.fromurl, {});
})(jQuery);
(function ($) {
namespace('Drupal.media.browser.plugin');
Drupal.media.browser.plugin.upload = function (mediaBrowser, options) {
return {
/* Abstract */
init: function () {
tabset = mediaBrowser.getTabset();
tabset.tabs('add', '#upload', Drupal.t('Upload'));
mediaBrowser.listen('tabs.show', function (e, id) {
if (id == 'upload') {
// We only need to set this once.
// We probably could set it upon load.
if (mediaBrowser.getActivePanel().html() == '') {
mediaBrowser.getActivePanel().html(options.uploadForm);
}
}
});
}
};
};
// For now, I guess self registration makes sense.
// Really though, we should be doing it via drupal_add_js and some settings
// from the drupal variable.
// @todo: needs a review.
Drupal.media.browser.register('upload', Drupal.media.browser.plugin.upload, {});
})(jQuery);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment