Sha256: e1dd6317194c8fa6fbe4bcfd2d491e43674074c391413e42ffab8a719c131e80

Contents?: true

Size: 1.17 KB

Versions: 25

Compression:

Stored size: 1.17 KB

Contents

function fit_content(){
 var height = window.innerHeight - $('footer').outerHeight(true);
 $('#content').css('min-height', height)
 $('#top_menu dl.rbbt_menu').css('max-height', height - 100)
}

function update_rbbt(){
 update_dom()

 $('.rbbt_reveal_trigger').reveal()
 $('table').table()
 //$('table.tablesorter').tablesorter()
 $('body > #modal').modal()
 $('.action_controller').action_controller()
 $('#top_menu li.favourites').favourites('update_list_selects').favourites('update_map_selects')

 start_defferred()
 fit_content()
}

$(function(){

 register_dom_update('#top_menu > ul > li.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;
  })
 })

 $('#top_menu li.favourites').favourites()

 update_rbbt()
})

// Activate tools

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
rbbt-rest-1.4.10 share/views/public/js/app.js
rbbt-rest-1.4.9 share/views/public/js/app.js
rbbt-rest-1.4.8 share/views/public/js/app.js
rbbt-rest-1.4.7 share/views/public/js/app.js
rbbt-rest-1.4.6 share/views/public/js/app.js
rbbt-rest-1.4.5 share/views/public/js/app.js
rbbt-rest-1.4.4 share/views/public/js/app.js
rbbt-rest-1.4.3 share/views/public/js/app.js
rbbt-rest-1.4.2 share/views/public/js/app.js
rbbt-rest-1.4.1 share/views/public/js/app.js
rbbt-rest-1.4.0 share/views/public/js/app.js
rbbt-rest-1.3.32 share/views/public/js/app.js
rbbt-rest-1.3.31 share/views/public/js/app.js
rbbt-rest-1.3.30 share/views/public/js/app.js
rbbt-rest-1.3.29 share/views/public/js/app.js
rbbt-rest-1.3.28 share/views/public/js/app.js
rbbt-rest-1.3.27 share/views/public/js/app.js
rbbt-rest-1.3.26 share/views/public/js/app.js
rbbt-rest-1.3.25 share/views/public/js/app.js
rbbt-rest-1.3.24 share/views/public/js/app.js