rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
renderer : function(value, metadata, record) { var out= ''; if(record.data.id>=0) { out= '<div class="ung-button button-column" style="text-align:center;" >' + this.i18n._("Distribute Client") + '</div>'; } return out; }.createDelegate( this )
renderer : function (value,metadata,record) { if ( value == null ) { return this.i18n._("None"); } var rack = this.rackDatabase[value]; if ( rack == null ) { return this.i18n._("None"); } return rack.name; }.createDelegate(this),
renderer : function(value, metadata, record) { var out= ''; if(record.data.id>=0) { out= '<div class="ung-button button-column" style="text-align:center;" >' + this.i18n._("Distribute Client") + '</div>'; } ...
var result = "" var store = this.getGroupsStore(); if (store) { var index = store.findBy(function(record, id) { if (record.data.id == value) { return true; } else { return false; } }); if (index >= 0) { result = store.getAt(index).get("name"); record.data.group = store.getAt(index).data; } else { record.data.group = nu...
var out= ''; if(record.data.id>=0) { out= '<div class="ung-button button-column" style="text-align:center;" >' + this.i18n._("Distribute Client") + '</div>';
renderer : function(value, metadata, record) { var result = "" var store = this.getGroupsStore(); if (store) { var index = store.findBy(function(record, id) { if (record.data.id == value) { ...
return result; }.createDelegate(this),
return out; }.createDelegate( this )
renderer : function(value, metadata, record) { var result = "" var store = this.getGroupsStore(); if (store) { var index = store.findBy(function(record, id) { if (record.data.id == value) { ...
var unit = record.data.unit,s;
var unit = record.data.unit; var s;
renderer: function (value, medata, record) { var unit = record.data.unit,s; if (unit && unit.indexOf('bytes') == 0) { if (value < 1000000) { value = Math.round(value/1000); s = unit.split("...
this.setBackReferenceOnFieldOptionsRecursively(this.fields);
renderForm: function() { this.setBackReferenceOnFieldOptionsRecursively(this.fields); var groupParams = {parentEl: this.bodyEl, fields: this.fields, legend: this.legend, collapsible: this.collapsible}; this.form = new inputEx.Group(groupParams); // Redraw all wires when the form is collapsed if(t...
this.form.setContainer(this);
renderForm: function() { this.setBackReferenceOnFieldOptionsRecursively(this.fields); var groupParams = {parentEl: this.bodyEl, fields: this.fields, legend: this.legend, collapsible: this.collapsible}; this.form = new inputEx.Group(groupParams); // Redraw all wires when the form is collapsed if(t...
this.form = new YAHOO.inputEx.Group(groupParams);
this.form = new inputEx.Group(groupParams); if(this.form.legend) { YAHOO.util.Event.addListener(this.form.legend, 'click', this.redrawAllWires, this, true); }
renderForm: function() { this.setBackReferenceOnFieldOptionsRecursively(this.options.fields); var groupParams = {parentEl: this.bodyEl, fields: this.options.fields, legend: this.options.legend, collapsible: this.options.collapsible}; this.form = new YAHOO.inputEx.Group(groupParams); },
YAHOO.util.Event.addListener(this.form.legend, 'click', this.redrawAllWires, this, true);
YAHOO.util.Event.addListener(this.form.legend, 'click', function() { var that = this; for(var i = 0 ; i < this.form.inputs.length ; i++) { var field = this.form.inputs[i]; if(field.terminal) { field.terminal.getXY = function() { if( YAHOO.util.Dom.hasClass(that.form.fieldset, "inputEx-Collapsed") ) { return that.getX...
renderForm: function() { this.setBackReferenceOnFieldOptionsRecursively(this.options.fields); var groupParams = {parentEl: this.bodyEl, fields: this.options.fields, legend: this.options.legend, collapsible: this.options.collapsible}; this.form = new inputEx.Group(groupParams); // Redraw all wires ...
html[html.length] = '<th class="calrowfoot">' + weekNum + '</th>'; return html; },
html[html.length] = '<th class="' + this.Style.CSS_ROW_FOOTER + '">' + weekNum + '</th>'; return html; },
renderRowFooter : function(weekNum, html) { html[html.length] = '<th class="calrowfoot">' + weekNum + '</th>'; return html; },
html[html.length] = '<th class="calrowhead">' + weekNum + '</th>'; return html; },
html[html.length] = '<th class="' + this.Style.CSS_ROW_HEADER + '">' + weekNum + '</th>'; return html; },
renderRowHeader : function(weekNum, html) { html[html.length] = '<th class="calrowhead">' + weekNum + '</th>'; return html; },
if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={};}YAHOO.namespace=function(){var A=arguments,E=null,C,B,D;for(C=0;C<A.length;C=C+1){D=(""+A[C]).split(".");E=YAHOO;for(B=(D[0]=="YAHOO")?1:0;B<D.length;B=B+1){E[D[B]]=E[D[B]]||{};E=E[D[B]];}}return E;};YAHOO.log=function(D,A,C){var B=YAHOO.widget.Logger;if(B&&B.log){ret...
y.removeAttribute(G);}}}else{}return Y;},replaceClass:function(x,Y,G){return E.Dom.batch(x,E.Dom._replaceClass,{from:Y,to:G});},_replaceClass:function(y,x){var Y,AB,AA,G=false,z;if(y&&x){AB=x.from;AA=x.to;if(!AA){G=false;}else{if(!AB){G=E.Dom._addClass(y,x.to);}else{if(AB!==AA){z=E.Dom._getAttribute(y,F)||J;Y=(B+z.repl...
if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={};}YAHOO.namespace=function(){var A=arguments,E=null,C,B,D;for(C=0;C<A.length;C=C+1){D=(""+A[C]).split(".");E=YAHOO;for(B=(D[0]=="YAHOO")?1:0;B<D.length;B=B+1){E[D[B]]=E[D[B]]||{};E=E[D[B]];}}return E;};YAHOO.log=function(D,A,C){var B=YAHOO.widget.Logger;if(B&&B.log){ret...
(function(){YAHOO.env._id_counter=YAHOO.env._id_counter||0;var E=YAHOO.util,L=YAHOO.lang,m=YAHOO.env.ua,A=YAHOO.lang.trim,d={},h={},N=/^t(?:able|d|h)$/i,X=/color$/i,K=window.document,W=K.documentElement,e="ownerDocument",n="defaultView",v="documentElement",t="compatMode",b="offsetLeft",P="offsetTop",u="offsetParent",Z=...
y.removeAttribute(G);}}}else{}return Y;},replaceClass:function(x,Y,G){return E.Dom.batch(x,E.Dom._replaceClass,{from:Y,to:G});},_replaceClass:function(y,x){var Y,AB,AA,G=false,z;if(y&&x){AB=x.from;AA=x.to;if(!AA){G=false;}else{if(!AB){G=E.Dom._addClass(y,x.to);}else{if(AB!==AA){z=E.Dom._getAttribute(y,F)||J;Y=(B+z.repl...
(function(){YAHOO.env._id_counter=YAHOO.env._id_counter||0;var E=YAHOO.util,L=YAHOO.lang,m=YAHOO.env.ua,A=YAHOO.lang.trim,d={},h={},N=/^t(?:able|d|h)$/i,X=/color$/i,K=window.document,W=K.documentElement,e="ownerDocument",n="defaultView",v="documentElement",t="compatMode",b="offsetLeft",P="offsetTop",u="offsetParent",Z=...
}
};
function repoMap(branch){ branch = branch.toLowerCase(); var map = { 'firefox': 'mozilla-central', 'tracemonkey': 'tracemonkey' } if (branch in map) { return HGWEB + '/' + map[branch]; } else { return HGWEB + '/projects/' + branch; }}
request_node_data : function(node, onCompleteCallback) {
YAHOO.ajax_marking_block.tree_base.prototype.request_node_data = function(clicked_node, onCompleteCallback) {
request_node_data : function(node, onCompleteCallback) { /// store details of the node that has been clicked in globals for reference by later callback function YAHOO.ajax_marking_block.nodeHolder = node; YAHOO.ajax_marking_block.compHolder = onCompleteCallback; /// request data using AJ...
YAHOO.ajax_marking_block.nodeHolder = node; YAHOO.ajax_marking_block.compHolder = onCompleteCallback;
request_node_data : function(node, onCompleteCallback) { /// store details of the node that has been clicked in globals for reference by later callback function YAHOO.ajax_marking_block.nodeHolder = node; YAHOO.ajax_marking_block.compHolder = onCompleteCallback; /// request data using AJ...
var sUrl = amVariables.wwwroot+'/blocks/ajax_marking/ajax.php'; var postData = 'id='+node.data.id+'&type='+node.data.type+'&userid='+amVariables.userid;
YAHOO.ajax_marking_block.node_holder = clicked_node;
request_node_data : function(node, onCompleteCallback) { /// store details of the node that has been clicked in globals for reference by later callback function YAHOO.ajax_marking_block.nodeHolder = node; YAHOO.ajax_marking_block.compHolder = onCompleteCallback; /// request data using AJ...
if (typeof node.data.group != 'undefined') { postData += '&group='+node.data.group; } if (node.data.type == 'quiz_question') { postData += '&quizid='+node.parent.data.id; }
YAHOO.ajax_marking_block.on_complete_function_holder = onCompleteCallback; var request_url = amVariables.wwwroot+'/blocks/ajax_marking/ajax.php';
request_node_data : function(node, onCompleteCallback) { /// store details of the node that has been clicked in globals for reference by later callback function YAHOO.ajax_marking_block.nodeHolder = node; YAHOO.ajax_marking_block.compHolder = onCompleteCallback; /// request data using AJ...
var request = YAHOO.util.Connect.asyncRequest('POST', sUrl, ajax_marking_block_callback, postData); },
var postData = 'id='+clicked_node.data.id+'&type='+clicked_node.data.type+'&userid='+amVariables.userid; if (typeof clicked_node.data.group != 'undefined') { postData += '&group='+clicked_node.data.group; } var type_array = clicked_node.data.type.split('_'); var type_object = eval('YAHOO.ajax_marking_block.'+type_...
request_node_data : function(node, onCompleteCallback) { /// store details of the node that has been clicked in globals for reference by later callback function YAHOO.ajax_marking_block.nodeHolder = node; YAHOO.ajax_marking_block.compHolder = onCompleteCallback; /// request data using AJ...
var obj = (window.JSON) ? JSON.parse(resp) : eval('(' + resp + ')');
var obj = JSON.parse(resp);
requestTestRuns : function(limitDate, testId, branchId, machineId, callback) { var self = this; var limiters = "id=" + testId + "&branchid=" + branchId + "&machineid=" + machineId; if(limitDate != null) { tDate = new Date().getTime(); tDate -= limitDate * 86400 * 1...
},reset:function(a){return"reset"==a.type; },button:function(a){return"button"==a.type||jQuery.nodeName(a,"button");
reset: function() { this._updateMappedValues(); if (this._canvas) this._grid = this._calculateGrid(); },
},reset:function(a){return"reset"==a.type;},button:function(a){return"button"==a.type||jQuery.nodeName(a,"button");
sendMail(user.email, gettext("Confirmation for password reset at {0}", this._parent.title), user.renderSkinAsString("$User#reset", {
sendMail(user.email, gettext("[{0}] Password reset confirmation", root.title), user.renderSkinAsString("$User#notify_reset", {
Members.prototype.reset_action = function() { if (req.postParams.reset) { try { if (!req.postParams.name || !req.postParams.email) { throw Error(gettext("Please enter a user name and e-mail address.")); } var user = User.getByName(req.postParams.name); if (!user || user...
res.message = gettext("The layout was successfully reset.");
res.message = gettext("{0} was successfully reset.", gettext("Layout"));
Layout.prototype.reset_action = function() { if (req.data.proceed) { try { Layout.remove.call(this); this.reset(); res.message = gettext("The layout was successfully reset."); res.redirect(this.href()); } catch(ex) { res.message = ex; app.log(ex); } } ...
var str = this.toString();
Skin.prototype.reset_action = function() { if (req.postParams.proceed) { try { var str = this.toString(); Skin.remove.call(this); res.message = gettext("{0} was successfully reset.", str); res.redirect(res.handlers.layout.skins.href("modified")); } catch(ex) { res.mes...
res.message = gettext("{0} was successfully reset.", str);
res.message = gettext("{0} was successfully reset.", gettext("Skin"));
Skin.prototype.reset_action = function() { if (req.postParams.proceed) { try { var str = this.toString(); Skin.remove.call(this); res.message = gettext("{0} was successfully reset.", str); res.redirect(res.handlers.layout.skins.href("modified")); } catch(ex) { res.mes...
if (newHeight > document.viewport.getHeight()) { var el = $(this.MBwindow);
var el = $(this.MBwindow); var windowBottomMargin = 10; var windowOffset = (parseInt(el.getStyle('margin-top'), 0) + parseInt(el.getStyle('margin-bottom'), 0) + parseInt(el.getStyle('border-top-width'), 0) + parseInt(el.getStyle('border-bottom-width'), 0)) + windowBottomMargin; if ((newHeight + windowOffset) > documen...
resize: function(byWidth, byHeight, options) { // Change size of MB without loading content var oWidth = $(this.MBoverlay).getWidth(); var wHeight = $(this.MBwindow).getHeight(); var wWidth = $(this.MBwindow).getWidth(); var hHeight = $(this.MBheader).getHeight(); var cHeight = $(this.MBcontent).getHeight(); var...
newHeight = document.viewport.getHeight() - (parseInt(el.getStyle('margin-top'), 0) + parseInt(el.getStyle('margin-bottom'), 0) + parseInt(el.getStyle('border-top-width'), 0) + parseInt(el.getStyle('border-bottom-width'), 0)) - 50;
newHeight = document.viewport.getHeight() - windowOffset - windowBottomMargin;
resize: function(byWidth, byHeight, options) { // Change size of MB without loading content var oWidth = $(this.MBoverlay).getWidth(); var wHeight = $(this.MBwindow).getHeight(); var wWidth = $(this.MBwindow).getWidth(); var hHeight = $(this.MBheader).getHeight(); var cHeight = $(this.MBcontent).getHeight(); var...
resize: function(byWidth, byHeight, options) { $(this.MBcontent).setStyle({height:''});
resize: function(byWidth, byHeight, options) {
resize: function(byWidth, byHeight, options) { // Change size of MB without loading content // release any MB_content height set prior to establish scrollbars in content area $(this.MBcontent).setStyle({height:''}); var oWidth = $(this.MBoverlay).getWidth(); var wHeight = $(this.MBwindow).getHeight(); var wWidt...
else if ($(this.MBcontent).getStyle('height')) { $(this.MBcontent).setStyle({height:cHeight}); }
resize: function(byWidth, byHeight, options) { // Change size of MB without loading content // release any MB_content height set prior to establish scrollbars in content area $(this.MBcontent).setStyle({height:''}); var oWidth = $(this.MBoverlay).getWidth(); var wHeight = $(this.MBwindow).getHeight(); var wWidt...
if (typeof options !== "undefined" && options.resizeCSSID && $(options.resizeCSSID)) { var byWidth = $(options.resizeCSSID).getWidth() - $(this.MBwindow).getWidth() + (parseInt($(this.MBcontent).getStyle('padding-left'), 0) + parseInt($(this.MBcontent).getStyle('padding-right'), 0));
if (options.resizeCSSID && $(options.resizeCSSID)) { var byWidth = $(options.resizeCSSID).getWidth() - $(this.MBwindow).getWidth() + (parseInt($(this.MBcontent).getStyle('padding-left'), 0) + parseInt($(this.MBcontent).getStyle('padding-right'), 0)) + 10;
resizeToContent: function(options){ // Resizes the modalbox window to the actual content height. // This might be useful to resize modalbox after some content modifications which were changed ccontent height. var byHeight = this.options.height - $(this.MBwindow).getHeight(); if (typeof options !== "undefined" && o...
this.sendHeader(response_data.status_code || 200, headers);
this.writeHeader(response_data.status_code || 200, headers);
respond: function (response_data) { var headers = { 'Content-Type': 'text/html', 'Content-Length': (response_data.content && response_data.content.length) || response_data.length || 0 }, name; if (this.cookies) { headers['Set-Cookie'] = this.cookies.join(', '); } for (name in response_data.headers)...
this.close();
this.end();
http.ServerResponse.prototype.respond = function respond (response_data) { var headers = { 'Content-Type': 'text/html', 'Content-Length': (response_data.content && response_data.content.length) || response_data.length || 0 }, name; if (this.cookies) { headers['Set-Cookie'] = this.cookies.join(', '); } for (...
currentStateHash = urlParts[1];
function restoreState() { var urlParts = window.location.href.split('#'); var newState = {}; if(urlParts.length > 1) { var states = urlParts[1].split('&'); for(var i = 0; i < states.length; ++i) { var keyValue = states[i].split('='); if(keyValue.length == 2) { ...
delete element.hiddenTabIndex;
try { delete element.hiddenTabIndex; } catch (e) { element.hiddenTabIndex = undefined; }
restoreTabs: function() { if (typeof (this.disabledTabsRevertList) != "undefined" && this.disabledTabsRevertList != null) { for (var i = 0; i < this.disabledTabsRevertList.length; ++i) { var element = this.disabledTabsRevertList[i]; if (typeof(element.hiddenTabIndex) != 'undefined') { element.tabIndex = e...
debug(selector);
function restrictDisplay() { $('td').hide(); var selector = ''; var colhead = ''; var rowhead = ''; for (var i=0; i < platform.length; i++) { colhead += 'thead td.' + platform[i] + ','; for (var j=0; j < test.length; j++) { selector += '.' + pl...
var method = this.panel.find( "name", "downloadClientConfiguration" )[0].getGroupValue(); switch ( method ) { case "upload": return this.uploadClient( handler ); case "server": return this.fetchClient( handler ); default: Ext.MessageBox.alert(this.i18n._( "Select a value" ), this.i18n._( "Please choose 'Download from ...
return this.uploadClient( handler );
retrieveClient : function( handler ) { var method = this.panel.find( "name", "downloadClientConfiguration" )[0].getGroupValue(); switch ( method ) { case "upload": return this.uploadClient( handler ); case "server": return this.fetchClient( handler ); ...
return rgbValues.split(", ");
return rgbValues.split(/,\s*/);
curvyObject.rgb2Array = function(rgbColour) { // Remove rgb() var rgbValues = rgbColour.substring(4, rgbColour.indexOf(")")); // Split RGB into array return rgbValues.split(", ");}
print("FOR 1: " + lat + "_____" + lon);
function riseset(date) { var settings = new com.telldus.settings(); var lat = 56.1488; //55.6893; //default var lon = 13.3538; //13.2123; //default lat = settings.value("latitude", lat); lon = settings.value("longitude", lon); date = new Date(2010, 11, 20); lat = 55 + 68.93/60.0; lon = 13 + 21.23/60.0; pr...
print("DATET" + date);
function riseset(date) { var settings = new com.telldus.settings(); var lat = 56.1488; //55.6893; //default var lon = 13.3538; //13.2123; //default lat = settings.value("latitude", lat); lon = settings.value("longitude", lon); date = new Date(2010, 11, 20); print("DATET" + date); lat = 55 + 68.93/60.0; lon ...
print("SUNSETVALUE: " + sunsetvalue); print("FOR: " + lat + "_____" + lon*360);
function riseset(date) { var settings = new com.telldus.settings(); var lat = 56.1488; //55.6893; //default var lon = 13.3538; //13.2123; //default lat = settings.value("latitude", lat); lon = settings.value("longitude", lon); date = new Date(2010, 11, 20); print("DATET" + date); lat = 55 + 68.93/60.0; lon ...
function riseset(date, lat, lon )
function riseset(date)
function riseset(date, lat, lon ) { var k; var zone = Math.round(date.getTimezoneOffset()/60); var jd = julian_day(date) - 2451545; // Julian day relative to Jan 1.5, 2000 if ((sgn(zone) == sgn(lon))&&(zone != 0)) print("WARNING: time zone and longitude are incompatible!"); lon = lon/360; var tz ...
print("SUNSETVALUE: " + sunsetvalue); print("FOR: " + lat + "_____" + lon*360);
function riseset(date, lat, lon ) { var k; var zone = Math.round(date.getTimezoneOffset()/60); var jd = julian_day(date) - 2451545; // Julian day relative to Jan 1.5, 2000 if ((sgn(zone) == sgn(lon))&&(zone != 0)) print("WARNING: time zone and longitude are incompatible!"); lon = lon/360; var tz ...
date = new Date(2010, 11, 20);
function riseset(date) { var settings = new com.telldus.settings(); var lat = 56.1488; //55.6893; //default var lon = 13.3538; //13.2123; //default lat = settings.value("latitude", lat); lon = settings.value("longitude", lon); date = new Date(2010, 11, 20); lat = 55 + 68.93/60.0; lon = 13 + 21.23/60.0; va...
res.write(gettext(this.role.capitalize()));
this.role && res.write(gettext(this.role.capitalize()));
Membership.prototype.role_macro = function() { res.write(gettext(this.role.capitalize())); return;}
var activeImageSrc = jq('#' + $active.attr('container') + '-item' + $active.attr('rel') + ' img').attr('src');
var $activeImage = jq('#' + $active.attr('container') + '-item' + $active.attr('rel') + ' img'); var activeImageSrc = $activeImage.attr('src'); var activeTitle = $activeImage.attr('title');
rotate = function() { /* handles updating the pager and creating the sliding animation */ // determine the number of times to slide var triggerId = $active.attr('rel') - 1; // determine the distance to slide var imageReelPosition = triggerId * imageWidth; // remov...
jq('.highlight-image img').attr({src: activeImageSrc});
jq('.highlight-image img').attr({src: activeImageSrc, title: activeTitle, alt: activeTitle});
rotate = function() { /* handles updating the pager and creating the sliding animation */ // determine the number of times to slide var triggerId = $active.attr('rel') - 1; // determine the distance to slide var imageReelPosition = triggerId * imageWidth; // remov...
jQuery.bt={version:"0.9.5-rc1"};(function($){jQuery.fn.bt=function(content,options){if(typeof content!="string"){var contentSelect=true;options=content;content=false;}else{var contentSelect=false;}if(jQuery.fn.hoverIntent&&jQuery.bt.defaults.trigger=="hover"){jQuery.bt.defaults.trigger="hoverIntent";}return this.each(f...
else{this.lineTo(round5(points[i].x,strokeWidth),round5(points[i].y,strokeWidth));}}};function round5(num,strokeWidth){var ret;strokeWidth=numb(strokeWidth);if(strokeWidth%2){ret=num;} else{ret=Math.round(num-.5)+.5;} return ret;};function numb(num){return parseInt(num)||0;};function arrayRemove(arr,elem){var x,newArr=...
jQuery.bt={version:"0.9.5-rc1"};(function($){jQuery.fn.bt=function(content,options){if(typeof content!="string"){var contentSelect=true;options=content;content=false;}else{var contentSelect=false;}if(jQuery.fn.hoverIntent&&jQuery.bt.defaults.trigger=="hover"){jQuery.bt.defaults.trigger="hoverIntent";}return this.each(f...
$.ajax({ url:url, type:type, dataType:'json', timeout:timeout, data:data, success:function(resp)
var xhr = Titanium.Network.createHTTPClient(); xhr.onreadystatechange = function() { if (this.readyState == 4)
function runIt() { data.sid = Projects.userSID; data.token = Projects.userToken; data.uid = String(Projects.userUID); data.uidt = Projects.userUIDT; $.ajax({ url:url, type:type, dataType:'json', timeout:timeout, data:data, success:function(resp) { // toggle cloud status $('#tiui_cloud_on').css...
$('#tiui_cloud_on').css('display','inline'); $('#tiui_cloud_off').css('display','none'); if (typeof(sCallback) == 'function')
var resp = swiss.evalJSON(this.responseText); if (this.status == 200)
function runIt() { data.sid = Projects.userSID; data.token = Projects.userToken; data.uid = String(Projects.userUID); data.uidt = Projects.userUIDT; $.ajax({ url:url, type:type, dataType:'json', timeout:timeout, data:data, success:function(resp) { // toggle cloud status $('#tiui_cloud_on').css...
sCallback(resp);
$('#tiui_cloud_on').css('display','inline'); $('#tiui_cloud_off').css('display','none'); if (typeof(sCallback) == 'function') { sCallback(resp); } if (name == 'sso-login') { xhrAuth(data); }
function runIt() { data.sid = Projects.userSID; data.token = Projects.userToken; data.uid = String(Projects.userUID); data.uidt = Projects.userUIDT; $.ajax({ url:url, type:type, dataType:'json', timeout:timeout, data:data, success:function(resp) { // toggle cloud status $('#tiui_cloud_on').css...
if (name == 'sso-login')
else
function runIt() { data.sid = Projects.userSID; data.token = Projects.userToken; data.uid = String(Projects.userUID); data.uidt = Projects.userUIDT; $.ajax({ url:url, type:type, dataType:'json', timeout:timeout, data:data, success:function(resp) { // toggle cloud status $('#tiui_cloud_on').css...
xhrAuth(data); } }, error:function(resp,ex) { $('#tiui_cloud_on').css('display','none'); $('#tiui_cloud_off').css('display','inline'); if (typeof(fCallback) == 'function') { fCallback({resp:resp,offline:true});
$('#tiui_cloud_on').css('display','none'); $('#tiui_cloud_off').css('display','inline'); if (typeof(fCallback) == 'function') { fCallback({resp:resp,offline:true}); }
function runIt() { data.sid = Projects.userSID; data.token = Projects.userToken; data.uid = String(Projects.userUID); data.uidt = Projects.userUIDT; $.ajax({ url:url, type:type, dataType:'json', timeout:timeout, data:data, success:function(resp) { // toggle cloud status $('#tiui_cloud_on').css...
});
}; xhr.open(type,url); var qs = ''; for (var p in data) { var v = typeof(data[p])=='undefined' ? '' : String(data[p]); qs+=p+'='+encodeURIComponent(v)+'&'; } xhr.send(qs);
function runIt() { data.sid = Projects.userSID; data.token = Projects.userToken; data.uid = String(Projects.userUID); data.uidt = Projects.userUIDT; $.ajax({ url:url, type:type, dataType:'json', timeout:timeout, data:data, success:function(resp) { // toggle cloud status $('#tiui_cloud_on').css...
sleep(1); print("Job run"); calculateJobs();
print("Job run " + runJob.id); updateJobInList(runJob.id); runNextJob();
function runJob(runJob) { var success = 0; if(runJob){ switch(runJob.method){ case com.telldus.core.TELLSTICK_TURNON: success = com.telldus.core.turnOn(runJob.id); break; case com.telldus.core.TELLSTICK_TURNOFF: success = com.telldus.core.turnOff(runJob.id); break; case com.telldus.core.TE...
print("New run job: " + id);
function RunJob(id, nextRunTime, type, device, method, value){ this.id = id; this.nextRunTime = nextRunTime; this.type = type; this.device = device; this.method = method; this.value = value; }
switch(runJob.method){
var method = parseInt(runJob.method); switch(method){
function runJob(runJob) { var success = 0; print("Job id: " + runJob.id); if(runJob){ switch(runJob.method){ case com.telldus.core.TELLSTICK_TURNON: success = com.telldus.core.turnOn(runJob.id); break; case com.telldus.core.TELLSTICK_TURNOFF: success = com.telldus.core.turnOff(runJob.id); br...
print("New run job: " + id);
function RunJob(id, nextRunTime, type, device, method, value){ print("New run job: " + id); this.id = id; this.nextRunTime = nextRunTime; this.type = type; this.device = device; this.method = method; this.value = value; }
var runJobFunc = function(){ runJob(joblist[0]); };
var runJobFunc = function(){ runJob(job); };
var runJobFunc = function(){ runJob(joblist[0]); };
print("Will run " + storedJobs[job.id].v.name + " when the time is right");
function runNextJob(){ if(joblist.length <= 0){ print("No jobs"); return; //no jobs, abort } var job = joblist.shift(); //get first job in list (and remove it from the list) var nextRunTime = job.nextRunTime; if(nextRunTime == 0){ //something is wrong print("Something is wrong"); updateJobInList(job.i...
var max, i, j, section, max1;
var max, i, j, section;
sameHeight: function (sections) { var max, i, j, section, max1; max = 0; for (i = 0; i < sections.length; i++) { //max = 0; section = $("div.window", sections[i]); for (j = 0; j < section.length; j++) { if ($(section[j]).height() > max) { max = $(section[j]...
function sameHeight (sections)
function sameHeight ()
function sameHeight (sections){ var max, i, section; max = 0; for (i = 0; i < sections.length; i++) { //max = 0; section = sections[i]; if ($(section).outerHeight() > max) { max = $(section).outerHeight(); } } for (i = 0; i < sections.length; i++) { $(sections[i]).height(max); } return max;}
var max, i, section; max = 0;
var left1 = $("#left-col div.window"), left2 = $("#left-col div.text p"), right = $("#right-col div.window"), a;
function sameHeight (sections){ var max, i, section; max = 0; for (i = 0; i < sections.length; i++) { //max = 0; section = sections[i]; if ($(section).outerHeight() > max) { max = $(section).outerHeight(); } } for (i = 0; i < sections.length; i++) { $(sections[i]).height(max); } return max;}
for (i = 0; i < sections.length; i++)
a = left1.height() + left2.height() + 50; if(a > right.height())
function sameHeight (sections){ var max, i, section; max = 0; for (i = 0; i < sections.length; i++) { //max = 0; section = sections[i]; if ($(section).outerHeight() > max) { max = $(section).outerHeight(); } } for (i = 0; i < sections.length; i++) { $(sections[i]).height(max); } return max;}
section = sections[i]; if ($(section).outerHeight() > max) { max = $(section).outerHeight(); }
right.height(a);
function sameHeight (sections){ var max, i, section; max = 0; for (i = 0; i < sections.length; i++) { //max = 0; section = sections[i]; if ($(section).outerHeight() > max) { max = $(section).outerHeight(); } } for (i = 0; i < sections.length; i++) { $(sections[i]).height(max); } return max;}
for (i = 0; i < sections.length; i++)
else
function sameHeight (sections){ var max, i, section; max = 0; for (i = 0; i < sections.length; i++) { //max = 0; section = sections[i]; if ($(section).outerHeight() > max) { max = $(section).outerHeight(); } } for (i = 0; i < sections.length; i++) { $(sections[i]).height(max); } return max;}
$(sections[i]).height(max);
left2.height(left2.height() + right.height() - a);
function sameHeight (sections){ var max, i, section; max = 0; for (i = 0; i < sections.length; i++) { //max = 0; section = sections[i]; if ($(section).outerHeight() > max) { max = $(section).outerHeight(); } } for (i = 0; i < sections.length; i++) { $(sections[i]).height(max); } return max;}
return max;
function sameHeight (sections){ var max, i, section; max = 0; for (i = 0; i < sections.length; i++) { //max = 0; section = sections[i]; if ($(section).outerHeight() > max) { max = $(section).outerHeight(); } } for (i = 0; i < sections.length; i++) { $(sections[i]).height(max); } return max;}
saveAction : function(keepWindowOpen)
saveAction : function()
saveAction : function(keepWindowOpen) { if (this.validate()) { Ext.MessageBox.wait(i18n._("Saving..."), i18n._("Please wait")); this.getRpcNode().updateAll(function(result, exception) { Ext.MessageBox.hide(); if(Ung.Util.handl...
if (this.validate()) { Ext.MessageBox.wait(i18n._("Saving..."), i18n._("Please wait")); this.getRpcNode().updateAll(function(result, exception) { Ext.MessageBox.hide(); if(Ung.Util.handleException(exception)) return; if(!keepWindowOpen){ Ext.MessageBox.hide(); this.closeWindow(); }else{ Ext.MessageBox.hide(); this.g...
this.commitSettings(this.completeSaveAction.createDelegate(this));
saveAction : function(keepWindowOpen) { if (this.validate()) { Ext.MessageBox.wait(i18n._("Saving..."), i18n._("Please wait")); this.getRpcNode().updateAll(function(result, exception) { Ext.MessageBox.hide(); if(Ung.Util.handl...
store["graphOptions"] = uneval(gOptions);
store["graphOptions"] = JSON.stringify(gOptions);
function saveOptions() { if (!globalStorage || document.domain == "") return false; try { var store = globalStorage[document.domain]; store["graphOptions"] = uneval(gOptions); } catch (ex) { }}
log,
$(_instance_name + '_save_log_div'),
this.savePolicy = function() { var name = document.getElementById(_instance_name + '_save_policy_input').value; var log = new Logger(_instance_name + '_save_log_div'); log.clear(); if (!name.length) { log.msg_warning('Cannot save a policy with an empty name!'); return; } var r = new HttpRequest( log, nul...
if (typeof(this.settings.cookieId) != "undefined" && this.settings.cookieId != null) { this.findPositionString(true); if (cookie == null || cookie.length == 0) cookie = ""; else cookie = cookie + "|"; var cookie = this.settings.cookieId; cookie += "::"; cookie += this.window.style.left + ","; cookie += this.window...
savePositionAs(this.window.style.left, this.window.style.top, this.window.style.width, this.content.style.height);
savePosition: function() { if (typeof(this.settings.cookieId) != "undefined" && this.settings.cookieId != null) { this.findPositionString(true); if (cookie == null || cookie.length == 0) cookie = ""; else cookie = cookie + "|"; var cookie = this.settings.cookieId; cookie += "::"; cookie...
var allR = style['-webkit-border-radius'] || 0; var tR = style['-webkit-border-top-right-radius'] || 0; var tL = style['-webkit-border-top-left-radius'] || 0; var bR = style['-webkit-border-bottom-right-radius'] || 0; var bL = style['-webkit-border-bottom-left-radius'] || 0;
var allR = style['-moz-border-radius'] || 0; var tR = style['-moz-border-radius-topright'] || 0; var tL = style['-moz-border-radius-topleft'] || 0; var bR = style['-moz-border-radius-bottomright'] || 0; var bL = style['-moz-border-radius-bottomleft'] || 0;
curvyCorners.scanStyles = function() { function units(num) { if (!parseInt(num)) return 'px'; // '0' becomes '0px' for simplicity's sake var matches = /^[\d.]+(\w+)$/.exec(num); return matches[1]; } var t, i, j; if (curvyBrowser.isIE) { function procIEStyles(rule) { var style = ...
var allR = style['webkit-border-radius'] || 0; var tR = style['webkit-border-top-right-radius'] || 0; var tL = style['webkit-border-top-left-radius'] || 0; var bR = style['webkit-border-bottom-right-radius'] || 0; var bL = style['webkit-border-bottom-left-radius'] || 0;
var allR = style['moz-border-radius'] || 0; var tR = style['moz-border-radius-topright'] || 0; var tL = style['moz-border-radius-topleft'] || 0; var bR = style['moz-border-radius-bottomright'] || 0; var bL = style['moz-border-radius-bottomleft'] || 0; } if (allR) { var t = allR.split('/'); t = t[0].split(/\s/);...
curvyCorners.scanStyles = function() { function units(num) { if (!parseInt(num)) return 'px'; // '0' becomes '0px' for simplicity's sake var matches = /^[\d.]+(\w+)$/.exec(num); return matches[1]; } var t, i, j; if (curvyBrowser.isIE) { function procIEStyles(rule) { var style = ...
console.log("Error: Conflict when adding block " + data.blocks[i].uid + "(" + data.blocks[i].text + ") to section " + data.section.emailcode);
console.log("Error: Conflict when adding block " + data.blocks[i].room.text + " (" + data.blocks[i].time.text + ") to section " + data.section.code);
ESP.Scheduling = function(){ function init(test_data_set){ // ensure event manager is empty before we begin setting up ESP.Utilities.evm.unbind(); var pd = this.data = process_data(test_data_set); if (!this.status) { this._status = new ESP.Scheduling.Widgets.StatusBar('#statusbar'); this.status = this._stat...
schedule_assignments: []
schedule_assignments: [],
ESP.Scheduling = function(){ function init(test_data_set){ // ensure event manager is empty before we begin setting up ESP.Utilities.evm.unbind(); var pd = this.data = process_data(test_data_set); if (!this.status) { this._status = new ESP.Scheduling.Widgets.StatusBar('#statusbar'); this.status = this._stat...
Resources.create('Room',{ uid: r.uid, text: r.text, block_contents: r.block_contents})).uid;
Resources.create('Room',{ uid: r.uid, text: r.text, block_contents: ESP.Utilities.genPopup(r.text, {'Size:': r.num_students.toString(), 'Resources:': r.associated_resources.map(function(x){ return Resources.get('RoomResource',x).text; })}, true)})).uid;
ESP.Scheduling = function(){ function init(test_data_set){ // ensure event manager is empty before we begin setting up ESP.Utilities.evm.unbind(); var pd = this.data = process_data(test_data_set); if (!this.status) { this._status = new ESP.Scheduling.Widgets.StatusBar('#statusbar'); this.status = this._stat...
uid: t.uid, text: t.text, block_contents: t.block_contents,
uid: t.uid, text: t.text, block_contents: ESP.Utilities.genPopup(t.text, {'Available Times:': t.availability.map(function(x){ return Resources.get('Time',x).text; }) }, true),
ESP.Scheduling = function(){ function init(test_data_set){ // ensure event manager is empty before we begin setting up ESP.Utilities.evm.unbind(); var pd = this.data = process_data(test_data_set); if (!this.status) { this._status = new ESP.Scheduling.Widgets.StatusBar('#statusbar'); this.status = this._stat...
uid: c.id, class_id: c.class_id, code: c.emailcode, block_contents: c.block_contents, category: c.category, length: Math.round(c.length*10)*3600000/10 + 600000, length_hr: Math.round(c.length * 2) / 2, id:c.id, status:c.status, text:c.text, teachers:c.teachers.map(function(x){ return Resources.get('Teacher',x); }),
uid: c.id, class_id: c.class_id, code: c.emailcode, block_contents: ESP.Utilities.genPopup(c.emailcode, { 'Size:': c.max_class_capacity ? c.max_class_capacity : "(unspecified)", 'Resources:': c.resource_requests.map(function(x){ return (Resources.get('RoomResource', x[0]) ? (Resources.get('RoomResource', x[0]).text + "...
ESP.Scheduling = function(){ function init(test_data_set){ // ensure event manager is empty before we begin setting up ESP.Utilities.evm.unbind(); var pd = this.data = process_data(test_data_set); if (!this.status) { this._status = new ESP.Scheduling.Widgets.StatusBar('#statusbar'); this.status = this._stat...
(function loadScripts() {
loadScripts = function() {
tinymce.dom.ScriptLoader = function(settings) { var QUEUED = 0, LOADING = 1, LOADED = 2, states = {}, queue = [], scriptLoadedCallbacks = {}, queueLoadedCallbacks = [], loading = 0, undefined; function loadScript(url, callback) { var t = this, dom = tinymce.DOM, elm, uri, loc, id; // Execute call...
})();
}; loadScripts();
tinymce.dom.ScriptLoader = function(settings) { var QUEUED = 0, LOADING = 1, LOADED = 2, states = {}, queue = [], scriptLoadedCallbacks = {}, queueLoadedCallbacks = [], loading = 0, undefined; function loadScript(url, callback) { var t = this, dom = tinymce.DOM, elm, uri, loc, id; // Execute call...
TimeMap.prototype.scrollToDate = function(d, forceLayout) {
TimeMap.prototype.scrollToDate = function(d, lazyLayout) {
TimeMap.prototype.scrollToDate = function(d, forceLayout) { var d = this.parseDate(d), timeline = this.timeline, needsLayout; if (d) { var topband = timeline.getBand(0), minTime = topband.getMinDate().getTime(), maxTime = topband.getMaxDate().getTime(); needsLayo...
timeline = this.timeline, needsLayout;
timeline = this.timeline, x, layouts = [];
TimeMap.prototype.scrollToDate = function(d, forceLayout) { var d = this.parseDate(d), timeline = this.timeline, needsLayout; if (d) { var topband = timeline.getBand(0), minTime = topband.getMinDate().getTime(), maxTime = topband.getMaxDate().getTime(); needsLayo...
var topband = timeline.getBand(0), minTime = topband.getMinDate().getTime(), maxTime = topband.getMaxDate().getTime(); needsLayout = (forceLayout && d.getTime() > minTime && d.getTime() < maxTime);
for (x=0; x < timeline.getBandCount(); x++) { var band = timeline.getBand(x), minTime = band.getMinDate().getTime(), maxTime = band.getMaxDate().getTime(); layouts[x] = (lazyLayout && d.getTime() > minTime && d.getTime() < maxTime); }
TimeMap.prototype.scrollToDate = function(d, forceLayout) { var d = this.parseDate(d), timeline = this.timeline, needsLayout; if (d) { var topband = timeline.getBand(0), minTime = topband.getMinDate().getTime(), maxTime = topband.getMaxDate().getTime(); needsLayo...
} if (needsLayout || (forceLayout && !d)) {
for (x=0; x < layouts.length; x++) { if (layouts[x]) { timeline.getBand(x).layout(); } } } else if (lazyLayout) {
TimeMap.prototype.scrollToDate = function(d, forceLayout) { var d = this.parseDate(d), timeline = this.timeline, needsLayout; if (d) { var topband = timeline.getBand(0), minTime = topband.getMinDate().getTime(), maxTime = topband.getMaxDate().getTime(); needsLayo...
TimeMap.prototype.scrollToDate = function(d, lazyLayout) {
TimeMap.prototype.scrollToDate = function(d, lazyLayout, animated) {
TimeMap.prototype.scrollToDate = function(d, lazyLayout) { var d = this.parseDate(d), timeline = this.timeline, x, layouts = [], band, minTime, maxTime; if (d) { // check which bands will need layout after scroll for (x=0; x < timeline.getBandCount(); x++) { band = t...
timeline = this.timeline, x, layouts = [],
timeline = this.timeline, topband = timeline.getBand(0), x, time, layouts = [],
TimeMap.prototype.scrollToDate = function(d, lazyLayout) { var d = this.parseDate(d), timeline = this.timeline, x, layouts = [], band, minTime, maxTime; if (d) { // check which bands will need layout after scroll for (x=0; x < timeline.getBandCount(); x++) { band = t...
layouts[x] = (lazyLayout && d.getTime() > minTime && d.getTime() < maxTime);
layouts[x] = (lazyLayout && time > minTime && time < maxTime);
TimeMap.prototype.scrollToDate = function(d, lazyLayout) { var d = this.parseDate(d), timeline = this.timeline, x, layouts = [], band, minTime, maxTime; if (d) { // check which bands will need layout after scroll for (x=0; x < timeline.getBandCount(); x++) { band = t...
timeline.getBand(0).setCenterVisibleDate(d);
if (animated) { var provider = TimeMap.util.TimelineVersion() == '1.2' ? Timeline : SimileAjax, a = provider.Graphics.createAnimation(function(abs, diff) { topband.setCenterVisibleDate(new Date(abs)); }, topband.getCenterVisibleDate().getTime(), time, 1000); a.run(); } else { topband.setCenterVisibleDate(d); }
TimeMap.prototype.scrollToDate = function(d, lazyLayout) { var d = this.parseDate(d), timeline = this.timeline, x, layouts = [], band, minTime, maxTime; if (d) { // check which bands will need layout after scroll for (x=0; x < timeline.getBandCount(); x++) { band = t...
var list = that.locate("searchResults").html("");
var list = $(that.options.selectors.searchResults).html("");
var search = function(that, searchTerm) { var entities = that.entityBrowser.searchEntities(that.options.entityTypes, searchTerm); var list = that.locate("searchResults").html(""); $(entities).each(function(){ var link = $(document.createElement("a")).attr("href", "javascript:;") ...
that.locate("browsingResultNoMembers").css("display", list.find("li").size() > 0 ? "block" : "none");
$(that.options.selectors.searchResultsNoMembers).css("display", list.find("li").size() > 0 ? "none" : "block");
var search = function(that, searchTerm) { var entities = that.entityBrowser.searchEntities(that.options.entityTypes, searchTerm); var list = that.locate("searchResults").html(""); $(entities).each(function(){ var link = $(document.createElement("a")).attr("href", "javascript:;") ...
that.locate("searchDialog").dialog('open');
$(that.options.selectors.searchDialog).dialog('open');
var search = function(that, searchTerm) { var entities = that.entityBrowser.searchEntities(that.options.entityTypes, searchTerm); var list = that.locate("searchResults").html(""); $(entities).each(function(){ var link = $(document.createElement("a")).attr("href", "javascript:;") ...
var entities, list, listItem;
var entities, list, listItem, searchResultsNoMembers, members;
var search = function (that, searchTerm, form) { var entities, list, listItem; // Filter searchTerm. if (searchTerm === that.options.messages.searchValue) { searchTerm = ""; }//end:if. // Cache. entities = that.entityBrowser.searchEntities(that.op...
members = list.find("li"); if (members.length < 1) { searchResultsNoMembers.show(); list.hide(); }
var search = function (that, searchTerm, form) { var entities, list, listItem; // Filter searchTerm. if (searchTerm === that.options.messages.searchValue) { searchTerm = ""; }//end:if. // Cache. entities = that.entityBrowser.searchEntities(that.op...
}
} else { list.show(); searchResultsNoMembers.hide(); }
var search = function (that, searchTerm, form) { var entities, list, listItem, searchResultsNoMembers, members; // Filter searchTerm. if (searchTerm === that.options.messages.searchValue) { searchTerm = ""; }//end:if. // Cache. entities = that.ent...
type: "POST",
type: "GET",
var search = function () { if ($('#keyword').val() && $('#keyword').val().length < 3) { return false; } $.ajax({ type: "POST", url: pageURL, data: 'out=xml&cat=' + $('#cat').val() + '&keyword=' + $('#keyword').val(), success: displaySearch }); return true; }
select : function(n, c) { var t = this, r = t.getRng(), s = t.getSel(), b, fn, ln, d = t.win.document;
select : function(pattern, scope) { var t = this;
select : function(n, c) { var t = this, r = t.getRng(), s = t.getSel(), b, fn, ln, d = t.win.document; function find(n, start) { var walker, o; if (n) { walker = d.createTreeWalker(n, NodeFilter.SHOW_TEXT, null, false); // Find first/last non empty text node while (n = walker.nextNode()) { ...
function find(n, start) { var walker, o; if (n) { walker = d.createTreeWalker(n, NodeFilter.SHOW_TEXT, null, false); while (n = walker.nextNode()) { o = n; if (tinymce.trim(n.nodeValue).length != 0) { if (start) return n; else o = n; } } } return o; }; if (isIE) { try { b = d.body; if (/^(IMG|TABLE)$/.test(n.nod...
return $.find(pattern, t.get(scope) || t.get(t.settings.root_element) || t.doc, []); },
select : function(n, c) { var t = this, r = t.getRng(), s = t.getSel(), b, fn, ln, d = t.win.document; function find(n, start) { var walker, o; if (n) { walker = d.createTreeWalker(n, NodeFilter.SHOW_TEXT, null, false); // Find first/last non empty text node while (n = walker.nextNode()) { ...
this.adaptValueField(record); this.filterComparisonBox(record);
select: function(combo, record) { this.filter.property = record.get("name"); this.fireEvent("change", this.filter); },
y<P.length;++y){if(P[y].call(z,l,k)==F.STOP_RENDER){break;}}l.setTime(l.getTime()+D.ONE_DAY_MS);l=D.clearTime(l);if(AH>=0&&AH<=6){C.addClass(k,this.Style.CSS_CELL_TOP);}if((AH%7)===0){C.addClass(k,this.Style.CSS_CELL_LEFT);}if(((AH+1)%7)===0){C.addClass(k,this.Style.CSS_CELL_RIGHT);}var n=this.postMonthDays;if(I&&n>=7)...
if(m.getDay()+1==R){u=y[2];}break;case F.MONTH:H=y[1][0];if(m.getMonth()+1==H){u=y[2];}break;}if(u){P[P.length]=u;}}}if(this._indexOfSelectedFieldArray(Z)>-1){P[P.length]=AA.renderCellStyleSelected;}if((U&&(m.getTime()<U.getTime()))||(a&&(m.getTime()>a.getTime()))){P[P.length]=AA.renderOutOfBoundsDate;}else{P[P.length]...
y<P.length;++y){if(P[y].call(z,l,k)==F.STOP_RENDER){break;}}l.setTime(l.getTime()+D.ONE_DAY_MS);l=D.clearTime(l);if(AH>=0&&AH<=6){C.addClass(k,this.Style.CSS_CELL_TOP);}if((AH%7)===0){C.addClass(k,this.Style.CSS_CELL_LEFT);}if(((AH+1)%7)===0){C.addClass(k,this.Style.CSS_CELL_RIGHT);}var n=this.postMonthDays;if(I&&n>=7)...
console.log("Run: 1");
var selectEntity = function (that, key) { var selectionBasket, buttonPrimary, li, entity; // Cache DOM elements. selectionBasket = that.locate("selectionBasket"); buttonPrimary = that.locate("buttonPrimary"); entity = that.entityBrowser.getEntity(getTypeFromKey(key), getKe...