rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
$('#tabs').tabs({show: function(event, ui) { if(currentState['tab'] != ui.index) { currentState['tab'] = ui.index; storeState(); redrawCurrentState(); } }, selected: '-1'});
show: function(event, ui) { if(currentState['tab'] != ui.index) { currentState['tab'] = ui.index; storeState(); redrawCurrentState(); } },
$('#tabs').tabs({show: function(event, ui) { if(currentState['tab'] != ui.index) { currentState['tab'] = ui.index; storeState(); redrawCurrentState(); } }, selected: '-1'});
setTimeout(dojo.hitch(this, function(){ dijit.focus(this._firstFocusItem); }), 50);
if(this.autofocus){ setTimeout(dojo.hitch(this, function(){ dijit.focus(this._firstFocusItem); }), 50); }
show: function(){ // summary: display the dialog if(this.open){ return; } // first time we show the dialog, there's some initialization stuff to do if(!this._alreadyInitialized){ this._setup(); this._alreadyInitialized=true; } if(this._fadeOut.status() == "playing"){ this._fadeOut.stop(); ...
if (this.parent.elements.size() <= 1) return false;
show: function(showFirst, dontCallOnChange) { if (this.parent.elements.size() <= 1) return false; if (this.parent.currentElement) clearTimeout(this.parent.currentElement.hider); this.parent.currentElement = this; this.checkOverflow = true; this.target = 0; ...
if (this.parent.elements.size() <= 1) return false;
show: function(showFirst, dontCallOnChange) { if (this.parent.elements.size() <= 1) return false; if (this.parent.currentElement) clearTimeout(this.parent.currentElement.hider); this.parent.currentElement = this; this.checkOverflow = true; this.target = 0; ...
left = pos.left - calEl.offsetWidth;
left = viewPort.l + viewPort.w - calEl.offsetWidth - 20;
show = function (ev) { var cal = $('#' + $(this).data('datepickerId')); if (!cal.is(':visible')) { var calEl = cal.get(0); fill(calEl); var options = cal.data('datepicker'); options.onBeforeShow.apply(this, [cal.get(0)]); var pos = $(this).offset(); var viewPort = getViewport(); var...
$('message_view').style.top = '30%'; $('content').addClass('message_display'); $('messages_pane').style.bottom = '70%';
if (! $('content').hasClass('message_display')) { $('message_view').style.top = '30%'; $('content').addClass('message_display'); $('messages_pane').style.bottom = '70%'; $('message_divider').style.top = '30%'; }
function show_message(target) { var uid = target.id.replace('link_', ''); $(target.parentNode.parentNode).addClass('seen'); $('message_view').innerHTML = loading_message; $('loading_message').style.display = 'block'; $('help_message').style.display = 'none'; $('message_view...
var parsed = responseHTML.match(/([\s\S]*?)<div[^>]*>([\s\S]*)<\/div>/);
var parsed = responseHTML.match(/([\s\S]*?)<div>([\s\S]*)<\/div>/);
function show_message(target) { var uid = target.id.replace('link_', ''); $(target.parentNode.parentNode).addClass('seen'); $('message_view').innerHTML = loading_message; $('loading_message').style.display = 'block'; $('help_message').style.display = 'none'; if (! $('conten...
if (geocoder) {
function showAddress(address1) { if (geocoder) { geocoder.getLatLng( address1, function(point) { if (!point) { alert(address1 + " not found"); } else { //map.setCenter(point, 13); ...
address1, function(point) { if (!point)
address1, function(point)
function showAddress(address1) { if (geocoder) { geocoder.getLatLng( address1, function(point) { if (!point) { alert(address1 + " not found"); } else { //map.setCenter(point, 13); ...
alert(address1 + " not found");
if (!point) { alert(address1 + " not found"); } else { map.openInfoWindowHtml(point, getNewRidePopupHTML(point.lat(), point.lng(), address1)); }
function showAddress(address1) { if (geocoder) { geocoder.getLatLng( address1, function(point) { if (!point) { alert(address1 + " not found"); } else { //map.setCenter(point, 13); ...
else { map.openInfoWindowHtml(point, getNewRidePopupHTML(point.lat(), point.lng(), address1)); } }
function showAddress(address1) { if (geocoder) { geocoder.getLatLng( address1, function(point) { if (!point) { alert(address1 + " not found"); } else { //map.setCenter(point, 13); ...
}
function showAddress(address1) { if (geocoder) { geocoder.getLatLng( address1, function(point) { if (!point) { alert(address1 + " not found"); } else { //map.setCenter(point, 13); ...
}
function showAddress(address1) { if (geocoder) { geocoder.getLatLng( address1, function(point) { if (!point) { alert(address1 + " not found"); } else { //map.setCenter(point, 13); ...
if (!response || response.Status.code != 200) {
function showAddressClick(response) { if (!response || response.Status.code != 200) { alert("Status Code:" + response.Status.code); } else { place = response.Placemark[0]; point = new GLatLng(place.Point.coordinates[1], place.Point.coor...
getNewRidePopupHTML(place.Point.coordinates[1], place.Point.coordinates[0], place.address)); }
getNewRidePopupHTML(place.Point.coordinates[1], place.Point.coordinates[0], place.address));
function showAddressClick(response) { if (!response || response.Status.code != 200) { alert("Status Code:" + response.Status.code); } else { place = response.Placemark[0]; point = new GLatLng(place.Point.coordinates[1], place.Point.coor...
}
function showAddressClick(response) { if (!response || response.Status.code != 200) { alert("Status Code:" + response.Status.code); } else { place = response.Placemark[0]; point = new GLatLng(place.Point.coordinates[1], place.Point.coor...
var file = Titanium.Filesystem.getFile(Titanium.App.appURLToPath('perspectives/projects/projects.html')); $('#tiui_content_right').get(0).innerHTML = file.read(); $('#projects').css('display','block') $('#import_project_button').click(function() { Projects.handleImportClick(); }); $('#new_project_button_2').click(f...
Projects.showAuthenticatedView = function(options){ // set default UI state TiDev.contentLeftShowButton.hide(); TiDev.contentLeftHideButton.show(); TiDev.contentLeft.show(); TiDev.subtabs.hide(); // initialize project db stuff if (Projects.dbInitialized==false) { Projects.initDB(); } // show no project view if (Pro...
TiDev.subtabs.setLeftPadding(200);
Projects.showAuthenticatedView = function(options){ // set default UI state TiDev.contentLeftShowButton.hide(); TiDev.contentLeftHideButton.show(); TiDev.contentLeft.show(); TiDev.subtabs.hide(); // initialize project db stuff if (Projects.dbInitialized==false) { Projects.initDB(); } // show no project view if (Pro...
if (TiDev.subtabs.activeIndex = -1)
if (TiDev.subtabs.activeIndex == -1)
Projects.showAuthenticatedView = function(options){ // set default UI state TiDev.contentLeftShowButton.hide(); TiDev.contentLeftHideButton.show(); TiDev.contentLeft.show(); TiDev.subtabs.hide(); // initialize project db stuff if (Projects.dbInitialized==false) { Projects.initDB(); } // show no project view if (Pro...
if (options && options.showEditTab==true)
if (options && options.showEditProjectTab == true)
Projects.showAuthenticatedView = function(options){ // set default UI state TiDev.contentLeftShowButton.hide(); TiDev.contentLeftHideButton.show(); TiDev.contentLeft.show(); TiDev.subtabs.hide(); // initialize project db stuff if (Projects.dbInitialized==false) { Projects.initDB(); } // show no project view if (Pro...
else if (Projects.modulesLoaded == true)
else
Projects.showAuthenticatedView = function(options){ // set default UI state TiDev.contentLeftShowButton.hide(); TiDev.contentLeftHideButton.show(); TiDev.contentLeft.show(); TiDev.subtabs.hide(); // initialize project db stuff if (Projects.dbInitialized==false) { Projects.initDB(); } // show no project view if (Pro...
TiDev.subtabChange(0);
if (Projects.modulesLoaded == true) { TiDev.subtabChange(0); }
Projects.showAuthenticatedView = function(options){ // set default UI state TiDev.contentLeftShowButton.hide(); TiDev.contentLeftHideButton.show(); TiDev.contentLeft.show(); TiDev.subtabs.hide(); // initialize project db stuff if (Projects.dbInitialized==false) { Projects.initDB(); } // show no project view if (Pro...
TiDev.subtabs.show();
Projects.showAuthenticatedView = function(options){ // set default UI state TiDev.contentLeftShowButton.hide(); TiDev.contentLeftHideButton.show(); TiDev.contentLeft.show();// TiDev.subtabs.hide(); // initialize project db stuff if (Projects.dbInitialized==false) { Projects.initDB(); } // show no project view if (P...
Projects.selectedProjectIdx = $(this).attr('project_id');
var newProjectIndex = $(this).attr('project_id'); Projects.setActiveProject(newProjectIndex);
Projects.showAuthenticatedView = function(){ // set default UI state TiDev.contentLeftShowButton.hide(); TiDev.contentLeftHideButton.show(); TiDev.contentLeft.show(); TiDev.subtabs.hide(); // initialize project db stuff if (Projects.dbInitialized==false) { Projects.initDB(); } // var show = true; // // if (!Project...
$MQ('l:tidev.projects.row_selected',{'project_id':Projects.selectedProjectIdx,'activeTab':TiDev.activeSubtab.name}); TiDev.db.execute('update PROJECT_VIEW set ACTIVE = ?',Projects.selectedProjectIdx);
$MQ('l:tidev.projects.row_selected',{'project_id':newProjectIndex,'activeTab':TiDev.activeSubtab.name});
Projects.showAuthenticatedView = function(){ // set default UI state TiDev.contentLeftShowButton.hide(); TiDev.contentLeftHideButton.show(); TiDev.contentLeft.show(); TiDev.subtabs.hide(); // initialize project db stuff if (Projects.dbInitialized==false) { Projects.initDB(); } // var show = true; // // if (!Project...
TiDev.subtabs.hide();
Projects.showAuthenticatedView = function(options){ // set default UI state TiDev.contentLeftShowButton.hide(); TiDev.contentLeftHideButton.show(); TiDev.contentLeft.show(); TiDev.subtabs.hide(); // initialize project db stuff if (Projects.dbInitialized==false) { Projects.initDB(); } // show no project view if (Pro...
TiDev.subtabChange(0);
Projects.showAuthenticatedView = function(options){ // set default UI state TiDev.contentLeftShowButton.hide(); TiDev.contentLeftHideButton.show(); TiDev.contentLeft.show(); TiDev.subtabs.hide(); // initialize project db stuff if (Projects.dbInitialized==false) { Projects.initDB(); } // show no project view if (Pro...
else { Projects.selectInitialTab = true; }
Projects.showAuthenticatedView = function(options){ // set default UI state TiDev.contentLeftShowButton.hide(); TiDev.contentLeftHideButton.show(); TiDev.contentLeft.show(); TiDev.subtabs.hide(); // initialize project db stuff if (Projects.dbInitialized==false) { Projects.initDB(); } // show no project view if (Pro...
var position=getPosition(wicketGet(elementId));
var input = wicketGet(elementId);
function showAutoComplete(){ var position=getPosition(wicketGet(elementId)); var container = getAutocompleteContainer(); var input=wicketGet(elementId); var index=getOffsetParentZIndex(elementId); container.show(); if (!isNaN(new Number(index))) { container.style...
var input=wicketGet(elementId);
function showAutoComplete(){ var position=getPosition(wicketGet(elementId)); var container = getAutocompleteContainer(); var input=wicketGet(elementId); var index=getOffsetParentZIndex(elementId); container.show(); if (!isNaN(new Number(index))) { container.style...
} container.style.left=position[0]+'px'; container.style.top=(input.offsetHeight+position[1])+'px'; if(cfg.adjustInputWidth) container.style.width=input.offsetWidth+'px'; visible=1; hideShowCovered();
} if (!usefulDimensionsInitialized) { initializeUsefulDimensions(input, container); } if (cfg.adjustInputWidth) { var newW = input.offsetWidth-containerBorderWidths[0]; container.style.width = (newW >= 0 ? newW : input.offsetWidth)+'px'; } calculateAndSetPopupBounds(input, container); if (visible == 0) { visible = 1;...
function showAutoComplete(){ var position=getPosition(wicketGet(elementId)); var container = getAutocompleteContainer(); var input=wicketGet(elementId); var index=getOffsetParentZIndex(elementId); container.show(); if (!isNaN(new Number(index))) { container.style...
if (yearsPrevious != null)
if (yearsPrevious)
function showCalendar(obj, yearsPrevious) { //set appendText to something so it doesnt automagically pop into the page var id = obj.id; if(!id) { obj.id = obj.name; if(!obj.id) { obj.id = "something_random" + (Math.random()*1000); } id = obj.id; } var opts = { appendText: " " }; if (yearsPrevious != null) opts[...
$j.datepicker.setDefaults($j.datepicker.regional[jsLocale]);
jQuery.datepicker.setDefaults(jQuery.datepicker.regional[jsLocale]);
function showCalendar(obj) { //set appendText to something so it doesnt automagically pop into the page var id = obj.id; if(!id) { obj.id = obj.name; if(!obj.id) { obj.id = "something_random" + (Math.random()*1000); } id = obj.id; } var dp = new DatePicker(jsDateFormat, id, { appendText: " " }); $j.datepicker.se...
makeCalendar(obj); if(self.gfPop) gfPop.fPopCalendar(obj);
var dp = new DatePicker(jsDateFormat, obj.id, { appendText: " " }); $j.datepicker.setDefaults($j.datepicker.regional[jsLocale]); obj.onclick = null; dp.show();
function showCalendar(obj) { makeCalendar(obj); if(self.gfPop) gfPop.fPopCalendar(obj); return false;}
var dp = new DatePicker(jsDateFormat, obj.id, { appendText: " " });
var id = obj.id; if(!id) { obj.id = obj.name; if(!obj.id) { obj.id = "something_random" + (Math.random()*1000); } id = obj.id; } var dp = new DatePicker(jsDateFormat, id, { appendText: " " });
function showCalendar(obj) { //set appendText to something so it doesnt automagically pop into the page var dp = new DatePicker(jsDateFormat, obj.id, { appendText: " " }); $j.datepicker.setDefaults($j.datepicker.regional[jsLocale]); obj.onclick = null; dp.show(); return false;}
doc.find('form').submit(function () { $(iframe).load(function () { dialog.dialog('close'); }); });
showDialog: function (href) { window.scrollTop = 0; if (dialog) dialog.remove(); dialog = $('<div id="dialog" />').hide(); $(document).append(dialog); var iframe = document.createElement('iframe'); dialog.append(iframe); iframe.src = href; $(iframe).load(function () { var doc = $(iframe.contentWind...
if (this.event) { if (this.eventVisible === false){ this.dataset.timemap.timeline.getBand(0) .getEventSource()._events._events.add(this.event);
var item = this, event = item.event; if (event) { if (item.eventVisible === false){ item.timeline.getBand(0) .getEventSource()._events._events.add(event);
TimeMapItem.prototype.showEvent = function() { if (this.event) { if (this.eventVisible === false){ this.dataset.timemap.timeline.getBand(0) .getEventSource()._events._events.add(this.event); } this.eventVisible = true; }};
this.eventVisible = true;
item.eventVisible = true;
TimeMapItem.prototype.showEvent = function() { if (this.event) { if (this.eventVisible === false){ this.dataset.timemap.timeline.getBand(0) .getEventSource()._events._events.add(this.event); } this.eventVisible = true; }};
if (!currentEF) { currentEF = ea.ef; }
function showExpressionTable(experiment, gene, ef, efv, updn) { $("#qryHeader").html("<img src='" + atlas.homeUrl + "images/indicator.gif' />&nbsp;Loading..."); $("#qryHeader").show(); //alert($("#squery").position.top); //alert($("#squery").position.width); $("#qryHeader").css("top",$("#squery").positio...
showGroupConfigure: function(group, map) { if (!lang.isValue(group) || lang.isValue(group.groupContainer)) { hideGroupConfigure(); } else { var self = this; var ui = group.generateUI(map, function() { self.setGroupOptions.call(self) }); this.setDisplay(ui.listRows);
showGroupConfigure: function(group, map) { if (!lang.isValue(group) || lang.isValue(group.groupContainer)) { hideGroupConfigure(); } else { var self = this; var ui = group.generateUI(map, function() { self.setGroupOptions.call(self); }); this.setDisplay(ui.listRows);
showGroupConfigure: function(group, map) { if (!lang.isValue(group) || lang.isValue(group.groupContainer)) { hideGroupConfigure(); //TODO: you should be able to modify group mappings while collapsed } else { var self = this; var ui = group.generateUI(map, function() { self.setGroupOptions.call(self) }); this...
var map = new google.maps.Map(document.getElementById(jobDivId),
map = new google.maps.Map(document.getElementById(jobDivId),
function showJob(jobDivId, latitude, longitude, zoomLevel) { var latlng = new google.maps.LatLng(latitude, longitude); var myOptions = { zoom: zoomLevel, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById(jobDivId), myOptions); va...
var data = row.id.split("_"); var gid = data[0]; var ef = data[1]; var i = data[2];
var m = /([^_]*)_(.*)_([^_]*)/.exec(row.id);
atlas.showListThumbs = function (row) { var efv = $("#"+row.id+" .lvrowefv").text(); var data = row.id.split("_"); var gid = data[0]; var ef = data[1]; var i = data[2]; $(".thumb" + i).not(".done").each(function(){ var plot_id = this.id; var tokens = p...
$(".thumb" + i).not(".done").each(function(){ var plot_id = this.id; var tokens = plot_id.split('_'); var eid = tokens[0]; var divEle = $(this); atlas.ajaxCall("plot", { gid: gid, eid: eid, ef: ef, efv: efv, plot: 'thumb' }, function(jsonObj) { if(jsonObj.series){ $.plot(divEle, jsonObj.series, jsonObj.options); }
if (m) { var gid = m[1]; var ef = m[2]; var i = m[3]; $(".thumb" + i).not(".done").each(function() { var plot_id = this.id; var tokens = plot_id.split('_'); var eid = tokens[0]; var divEle = $(this); atlas.ajaxCall("plot", { gid: gid, eid: eid, ef: ef, efv: efv, plot: 'thumb' }, function(jsonObj) { if (jsonObj.series)...
atlas.showListThumbs = function (row) { var efv = $("#"+row.id+" .lvrowefv").text(); var data = row.id.split("_"); var gid = data[0]; var ef = data[1]; var i = data[2]; $(".thumb" + i).not(".done").each(function(){ var plot_id = this.id; var tokens = p...
$(this).addClass("done"); });
} else { if (console) { console.log("Wrong id format: " + row.id); } }
atlas.showListThumbs = function (row) { var efv = $("#"+row.id+" .lvrowefv").text(); var data = row.id.split("_"); var gid = data[0]; var ef = data[1]; var i = data[2]; $(".thumb" + i).not(".done").each(function(){ var plot_id = this.id; var tokens = p...
this.show(this.loginMiddle);
showLoginForm: function() { this.userField.value = ''; this.passField.value = ''; this.userField.focus(); this.show(this.loginMiddle); },
this.userField.focus();
showLoginForm: function() { this.userField.value = ''; this.passField.value = ''; this.show(this.loginMiddle); },
if (itemStart) {
if (itemStart !== undefined) {
TimeMap.filters.showMomentOnly = function(item) { var topband = item.dataset.timemap.timeline.getBand(0), momentDate = topband.getCenterVisibleDate().getTime(), itemStart = item.getStartTime(), itemEnd = item.getEndTime(); if (itemStart) { // hide items in the future if (itemSta...
$options.bind('mouseout', function(){ setTimeout(function(){ hideOptions(); $select.unbind("hover"); }, o.hideDelay); });
function showOptions(){ var offset = $select.position(), timer, listHeight = 0; // hide all other options hideOptions(true); // show the options div + position it $options .css({ position:'absolute', top:(offset.top + $select.outerHeight())+'px', left: offset.left+'px' }) .slideDown(o.slideSpeed...
$select.addClass('ui-state-active');
function showOptions(){ var offset = $select.position(), timer, listHeight = 0; // hide all other options hideOptions(true); // show the options div, position it, add classes $select.addClass('ui-state-active'); $options .css({ position:'absolute', top: offset.top + $select.outerHeight() + 'px', ...
.css({ position:'absolute', top: offset.top + $select.outerHeight() + 'px', left: offset.left + 'px' }) .slideDown(o.slideSpeed) .find('label') .removeClass('ui-state-hover');
.css({ position:'absolute', top:(offset.top + $select.outerHeight())+'px', left: offset.left+'px' }) .slideDown(o.slideSpeed);
function showOptions(){ var offset = $select.position(), timer, listHeight = 0; // hide all other options hideOptions(true); // show the options div, position it, add classes $select.addClass('ui-state-active'); $options .css({ position:'absolute', top: offset.top + $select.outerHeight() + 'px', ...
$options.hover( function(){ clearTimeout(timer); }, function(){ timer = setTimeout(function(){ hideOptions(); $select.unbind("hover"); }, o.hideDelay); } );
$options.bind('mouseout', function(){ setTimeout(function(){ hideOptions(); $select.unbind("hover"); }, o.hideDelay); });
function showOptions(){ var offset = $select.position(), timer, listHeight = 0; // hide all other options hideOptions(true); // show the options div, position it, add classes $select.addClass('ui-state-active'); $options .css({ position:'absolute', top: offset.top + $select.outerHeight() + 'px', ...
for (var i = 0; i < scvs.length; ++i) {
for (var i = 0; i < scvs.length; ++i) if(scvs[i].v != '' && keys[scvs[i].k] != scvs[i].v) {
function showSampleTooltip(dataIndex,x,y){ var ul = $('<ul/>'); var scvs = assayProperties[dataIndex].scvs; for (var i = 0; i < scvs.length; ++i) { ul.append($('<li/>') .css('padding', '0px') .text(scvs[i].v) .prepend($('<span/>').css('fontWeight','bold').tex...
} var efvs = assayProperties[dataIndex].efvs; for (i = 0; i < efvs.length; ++i) { ul.append($('<li/>') .css('padding', '0px') .text(efvs[i].v) .prepend($('<span/>').css('fontWeight','bold').text(curatedEFs[efvs[i].k] + ': ')));
function showSampleTooltip(dataIndex,x,y){ var ul = $('<ul/>'); var scvs = assayProperties[dataIndex].scvs; for (var i = 0; i < scvs.length; ++i) { ul.append($('<li/>') .css('padding', '0px') .text(scvs[i].v) .prepend($('<span/>').css('fontWeight','bold').tex...
$.template("expressionValueTableRowTemplate","<tr><td><a onclick=\"addGeneToPlot('${geneId}','${geneIdentifier}','${geneName}','${rawef}','${de}');return false;\"'><img border='0' src='images/iconf.png'/></a></td><td>${gene}</td><td>${de}</td><td>${ef}</td><td>${efv}</td><td>${expr}</td><td>${tstat}</td><td>${pvalue}</...
$("#expressionValueTableRowTemplate1").tmpl(expressionValues).appendTo($("#expressionTableBody").empty()); addGeneToolTips();
function showTable(expressionValues){ $.template("expressionValueTableRowTemplate","<tr><td><a onclick=\"addGeneToPlot('${geneId}','${geneIdentifier}','${geneName}','${rawef}','${de}');return false;\"'><img border='0' src='images/iconf.png'/></a></td><td>${gene}</td><td>${de}</td><td>${ef}</td><td>${efv}</td><td>${e...
addGeneToolTips();
function showTable(expressionValues){ //$.template("expressionValueTableRowTemplate","<tr><td><a onclick=\"addGeneToPlot('${geneId}','${geneIdentifier}','${geneName}','${rawef}','${de}');return false;\"'><img border='0' src='images/iconf.png'/></a></td><td>${gene}</td><td>${de}</td><td>${ef}</td><td>${efv}</td><td>$...
if (this.shadowContainer != null) {
if (this.shadowContainer != undefined) {
showToolTip: function(event, target) { var data = target.ttContent.split(this.options.delimiter); var title = data[0]; var content = data[1]; // Hide content div if no content if (content == undefined) { this.toolTipContent.hide(); } else { this.toolTi...
TREE.setEventToggler = function (obj) { $(obj).prepend('<span class="toggler">&nbsp;</span>'); $('>.toggler', obj).bind('click', function(){ var childUl = $('>ul',obj);
TREE.setEventToggler = function(obj) { $(obj).prepend('<a class="toggler" href="#">&nbsp;</a>'); $('>.toggler', obj).bind('click', function(e) { e.preventDefault(); var childUl = $('>ul', obj);
$.fn.SimpleTree = function(opt){ this.each(function(){ var TREE = this; var ROOT = $('li:first',this); TREE.option = { animate: false, // this parameter has a value "true/false" (enable/disable animation for expanding/collapsing menu items) autoclose: false, // this parameter has a value "true/false" (enable/d...
google.maps.Size = function(width, height) {};
google.maps.Size = function(width, height, widthUnit, heightUnit) {};
google.maps.Size = function(width, height) {};
f[k](d)}else{if(e.collapsible&&f)a.toggle();else{b.hide();a.show()}j(true)}b.prev().attr({"aria-expanded":"false",tabIndex:-1}).blur();a.prev().attr({"aria-expanded":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide...
$.effects.slide = function(o) { return this.queue(function() { var el = $(this), props = ['position','top','left']; var mode = $.effects.setMode(el, o.options.mode || 'show'); var direction = o.options.direction || 'left'; $.effects.save(el, props); el.show(); $.effects.createWrapper(el).css({overflow:'hidden'})...
f[k](d)}else{if(e.collapsible&&f)a.toggle();else{b.hide();a.show()}j(true)}b.prev().attr({"aria-expanded":"false",tabIndex:-1}).blur();a.prev().attr({"aria-expanded":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide...
tests.test("Download button", testingFunctions.downloadTests);
var smallDataTests = function () { var FIRST_MODULE_INDEX = 0; var SECOND_MODULE_INDEX = 1; var data = { "model": { "groupInfo": [{ "groupName": "Infusion Framework Modules", "groupDescription": "The core Infusion modul...
speed = (typeof speed == 'undefined') ? 'slow' : speed; if ($("#edit-image-captcha-distortion-amplitude").val() > 0) { $("#edit-image-captcha-bilinear-interpolation-wrapper").show(speed); } else { $("#edit-image-captcha-bilinear-interpolation-wrapper").hide(speed); } }
speed = (typeof speed == 'undefined') ? 'slow' : speed; if ($("#edit-image-captcha-distortion-amplitude").val() > 0) { $(".form-item-image-captcha-bilinear-interpolation").show(speed); } else { $(".form-item-image-captcha-bilinear-interpolation").hide(speed); } }
var smooth_distortion_shower = function(speed) { speed = (typeof speed == 'undefined') ? 'slow' : speed; if ($("#edit-image-captcha-distortion-amplitude").val() > 0) { $("#edit-image-captcha-bilinear-interpolation-wrapper").show(speed); } else { $("#edit-image-captcha-bilinear-interpolation-wrapper").hide(spee...
sort: function(x,y){ return cmp(x.section.text, y.section.text); },
sort: function(prop){ var prop = prop || this.active_sort; this.header.children().removeClass('sort-by asc desc'); if (prop) { prop.header.addClass('sort-by').addClass(prop.reverse ? 'asc' : 'desc'); this.active_sort = prop; this.active_rows.sort(prop.sort.bind(this)); if (prop.reverse) this.active_rows.reverse(); } th...
sort: function(x,y){ return cmp(x.section.text, y.section.text); },
var ticket = result.car, tuple = result.cdr;
if (result){ var ticket = result.car, tuple = result.cdr;
start_connection: function(){ var path = this.server_path + "connection?" + "cid=" + this.client_id; var loop = function(){ this.ajax(path, function(str){ var result = Interpreter.read(str); var ticket = result.car, tuple = result.cdr; this.notify(ticke...
this.notify(ticket, tuple); loop();
this.notify(ticket, tuple); loop(); }
start_connection: function(){ var path = this.server_path + "connection?" + "cid=" + this.client_id; var loop = function(){ this.ajax(path, function(str){ var result = Interpreter.read(str); var ticket = result.car, tuple = result.cdr; this.notify(ticke...
var messages_pane = document.getElementById('messages_pane'); var message_view = document.getElementById('message_view');
var messages_pane = document.getElementById('messages_pane'); var message_view = document.getElementById('message_view'); var message_divider = document.getElementById('message_divider');
function start_message_view_resize(event) { var messages_pane = document.getElementById('messages_pane'); var message_view = document.getElementById('message_view'); function drag(event) { messages_pane.style.bottom = messages_pane.parentNode.offsetHeight - event.client.y + 'px'; message_view.st...
message_divider.style.top = event.client.y + 'px';
function start_message_view_resize(event) { var messages_pane = document.getElementById('messages_pane'); var message_view = document.getElementById('message_view'); function drag(event) { messages_pane.style.bottom = messages_pane.parentNode.offsetHeight - event.client.y + 'px'; message_view.st...
id : 'report-details',
id : 'report-details-container',
startApplicationPrintView : function(){ var panel = new Ext.Panel({ renderTo : 'base', cls : "base-container", layout : 'fit', id : 'report-details', height : getWinHeight()-80, width:740, cls:'full-height', autoScroll :...
var self = this; var callback = function() { self._tryPreloadAttach(); }; this._interval = setInterval(callback, this.POLL_INTERVAL);
this._interval = YAHOO.lang.later(this.POLL_INTERVAL, this, this._tryPreloadAttach, null, true);
startInterval: function() { if (!this._interval) { var self = this; var callback = function() { self._tryPreloadAttach(); }; this._interval = setInterval(callback, this.POLL_INTERVAL); } },
unit:j[2]||"px"}});a.toShow.css({height:0,overflow:"hidden"}).show();a.toHide.filter(":hidden").each(a.complete).end().filter(":visible").animate(h,{step:function(j,i){if(i.prop=="height")f=i.end-i.start===0?0:(i.now-i.start)/(i.end-i.start);a.toShow[0].style[i.prop]=f*g[i.prop].value+g[i.prop].unit},duration:a.duratio...
step: function() { var data = { width: parseInt(self.element.css('width'), 10), height: parseInt(self.element.css('height'), 10), top: parseInt(self.element.css('top'), 10), left: parseInt(self.element.css('left'), 10) }; if (pr && pr.length) $(pr[0]).css({ width: data.width, height: data.height }); self._updateCac...
unit:j[2]||"px"}});a.toShow.css({height:0,overflow:"hidden"}).show();a.toHide.filter(":hidden").each(a.complete).end().filter(":visible").animate(h,{step:function(j,i){if(i.prop=="height")f=i.end-i.start===0?0:(i.now-i.start)/(i.end-i.start);a.toShow[0].style[i.prop]=f*g[i.prop].value+g[i.prop].unit},duration:a.duratio...
if(stateString != urlParts[1])
if(stateString != urlParts[1]) {
function storeState() { var urlParts = window.location.href.split('#'); var stateString = ''; for(var key in currentState) { var value = escape(currentState[key]); if(value != '') { if(stateString.length > 0) stateString += '&'; stateString += key + '=' + valu...
currentStateHash = stateString; }
function storeState() { var urlParts = window.location.href.split('#'); var stateString = ''; for(var key in currentState) { var value = escape(currentState[key]); if(value != '') { if(stateString.length > 0) stateString += '&'; stateString += key + '=' + valu...
url = url.replace('{email_username}', $('#openid_username').val().split('@')[0]);
submit: function() { var url = openid.provider_url; if (url) { url = url.replace('{username}', $('#openid_username').val()); url = url.replace('{email_username}', $('#openid_username').val().split('@')[0]); openid.setOpenIdUrl(url); } if(openid.ajaxHandler) { openid.ajax...
$.post('jmesa.wrk?', eval('(' + data + ')'), function(data) {});
var contextPath = coreapi.getContextPath(wsColumn.id); if (contextPath) { contextPath += "/"; } $.post(contextPath + 'jmesa.wrk?', eval('(' + data + ')'), function(data) {});
submitWsColumn : function(originalValue, changedValue) { var data = '{ "id" : "' + wsColumn.id + '"'; data += ', "cp_" : "' + wsColumn.property + '"'; var props = wsColumn.uniqueProperties; $.each(props, function(key, value) { data += ', "up_' + key + '...
if(EU.isIE){YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var n=document.createElement("p");EU._dri=setInterval(function(){try{n.doScroll("left");clearInterval(EU._dri);EU._dri=null;EU._ready();n=null;}catch(ex){}},EU.POLL_INTERVAL);}else{if(EU.webkit&&EU.webkit<525){EU._dri=setI...
if(EU.isIE){if(self!==self.top){document.onreadystatechange=function(){if(document.readyState=="complete"){document.onreadystatechange=null;EU._ready();}};}else{YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var n=document.createElement("p");EU._dri=setInterval(function(){try{n.do...
if(EU.isIE){YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var n=document.createElement("p");EU._dri=setInterval(function(){try{n.doScroll("left");clearInterval(EU._dri);EU._dri=null;EU._ready();n=null;}catch(ex){}},EU.POLL_INTERVAL);}else{if(EU.webkit&&EU.webkit<525){EU._dri=setI...
if(EU.isIE){YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var n=document.createElement("p");EU._dri=setInterval(function(){try{n.doScroll("left");clearInterval(EU._dri);EU._dri=null;EU._ready();n=null;}catch(ex){}},EU.POLL_INTERVAL);}else{if(EU.webkit&&EU.webkit<525){EU._dri=setI...
if(EU.isIE){if(self!==self.top){document.onreadystatechange=function(){if(document.readyState=="complete"){document.onreadystatechange=null;EU._ready();}};}else{YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var n=document.createElement("p");EU._dri=setInterval(function(){try{n.do...
if(EU.isIE){YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var n=document.createElement("p");EU._dri=setInterval(function(){try{n.doScroll("left");clearInterval(EU._dri);EU._dri=null;EU._ready();n=null;}catch(ex){}},EU.POLL_INTERVAL);}else{if(EU.webkit&&EU.webkit<525){EU._dri=setI...
subscribeToConfigEvent: function (key, handler, obj, override) {
subscribeToConfigEvent: function (key, handler, obj, overrideContext) {
subscribeToConfigEvent: function (key, handler, obj, override) { var property = this.config[key.toLowerCase()]; if (property && property.event) { if (!Config.alreadySubscribed(property.event, handler, obj)) { property.event.subscribe(handler, obj, ...
property.event.subscribe(handler, obj, override);
property.event.subscribe(handler, obj, overrideContext);
subscribeToConfigEvent: function (key, handler, obj, override) { var property = this.config[key.toLowerCase()]; if (property && property.event) { if (!Config.alreadySubscribed(property.event, handler, obj)) { property.event.subscribe(handler, obj, ...
var cfgPageDate = DEF_CFG.PAGEDATE.key; this.cfg.setProperty(cfgPageDate, DateMath.subtract(this.cfg.getProperty(cfgPageDate), DateMath.MONTH, count)); this.resetRenderers(); this.changePageEvent.fire(); },
this.addMonths(-1*count); },
subtractMonths : function(count) { var cfgPageDate = DEF_CFG.PAGEDATE.key; this.cfg.setProperty(cfgPageDate, DateMath.subtract(this.cfg.getProperty(cfgPageDate), DateMath.MONTH, count)); this.resetRenderers(); this.changePageEvent.fire(); },
var cfgPageDate = DEF_CFG.PAGEDATE.key; this.cfg.setProperty(cfgPageDate, DateMath.subtract(this.cfg.getProperty(cfgPageDate), DateMath.YEAR, count)); this.resetRenderers(); this.changePageEvent.fire(); },
this.addYears(-1*count); },
subtractYears : function(count) { var cfgPageDate = DEF_CFG.PAGEDATE.key; this.cfg.setProperty(cfgPageDate, DateMath.subtract(this.cfg.getProperty(cfgPageDate), DateMath.YEAR, count)); this.resetRenderers(); this.changePageEvent.fire(); },
$.each(data.units.before, function() { pootle.editor.units[this.id] = this; }); $.each(data.units.after, function() { pootle.editor.units[this.id] = this; }); pootle.editor.display_next_unit(store, data);
var newhash = "unit/" + parseInt(data.new_uid); $.history.load(newhash);
success: function(data) { if (data.success) { // Update client data $.each(data.units.before, function() { pootle.editor.units[this.id] = this; }); $.each(data.units.after, function() { pootle.editor.units[this.id] = this; }); poot...
$('.loadIndicator').hide();
$('.loadIndicator').css('visibility', 'hidden');
success: function (json) { $('.loadIndicator').hide(); if(json.error) alert(json.error); else func(json); },
progressBar.hide(); var result = Ext.util.JSON.decode(response.responseText); if (!result.success) { Ext.MessageBox.show({ title: config.failure.title, msg: config.failure.msg, buttons: Ext.Msg.OK, icon: Ext.MessageBox.ERROR }); } else { var grid = Ext.getCmp(config.gridName); grid.store.reload(); grid.getSelectionMo...
var result = Ext.util.JSON.decode(response.responseText); var statusbar = Ext.get('statusbar'); if (result.message) { statusbar.update('<img src="/images/spinner.gif" class="icon-inline"> ' + result.message); } else { statusbar.update(''); Ext.TaskMgr.stop(Owp.statusUpdater.task); } }
success: function(response) { progressBar.hide(); var result = Ext.util.JSON.decode(response.responseText); if (!result.success) { Ext.MessageBox.show({ title: config.failure.title, msg: config.failure.msg, buttons: Ext.Msg.OK, icon: Ext.Messa...
success: function(response, request, form) { $(form).parent('div').hide(); formSuccess('Senha alterada com sucesso'); },
success: function(response, message, form) { if (response == 'IntegrityError') { alert('Esta organização já está registrada.'); } else { var text = $(form).children('fieldset').children('label').children('input:text').val(); $.form_mini_link.parents('fieldset').children('label').children('select.asmSelect:first')...
success: function(response, request, form) { $(form).parent('div').hide(); formSuccess('Senha alterada com sucesso'); },
if (config.onSuccess) { config.onSuccess(); }
success: function(response) { progressBar.hide(); var result = Ext.util.JSON.decode(response.responseText); if (!result.success) { Ext.MessageBox.show({ title: config.failure.title, msg: config.failure.msg, buttons: Ext.Msg.OK, icon: Ext.Messa...
this.contextPath = '';
TableFacade : function (id) { this.limit = new classes.Limit(id); this.worksheet = new classes.Worksheet(); this.onInvokeAction = 'onInvokeAction'; this.onInvokeExportAction = 'onInvokeExportAction'; },
o=g=null})();(function(){var g=u.createElement("div");g.appendChild(u.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(j,o){var m=o.getElementsByTagName(j[1]);if(j[1]==="*"){for(var p=[],q=0;m[q];q++)m[q].nodeType===1&&p.push(m[q]);m=p}return m};g.innerHTML="<a href='#'></a>";if(g.firstChi...
"")+" ";if(q)return g;q=0;for(var u;(u=i[q])!=null;q++)if(u)if(p^(u.className&&(" "+u.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0))n||m.push(u);else if(n)i[q]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},CHILD:function(g){if(g[1]==="nth"){var i=/(-...
o=g=null})();(function(){var g=u.createElement("div");g.appendChild(u.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(j,o){var m=o.getElementsByTagName(j[1]);if(j[1]==="*"){for(var p=[],q=0;m[q];q++)m[q].nodeType===1&&p.push(m[q]);m=p}return m};g.innerHTML="<a href='#'></a>";if(g.firstChi...
$('.loadIndicator').show();
$('.loadIndicator').css('visibility', 'visible');
function taskmanCall(op, params, func) { $('.loadIndicator').show(); return $.ajax({ type: "GET", url: atlas.homeUrl + "tasks", dataType: "json", data: $.extend(params, { op : op }), success: function (json) { $('.loadIndicator').hide(); if(json.error) ...
$('.loadIndicator').hide();
$('.loadIndicator').css('visibility', 'hidden');
function taskmanCall(op, params, func) { $('.loadIndicator').show(); return $.ajax({ type: "GET", url: atlas.homeUrl + "tasks", dataType: "json", data: $.extend(params, { op : op }), success: function (json) { $('.loadIndicator').hide(); if(json.error) ...
req.close();
req.end();
(function test_del_to_del_string_matcher() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('DELETE', '/delstring'); expect_callback(); req.addListener( 'response', function(res) { test.assertEquals(200, res.statusCode); test.assertEquals('text/html', res.headers['content-type']); a...
req.close();
req.end();
(function test_delete_to_get_matcher() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('DELETE', '/get'); expect_callback(); req.addListener( 'response', function(res) { assert_not_found(res); }); req.close(); }());
req.close();
req.end();
(function test_delete_to_get_string_matcher() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('DELETE', '/getstring'); expect_callback(); req.addListener( 'response', function(res) { assert_not_found(res); }); req.close(); }());
req.close();
req.end();
(function test_delete_to_post_string_matcher() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('DELETE', '/poststring'); expect_callback(); req.addListener( 'response', function(res) { assert_not_found(res); }); req.close(); }());
req.close();
req.end();
(function test_delete_to_put_string_matcher() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('DELETE', '/putstring'); expect_callback(); req.addListener( 'response', function(res) { assert_not_found(res); }); req.close(); }());
req.close();
req.end();
(function test_get_to_del_string_matcher() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('GET', '/delstring'); expect_callback(); req.addListener( 'response', function(res) { assert_not_found(res); }); req.close(); }());
req.close();
req.end();
(function test_get_to_get_matcher() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('GET', '/get'); expect_callback(); req.addListener( 'response', function(res) { test.assertEquals(200, res.statusCode); test.assertEquals('text/html', res.headers['content-type']); assert_response(r...
req.close();
req.end();
(function test_get_to_get_string_matcher() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('GET', '/getstring'); expect_callback(); req.addListener( 'response', function(res) { test.assertEquals(200, res.statusCode); test.assertEquals('text/html', res.headers['content-type']); asse...
req.close();
req.end();
(function test_get_to_post_string_matcher() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('GET', '/poststring'); expect_callback(); req.addListener( 'response', function(res) { assert_not_found(res); }); req.close(); }());
req.close();
req.end();
(function test_get_to_put_string_matcher() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('GET', '/putstring'); expect_callback(); req.addListener( 'response', function(res) { assert_not_found(res); }); req.close(); }());
req.close();
req.end();
(function test_matched_request_string() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('GET', '/'); expect_callback(); req.addListener( 'response', function(res) { test.assertEquals(200, res.statusCode); test.assertEquals('text/html', res.headers['content-type']); assert_response(...
req.close();
req.end();
(function test_nonmatching_del_to_del_string_matcher() { var client = http.createClient(8000, '127.0.0.1'), req = client.request('DELETE', '/delstring2'); expect_callback(); req.addListener( 'response', function(res) { assert_not_found(res); }); req.close(); }());