1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +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:
SecretR
2014-11-04 16:12:18 +02:00
parent 0650acbf6c
commit adc1f826b8
7 changed files with 79 additions and 76 deletions

View File

@@ -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",

View File

@@ -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';

File diff suppressed because one or more lines are too long

View File

@@ -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);

View File

@@ -444,7 +444,7 @@ $(document).ready(function()
*/
$(".e-dialog-close").live("click", function(){
$(document).on("click", ".e-dialog-close", function(){
parent.$('.modal').modal('hide');
// parent.$.colorbox.close()

View File

@@ -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");
@@ -142,7 +142,7 @@ $(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("-");
@@ -162,7 +162,7 @@ $(document).ready(function()
});
$("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);

View File

@@ -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');