|
|
@@ -11,8 +11,6 @@ function BxDolStudioDashboard(oOptions) {
|
|
|
this.sAnimationEffect = oOptions.sAnimationEffect == undefined ? 'fade' : oOptions.sAnimationEffect;
|
|
|
this.iAnimationSpeed = oOptions.iAnimationSpeed == undefined ? 'slow' : oOptions.iAnimationSpeed;
|
|
|
|
|
|
- this.sVersion = oOptions.sVersion == undefined ? '' : oOptions.sVersion;
|
|
|
-
|
|
|
var $this = this;
|
|
|
$(document).ready(function() {
|
|
|
$('.bx-dbd-block-content').bxTime();
|
|
|
@@ -23,20 +21,22 @@ function BxDolStudioDashboard(oOptions) {
|
|
|
|
|
|
BxDolStudioDashboard.prototype.checkForUpdateScript = function() {
|
|
|
var $this = this;
|
|
|
+ var oDate = new Date();
|
|
|
var sDivId = 'bx-dbd-update-script';
|
|
|
|
|
|
$.get(
|
|
|
- sUrlRoot + 'get_rss_feed.php?ID=boonex_version&member=0',
|
|
|
- {},
|
|
|
- function(sData) {
|
|
|
- if(!sData)
|
|
|
+ this.sActionsUrl,
|
|
|
+ {
|
|
|
+ dbd_action: 'check_update_script',
|
|
|
+ _t: oDate.getTime()
|
|
|
+ },
|
|
|
+ function(oData) {
|
|
|
+ if(!oData.version)
|
|
|
return;
|
|
|
|
|
|
- var sVersion = $(sData).find('dolphin').html();
|
|
|
- if(sVersion != undefined && sVersion != null && sVersion != '' && sVersion != $this.sVersion)
|
|
|
- $('#' + sDivId + ' span').html(_t('_adm_dbd_txt_dolphin_n_available', sVersion)).parents('#' + sDivId + ':hidden').show();
|
|
|
+ $('#' + sDivId + ' span').html(_t('_adm_dbd_txt_dolphin_n_available', oData.version)).parents('#' + sDivId + ':hidden').show();
|
|
|
},
|
|
|
- 'text'
|
|
|
+ 'json'
|
|
|
);
|
|
|
};
|
|
|
/** @} */
|