Commit 31b2839f by Bence Dányi Committed by Őry Máté

webui: magic try-catch added

Conflicts:

	one/static/script/cloud.js
parent 7cb6bce6
var toggleDetails; var toggleDetails;
$(function() { $(function() {
toggleDetails = function() { toggleDetails = function() {
if ($(this).parent('.entry').hasClass('opened')) { try {
$(this).parent('.entry').removeClass('opened'); if ($(this).parent('.entry').hasClass('opened')) {
$(this).next('.details').css('height', '0px'); $(this).parent('.entry').removeClass('opened');
} else { $(this).next('.details').css('height', '0px');
$(this).parent('.entry').addClass('opened'); } else {
$(this).next('.details').css('height', $(this).parent('.entry').addClass('opened');
$(this).next('.details').find('.details-container')[0].offsetHeight+15+'px'); if ($(this).data('fallback') == 'slide') {
$(this).next('.details').css('height', 'auto');
} else {
$(this).next('.details').css('height',
$(this).next('.details').find('.details-container')[0].offsetHeight + 15 + 'px');
}
}
} catch(ex) {
//make sure we never fail :-)
} }
} }
$('a[href=#]').click(function(e) { $('a[href=#]').click(function(e) {
......
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 sign in to comment