jQuery('#component').reload()
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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 (){
|
||||||
|
|||||||
@@ -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 (){
|
||||||
|
|||||||
@@ -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 (){
|
||||||
|
|||||||
Reference in New Issue
Block a user