diff options
author | Git <git@what.cd> | 2013-08-28 23:08:41 +0000 |
---|---|---|
committer | Git <git@what.cd> | 2013-08-28 23:08:41 +0000 |
commit | 3e3fdfb804b3faea02df1c0a40ed2cba3b5f3663 (patch) | |
tree | 0dfbaae1ba2bc758afcdf45dacb3471552f9849c /static/functions/cssgallery.js | |
parent | db7ddd03782cae2be19499450d3948c5950e43fa (diff) | |
download | Gazelle-3e3fdfb804b3faea02df1c0a40ed2cba3b5f3663.zip Gazelle-3e3fdfb804b3faea02df1c0a40ed2cba3b5f3663.tar.gz Gazelle-3e3fdfb804b3faea02df1c0a40ed2cba3b5f3663.tar.bz2 |
Empty commit
Diffstat (limited to 'static/functions/cssgallery.js')
-rw-r--r-- | static/functions/cssgallery.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/static/functions/cssgallery.js b/static/functions/cssgallery.js index 1be5ca8..f8e2d94 100644 --- a/static/functions/cssgallery.js +++ b/static/functions/cssgallery.js @@ -6,8 +6,8 @@ $(document).ready(function () { $('.preview_wrapper').removeClass('selected'); radiobutton.parent().parent().addClass('selected'); } - // If an overlay is clicked, select the right item in the drop-down and clear the custom CSS field - $('div.preview_image').click(function() { + // If the input is clicked, redirect it to the overlay click event + $('input[name="stylesheet_gallery"]').change(function() { $('.preview_wrapper').removeClass('selected'); var parent = $(this).parent(); parent.addClass('selected'); @@ -16,10 +16,6 @@ $(document).ready(function () { $('select#stylesheet').val(radiobutton.attr('value')); $('input#styleurl').val(''); }) - // If the input is clicked, redirect it to the overlay click event - $('input[name="stylesheet_gallery"]').change(function() { - $(this).parent().parent().find('div.preview_image').click(); - }) // If the drop-down is changed, select the appropriate item in gallery, clear the custom CSS field $('select#stylesheet').change(function() { var radiobutton = $('input[name="stylesheet_gallery"][value="' + $(this).val() + '"]'); |