rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
Ext.MessageBox.alert(i18n._('Warning'), String.format(i18n._("Import successful. Imported file contains {0} valid records and {1} invalid records."), validRecords, invalidRecords)); | Ext.MessageBox.alert(i18n._('Import successful'), String.format(i18n._("Imported file contains {0} valid records and {1} invalid records."), validRecords, invalidRecords)); | onImport : function (importMode, importedRows) { this.stopEditing(); this.removePagination(function() { var invalidRecords=0; if(importedRows == null) { importedRows=[]; } var records=[]; for (var i = 0; i < importedRows.length; i++... |
if(importedRows == null) { importedRows=[]; } var records=[]; for (var i = 0; i < importedRows.length; i++) { var record= new Ext.data.Record(importedRows[i]); record.set("id", this.genAddedId()); records.push(record); } if(importMode=='replace' ) { this.deleteAllRecords(function() { this.getStore().insert(0, records.r... | this.removePagination(function() { var invalidRecords=0; if(importedRows == null) { importedRows=[]; | onImport : function (importMode, importedRows) { this.stopEditing(); if(importedRows == null) { importedRows=[]; } var records=[]; for (var i = 0; i < importedRows.length; i++) { var record= new Ext.data.Record(importedRows[i]); record.set("id", th... |
this.updateChangedDataOnImport(records); } | var records=[]; for (var i = 0; i < importedRows.length; i++) { try { var record= new Ext.data.Record(importedRows[i]); if(record.data["javaClass"] == this.recordJavaClass) { record.set("id", this.genAddedId()); records.push(record); } else { invalidRecords++; } } catch(e) { invalidRecords++; } } var validRecords=recor... | onImport : function (importMode, importedRows) { this.stopEditing(); if(importedRows == null) { importedRows=[]; } var records=[]; for (var i = 0; i < importedRows.length; i++) { var record= new Ext.data.Record(importedRows[i]); record.set("id", th... |
if(selected>-1)selected--; | if(selected>-1) setSelected(selected-1); | obj.onkeydown=function(event){ switch(wicketKeyCode(Wicket.fixEvent(event))){ case KEY_UP: if(selected>-1)selected--; if(selected==-1){ hideAutoComplete(); } else { render(); } ... |
render(); | render(true); | obj.onkeydown=function(event){ switch(wicketKeyCode(Wicket.fixEvent(event))){ case KEY_UP: if(selected>-1)selected--; if(selected==-1){ hideAutoComplete(); } else { render(); } ... |
if(selected<elementCount-1) selected++; | if(selected<elementCount-1){ setSelected(selected+1); } | obj.onkeydown=function(event){ switch(wicketKeyCode(Wicket.fixEvent(event))){ case KEY_UP: if(selected>-1)selected--; if(selected==-1){ hideAutoComplete(); } else { render(); } ... |
if(value = handleSelection(value)) { | value = handleSelection(value); hideAutoComplete(); hidingAutocomplete = 1; if(value) { | obj.onkeydown=function(event){ switch(wicketKeyCode(Wicket.fixEvent(event))){ case KEY_UP: if(selected>-1)selected--; if(selected==-1){ hideAutoComplete(); } else { render(); } ... |
hideAutoComplete(); hidingAutocomplete = 1; | obj.onkeydown=function(event){ switch(wicketKeyCode(Wicket.fixEvent(event))){ case KEY_UP: if(selected>-1)selected--; if(selected==-1){ hideAutoComplete(); } else { render(); } ... | |
mouseactive=0; if(typeof objonkeydown=="function")objonkeydown.apply(this,[event]); if(selected>-1){ } return true; | mouseactive = 0; if (typeof objonkeydown=="function") objonkeydown.apply(this,[event]); return true; | obj.onkeydown=function(event){ switch(wicketKeyCode(Wicket.fixEvent(event))){ case KEY_UP: if(selected>-1)selected--; if(selected==-1){ hideAutoComplete(); } else { render(); } ... |
if (e.charCode > 0) $toolkit.command.undo.undoable = false; | if (e.charCode > 0) $toolkit.command.undo.undoable = 0; | onKeyPress: function(e) { // We cannot undo if the user makes changes to the buffer if (typeof ($toolkit.command.undo) === 'object') if (e.charCode > 0) $toolkit.command.undo.undoable = false; if ($self.dispatcher.commands.length) $self.dispatcher.process($self.dispatcher.event2key(e, true), e); }, |
return null; | obj.onkeyup=function(event){ switch(wicketKeyCode(Wicket.fixEvent(event))){ case KEY_TAB: case KEY_ENTER: return killEvent(event); case KEY_UP: case KEY_DOWN: case KEY_ESC: case KEY_RIGHT: ... | |
} | }, | onload: function(obj) { if (!obj || !obj.series || !obj.series.length) { return; } var x = 0; var step = obj.series.length; var markings = obj.options && obj.options.grid && obj.options.grid.markings ? obj.options.... |
this.renderLoadPanel(); | for(var i = 0 ; i < this.pipes.length ; i++) { this.pipesByName[ this.pipes[i].name] = this.pipes[i]; } | onLoadSuccess: function(wirings) { this.pipes = wirings; this.pipesByName = {}; this.renderLoadPanel(); this.updateLoadPanelList(); if(!this.afterFirstRun) { var p = window.location.search.substr(1).split('&'); var oP = {}; for(var i = 0 ; i < p.length ; i++) { var v = p[i].split('='); ... |
if(!this.afterFirstRun) { var p = window.location.search.substr(1).split('&'); var oP = {}; for(var i = 0 ; i < p.length ; i++) { var v = p[i].split('='); oP[v[0]]=window.decodeURIComponent(v[1]); } this.afterFirstRun = true; if(oP.autoload) { this.loadPipe(oP.autoload); return; } } this.loadPanel.show(); }, | if(!this.checkAutoLoad()) { this.loadPanel.show(); } }, | onLoadSuccess: function(wirings) { this.pipes = wirings; this.pipesByName = {}; this.renderLoadPanel(); this.updateLoadPanelList(); if(!this.afterFirstRun) { var p = window.location.search.substr(1).split('&'); var oP = {}; for(var i = 0 ; i < p.length ; i++) { var v = p[i].split('='); ... |
WireIt.ComposableWiringEditor.superclass.onLoadSuccess.call(this,wirings); | this.pipes = wirings; this.pipesByName = {}; | onLoadSuccess: function(wirings) { WireIt.ComposableWiringEditor.superclass.onLoadSuccess.call(this,wirings); // Customize to display composed module in the left list this.updateComposedModuleList(); }, |
this.updateLoadPanelList(); if(!this.checkAutoLoad()) { this.loadPanel.show(); } | onLoadSuccess: function(wirings) { WireIt.ComposableWiringEditor.superclass.onLoadSuccess.call(this,wirings); // Customize to display composed module in the left list this.updateComposedModuleList(); }, | |
onOpen: function(){}, | onOpen: function(){} | onOpen: function(){}, |
$("#showchangesets").toggleClass('disabled', false); $("#zoomout").toggleClass('disabled', false); $("#exportcsv").toggleClass('disabled', false); | $('#showchangesets').toggleClass('disabled', false); $('#zoomout').toggleClass('disabled', false); $('#exportcsv').toggleClass('disabled', false); | function onPlotSelect(e, ranges) { selStart = ranges.xaxis.from; selEnd = ranges.xaxis.to; unlockTooltip(); hideTooltip(true); updatePlot(); $("#showchangesets").toggleClass('disabled', false); $("#zoomout").toggleClass('disabled', false); $("#expor... |
TiDev.setConsoleMessage('Packaging failed. Error: ' + json.message, 5000); | xhr.onreadystatechange = function() { // 4 means that the POST has completed if (this.readyState == 4) { destDir.deleteDirectory(true); if (this.status == 200) { var json = swiss.evalJSON(this.responseText); if (json.success == false) { TiDev.setConsoleMessage('Packaging failed. Error: ' + json.m... | |
alert('Packaging failed. Error: ' + json.message); TiDev.resetConsole(); | xhr.onreadystatechange = function() { // 4 means that the POST has completed if (this.readyState == 4) { destDir.deleteDirectory(true); if (this.status == 200) { var json = swiss.evalJSON(this.responseText); if (json.success == false) { TiDev.setConsoleMessage('Packaging failed. Error: ' + json.m... | |
TiDev.setConsoleMessage('Packaging failed. HTTP status: ' + this.status, 5000); | xhr.onreadystatechange = function() { // 4 means that the POST has completed if (this.readyState == 4) { destDir.deleteDirectory(true); if (this.status == 200) { var json = swiss.evalJSON(this.responseText); if (json.success == false) { TiDev.setConsoleMessage('Packaging failed. Error: ' + json.m... | |
alert('Packaging failed. HTTP status: ' + this.status); TiDev.resetConsole(); | xhr.onreadystatechange = function() { // 4 means that the POST has completed if (this.readyState == 4) { destDir.deleteDirectory(true); if (this.status == 200) { var json = swiss.evalJSON(this.responseText); if (json.success == false) { TiDev.setConsoleMessage('Packaging failed. Error: ' + json.m... | |
$('#zoomin').toggleClass('disabled', true); $('#showchangesets').toggleClass('disabled', true); $('#exportcsv').toggleClass('disabled', true); | function onRemove(e) { e.preventDefault(); var id = e.target.id; allSeries[id] = {}; $('#' + id).remove(); $('#displayrange').toggleClass('disabled', true); $('#datatype').toggleClass('disabled', true); $('#link').toggleClass('disabled', true); $('#embed').... | |
$("#"+id).remove(); | $('#' + id).remove(); | function onRemove(e) { var id = e.target.id; allSeries[id] = {}; $("#"+id).remove(); $("#displayrange").toggleClass('disabled', true); $("#datatype").toggleClass('disabled', true); $("#link").toggleClass('disabled', true); $("#embed").toggleClass('disabled', true)... |
$("#displayrange").toggleClass('disabled', true); $("#datatype").toggleClass('disabled', true); $("#link").toggleClass('disabled', true); $("#embed").toggleClass('disabled', true); | $('#displayrange').toggleClass('disabled', true); $('#datatype').toggleClass('disabled', true); $('#link').toggleClass('disabled', true); $('#embed').toggleClass('disabled', true); | function onRemove(e) { var id = e.target.id; allSeries[id] = {}; $("#"+id).remove(); $("#displayrange").toggleClass('disabled', true); $("#datatype").toggleClass('disabled', true); $("#link").toggleClass('disabled', true); $("#embed").toggleClass('disabled', true)... |
this.iconUp = this.imagePath + (this.iconUp || 'up2.gif'); | onRender: function(ct, position){ Ext.ux.ItemSelector.superclass.onRender.call(this, ct, position); this.fromMultiselect = new Ext.ux.Multiselect({ legend: this.fromLegend, delimiter: this.delimiter, allowDup: this.allowDup, copy: this.allowDup, allowTrash: this.allowDup, dragGroup: this.readOnly ? nu... | |
this.initSubCmps.defer(1, this, true); | this.initSubCmps.defer(1, this); | onRender : function(container, position) { // call superclass renderer first Ung.SpamAssassin.superclass.onRender.call(this, container, position); this.initSubCmps.defer(1, this, true); this.enableSuperSpam(Ext.getCmp('spamassassin_smtpAction')); }, |
this.iconUp = this.imagePath + (this.iconUp || 'up2.gif'); | onRender: function(ct, position){ Ext.ux.ItemSelector.superclass.onRender.call(this, ct, position); this.fromMultiselect = new Ext.ux.Multiselect({ legend: this.fromLegend, delimiter: this.delimiter, allowDup: this.allowDup, copy: this.allowDup, allowTrash: this.allowDup, dragGroup: this.readOnly ? nu... | |
WireIt.sn(this.bodyEl, null, {width: (size[0]-10)+"px", height: (size[1]-44)+"px"}); | WireIt.sn(this.bodyEl, null, {width: (size[0]-14)+"px", height: (size[1]-44)+"px"}); | onResize: function(event, args) { var size = args[0]; WireIt.sn(this.bodyEl, null, {width: (size[0]-10)+"px", height: (size[1]-44)+"px"}); }, |
true); | true, function(evt) { openlayers_behavior_popup_popup_select.unselect( openlayers_behavior_popup_selected_feature ); } ); | onSelect: function(feature) { popup = new OpenLayers.Popup.FramedCloud( 'popup', feature.geometry.getBounds().getCenterLonLat(), null, openlayers_behavior_popup_popup_content(feature), null, true); ... |
openlayers_behavior_popup_selected_feature = feature; | onSelect: function(feature) { popup = new OpenLayers.Popup.FramedCloud( 'popup', feature.geometry.getBounds().getCenterLonLat(), null, openlayers_behavior_popup_popup_content(feature), null, true); ... | |
TYPO3.Newsletter.Store.Statistic.fireEvent('TYPO3.Newsletter.Store.Statistic.beforeload', this.getValue()); | TYPO3.Newsletter.Store.Statistic.fireEvent('TYPO3.Newsletter.Store.Statistic.load', this.getValue()); | onselect: function() { TYPO3.Newsletter.Store.Statistic.fireEvent('TYPO3.Newsletter.Store.Statistic.beforeload', this.getValue()); } |
TYPO3.Newsletter.Store.Statistic.fireEvent('TYPO3.Newsletter.Store.Statistic.load', this.getValue()); | TYPO3.Newsletter.Store.Statistic.fireEvent('TYPO3.Newsletter.Store.Statistic.beforeload', this.getValue()); | onselect: function() { TYPO3.Newsletter.Store.Statistic.fireEvent('TYPO3.Newsletter.Store.Statistic.load', this.getValue()); } |
},0)});$("thead th",oSettings.nTable).mousedown(function(){this.onselectstart=function(){return false };return false})}if(oSettings.oFeatures.bAutoWidth){oSettings.nTable.style.width=oSettings.nTable.offsetWidth+"px" | }else{$(oSettings.aoColumns[i].nTh).addClass(oSettings.oClasses.sSortableNone)}}$("thead:eq(0) th",oSettings.nTable).mousedown(function(e){if(e.shiftKey){this.onselectstart=function(){return false };return false}})}var nTfoot=oSettings.nTable.getElementsByTagName("tfoot");if(nTfoot.length!==0){iCorrector=0; | },0)});$("thead th",oSettings.nTable).mousedown(function(){this.onselectstart=function(){return false};return false})}if(oSettings.oFeatures.bAutoWidth){oSettings.nTable.style.width=oSettings.nTable.offsetWidth+"px" |
$(".show, .hide, #"+id).toggleClass('hidden', !allSeries[id].visible); | $('.show, .hide, #' + id).toggleClass('hidden', !allSeries[id].visible); | function onShow(e) { var id = e.target.id; allSeries[id].visible = !allSeries[id].visible; $(".show, .hide, #"+id).toggleClass('hidden', !allSeries[id].visible); unlockTooltip(); hideTooltip(); updatePlot(); e.preventDefault(); } |
window.open("http: | var url = 'http: window.open(url + '?startdate=' + startDate + '&enddate=' + endDate); | function onShowChangesets(e) { var startDate = new Date(selStart); var endDate = new Date(selEnd); window.open("http://hg.mozilla.org/mozilla-central/pushloghtml?startdate="+startDate+"&enddate="+endDate); e.preventDefault(); } |
var announcementBody = $("announcementbox-body"); announcementBody.insert({ top: transport.responseText }); | if(transport.responseText.match(/\S/)!=null) { var announcementBody = $("announcementbox-body"); announcementBody.insert({ top: transport.responseText }); var announcementBoxes = $$(".announcementbox"); if(announcementBoxes.length!=0) announcementBoxes[0].show(); } | onSuccess: function(transport) { var announcementBody = $("announcementbox-body"); announcementBody.insert({ top: transport.responseText }); } |
setShouldShowFloater(floater) | setShouldShowFloater(floater); | function onToggleFloaterClick(ev){ var floater = ev.target.checked; setShouldShowFloater(floater)} |
open: function(e){ var self = this; if( this._trigger("open") === false || this.button.hasClass('ui-state-disabled') || this._isOpen ){ return; } if(!this.options.autoOpen){ $('button.ui-multiselect.ui-state-active').not(this.button).each(function(){ $(this).data('selectelement').multiselect('close'); }); } var ... | open: function(){}, | open: function(e){ var self = this; // bail if the multiselectopen event returns false, this widget is disabled, or is already open if( this._trigger("open") === false || this.button.hasClass('ui-state-disabled') || this._isOpen ){ return; } // close other open widgets, unless they're set to autoOpen. cal... |
this.$labels.filter('label:first').trigger('mouseenter').trigger('focus'); | this.$labels.first().trigger('mouseover').find('input').trigger('focus'); | open: function(){ // bail if this widget is disabled if( this.$button.hasClass('ui-state-disabled') || this._isOpen ){ return; } this.close("others"); // use position() if inside ui-widget-content, because offset() won't cut it. var self = this, $container = this.$menu.find('ul:last'), o = this.options... |
.width( self.width-parseInt(self.$menu.css('padding-left'),10)-parseInt(self.$menu.css('padding-right'),10)-parseInt(self.$button.css('padding-left'),10) ) | .width( self.width-parseInt(self.$menu.css('padding-left'),10)-parseInt(self.$menu.css('padding-right'),10)-2 ) | open: function(){ // bail if this widget is disabled if( this.$button.hasClass('ui-state-disabled') || this._isOpen ){ return; } this.close("others"); // use position() if inside ui-widget-content, because offset() won't cut it. var self = this, $container = this.$menu.find('ul:last'), o = this.options... |
.css({ top:0, left:0 }) | open: function(){ // bail if this widget is disabled if( this.button.hasClass('ui-state-disabled') || this._isOpen ){ return; } // allow multiple selects to be open if autoOpen is true, i suppose. if(!this.options.autoOpen){ this.close('others'); } // use position() if inside ui-widget-content, becaus... | |
.position({ my:"left top", at:"left bottom", of:self.menu.prev() }) | .position({ my:"left top", at:"left bottom", of:self.button }) | open: function(){ // bail if this widget is disabled if( this.button.hasClass('ui-state-disabled') || this._isOpen ){ return; } // allow multiple selects to be open if autoOpen is true, i suppose. if(!this.options.autoOpen){ this.close('others'); } // use position() if inside ui-widget-content, becaus... |
this.$labels.first().trigger('mouseover').find('input').trigger('focus'); | this.$labels.first().trigger('mouseover').trigger('mouseenter').find('input').trigger('focus'); | open: function(){ // bail if this widget is disabled if( this.$button.hasClass('ui-state-disabled') || this._isOpen ){ return; } this.close("others"); // use position() if inside ui-widget-content, because offset() won't cut it. var self = this, $container = this.$menu.find('ul:last'), o = this.options... |
this.button.addClass('ui-state-active'); | open: function(e){ var self = this; // bail if the multiselectopen event returns false, this widget is disabled, or is already open if( this._trigger('beforeopen') === false || this.button.hasClass('ui-state-disabled') || this._isOpen ){ return; } // close other instances $(":ech-multiselect").not(this.ele... | |
$container.scrollTop(0).height(o.height); | open: function(e){ var self = this; // bail if the multiselectopen event returns false, this widget is disabled, or is already open if( this._trigger('beforeopen') === false || this.button.hasClass('ui-state-disabled') || this._isOpen ){ return; } // close other instances $(":ech-multiselect").not(this.ele... | |
this.button.addClass('ui-state-active'); | open: function(e){ var self = this; // bail if the multiselectopen event returns false, this widget is disabled, or is already open if( this._trigger('beforeopen') === false || this.button.hasClass('ui-state-disabled') || this._isOpen ){ return; } // close other instances $(":ech-multiselect").not(this.ele... | |
$container.scrollTop(0).height(o.height); | open: function(e){ var self = this; // bail if the multiselectopen event returns false, this widget is disabled, or is already open if( this._trigger('beforeopen') === false || this.button.hasClass('ui-state-disabled') || this._isOpen ){ return; } // close other instances $(":ech-multiselect").not(this.ele... | |
speed = this.speed; | speed = this.speed, pos = this.button.position(); | open: function(e){ // bail if the multiselectopen event returns false, this widget is disabled, or is already open if( this._trigger("open") === false || this.button.hasClass('ui-state-disabled') || this._isOpen ){ return; } // close other open widgets, unless they're set to autoOpen. calling close() autom... |
if(!effect.length){ this.menu.css({ top:0, left:0 }); } this.menu.show(effect, speed).position({ my:"left top", at:"left bottom", of:self.button }); | this.menu.css({ top: pos.top+this.button.outerHeight(), left: pos.left }).show(effect, speed); | open: function(e){ // bail if the multiselectopen event returns false, this widget is disabled, or is already open if( this._trigger("open") === false || this.button.hasClass('ui-state-disabled') || this._isOpen ){ return; } // close other open widgets, unless they're set to autoOpen. calling close() autom... |
if (map.image_path.substr(map.image_path.length - 1) !== '/') { map.image_path = map.image_path + '/'; } if (map.image_path.indexOf(': OpenLayers.ImgPath = map.image_path; } else { OpenLayers.ImgPath = Drupal.settings.basePath + map.image_path; } | OpenLayers.ImgPath = relate_path(map.image_path, Drupal.settings.basePath); | Drupal.behaviors.openlayers = function(context) { if (typeof(Drupal.settings.openlayers) === 'object' && Drupal.settings.openlayers.maps && !$(context).data('openlayers')) { $('.openlayers-map:not(.openlayers-processed)').each(function() { $(this).addClass('openlayers-processed'); var map_id = $(this).att... |
if (map.css_path.indexOf(': options.theme = map.css_path; } else { options.theme = Drupal.settings.basePath + map.css_path; } | options.theme = relate_path(map.css_path, Drupal.settings.basePath); | Drupal.behaviors.openlayers = function(context) { if (typeof(Drupal.settings.openlayers) === 'object' && Drupal.settings.openlayers.maps && !$(context).data('openlayers')) { $('.openlayers-map:not(.openlayers-processed)').each(function() { $(this).addClass('openlayers-processed'); var map_id = $(this).att... |
console.log($("#openlayers-center-helpmap")[0].outerHTML.slice(0, 200)); | Drupal.behaviors.openlayers = function(context) { if (typeof(Drupal.settings.openlayers) === 'object' && Drupal.settings.openlayers.maps && !$(context).data('openlayers')) { $('.openlayers-map:not(.openlayers-processed)').each(function() { $(this).addClass('openlayers-processed'); var map_id = $(this).att... | |
OpenLayers.Lang.setCode($('html').attr('lang')); | Drupal.behaviors.openlayers = function(context) { if (typeof(Drupal.settings.openlayers) === 'object' && Drupal.settings.openlayers.maps && !$(context).data('openlayers')) { $('.openlayers-map:not(.openlayers-processed)').each(function() { $(this).addClass('openlayers-processed'); var map_id = $(this).att... | |
if (Drupal.settings.openlayers.maps[map_id]) { OpenLayers.Lang.setCode($('html').attr('lang')); var map = Drupal.settings.openlayers.maps[map_id]; $(this) .css('width', map.width) .css('height', map.height); if (map.options) { var options = map.options; options.projection = new OpenLayers.Projection('EPSG:' + ma... | if (Drupal.settings.openlayers.maps[map_id]) { OpenLayers.Lang.setCode($('html').attr('lang')); var map = Drupal.settings.openlayers.maps[map_id]; $(this) .css('width', map.width) .css('height', map.height); if (map.options) { var options = map.options; options.projection = new OpenLayers.Projection('EPSG:' + ma... | Drupal.behaviors.openlayers = function(context) { if (typeof(Drupal.settings.openlayers) === 'object' && Drupal.settings.openlayers.maps && !$(context).data('openlayers')) { $('.openlayers-map:not(.openlayers-processed)').each(function() { $(this).addClass('openlayers-processed'); var map_id = $(this).att... |
var options = {}; options.projection = new OpenLayers.Projection('EPSG:' + map.projection); options.displayProjection = new OpenLayers.Projection('EPSG:' + map.displayProjection); if (map.projection === '900913') { options.maxExtent = new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34); } if (... | $(this).text('Error during map rendering: ' + e); | Drupal.behaviors.openlayers = function(context) { if (typeof(Drupal.settings.openlayers) === 'object' && Drupal.settings.openlayers.maps && !$(context).data('openlayers')) { $('.openlayers-map:not(.openlayers-processed)').each(function() { $(this).addClass('openlayers-processed'); var map_id = $(this).att... |
if (map.options) { var options = map.options; options.projection = new OpenLayers.Projection('EPSG:' + map.projection); options.displayProjection = new OpenLayers.Projection('EPSG:' + map.displayProjection); options.maxExtent = new OpenLayers.Bounds.fromArray(map.options.maxExtent); options.controls = []; | var options = {}; options.projection = new OpenLayers.Projection('EPSG:' + map.projection); options.displayProjection = new OpenLayers.Projection('EPSG:' + map.displayProjection); if (map.projection === '900913') { options.maxExtent = new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34); | Drupal.behaviors.openlayers = function(context) { if (typeof(Drupal.settings.openlayers) === 'object' && Drupal.settings.openlayers.maps && !$(context).data('openlayers')) { $('.openlayers-map:not(.openlayers-processed)').each(function() { $(this).addClass('openlayers-processed'); var map_id = $(this).att... |
else { var options = {}; options.projection = new OpenLayers.Projection('EPSG:' + map.projection); options.displayProjection = new OpenLayers.Projection('EPSG:' + map.displayProjection); if (map.projection === '900913') { options.maxExtent = new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34);... | if (map.projection === '4326') { options.maxExtent = new OpenLayers.Bounds(-180, -90, 180, 90); | Drupal.behaviors.openlayers = function(context) { if (typeof(Drupal.settings.openlayers) === 'object' && Drupal.settings.openlayers.maps && !$(context).data('openlayers')) { $('.openlayers-map:not(.openlayers-processed)').each(function() { $(this).addClass('openlayers-processed'); var map_id = $(this).att... |
options.maxResolution = 1.40625; options.controls = []; | Drupal.behaviors.openlayers = function(context) { if (typeof(Drupal.settings.openlayers) === 'object' && Drupal.settings.openlayers.maps && !$(context).data('openlayers')) { $('.openlayers-map:not(.openlayers-processed)').each(function() { $(this).addClass('openlayers-processed'); var map_id = $(this).att... | |
if (typeof console == 'undefined') { | if (typeof console != 'undefined') { | Drupal.behaviors.openlayers = function(context) { if (typeof(Drupal.settings.openlayers) === 'object' && Drupal.settings.openlayers.maps && !$(context).data('openlayers')) { $('.openlayers-map:not(.openlayers-processed)').each(function() { $(this).addClass('openlayers-processed'); var map_id = $(this).att... |
console.log($("#openlayers-center-helpmap")[0].outerHTML.slice(0, 200)); | Drupal.behaviors.openlayers = function(context) { if (typeof(Drupal.settings.openlayers) === 'object' && Drupal.settings.openlayers.maps && !$(context).data('openlayers')) { $('.openlayers-map:not(.openlayers-processed)').each(function() { $(this).addClass('openlayers-processed'); var map_id = $(this).att... | |
var mcontrol = new OpenLayers.Control.ModifyFeature(data_layer); data.openlayers.addControl(mcontrol); | var mcontrol = new OpenLayers.Control.ModifyFeature( data_layer, { displayClass: 'olControlModifyFeature', deleteCodes: [46, 68, 100], handleKeypress: function(evt){ if (this.feature && $.inArray(evt.keyCode, this.deleteCodes) > -1) { this.selectControl.unselectAll(); this.layer.removeFeatures([this.feature]); } } } )... | Drupal.behaviors.openlayers_behavior_drawfeatures = function(context) { var data = $(context).data('openlayers'); if (data && data.map.behaviors['openlayers_behavior_drawfeatures']) { var feature_types = data.map.behaviors['openlayers_behavior_drawfeatures'].feature_types; // Add control openlayers_dra... |
this.layer.removeFeatures([this.feature]); | this.layer.removeFeatures([feature_to_delete]); | Drupal.behaviors.openlayers_behavior_drawfeatures = function(context) { var data = $(context).data('openlayers'); if (data && data.map.behaviors['openlayers_behavior_drawfeatures']) { var feature_types = data.map.behaviors['openlayers_behavior_drawfeatures'].feature_types; // Add control openlayers_dra... |
WktWriter = new OpenLayers.Format.WKT(); while (features.type == 'featureadded' && this.feature_limit && (this.feature_limit < features.object.features.length)) { features.feature.layer.removeFeatures(features.object.features.shift()); | var features_copy = features.object.clone(); for(var i in features_copy.features) { features_copy.features[i].geometry.transform( features.object.map.projection, new OpenLayers.Projection("EPSG:4326") ); } this.element.val(WktWriter.write(features_copy.features)); | function openlayers_behavior_drawfeatures_update(features) { WktWriter = new OpenLayers.Format.WKT(); while (features.type == 'featureadded' && this.feature_limit && (this.feature_limit < features.object.features.length)) { features.feature.layer.removeFeatures(features.object.features.shift()); }... |
var features_copy = features.object.clone(); for(var i in features_copy.features) { features_copy.features[i].geometry.transform( features.object.map.projection, new OpenLayers.Projection("EPSG:4326") ); } this.element.val(WktWriter.write(features_copy.features)); } | function openlayers_behavior_drawfeatures_update(features) { WktWriter = new OpenLayers.Format.WKT(); while (features.type == 'featureadded' && this.feature_limit && (this.feature_limit < features.object.features.length)) { features.feature.layer.removeFeatures(features.object.features.shift()); }... | |
$(this.map.div).data('openlayers').openlayers.updateSize(); | openlayers_behavior_fullscreen_toggle = function(context) { $(this.map.div).parent().toggleClass('openlayers_map_fullscreen'); $(this.map.div).toggleClass('openlayers_map_fullscreen');} | |
$(this.map.div).parent().toggleClass('openlayers_map_fullscreen'); extent = $(this.map.div).data('openlayers').openlayers.getExtent(); $(this.map.div).toggleClass('openlayers_map_fullscreen'); $(this.map.div).data('openlayers').openlayers.updateSize(); $(this.map.div).data('openlayers').openlayers.zoomToExtent(extent, ... | $map = $(this.map.div); extent = $map.data('openlayers').openlayers.getExtent(); $map.parent().toggleClass('openlayers_map_fullscreen'); $map.toggleClass('openlayers_map_fullscreen'); $map.data('openlayers').openlayers.updateSize(); $map.data('openlayers').openlayers.zoomToExtent(extent, true); | openlayers_behavior_fullscreen_toggle = function(context) { $(this.map.div).parent().toggleClass('openlayers_map_fullscreen'); extent = $(this.map.div).data('openlayers').openlayers.getExtent(); $(this.map.div).toggleClass('openlayers_map_fullscreen'); $(this.map.div).data('openlayers').openlayers.updateSize(); $(... |
data.openlayers.setCenter(new OpenLayers.LonLat.fromString(center_point)); | data.openlayers.setCenter( OpenLayers.LonLat.fromString(center_point).transform( new OpenLayers.Projection('EPSG:4326'), data.openlayers.projection) ); | Drupal.behaviors.openlayers_behavior_mapformvalues = function(context) { var data = $(context).data('openlayers'); function updateForm(evt) { center = evt.object.getCenter().transform( evt.object.projection, new OpenLayers.Projection('EPSG:4326')).toShortString(); zoom = evt.object.getZoom(); $('#... |
true); | true, function(evt) { openlayers_behavior_popup_popup_select.unselect( openlayers_behavior_popup_selected_feature ); } ); | Drupal.behaviors.openlayers_behavior_popup = function(context) { var layers, data = $(context).data('openlayers'); if (data && data.map.behaviors['openlayers_behavior_popup']) { map = data.openlayers; // TODO: just select layers you want, instead of all vector layers layers = map.getLayersByClass('Open... |
openlayers_behavior_popup_popup_select = popup_select; | Drupal.behaviors.openlayers_behavior_popup = function(context) { var layers, data = $(context).data('openlayers'); if (data && data.map.behaviors['openlayers_behavior_popup']) { map = data.openlayers; // TODO: just select layers you want, instead of all vector layers layers = map.getLayersByClass('Open... | |
eventListeners: { "featureadded": update, "featureremoved": update, "featuremodified": update } | projection: new OpenLayers.Projection('EPSG:4326') | Drupal.behaviors.openlayers_cck_drawfeature = function(context) { var data = $(context).data('openlayers'); if (data && data.map.behaviors['openlayers_cck_drawfeature']) { // Add control openlayers_cck_drawfeature_wkt_field = $("#"+data.map.behaviors['openlayers_cck_drawfeature'].wkt_field_id); var dat... |
data.openlayers.addLayer(data_layer); | if (openlayers_cck_drawfeature_wkt_field.text() != '') { var wktFormat = new OpenLayers.Format.WKT(); wkt = openlayers_cck_drawfeature_wkt_field.text(); features = wktFormat.read(wkt); for(var i in features) { features[i].geometry = features[i].geometry.transform( new OpenLayers.Projection('EPSG:4326'), data.openlayers... | Drupal.behaviors.openlayers_cck_drawfeature = function(context) { var data = $(context).data('openlayers'); if (data && data.map.behaviors['openlayers_cck_drawfeature']) { // Add control openlayers_cck_drawfeature_wkt_field = $("#"+data.map.behaviors['openlayers_cck_drawfeature'].wkt_field_id); var dat... |
control.activate(); | Drupal.behaviors.openlayers_cck_drawfeature = function(context) { var data = $(context).data('openlayers'); if (data && data.map.behaviors['openlayers_cck_drawfeature']) { // Add control openlayers_cck_drawfeature_wkt_field = $("#"+data.map.behaviors['openlayers_cck_drawfeature'].wkt_field_id); var dat... | |
control.activate(); | Drupal.behaviors.openlayers_cck_drawfeature = function(context) { var data = $(context).data('openlayers'); if (data && data.map.behaviors['openlayers_cck_drawfeature']) { // Add control openlayers_cck_drawfeature_wkt_field = $("#"+data.map.behaviors['openlayers_cck_drawfeature'].wkt_field_id); var dat... | |
control.activate(); | Drupal.behaviors.openlayers_cck_drawfeature = function(context) { var data = $(context).data('openlayers'); if (data && data.map.behaviors['openlayers_cck_drawfeature']) { // Add control openlayers_cck_drawfeature_wkt_field = $("#"+data.map.behaviors['openlayers_cck_drawfeature'].wkt_field_id); var dat... | |
var r; | var c = []; | Drupal.behaviors.openlayers_cck_drawfeature = function(context) { var data = $(context).data('openlayers'); if (data && data.map.behaviors['openlayers_cck_drawfeature']) { // Add control openlayers_cck_drawfeature_wkt_field = $("#"+data.map.behaviors['openlayers_cck_drawfeature'].wkt_field_id); var dat... |
r = true; | Drupal.behaviors.openlayers_cck_drawfeature = function(context) { var data = $(context).data('openlayers'); if (data && data.map.behaviors['openlayers_cck_drawfeature']) { // Add control openlayers_cck_drawfeature_wkt_field = $("#"+data.map.behaviors['openlayers_cck_drawfeature'].wkt_field_id); var dat... | |
r = false; | c.push(control.controls[i]); | Drupal.behaviors.openlayers_cck_drawfeature = function(context) { var data = $(context).data('openlayers'); if (data && data.map.behaviors['openlayers_cck_drawfeature']) { // Add control openlayers_cck_drawfeature_wkt_field = $("#"+data.map.behaviors['openlayers_cck_drawfeature'].wkt_field_id); var dat... |
} if(r == true) { control.controls.splice(i, i); | else { c.push(control.controls[i]); } | Drupal.behaviors.openlayers_cck_drawfeature = function(context) { var data = $(context).data('openlayers'); if (data && data.map.behaviors['openlayers_cck_drawfeature']) { // Add control openlayers_cck_drawfeature_wkt_field = $("#"+data.map.behaviors['openlayers_cck_drawfeature'].wkt_field_id); var dat... |
control.controls = c; | Drupal.behaviors.openlayers_cck_drawfeature = function(context) { var data = $(context).data('openlayers'); if (data && data.map.behaviors['openlayers_cck_drawfeature']) { // Add control openlayers_cck_drawfeature_wkt_field = $("#"+data.map.behaviors['openlayers_cck_drawfeature'].wkt_field_id); var dat... | |
$thisField = $(this); | var $thisField = $(this); | Drupal.behaviors.openlayers_cck_wkt_hide = function(context) { // Hide WKT field and allow to toggle visibility. if (typeof Drupal.settings.openlayers_cck.wkt_hide != 'undefined') { var textShow = Drupal.settings.openlayers_cck.wkt_hide.text_show; var textHide = Drupal.settings.openlayers_cck.wkt_hide.text_hide... |
$thisField.before('<a href="" id="' + field + '-toggle" class="openlayers-cck-hide-link">' + textShow + '</a>') | var link = $('<a href="" id="' + field + '-toggle" class="openlayers-cck-hide-link">' + textShow + '</a>') .data('fieldID', fieldID); $thisField.before(link) | Drupal.behaviors.openlayers_cck_wkt_hide = function(context) { // Hide WKT field and allow to toggle visibility. if (typeof Drupal.settings.openlayers_cck.wkt_hide != 'undefined') { var textShow = Drupal.settings.openlayers_cck.wkt_hide.text_show; var textHide = Drupal.settings.openlayers_cck.wkt_hide.text_hide... |
$(fieldID).slideDown(); $(this).text(textHide); | var $thisLink = $(this); var localFieldID = $thisLink.data('fieldID'); $(localFieldID).slideDown(); $thisLink.text(textHide); | Drupal.behaviors.openlayers_cck_wkt_hide = function(context) { // Hide WKT field and allow to toggle visibility. if (typeof Drupal.settings.openlayers_cck.wkt_hide != 'undefined') { var textShow = Drupal.settings.openlayers_cck.wkt_hide.text_show; var textHide = Drupal.settings.openlayers_cck.wkt_hide.text_hide... |
$(fieldID).slideUp(); $(this).text(textShow); | var $thisLink = $(this); var localFieldID = $thisLink.data('fieldID'); $(localFieldID).slideUp(); $thisLink.text(textShow); | Drupal.behaviors.openlayers_cck_wkt_hide = function(context) { // Hide WKT field and allow to toggle visibility. if (typeof Drupal.settings.openlayers_cck.wkt_hide != 'undefined') { var textShow = Drupal.settings.openlayers_cck.wkt_hide.text_show; var textHide = Drupal.settings.openlayers_cck.wkt_hide.text_hide... |
options.options.drupalID = options.drupalID; | Drupal.openlayers.layer.openlayers_raw = function(title, map, options) { options.options = options.options || {} // Note, so that we do not pass all the features along to the Layer // options, we use the options.options to give to Layer // options.options.drupalID = options.drupalID; var layer = new OpenLayers.Lay... | |
options.options = options.options || {} | options.options = options.options || {}; | Drupal.openlayers.layer.openlayers_raw = function(title, map, options) { options.options = options.options || {} // Note, so that we do not pass all the features along to the Layer // options, we use the options.options to give to Layer options.options.drupalID = options.drupalID; var layer = new OpenLayers.Layer.... |
$('.openlayers-dependency-flag').each(function() { if (!function_exists($(this).find('.openlayers-dependency-value').text())) { $(this).find('.openlayers-dependency-broken').show(); } }); | Drupal.behaviors.openlayers_ui = function(context) { // Panels $("ul#openlayers-panel-links li a:not(.openlayers-ui-processed)").each(function() { $(this).addClass('openlayers-ui-processed'); $(this).click(function() { $(".openlayers-panel-active").removeClass('openlayers-panel-active'); var panel = $... | |
console.log($("#openlayers-center-helpmap")[0].outerHTML.slice(0, 200)); | Drupal.behaviors.openlayers_ui = function(context) { // Panels $("ul#openlayers-panel-links li a:not(.openlayers-ui-processed)").each(function() { $(this).addClass('openlayers-ui-processed'); $(this).click(function() { $(".openlayers-panel-active").removeClass('openlayers-panel-active'); var panel = $... | |
var styleMap = Drupal.openlayers.getStyleMap(map, options.name); options.projection = new OpenLayers.Projection('EPSG:'+options.projection); options.options.styleMap = Drupal.openlayers.getStyleMap(map, options.name); var layer = new OpenLayers.Layer.Vector(name, options.options); if (options.features) { Drupal.openlay... | options.projection = new OpenLayers.Projection('EPSG:'+options.projection); options.options.styleMap = Drupal.openlayers.getStyleMap(map, name); var layer = new OpenLayers.Layer.Vector(name, options.options); if (options.features) { Drupal.openlayers.addFeatures(map, layer, options.features); } return layer; | Drupal.openlayers.layer.openlayers_views_vector = function (name, map, options) { var styleMap = Drupal.openlayers.getStyleMap(map, options.name); options.projection = new OpenLayers.Projection('EPSG:'+options.projection); options.options.styleMap = Drupal.openlayers.getStyleMap(map, options.name); var layer ... |
if (layers[i].features !== undefined && layers[i].features.length > 1) { | if (layers[i].features !== undefined) { | Drupal.behaviors.openlayers_zoomtolayer = function(context) { var layerextent, layers, data = $(context).data('openlayers'); if (data && data.map.behaviors['openlayers_behavior_zoomtolayer']) { map = data.openlayers; // TODO: just select layers you want, instead of all vector layers layers = map.getLayersByN... |
map.zoomToExtent(layerextent); } else { layerextent = layers[i].getDataExtent(); if (layerextent !== undefined) { map.zoomToExtent(layerextent); | map.zoomToExtent(layerextent.transform(new OpenLayers.Projection('EPSG:4326'), map.projection)); if (layerextent.getWidth == 0.0) { | Drupal.behaviors.openlayers_zoomtolayer = function(context) { var layerextent, layers, data = $(context).data('openlayers'); if (data && data.map.behaviors['openlayers_behavior_zoomtolayer']) { map = data.openlayers; // TODO: just select layers you want, instead of all vector layers layers = map.getLayersByN... |
} | Drupal.behaviors.openlayers_zoomtolayer = function(context) { var layerextent, layers, data = $(context).data('openlayers'); if (data && data.map.behaviors['openlayers_behavior_zoomtolayer']) { map = data.openlayers; // TODO: just select layers you want, instead of all vector layers layers = map.getLayersByN... | |
map.zoomToExtent(layerextent.transform(new OpenLayers.Projection('EPSG:4326'), map.projection)); if (layerextent.getWidth == 0.0) { | map.zoomToExtent(layerextent); if (layerextent.getWidth() == 0.0) { | Drupal.behaviors.openlayers_zoomtolayer = function(context) { var layerextent, layers, data = $(context).data('openlayers'); if (data && data.map.behaviors['openlayers_behavior_zoomtolayer']) { map = data.openlayers; // TODO: just select layers you want, instead of all vector layers layers = map.getLayersByN... |
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... | if(opts.trigger[0]=='hoverIntent'){var hoverOpts=jQuery.extend(opts.hoverIntentOpts,{over:function(){this.btOn();},out:function(){this.btOff();}});$(this).hoverIntent(hoverOpts);} | 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... |
BiwaScheme.debug($H({maken_p: args_for_p}).inspect()); | var p = function(args_for_p){ var values = [].concat(args_for_p[0]).concat(children_values) var parent_n = parent_cd._make_n(values, rtd); BiwaScheme.debug($H({maken_p: args_for_p}).inspect()); return new BiwaScheme.Call(parent_cd.protocol, [parent_n], function(ar){ ... | |
BiwaScheme.debug($H({maken2_ar: ar}).inspect()); | var p = function(args_for_p){ var values = [].concat(args_for_p[0]).concat(children_values) var parent_n = parent_cd._make_n(values, rtd); BiwaScheme.debug($H({maken_p: args_for_p}).inspect()); return new BiwaScheme.Call(parent_cd.protocol, [parent_n], function(ar){ ... | |
var f,t,max,range,oldf,oldt; max = plot.getData()[0].data.length; | var f,t,min,max,range,oldf,oldt; max = overview.getXAxes()[0].max; min = overview.getXAxes()[0].min; | expPlot.panLeft = function() { var f,t,max,range,oldf,oldt; max = plot.getData()[0].data.length; if (overview.getSelection() != null) { range = Math.floor(overview.getSelection().xaxis.to - overview.getSelection().xaxis.from); oldf = overview.getSel... |
f = Math.max(oldf - 3, 0); | f = Math.max(oldf - 3, min); | expPlot.panLeft = function() { var f,t,max,range,oldf,oldt; max = plot.getData()[0].data.length; if (overview.getSelection() != null) { range = Math.floor(overview.getSelection().xaxis.to - overview.getSelection().xaxis.from); oldf = overview.getSel... |
max = plot.getData()[0].data.length; | max = overview.getXAxes()[0].max; | expPlot.panRight = function() { var f,t,max,range,oldf,oldt; max = plot.getData()[0].data.length; if (overview.getSelection() != null) { range = Math.floor(overview.getSelection().xaxis.to - overview.getSelection().xaxis.from); oldf = overview.getSe... |
c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.d... | true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,i,n){return!!k(n[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type},radio:... | c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.