mirror of
https://github.com/e107inc/e107.git
synced 2025-07-09 17:16:20 +02:00
Load Signup JS code only when needed.
This commit is contained in:
@ -23,14 +23,9 @@ $sql = e107::getDb();
|
|||||||
|
|
||||||
$sql->db_Mark_Time('(Header Top)');
|
$sql->db_Mark_Time('(Header Top)');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
e107::js('core', 'colorbox/jquery.colorbox-min.js', 'jquery', 2);
|
e107::js('core', 'colorbox/jquery.colorbox-min.js', 'jquery', 2);
|
||||||
e107::css('core', 'colorbox/colorbox.css', 'jquery');
|
e107::css('core', 'colorbox/colorbox.css', 'jquery');
|
||||||
|
|
||||||
// Used for Signup form elements - could be on any page of the site.
|
|
||||||
e107::js('core', 'jquery.mailcheck.min.js','jquery',2);
|
|
||||||
|
|
||||||
e107::js('core','bootstrap/js/bootstrap-tooltip.js','jquery');
|
e107::js('core','bootstrap/js/bootstrap-tooltip.js','jquery');
|
||||||
e107::css('core','bootstrap/css/tooltip.css','jquery');
|
e107::css('core','bootstrap/css/tooltip.css','jquery');
|
||||||
|
|
||||||
|
@ -1,5 +1,24 @@
|
|||||||
$(document).ready(function()
|
$(document).ready(function()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
$('.e-typeahead').each(function() {
|
||||||
|
|
||||||
|
var id = $(this).attr("id");
|
||||||
|
var name = '#' + id.replace('-usersearch', '');
|
||||||
|
var newval = $(this).attr("data-value");
|
||||||
|
$(this).typeahead({
|
||||||
|
source: $(this).attr("data-source"),
|
||||||
|
updater: function(text, type){
|
||||||
|
if(type == 'value')
|
||||||
|
{
|
||||||
|
$(name).val(text);
|
||||||
|
}
|
||||||
|
return text;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
// run tips on title attribute.
|
// run tips on title attribute.
|
||||||
$(".e-tip").each(function() {
|
$(".e-tip").each(function() {
|
||||||
|
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
// handle secured json string - the Prototype implementation
|
// handle secured json string - the Prototype implementation
|
||||||
|
|
||||||
|
/
|
||||||
$.ajaxSetup({
|
$.ajaxSetup({
|
||||||
dataFilter: function(data, type) {
|
dataFilter: function(data, type) {
|
||||||
if(type != 'json' || !data) return data;
|
if(type != 'json' || !data) return data;
|
||||||
@ -14,27 +16,6 @@ $(document).ready(function()
|
|||||||
// $(".e-spinner").spinner(); //FIXME breaks tooltips
|
// $(".e-spinner").spinner(); //FIXME breaks tooltips
|
||||||
|
|
||||||
|
|
||||||
$('.e-typeahead').each(function() {
|
|
||||||
|
|
||||||
var id = $(this).attr("id");
|
|
||||||
var name = '#' + id.replace('-usersearch', '');
|
|
||||||
var newval = $(this).attr("data-value");
|
|
||||||
$(this).typeahead({
|
|
||||||
source: $(this).attr("data-source"),
|
|
||||||
updater: function(text, type){
|
|
||||||
if(type == 'value')
|
|
||||||
{
|
|
||||||
$(name).val(text);
|
|
||||||
}
|
|
||||||
return text;
|
|
||||||
}
|
|
||||||
})
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//check all
|
//check all
|
||||||
|
@ -30,6 +30,8 @@ e107::coreLan('user'); // Generic user-related language defines
|
|||||||
|
|
||||||
define('SIGNUP_DEBUG', FALSE);
|
define('SIGNUP_DEBUG', FALSE);
|
||||||
|
|
||||||
|
e107::js('core', 'jquery.mailcheck.min.js','jquery',2);
|
||||||
|
|
||||||
include_once(e_HANDLER.'user_extended_class.php');
|
include_once(e_HANDLER.'user_extended_class.php');
|
||||||
$usere = new e107_user_extended;
|
$usere = new e107_user_extended;
|
||||||
// require_once(e_HANDLER.'calendar/calendar_class.ph_');
|
// require_once(e_HANDLER.'calendar/calendar_class.ph_');
|
||||||
|
Reference in New Issue
Block a user