v1.2.10
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
/*
|
||||
* Main scripts.
|
||||
*/
|
||||
|
||||
(function (win, doc, undef)
|
||||
{
|
||||
"use strict";
|
||||
win.sax = win.sax || {};
|
||||
|
||||
//--------------------------------------------------------------
|
||||
// Utilities.
|
||||
sax.isDef = function (obj)
|
||||
@@ -73,7 +71,6 @@
|
||||
evt.stopPropagation();
|
||||
}
|
||||
sax.debug = sax.debugMode ? win.console.log.bind(win.console) : function () { };
|
||||
|
||||
//--------------------------------------------------------------
|
||||
sax.compareCI = function (a, b)
|
||||
{
|
||||
@@ -88,7 +85,6 @@
|
||||
this.sort(function (a, b) { return sax.compareCI(a, b); });
|
||||
return this;
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------
|
||||
sax.setOddDataRowClass = function (rowSel, cName)
|
||||
{
|
||||
@@ -142,7 +138,6 @@
|
||||
if (sax.mdl.resultsPaging.fn.refreshPaging)
|
||||
sax.mdl.resultsPaging.fn.refreshPaging(response.paging, context, refreshFn);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------
|
||||
// Page navigation.
|
||||
sax.navigateTo = function (action)
|
||||
@@ -155,7 +150,6 @@
|
||||
sax.doPleaseWait();
|
||||
location = sax.url.base + action;
|
||||
}
|
||||
|
||||
// Account action.
|
||||
sax.onAccountAction = function (select)
|
||||
{
|
||||
@@ -166,7 +160,6 @@
|
||||
else if (action == "Organisations")
|
||||
sax.navigateTo("Organisations");
|
||||
}
|
||||
|
||||
// Security.
|
||||
sax.redirectHome = function ()
|
||||
{
|
||||
@@ -185,7 +178,6 @@
|
||||
{
|
||||
sax.doAjaxRequest({ url: sax.url.base + 'Security/Ajax/SignOut', formId: 'frmNavigate' }, 50);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------
|
||||
// Dialogs.
|
||||
sax.openDialog = function ($dlg, width, height)
|
||||
@@ -273,7 +265,6 @@
|
||||
clearTimeout(sax.toShowProgress);
|
||||
sax.$dlg.progress.dialog('close');
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------
|
||||
// Notifications.
|
||||
sax.showNotification = function (title, msg)
|
||||
@@ -310,7 +301,6 @@
|
||||
{
|
||||
if (sax.$pleaseWait) sax.$pleaseWait.stop(true, false).fadeOut(200);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------
|
||||
// Ajax.
|
||||
sax.doAjaxRequest = function (ajax, delay)
|
||||
@@ -376,7 +366,6 @@
|
||||
}
|
||||
ajax.request = $.ajax(cfgAjax);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------
|
||||
// Session.
|
||||
sax.configureKeepLoggedIn = function (single)
|
||||
@@ -434,7 +423,6 @@
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------
|
||||
// Elements.
|
||||
sax.objBtm = function (sel)
|
||||
@@ -477,7 +465,6 @@
|
||||
var $obj = $(sel);
|
||||
return parseInt($obj.css('border-top-width'), 10) + parseInt($obj.css('border-bottom-width'), 10);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------
|
||||
// Viewport - Desktop or Mobile.
|
||||
sax.isMob = function () { return $('body.mob').length > 0; };
|
||||
@@ -503,7 +490,6 @@
|
||||
$ftr.css('visibility', 'visible');
|
||||
sax.onWinResizePage();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------
|
||||
$(function ()
|
||||
{
|
||||
@@ -526,9 +512,8 @@
|
||||
//defaultDate: 0,
|
||||
});
|
||||
});
|
||||
|
||||
//--------------------------------------------------------------
|
||||
}(window, window.document));
|
||||
|
||||
//--------------------------------------------------------------
|
||||
(function ()
|
||||
{
|
||||
@@ -538,5 +523,5 @@
|
||||
}
|
||||
if (!Array.prototype.sortBy) Array.prototype.sortCI = sax.arraySortCI;
|
||||
})();
|
||||
|
||||
//--------------------------------------------------------------
|
||||
/* The End */
|
||||
Reference in New Issue
Block a user