jQuery('#component').reload()

This commit is contained in:
mdipierro
2013-06-21 06:44:37 -05:00
parent 9682f4a6e3
commit 1d38b87719
4 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.5.1-stable+timestamp.2013.06.21.01.53.24 Version 2.5.1-stable+timestamp.2013.06.21.06.43.49
+2 -2
View File
@@ -128,10 +128,10 @@ function web2py_component(action, target, timeout, times){
var jelement = jQuery("#" + target); var jelement = jQuery("#" + target);
var element = jelement.get(0); var element = jelement.get(0);
var statement = "jQuery('#" + target + "').get(0).reload();"; var statement = "jQuery('#" + target + "').get(0).reload();";
element.reload = function (){ jelement.reload = function (){
// Continue if times is Infinity or // Continue if times is Infinity or
// the times limit is not reached // the times limit is not reached
if (this.reload_check()){ if (element.reload_check()){
web2py_ajax_page('get', action, null, target);} }; // reload web2py_ajax_page('get', action, null, target);} }; // reload
// Method to check timing limit // Method to check timing limit
element.reload_check = function (){ element.reload_check = function (){
+2 -2
View File
@@ -128,10 +128,10 @@ function web2py_component(action, target, timeout, times){
var jelement = jQuery("#" + target); var jelement = jQuery("#" + target);
var element = jelement.get(0); var element = jelement.get(0);
var statement = "jQuery('#" + target + "').get(0).reload();"; var statement = "jQuery('#" + target + "').get(0).reload();";
element.reload = function (){ jelement.reload = function (){
// Continue if times is Infinity or // Continue if times is Infinity or
// the times limit is not reached // the times limit is not reached
if (this.reload_check()){ if (element.reload_check()){
web2py_ajax_page('get', action, null, target);} }; // reload web2py_ajax_page('get', action, null, target);} }; // reload
// Method to check timing limit // Method to check timing limit
element.reload_check = function (){ element.reload_check = function (){
+2 -2
View File
@@ -128,10 +128,10 @@ function web2py_component(action, target, timeout, times){
var jelement = jQuery("#" + target); var jelement = jQuery("#" + target);
var element = jelement.get(0); var element = jelement.get(0);
var statement = "jQuery('#" + target + "').get(0).reload();"; var statement = "jQuery('#" + target + "').get(0).reload();";
element.reload = function (){ jelement.reload = function (){
// Continue if times is Infinity or // Continue if times is Infinity or
// the times limit is not reached // the times limit is not reached
if (this.reload_check()){ if (element.reload_check()){
web2py_ajax_page('get', action, null, target);} }; // reload web2py_ajax_page('get', action, null, target);} }; // reload
// Method to check timing limit // Method to check timing limit
element.reload_check = function (){ element.reload_check = function (){