mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 06:38:00 +02:00
jQuery upgraded to the latest and greatest 2.1.1; fixed calls to obsolete live() in all core js libraries
This commit is contained in:
@@ -43,7 +43,8 @@ class e_jsmanager
|
||||
// "http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/themes/base/jquery-ui.css",
|
||||
// "http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"
|
||||
// "http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js",
|
||||
"http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"
|
||||
// "http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"
|
||||
"http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"
|
||||
// ,
|
||||
// "http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/jquery-ui.min.js",
|
||||
// "http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/themes/base/jquery-ui.css",
|
||||
|
@@ -318,9 +318,10 @@ $FEATUREBOX_CATEGORY_TEMPLATE['camera']['nav_item'] = ''; // <li><a href="#tab-{
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['camera']['nav_end'] = ''; // </ul>';
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['camera']['nav_separator'] = '';
|
||||
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['camera']['js'] = '{e_WEB_JS}camera/scripts/camera.min.js';
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['camera']['js_inline'] = "$('.camera_wrap').camera({FEATUREBOX_PARMS});";
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['camera']['js_type'] = 'jquery';
|
||||
// Depracated camera.js, need replacement
|
||||
//$FEATUREBOX_CATEGORY_TEMPLATE['camera']['js'] = '{e_WEB_JS}camera/scripts/camera.min.js';
|
||||
//$FEATUREBOX_CATEGORY_TEMPLATE['camera']['js_inline'] = "$('.camera_wrap').camera({FEATUREBOX_PARMS});";
|
||||
//$FEATUREBOX_CATEGORY_TEMPLATE['camera']['js_type'] = 'jquery';
|
||||
|
||||
|
||||
|
||||
|
1
e107_web/js/camera/scripts/camera.min.js
vendored
1
e107_web/js/camera/scripts/camera.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -148,7 +148,7 @@ $(document).ready(function()
|
||||
|
||||
|
||||
/* InfoPanel Comment approval and deletion */
|
||||
$("button[data-comment-action]").live("click", function(){
|
||||
$(document).on("click", "button[data-comment-action]", function(){
|
||||
|
||||
var url = $(this).attr("data-target");
|
||||
var action = $(this).attr('data-comment-action');
|
||||
@@ -360,7 +360,7 @@ $(document).ready(function()
|
||||
// $(".e-spinner").spinner(); //FIXME breaks tooltips etc.
|
||||
|
||||
|
||||
$(".e-alert").live("click", function(){
|
||||
$(document).on("click", ".e-alert", function(){
|
||||
|
||||
var message = $(this).html();
|
||||
alert(message);
|
||||
|
@@ -444,11 +444,11 @@ $(document).ready(function()
|
||||
*/
|
||||
|
||||
|
||||
$(".e-dialog-close").live("click", function(){
|
||||
$(document).on("click", ".e-dialog-close", function(){
|
||||
parent.$('.modal').modal('hide');
|
||||
|
||||
// parent.$.colorbox.close()
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
@@ -35,7 +35,7 @@ $(document).ready(function()
|
||||
|
||||
|
||||
|
||||
$(".e-comment-submit").live("click", function(){
|
||||
$(document).on("click", ".e-comment-submit", function(){
|
||||
|
||||
var url = $(this).attr("data-target");
|
||||
var sort = $(this).attr("data-sort");
|
||||
@@ -102,7 +102,7 @@ $(document).ready(function()
|
||||
|
||||
|
||||
|
||||
$(".e-comment-reply").live("click", function(){
|
||||
$(document).on("click", ".e-comment-reply", function(){
|
||||
|
||||
var url = $(this).attr("data-target");
|
||||
var table = $(this).attr("data-type");
|
||||
@@ -133,7 +133,7 @@ $(document).ready(function()
|
||||
});
|
||||
|
||||
return false;
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
@@ -142,27 +142,27 @@ $(document).ready(function()
|
||||
|
||||
|
||||
|
||||
$(".e-comment-edit").live("click", function(){
|
||||
$(document).on("click", ".e-comment-edit", function(){
|
||||
|
||||
var url = $(this).attr("data-target");
|
||||
var sp = $(this).attr('id').split("-");
|
||||
var id = "#comment-" + sp[3] + "-edit";
|
||||
var url = $(this).attr("data-target");
|
||||
var sp = $(this).attr('id').split("-");
|
||||
var id = "#comment-" + sp[3] + "-edit";
|
||||
|
||||
if($('.e-comment-edit-save').length != 0) //prevent creating save button twice.
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if($('.e-comment-edit-save').length != 0) //prevent creating save button twice.
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$(id).attr('contentEditable',true);
|
||||
$(id).after("<div class='e-comment-edit-save'><input data-target='"+url+"' id='e-comment-edit-save-"+sp[3]+"' class='button btn btn-success e-comment-edit-save' type='button' value='Save' /></div>");
|
||||
$('div.e-comment-edit-save').hide().fadeIn(800);
|
||||
$(id).addClass("e-comment-edit-active");
|
||||
$(id).focus();
|
||||
return false;
|
||||
});
|
||||
$(id).attr('contentEditable',true);
|
||||
$(id).after("<div class='e-comment-edit-save'><input data-target='"+url+"' id='e-comment-edit-save-"+sp[3]+"' class='button btn btn-success e-comment-edit-save' type='button' value='Save' /></div>");
|
||||
$('div.e-comment-edit-save').hide().fadeIn(800);
|
||||
$(id).addClass("e-comment-edit-active");
|
||||
$(id).focus();
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
$("input.e-comment-edit-save").live("click", function(){
|
||||
$("form").on("click", "input.e-comment-edit-save", function(){
|
||||
|
||||
var url = $(this).attr("data-target");
|
||||
var sp = $(this).attr('id').split("-");
|
||||
@@ -219,7 +219,7 @@ $(document).ready(function()
|
||||
|
||||
|
||||
|
||||
$(".e-comment-delete").live("click", function(){
|
||||
$(document).on("click", ".e-comment-delete", function(){
|
||||
|
||||
var url = $(this).attr("data-target");
|
||||
var sp = $(this).attr('id').split("-");
|
||||
@@ -246,7 +246,7 @@ $(document).ready(function()
|
||||
|
||||
});
|
||||
|
||||
$(".e-comment-approve").live("click", function(){
|
||||
$(document).on("click", ".e-comment-approve", function() {
|
||||
|
||||
var url = $(this).attr("data-target");
|
||||
var sp = $(this).attr('id').split("-");
|
||||
@@ -287,7 +287,7 @@ $(document).ready(function()
|
||||
|
||||
|
||||
|
||||
$(".e-rate-thumb").live("click", function(){
|
||||
$(document).on("click", ".e-rate-thumb", function(){
|
||||
|
||||
var src = $(this).attr("href");
|
||||
var thumb = $(this);
|
||||
|
@@ -113,7 +113,7 @@ $(document).ready(function()
|
||||
|
||||
|
||||
// $(".e-media-select").click(function () {
|
||||
$(".e-media-select").live("click", function(){
|
||||
$(document).on("click", ".e-media-select", function(){
|
||||
|
||||
|
||||
// console.log(this);
|
||||
@@ -242,7 +242,7 @@ $(document).ready(function()
|
||||
|
||||
|
||||
// Must be defined after e-media-select
|
||||
$(".e-dialog-save").live("click", function(){// FIXME TODO missing caret , text selection overwrite etc.
|
||||
$(document).on("click", ".e-dialog-save", function(){// FIXME TODO missing caret , text selection overwrite etc.
|
||||
|
||||
var newval = $('#bbcode_holder').val();
|
||||
var target = $(this).attr('data-target');
|
||||
|
Reference in New Issue
Block a user