turbolinks fixes
This commit is contained in:
parent
acd42142dc
commit
0c758f6e40
@ -1,11 +1,7 @@
|
||||
$(function () {
|
||||
$("div.progressbar").each (
|
||||
function () {
|
||||
$(document).on('page:load ready', function() {
|
||||
$("div.progressbar").each(function() {
|
||||
var element = this;
|
||||
$(element).progressbar(
|
||||
{
|
||||
value: parseInt($(element).attr("rel"))
|
||||
});
|
||||
$(element).progressbar({ value: parseInt($(element).attr("rel")) });
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -111,7 +111,7 @@
|
||||
</div>
|
||||
|
||||
<script language="javascript">
|
||||
$(function() {
|
||||
$(document).on('page:load ready', function() {
|
||||
$("#sidebar a").attr("target", "_blank");
|
||||
});
|
||||
</script>
|
||||
|
@ -141,7 +141,7 @@
|
||||
// remember default field label
|
||||
var default_label = '<%= t(:channel_default_field) %>';
|
||||
// when document is ready
|
||||
$(function() {
|
||||
$(document).on('page:load ready', function() {
|
||||
// iterate through each field textbox
|
||||
$('.field').each(function() {
|
||||
// if a value is present, show the 'remove' checkbox
|
||||
|
@ -12,7 +12,7 @@
|
||||
<div id="private_dialog1" class="column" > </div>
|
||||
</div>
|
||||
<script>
|
||||
$(function() {
|
||||
$(document).on('page:load ready', function() {
|
||||
$("#devInfoLink_private").click(
|
||||
function(e) {
|
||||
var element = $("#devInfo");
|
||||
@ -29,3 +29,4 @@ $(function() {
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
@ -92,7 +92,7 @@
|
||||
}
|
||||
|
||||
// when document is ready
|
||||
$(function() {
|
||||
$(document).on('page:load ready', function() {
|
||||
|
||||
// events to automatically create slug field
|
||||
$('#channel_name').keyup(function() {
|
||||
@ -105,3 +105,4 @@
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
@ -266,7 +266,7 @@
|
||||
}
|
||||
|
||||
// when document is ready
|
||||
$(function() {
|
||||
$(document).on('page:load ready', function() {
|
||||
|
||||
// event to make sure user types something into form
|
||||
<% @fields.each do |f| %>
|
||||
@ -306,3 +306,4 @@
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
<script type="text/javascript" src="<%= @map_domain %>/maps/api/js?sensor=false"></script>
|
||||
<script type="text/javascript">
|
||||
// when document is ready
|
||||
$(function() {
|
||||
$(document).on('page:load ready', function() {
|
||||
|
||||
// google maps options
|
||||
var myOptions = {
|
||||
@ -42,3 +42,4 @@
|
||||
<div id="map_canvas" style="width: <%= params[:width] ? params[:width].to_i : @width.to_i %>px; height: <%= params[:height] ? params[:height].to_i : @height.to_i %>px;"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
<script type="text/javascript" src="<%= @map_domain %>/maps/api/js?sensor=false"></script>
|
||||
<script type="text/javascript">
|
||||
// when document is ready
|
||||
$(function() {
|
||||
$(document).on('page:load ready', function() {
|
||||
|
||||
// google maps options
|
||||
var myOptions = {
|
||||
@ -117,3 +117,4 @@
|
||||
<div id="map_canvas" style="width: <%= params[:width] ? params[:width].to_i : @width.to_i %>px; height: <%= params[:height] ? params[:height].to_i : @height.to_i %>px;"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
@ -57,7 +57,7 @@
|
||||
|
||||
<script type="text/javascript">
|
||||
// when document is ready
|
||||
$(function() {
|
||||
$(document).on('page:load ready', function() {
|
||||
|
||||
// allow tabs to work in textareas
|
||||
$("textarea").tabby();
|
||||
|
@ -13,7 +13,7 @@
|
||||
<% end %>
|
||||
<div>
|
||||
<script>
|
||||
$(function () {
|
||||
$(document).on('page:load ready', function() {
|
||||
$(".timeago").timeago();
|
||||
var refreshInterval = setInterval(refreshStatus, 1 * 60 * 1000);
|
||||
});
|
||||
@ -44,3 +44,4 @@ function refreshStatus() {
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
<script>
|
||||
|
||||
|
||||
$(function() {
|
||||
$(document).on('page:load ready', function() {
|
||||
$("#tabs").tabs({
|
||||
ajaxOptions: {
|
||||
error: function( xhr, status, index, anchor ) {
|
||||
|
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
public/assets/application-acf65447ac760ab7c9d4797a529315a8.js.gz
Normal file
BIN
public/assets/application-acf65447ac760ab7c9d4797a529315a8.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user