mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2025-02-21 08:34:27 -05:00
This partially addresses #43.
This commit is contained in:
parent
49157e3341
commit
8aae19686b
@ -281,9 +281,9 @@ define('SHOW_SHOP_ID',0);
|
||||
**************/
|
||||
// Allow comments/feedback/notes to be added per individual_history_log in reports,
|
||||
// and globally in shop_log. An etherpad host has to be defined for this to work.
|
||||
// See wiki for instructions on how to setup an etherpad docker instance.r
|
||||
// See wiki for instructions on how to setup an etherpad docker instance.
|
||||
//
|
||||
// prefix allows you to set a prefix to the name of the autogenerated padID:
|
||||
// prefix allows you to set a prefix to the name of the autogenerated padId:
|
||||
// etherpad = prefix + "pad_contact_id_" + contact_id;
|
||||
// etherpad_global = prefix_ + "global_pad"
|
||||
// See https://github.com/ether/etherpad-lite-jquery-plugin for information about other configurations.
|
||||
|
39
shop_log.php
39
shop_log.php
@ -76,28 +76,33 @@ if($_GET['new_user_id']>0){
|
||||
|
||||
$( window ).on( "load", function() {
|
||||
|
||||
var body_margin = $("#shop_log_iframe").contents().find("body").css("margin");
|
||||
body_margin = body_margin.replace("px","");
|
||||
body_margin = body_margin * 4;
|
||||
var shop_log_height = $("#shop_log_iframe").contents().find("#shop_height").height() +
|
||||
$("#shop_log_iframe").contents().find("#header_height").height() + body_margin;
|
||||
|
||||
$("#shop_log_iframe").css({"height": shop_log_height});
|
||||
|
||||
$("#shop_log_iframe").contents().find("#shop_log_link").attr("href","/shop_log_iframe.php");
|
||||
|
||||
// does this work?
|
||||
$("#shop_log_iframe").contents().find("#sign_in_button").on("click keypress", function(e){
|
||||
|
||||
if ( $("#epframeshop_log_pad").length ) {
|
||||
|
||||
|
||||
var body_margin = $("#shop_log_iframe").contents().find("body").css("margin");
|
||||
body_margin = body_margin.replace("px","");
|
||||
body_margin = body_margin * 4;
|
||||
var shop_log_height = $("#shop_log_iframe").contents().find("#shop_height").height() +
|
||||
$("#shop_log_iframe").contents().find("#header_height").height() + body_margin;
|
||||
|
||||
$("#shop_log_iframe").css({"height": shop_log_height});
|
||||
|
||||
});
|
||||
|
||||
$("#shop_log_iframe").css({"height": shop_log_height});
|
||||
|
||||
$("#shop_log_iframe").contents().find("#shop_log_link").attr("href","/shop_log_iframe.php");
|
||||
|
||||
// does this work?
|
||||
$("#shop_log_iframe").contents().find("#sign_in_button").on("click keypress", function(e){
|
||||
|
||||
var body_margin = $("#shop_log_iframe").contents().find("body").css("margin");
|
||||
body_margin = body_margin.replace("px","");
|
||||
body_margin = body_margin * 4;
|
||||
var shop_log_height = $("#shop_log_iframe").contents().find("#shop_height").height() +
|
||||
$("#shop_log_iframe").contents().find("#header_height").height() + body_margin;
|
||||
|
||||
$("#shop_log_iframe").css({"height": shop_log_height});
|
||||
|
||||
});
|
||||
|
||||
} // if etherpad
|
||||
|
||||
}); // end $( window ).on
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user