diff options
author | Florian Pritz <bluewind@xinu.at> | 2015-05-05 12:45:16 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-05-05 12:45:16 +0200 |
commit | 00f19950961ed0be6d1d514b6027779bcba5c75a (patch) | |
tree | ef57caf5f96d58030fc096cb040a6ae52592a29f /data | |
parent | 8ec8aa2ad859b2e8586da299400477c243ecc4f2 (diff) |
Fix colorbox not being loaded
Since it is also now always loaded we no longer need to check for it
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'data')
-rw-r--r-- | data/js/thumbnail-view.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/data/js/thumbnail-view.js b/data/js/thumbnail-view.js index 88b89033b..80a989a28 100644 --- a/data/js/thumbnail-view.js +++ b/data/js/thumbnail-view.js @@ -1,6 +1,6 @@ (function () { 'use strict'; -define(['jquery', 'underscore'], function ($, _) { +define(['jquery', 'underscore', 'jquery.colorbox'], function ($, _) { var ui = { thumbnailLinks: '.upload_thumbnails a', deleteButton: '#delete_button', @@ -21,7 +21,6 @@ define(['jquery', 'underscore'], function ($, _) { }, setupColorbox: function () { - if (_.isUndefined($.colorbox)) { return; } $(ui.colorbox).colorbox({ transistion: "none", speed: 0, @@ -42,7 +41,6 @@ define(['jquery', 'underscore'], function ($, _) { }, removeColorbox: function () { - if (_.isUndefined($.colorbox)) { return; } $.colorbox.remove(); }, |