From 00f19950961ed0be6d1d514b6027779bcba5c75a Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 5 May 2015 12:45:16 +0200 Subject: 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 --- data/js/thumbnail-view.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'data/js') 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(); }, -- cgit v1.2.3-24-g4f1b