Created
October 21, 2011 18:20
-
-
Save iamjpg/1304547 to your computer and use it in GitHub Desktop.
search.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%script{:type => "text/javascript"} | |
:plain | |
$(document).ready(function(){ | |
$('body').attr('data-sitebase', "#{request.url}"); | |
$('body').attr('data-servicebase',"#{@service_base_url}"); | |
$('body').attr('data-serviceversion',"#{@service_version}"); | |
$('body').attr('data-usertoken',"#{@user_id}"); | |
$('body').attr('data-agenttoken', "6f62a0d9-479d-4e16-a473-90e671c65979"); | |
var search_height = $(window).height() - $('#shared-footer').outerHeight(true) - $('#shared-header').outerHeight(true); | |
var search_width = $(window).width(); | |
$("#content").css({ | |
position: "absolute", | |
left: 0, | |
padding: 0 | |
}); | |
$("#shared-footer").css({ | |
position: "absolute", | |
bottom : 0 | |
}); | |
$('#wms_search').css({ | |
"height" : search_height, | |
"width" : search_width | |
}); | |
}); | |
-# DV: Can not use javascript_include_tag due to bug in sprokets thinks it should be in the asset pipeline | |
%script(src='/vendor/search.lib/init_settings.js' type='text/javascript') | |
%script{:type => "text/javascript"} | |
:plain | |
wms.extend({ root : '/vendor/', tabless : true }); | |
%script(src='/vendor/search.lib/init_app.js' type='text/javascript') | |
#wms_search |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment