Sha256: 166ddd5c18f6bfb09e85d0f4694125d7028bbee4b52021d20c555056ddba36aa
Contents?: true
Size: 1.68 KB
Versions: 4
Compression:
Stored size: 1.68 KB
Contents
function fit_content(){ var height = window.innerHeight - $('footer').outerHeight(true); var top_offset = $('#content').get()[0].offsetTop $('#content').css('min-height', height - top_offset - 48) $('#top_menu dl.rbbt_menu').css('max-height', height - 100) } function update_rbbt(){ update_dom() $('table').table() $('.action_controller').action_controller() $('.ui.accordion').accordion(); $('.ui.checkbox').checkbox(); $('.rbbt_reveal_trigger').reveal() //$('table.tablesorter').tablesorter() //$('body > #modal').modal() //$('#top_menu .favourites').favourites('update_list_selects').favourites('update_map_selects') //$('#top_bar .favourites').favourites('update_list_selects').favourites('update_map_selects') //$('select:not(.favourite_lists)').dropdown(); //$('.selection.dropdown').find('.item:not([data-value])').removeClass('item').addClass('header'); start_deferred() fit_content() $('.preload').removeClass('preload'); if (undefined !== rbbt.aesthetics){ rbbt.aesthetics.load() rbbt.aesthetics.apply() } } $(function(){ register_dom_update('#top_menu > .reload', function(item){ item.click(function(){ var url = window.location.toString(); url = url.replace(/#$/, ''); url = remove_parameter(url, '_update'); url = add_parameters(url, '_update=reload'); url = remove_parameter(url, '_'); url = add_parameters(url, '_=' + Math.random().toString()); window.location = url return false }) }) register_dom_update('dt a.entity_list', function(link){ link.click(function(){ window.location = $(this).attr('href') return false; }) }) if (undefined !== rbbt.favourites && user != 'none') rbbt.favourites.update() update_rbbt() })
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rbbt-rest-1.7.5 | share/views/public/js/app.js |
rbbt-rest-1.7.4 | share/views/public/js/app.js |
rbbt-rest-1.7.3 | share/views/public/js/app.js |
rbbt-rest-1.7.2 | share/views/public/js/app.js |