rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
var newTD = this.columns.getColumnCell(this.columns.getByName(col),column + 1);
var colIndex = this.options.row.useHeaders ? column+1 : column; var newTD = this.columns.getColumnCell(this.columns.getByName(col),colIndex);
modelChanged : function (row, col) { //grab new TD var column = this.columns.getIndexFromGrid(col); var td = document.id(this.gridObj.childNodes[0].childNodes[0].childNodes[row].childNodes[column]); var currentRow = this.model.getPosition(); this.model.moveTo(row); var newT...
};
}
function move(node, destination) { node.insertAfter(destination); childrenOf(node).reverse().each(function() { move($(this), node[0]); }); };
var path = $('#move-collection-form input[name = path]').val();
var path = $('#move-collection-form select[name = path]').val();
function moveCollection(dialog) { var path = $('#move-collection-form input[name = path]').val(); var collection = $('#simple-search-form input[name = collection]').val(); var params = { action: 'move-collection', path: path, collection: collection }; $.get("operations.xql", params, function (data) { ...
n: function(event, dx, dy) { var o = this.options, cs = this.originalSize, sp = this.originalPosition; return { top: sp.top + dy, height: cs.height - dy }; },
a={},b,d;if(c&&c.length&&c[0]&&c[c[0]])for(var e=c.length;e--;){b=c[e];if(typeof c[b]=="string"){d=b.replace(/\-(\w)/g,function(g,h){return h.toUpperCase()});a[d]=c[b]}}else for(b in c)if(typeof c[b]==="string")a[b]=c[b];return a}function n(c){var a,b;for(a in c){b=c[a];if(b==null||f.isFunction(b)||a in r||/scrollbar/....
n: function(event, dx, dy) { var o = this.options, cs = this.originalSize, sp = this.originalPosition; return { top: sp.top + dy, height: cs.height - dy }; },
var pages = Math.floor(options.totalItems / options.itemsPerPage); for (var i = 0; i < pages; i++) { appendPageLink(div, (i * options.itemsPerPage + 1), (i * options.itemsPerPage + options.itemsPerPage));
var pages = Math.ceil(options.totalItems / options.itemsPerPage); var currentPage = Math.floor(currentItem / options.itemsPerPage); console.log("pages: " + pages + " currentPage: " + currentPage); var startPage = currentPage > 2 ? currentPage - 3 : 0; var endPage = 0; if (currentPage + 3 >= pages) endPage = pages - 1; ...
function navbar(targetDiv, currentItem) { var div; if (options.navContainer) { div = $(options.navContainer); } else { div = $('<div></div>'); targetDiv.append(div); } div.empty().addClass('pagination-links'); ...
if (pages % options.itemsPerPage > 0) { appendPageLink(div, pages * options.itemsPerPage + 1, pages * options.itemsPerPage + pages % options.itemsPerPage); }
function navbar(targetDiv, currentItem) { var div; if (options.navContainer) { div = $(options.navContainer); } else { div = $('<div></div>'); targetDiv.append(div); } div.empty().addClass('pagination-links'); ...
if (over != null && o3_timerid == 0) runHook("hideObject", FREPLACE, over);
if (over != null && (o3_compatmode ? 1 : o3_timerid == 0)) runHook("hideObject", FREPLACE, over);
function nd(time) { if (olLoaded && !isExclusive()) { hideDelay(time); // delay popup close if time specified if (o3_removecounter >= 1) { o3_showingsticky = 0 }; if (o3_showingsticky == 0) { o3_allowmove = 0; if (over != null && o3_timerid == 0) runHook("hideObject", FREPLACE, over); } else { o3_removecount...
var url = 'enter_bug.cgi?';
var f = document.createElement("form"); f.setAttribute("method", "post"); f.setAttribute("action", "enter_bug.cgi"); f.setAttribute("target", "_blank");
newbug = function(){ var bug_panel = new Ext.Panel({ id: 'new_bug_panel' }); var caserun_id; if (Ext.getCmp('caserun_grid') && Ext.getCmp('caserun_grid').getSelectionModel().getCount()) { caserun_id = Ext.getCmp('caserun_grid').getSelectionModel().getSelected().get(...
url = url + store.fields.keys[i] + '=' + escape(store.getAt(0).get(store.fields.keys[i])) + '&';
if (store.fields.keys[i] == 'comment'){ h = document.createElement("textarea"); h.setAttribute("name", store.fields.keys[i]); h.value = store.getAt(0).get(store.fields.keys[i]); } else { h = document.createElement("input"); h.setAttribute("name", store.fields.keys[i]); txt = store.getAt(0).get(store.fields.keys[i]).rep...
newbug = function(){ var bug_panel = new Ext.Panel({ id: 'new_bug_panel' }); var caserun_id; if (Ext.getCmp('caserun_grid') && Ext.getCmp('caserun_grid').getSelectionModel().getCount()) { caserun_id = Ext.getCmp('caserun_grid').getSelectionModel().getSelected().get(...
url = url + 'caserun_id=' + caserun_id; window.open(url);
h = document.createElement("input"); h.setAttribute("name", "caserun_id"); h.setAttribute("value", caserun_id); f.appendChild(h); document.body.appendChild(f); f.submit();
newbug = function(){ var bug_panel = new Ext.Panel({ id: 'new_bug_panel' }); var caserun_id; if (Ext.getCmp('caserun_grid') && Ext.getCmp('caserun_grid').getSelectionModel().getCount()) { caserun_id = Ext.getCmp('caserun_grid').getSelectionModel().getSelected().get(...
if (not_to_be_shown(this)) return;
newRow: function(book){ if (not_to_be_shown(this)) return; if ($("#my_table tr.nothing").length > 0) { myBooks.empty(); myBooks.render_header(); } $("#my_table_body tr:first").before("<tr id=" + book.key + "><td>" + myBooks.del_link(book) + "</td><td>" + book_link(book) + "</td><td>" + myBooks.borrower(book) + ...
$("#my_table_body tr:first").before("<tr id=" + book.key + "><td>" + myBooks.del_link(book) + "</td><td>" + book_link(book) +
$("#my_table_body tr:first").before("<tr id=" + book.key + "\" class=\""+ toggleOddEven() + "\"><td>" + myBooks.del_link(book) + "</td><td>" + book_link(book) +
newRow: function(book){ if (not_to_be_shown(this)) return; if ($("#my_table tr.nothing").length > 0) { myBooks.empty(); myBooks.render_header(); } $("#my_table_body tr:first").before("<tr id=" + book.key + "><td>" + myBooks.del_link(book) + "</td><td>" + book_link(book) + "</td><td>" + myBooks.borrower(book) + ...
d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previ...
(function($){var ver="2.86";if($.support==undefined){$.support={opacity:!($.browser.msie)};}function debug(s){if($.fn.cycle.debug){log(s);}}function log(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "));}}$.fn.cycle=function(options,arg2){var o={s:this.sele...
d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previ...
e.push(a);a=a[b]}return e},nth:function(a,b,d){b=b||1;for(var e=0;a;a=a[d])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var za=/ jQuery\d+="(?:\d+|null)"/g,$=/^\s+/,Aa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\...
g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,i){return i===0},last:function(g,i,n,m){ret...
e.push(a);a=a[b]}return e},nth:function(a,b,d){b=b||1;for(var e=0;a;a=a[d])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var za=/ jQuery\d+="(?:\d+|null)"/g,$=/^\s+/,Aa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\...
var txt;
function ol_content_background(text,picture,hasfullhtml) { if (hasfullhtml) { txt=text; } else { txt='<table width="'+o3_width+'" border="0" cellpadding="0" cellspacing="0" height="'+o3_height+'"><tr><td colspan="3" height="'+o3_padyt+'"></td></tr><tr><td width="'+o3_padxl+'"></td><td valign="TOP" width="'+(o3_width-...
if (!runHook("createPopup", FREPLACE, layerhtml)) return false;
if (!runHook("olCreatePopup", FREPLACE, layerhtml)) return false;
function olMain() { var layerhtml, styleType; runHook("olMain", FBEFORE); if (o3_background!="" || o3_fullhtml) { // Use background instead of box. layerhtml = runHook('ol_content_background', FALTERNATE, o3_css, o3_text, o3_background, o3_fullhtml); } else { // They want a popup box. styleType = (pms[o3_css-1-pmS...
cursor_ok();
function on_add(book){ myBooks.newRow(book); $("#my_table_body tr:first").css('background-color', '#D9FFCC'); if (!book_data['mybooks']) { book_data['mybooks'] = []; } book_data['mybooks'].push(book); book_data['own_count'] += 1; updateBookCount(book_data); $("#book_title").val(""); $("#b...
book_data['own_count'] += 1;
function on_add(book){ myBooks.newRow(book); $("#my_table_body tr:first").css('background-color', '#D9FFCC'); if (!book_data['mybooks']) { book_data['mybooks'] = []; } book_data['mybooks'].push(book); updateBookCount(book_data); $("#book_title").val(""); $("#book_author").val(""); $("#sug...
alert("oops. Action failed. Please retry");
if( xhr != null && (xhr.status === 400 || xhr.status === 412)) alert(xhr.responseText); else alert("oops. Action failed. Please retry");
function on_ajax_fail(xhr, desc, exceptionobj){ alert("oops. Action failed. Please retry");}
cursor_ok();
function on_ajax_fail(xhr, desc, exceptionobj){ if( xhr != null && (xhr.status === 400 || xhr.status === 412)) alert(xhr.responseText); else alert("oops. Action failed. Please retry");}
updateSharingGroupCheckboxes(getActiveGroup());
var groupId = getActiveGroup(); if(groupId){ updateSharingGroupCheckboxes(); }
onActivate: function (dtnode) { var title = dtnode.data.title; var key = dtnode.data.key; updateCollectionPaths(title, key); showHideCollectionWriteableControls(); showHideCollectionOwnerControls(); updateSharingGroupCheckboxes(getActiveGroup());...
updateSharingGroupCheckboxes();
updateSharingGroupCheckboxes(groupId);
onActivate: function (dtnode) { var title = dtnode.data.title; var key = dtnode.data.key; updateCollectionPaths(title, key); showHideCollectionWriteableControls(); showHideCollectionOwnerControls(); var groupId = getActiveGroup(); if(g...
jQuery.tabbedview.param('initialize', 1)
jQuery.tabbedview.param('initialize', 1);
onBeforeClick: function(e, index){ var tabbedview = jQuery.tabbedview; var current_tab_id = jq('.tabbedview-tabs li a').get(index).id; jQuery.tabbedview.param('initialize', 1) jQuery.tabbedview.spinner.show(); jQuery.tabbedview.selected_tab = index; ...
var current_tab_id = jq('.tabbedview-tabs li a').get(index).id;
var current_tab_id = jq('.tabbedview-tabs li a').get(index).id.split('tab-')[1];
onBeforeClick: function(e, index){ var tabbedview = jQuery.tabbedview; var current_tab_id = jq('.tabbedview-tabs li a').get(index).id; jQuery.tabbedview.param('initialize', 1); jQuery.tabbedview.spinner.show(); jQuery.tabbedview.selected_tab = index; ...
this.fireEvent('change', this); }
this.fireEvent('change', this); },
onChange: function () { this.fireEvent('change', this); }
tab.setActive(true);
if (tab.isActive()) { this.container.scrollIntoView(tab); } else { tab.setActive(true); }
onClick: function() { tab.setActive(true); }.bind(this)
onClick: function(){
onClick: function(e, index){
onClick: function(){ tabbedview.reload_view(); }
col.grid.resizeRowsCols("rows");
onComplete: function(el) { el.setStyle('left', null); //col.grid.resizeRowsCols("rows"); }
}})
}});
n2i.ani(this.element,'opacity',0,200,{onComplete:function() { self.element.setStyle({'display':'none'}); }})
col.grid.resizeRowsCols("rows");
onDrag: function(el) { var col = el.retrieve('col'); col.options.renderMode = 'fixed'; var w = el.getPosition(el.parentNode).x.toInt(); col.setWidth(w); col.grid...
col.grid.resizeRowsCols("rows");
onDrag: function(el) { var col = el.retrieve('col'); col.options.renderMode = 'fixed'; var w = el.getPosition(el.parentNode).x.toInt(); col.setWidth(w); },
var additionalParams = linkedDragEl.getAttribute('href') + '&defVals[tt_content][colPos]=' + colPos;
var additionalParams = linkedDragEl.getAttribute('href', 2) + '&defVals[tt_content][colPos]=' + colPos;
onDrop: function(dragSource, evt, data) { var linkedDragEl = Ext.get(dragSource.getEl()); var dropZoneEl = Ext.get(this.getEl()); if (linkedDragEl.hasClass('feEditAdvanced-contentTypeItem')) { // create a new record var previousContentElement = dropZoneEl.prev('.feEditAdvanced-allWrapper'); if (!previousConte...
editPanel.create(linkedDragEl.getAttribute('href'));
editPanel.create(linkedDragEl.getAttribute('href', 2));
onDrop: function(dragSource, evt, data) { var linkedDragEl = Ext.get(dragSource.getEl()); var dropZoneEl = Ext.get(this.getEl()); if (linkedDragEl.hasClass('feEditAdvanced-contentTypeItem')) { // create a new record var previousContentElement = dropZoneEl.prev('.feEditAdvanced-allWrapper'); if (!previousConte...
var additionalParams = linkedDragEl.getAttribute('href') + '&defVals[tt_content][colPos]=' + colPos;
var additionalParams = linkedDragEl.getAttribute('rel') + '&defVals[tt_content][colPos]=' + colPos;
onDrop: function(dragSource, evt, data) { var linkedDragEl = Ext.get(dragSource.getEl()); var dropZoneEl = Ext.get(this.getEl()); if (linkedDragEl.hasClass('feEditAdvanced-contentTypeItem')) { // create a new record var previousContentElement = dropZoneEl.prev('.feEditAdvanced-allWrapper'); if (!previousConte...
editPanel.create(linkedDragEl.getAttribute('href'));
editPanel.create(linkedDragEl.getAttribute('rel'));
onDrop: function(dragSource, evt, data) { var linkedDragEl = Ext.get(dragSource.getEl()); var dropZoneEl = Ext.get(this.getEl()); if (linkedDragEl.hasClass('feEditAdvanced-contentTypeItem')) { // create a new record var previousContentElement = dropZoneEl.prev('.feEditAdvanced-allWrapper'); if (!previousConte...
var additionalParams = linkedDragEl.getAttribute('href', 2);
var additionalParams = linkedDragEl.getAttribute('href');
onDrop: function(dragSource, evt, data) { var linkedDragEl = Ext.get(dragSource.getEl()); var dropZoneEl = Ext.get(this.getEl()); if (linkedDragEl.hasClass('feEditAdvanced-contentTypeItem')) { // create a new record var previousContentElement = dropZoneEl.prev('.feEditAdvanced-allWrapper'); if (!previousCon...
editPanel.create(linkedDragEl.getAttribute('href', 2));
editPanel.create(linkedDragEl.getAttribute('href'));
onDrop: function(dragSource, evt, data) { var linkedDragEl = Ext.get(dragSource.getEl()); var dropZoneEl = Ext.get(this.getEl()); if (linkedDragEl.hasClass('feEditAdvanced-contentTypeItem')) { // create a new record var previousContentElement = dropZoneEl.prev('.feEditAdvanced-allWrapper'); if (!previousCon...
moveAfter += '&TSFE_EDIT[colPos]=' + colPos;
onDrop: function(dragSource, evt, data) { var linkedDragEl = Ext.get(dragSource.getEl()); var dropZoneEl = Ext.get(this.getEl()); if (linkedDragEl.hasClass('feEditAdvanced-contentTypeItem')) { // create a new record var previousContentElement = dropZoneEl.prev('.feEditAdvanced-allWrapper'); if (!previousConte...
var additionalParams = linkedDragEl.getAttribute('href');
var additionalParams = linkedDragEl.getAttribute('href', 2);
onDrop: function(dragSource, evt, data) { var linkedDragEl = Ext.get(dragSource.getEl()); var dropZoneEl = Ext.get(this.getEl()); if (linkedDragEl.hasClass('feEditAdvanced-contentTypeItem')) { // create a new record var previousContentElement = dropZoneEl.prev('.feEditAdvanced-allWrapper'); if (!previousCon...
editPanel.create(linkedDragEl.getAttribute('href'));
editPanel.create(linkedDragEl.getAttribute('href', 2));
onDrop: function(dragSource, evt, data) { var linkedDragEl = Ext.get(dragSource.getEl()); var dropZoneEl = Ext.get(this.getEl()); if (linkedDragEl.hasClass('feEditAdvanced-contentTypeItem')) { // create a new record var previousContentElement = dropZoneEl.prev('.feEditAdvanced-allWrapper'); if (!previousCon...
var additionalParams = linkedDragEl.getAttribute('href', 2) + '&defVals[tt_content][colPos]=' + colPos;
var additionalParams = linkedDragEl.getAttribute('href') + '&defVals[tt_content][colPos]=' + colPos;
onDrop: function(dragSource, evt, data) { var linkedDragEl = Ext.get(dragSource.getEl()); var dropZoneEl = Ext.get(this.getEl()); if (linkedDragEl.hasClass('feEditAdvanced-contentTypeItem')) { // create a new record var previousContentElement = dropZoneEl.prev('.feEditAdvanced-allWrapper'); if (!previousConte...
editPanel.create(linkedDragEl.getAttribute('href', 2));
editPanel.create(linkedDragEl.getAttribute('href'));
onDrop: function(dragSource, evt, data) { var linkedDragEl = Ext.get(dragSource.getEl()); var dropZoneEl = Ext.get(this.getEl()); if (linkedDragEl.hasClass('feEditAdvanced-contentTypeItem')) { // create a new record var previousContentElement = dropZoneEl.prev('.feEditAdvanced-allWrapper'); if (!previousConte...
var additionalParams = linkedDragEl.getAttribute('href');
var additionalParams = linkedDragEl.getAttribute('rel');
onDrop: function(dragSource, evt, data) { var linkedDragEl = Ext.get(dragSource.getEl()); var dropZoneEl = Ext.get(this.getEl()); if (linkedDragEl.hasClass('feEditAdvanced-contentTypeItem')) { // create a new record var previousContentElement = dropZoneEl.prev('.feEditAdvanced-allWrapper'); if (!previousCon...
editPanel.create(linkedDragEl.getAttribute('href'));
editPanel.create(linkedDragEl.getAttribute('rel'));
onDrop: function(dragSource, evt, data) { var linkedDragEl = Ext.get(dragSource.getEl()); var dropZoneEl = Ext.get(this.getEl()); if (linkedDragEl.hasClass('feEditAdvanced-contentTypeItem')) { // create a new record var previousContentElement = dropZoneEl.prev('.feEditAdvanced-allWrapper'); if (!previousCon...
myparams.status = status;
onGridEdit: function(e){ var ds = this.store; var myparams = e.record.data; myparams.action = 'edit'; var manager; if (!myparams.manager.match('@')){ manager = myparams.manager; delete myparams.manager; } this.form.submit({ url: "tr_p...
if (myparams.build_id) {
if (myparams.category_id) {
onGridEdit: function(e){ var myparams = e.record.data; var ds = this.store; myparams.product_id = this.product_id; if (myparams.build_id) { myparams.action = "edit"; } else { myparams.action = "add"; } this.form.submit({ url: "...
window.open('http: 'DataSetChooserHelp');
window.open(Gemma.HOST + 'faculty/pavlidis/wiki/display/gemma/Dataset+chooser', 'DataSetChooserHelp');
onHelp : function() { window.open('http://www.chibi.ubc.ca/faculty/pavlidis/wiki/display/gemma/Dataset+chooser', 'DataSetChooserHelp'); }
"The meta-analysis can only use one factor per study. Experiments that have more" + " than one factor will be shown here (or view all experiments)." + " Click on the factor field to get a menu for choosing among multiple possibilities. Use the 'hinting' " + "button to choose the type of factor most useful to you, to sa...
"The meta-analysis can only use one factor per study. Experiments that have more" + " than one factor will be shown here (or view all experiments)." + " Click on the factor field to get a menu for choosing among multiple possibilities. Use the 'hinting' " + "button to choose the type of factor most useful to you, to sa...
onHelp : function() { Ext.Msg .alert( "Help for factor choose", "The meta-analysis can only use one factor per study. Experiments that have more" + " than one factor will be shown here (or view all experiments)." + " Click on the factor field to get a menu for choosing among multiple possib...
this.el.frame('e0e0e0');
onHover: function(dragSource, evt, data) { var dragEl = Ext.get(dragSource.getDragEl()); this.el.addClass('feEditAdvanced-dropzoneActive'); },
keys[e.which] = true;
keyState[e.which] = true;
window.onkeydown = function(e) { keys[e.which] = true; return unused[e.which]; }
if (key.used[e.which]) return false;
return key.unused[e.which];
window.onkeydown = function(e) { key.keys[e.which] = true; if (key.used[e.which]) return false;}
keys[e.which] = false;
keyState[e.which] = false;
window.onkeyup = function(e) { keys[e.which] = false; return unused[e.which]; }
if (key.used[e.which]) return false;
return key.unused[e.which];
window.onkeyup = function(e) { key.keys[e.which] = false; if (key.used[e.which]) return false;}
if ( !citethis.DEBUG) { var d1 = citethis.$('txtDebug'), d2 = citethis.$('hboxDebug'); if(d1) d1.style.display = 'none'; if(d2) d2.style.display = 'none'; }
onLoad: function() { try { // initialization code this.initialized = true; this.strings = document.getElementById("citethis-strings"); document.getElementById("contentAreaContextMenu").addEventListener("popupshowing", function(e){ this.showContextMenu(e); }, false); citethis.debug ( '1' ); citethis.s...
if(teltype == 'fax') continue; document.getElementById("sipgate_number").appendItem(sgffx.contacts[i].name + ' (' + teltype.toUpperCase() + ')', sgffx.contacts[i].tel[teltype]);
var type = teltype.toUpperCase().split(','); if(type.indexOf('FAX') !== -1) continue; type.forEach(function(singletype, index) { try { type[index] = sipgateffxstrings.getString('sipgateffxContact' + singletype); } catch(e) { type[index] = singletype; } }); document.getElementById("sipgate_number").appendItem(sgffx.cont...
onLoad: function() { try { // this is needed to generally allow usage of components in javascript netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); sgffx = Components.classes['@api.sipgate.net/sipgateffx;1'] .getService().wrappedJSObject; } catch (anError) { dump("ERROR: ...
sgffx.setXulObjectVisibility('sendfaxpdfmenuitem', 0);
onLoad: function(event) { // initialization code this.initialized = true; this.strings = document.getElementById("sipgateffx-strings"); sipgateffx_this = this; try { // this is needed to generally allow usage of components in javascript netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");...
},
}
onLoad: function() { try { // this is needed to generally allow usage of components in javascript netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); sgffx = Components.classes['@api.sipgate.net/sipgateffx;1'] .getService().wrappedJSObject; } catch (anError) { dump("ERROR: ...
if(!sgffx.contacts[i].tel || !sgffx.contacts[i].tel.cell) continue; document.getElementById("sipgate_fax_number").appendItem(sgffx.contacts[i].name, sgffx.contacts[i].tel.cell);
if(!sgffx.contacts[i].tel) continue; for(var teltype in sgffx.contacts[i].tel) { var type = teltype.toUpperCase().split(','); type.forEach(function(singletype, index) { try { type[index] = sipgateffxfaxstrings.getString('sipgateffxContact' + singletype); } catch(e) { type[index] = singletype; } }); document.getElementB...
onLoad: function() { try { // this is needed to generally allow usage of components in javascript netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); sgffx = Components.classes['@api.sipgate.net/sipgateffx;1'] .getService().wrappedJSObject; } catch (anError) { dump("ERROR: ...
this.tabMenu = document.getAnonymousElementByAttribute(getBrowser(), "anonid", "tabContextMenu");
this.tabMenu = getBrowser().tabContextMenu || document.getAnonymousElementByAttribute(getBrowser(), "anonid", "tabContextMenu");
onLoad: function() { // initialization code this.initialized = true; this.strings = document.getElementById("tabcloser-strings"); this.tabMenu = document.getAnonymousElementByAttribute(getBrowser(), "anonid", "tabContextMenu"); var self = this; this.tabMenu.addEventListener("popupshowing", function(...
if (this.hideTimer) { $clear(this.hideTimer); this.hideTimer = null;
if (this.hideTimer) { window.clearTimeout(this.hideTimer); this.hideTimer = null; } if (Jx.Menu.Menus[0] && Jx.Menu.Menus[0] != this) { this.show.delay(1,this); } else if (this.options.exposeOnHover) { if (Jx.Menu.Menus[0] && Jx.Menu.Menus[0] == this) { Jx.Menu.Menus[0] = null;
onMouseEnter: function(e) { if (this.hideTimer) { $clear(this.hideTimer); this.hideTimer = null; } if (Jx.Menu.Menus[0] && Jx.Menu.Menus[0] != this) { this.show.delay(1,this); } else if (this.options.exposeOnHover) { if (Jx.Menu.Menus[0] && Jx.Menu.M...
if (Jx.Menu.Menus[0] && Jx.Menu.Menus[0] != this) { this.show.delay(1,this); } else if (this.options.exposeOnHover) { if (Jx.Menu.Menus[0] && Jx.Menu.Menus[0] == this) { Jx.Menu.Menus[0] = null; } this.show.delay(1,this); }
this.show.delay(1,this); }
onMouseEnter: function(e) { if (this.hideTimer) { $clear(this.hideTimer); this.hideTimer = null; } if (Jx.Menu.Menus[0] && Jx.Menu.Menus[0] != this) { this.show.delay(1,this); } else if (this.options.exposeOnHover) { if (Jx.Menu.Menus[0] && Jx.Menu.M...
this.show({event:e});
this.show.delay(1,this);
onMouseEnter: function(e) { if (this.hideTimer) { $clear(this.hideTimer); this.hideTimer = null; } if (Jx.Menu.Menus[0] && Jx.Menu.Menus[0] != this) { this.show({event:e}); } else if (this.options.exposeOnHover) { if (Jx.Menu.Menus[0] && Jx.Menu.Menu...
function onMouseMove(ev) { var e = ev || window.event; if (e.pageX == null && e.clientX != null) { var de = document.documentElement, b = document.body; lastMousePos.pageX = e.clientX + (de && de.scrollLeft || b.scrollLeft || 0) - (de.clientLeft || 0); lastMousePos.pageY = e.clientY + (de && de.scrollTop || b.scrollTo...
function onMouseMove(e) {
function onMouseMove(ev) { // FIXME: temp. work-around until jQuery bug 4398 is fixed var e = ev || window.event; if (e.pageX == null && e.clientX != null) { var de = document.documentElement, b = document.body; lastMousePos.pageX = e.clientX + (de ...
triggerClickHoverEvent("plothover", lastMousePos,
triggerClickHoverEvent("plothover", e,
function onMouseMove(ev) { // FIXME: temp. work-around until jQuery bug 4398 is fixed var e = ev || window.event; if (e.pageX == null && e.clientX != null) { var de = document.documentElement, b = document.body; lastMousePos.pageX = e.clientX + (de ...
if (options.crosshair.mode != null) { if (!selection.active) { setPositionFromEvent(crosshair.pos, lastMousePos); triggerRedrawOverlay(); } else crosshair.pos.x = -1; } if (selection.active) { target.trigger("plotselecting", [ selectionIsSane() ? getSelectionForEvent() : null ]); updateSelection(lastMousePos); }
function onMouseMove(ev) { // FIXME: temp. work-around until jQuery bug 4398 is fixed var e = ev || window.event; if (e.pageX == null && e.clientX != null) { var de = document.documentElement, b = document.body; lastMousePos.pageX = e.clientX + (de ...
this.owner.setVisibleItem(this);
this.owner.setVisibleItem.delay(1, this.owner, this);
onMouseOver: function() { if (this.owner && this.owner.setVisibleItem) { this.owner.setVisibleItem(this); } },
onMouseOver: function() {
onMouseOver: function(e) { e.stop();
onMouseOver: function() { if (this.owner && this.owner.setVisibleItem) { this.owner.setVisibleItem.delay(1, this.owner, this); } },
this.owner.setVisibleItem.delay(1, this.owner, this);
this.owner.setVisibleItem(this);
onMouseOver: function() { if (this.owner && this.owner.setVisibleItem) { this.owner.setVisibleItem.delay(1, this.owner, this); } },
return false;
onMouseOver: function() { if (this.owner && this.owner.setVisibleItem) { this.owner.setVisibleItem.delay(1, this.owner, this); } },
$("#Dinner_Latitude").val(LatLong.Latitude.toString()); $("#Dinner_Longitude").val(LatLong.Longitude.toString());
$("#Latitude").val(LatLong.Latitude.toString()); $("#Longitude").val(LatLong.Longitude.toString());
NerdDinner.onMouseUp = function (e) { if (NerdDinner.dragShape != null) { var x = e.mapX; var y = e.mapY; NerdDinner.dragPixel = new VEPixel(x, y); var LatLong = NerdDinner._map.PixelToLatLong(NerdDinner.dragPixel); $("#Dinner_Latitude").val(LatLong.Latitude.toString()); $("...
if (readDataBlock == undefined) {
if (readDataBlock === undefined) {
onRead : function(request, response) { try { // Call readRecords() instead of read because read() will attempt to decode JSON to create an // Object, // but as this point DWR has already created an Object. readDataBlock = request.reader.readRecords(response); } catch (e) { return this.handl...
}
};
onRead : function(request, response) { try { // Call readRecords() instead of read because read() will attempt to decode JSON to create an // Object, // but as this point DWR has already created an Object. readDataBlock = request.reader.readRecords(response); } catch (e) { return this.handl...
var readDataBlock;
onRead : function(request, response) { var readDataBlock; try { // Call readRecords() instead of read because read() will attempt to decode JSON to create an // Object, // but as this point DWR has already created an Object. readDataBlock = request.reader.readRecords(response); } catch (e) {...
if (readDataBlock) { if (readDataBlock.success === false) { this.fireEvent("exception", this, 'remote', request.action, request.options, response, null); } else { this.fireEvent("load", this, request, request.options);
if (readDataBlock == undefined) { readDataBlock = { success : true, data : []
onRead : function(request, response) { var readDataBlock; try { // Call readRecords() instead of read because read() will attempt to decode JSON to create an // Object, // but as this point DWR has already created an Object. readDataBlock = request.reader.readRecords(response); } catch (e) {...
if (readDataBlock.success === false) { this.fireEvent("exception", this, 'remote', request.action, request.options, response, null); } else { this.fireEvent("load", this, request, request.options); }
onRead : function(request, response) { var readDataBlock; try { // Call readRecords() instead of read because read() will attempt to decode JSON to create an // Object, // but as this point DWR has already created an Object. readDataBlock = request.reader.readRecords(response); } catch (e) {...
if (readDataBlock.success === false) { this.fireEvent("exception", this, 'remote', request.action, request.options, response, null); } else { this.fireEvent("load", this, request, request.options);
if (readDataBlock) { if (readDataBlock.success === false) { this.fireEvent("exception", this, 'remote', request.action, request.options, response, null); } else { this.fireEvent("load", this, request, request.options); }
onRead : function(request, response) { var readDataBlock; try { // Call readRecords() instead of read because read() will attempt to decode JSON to create an // Object, // but as this point DWR has already created an Object. readDataBlock = request.reader.readRecords(response); } catch (e) {...
msg : 'Loading'
msg : 'Loading ...'
onRender : function(ct, position) { Gemma.DatasetChooserPanel.superclass.onRender.call(this, ct, position); var admin = dwr.util.getValue("hasAdmin"); /** * Plain grid for displaying datasets in the current set. Editable. */ this.eeSetMembersGrid = new Gemma.ExpressionExperimentGrid({ isAdm...
var w = new Gemma.ExperimentalFactorAddWindow();
var w = new Gemma.ExperimentalFactorAddWindow({ store : this.store });
onRender : function(c, l) { Gemma.ExperimentalFactorToolbar.superclass.onRender.call(this, c, l); this.createButton = new Ext.Toolbar.Button({ text : "Add new", tooltip : "Add a new experimental factor to the design", disabled : false, handler : function() { var w = new Gemma.Exp...
this[variableName] = response; console.log(variableName + ' is set to: ' + response);
localSettings[variableName] = response; console.log('localSettings.' + variableName + ' is set to: ' + response);
var onResponse = function (response) { if (response != null) { this[variableName] = response; console.log(variableName + ' is set to: ' + response); } else { console.log(variableName + ' not found in localStorage! ' + response); } }
console.log(variableName + ' not found in localStorage! ' + response); }
console.log('localSettings.' + variableName + ' not found in localStorage! ' + response); }
var onResponse = function (response) { if (response != null) { this[variableName] = response; console.log(variableName + ' is set to: ' + response); } else { console.log(variableName + ' not found in localStorage! ' + response); } }
this.setGene(record.data);
this.setGeneGroup(record.data);
onSelect : function(record, index) { Gemma.GeneGroupCombo.superclass.onSelect.call(this, record, index); if (!this.selectedGeneGroup || record.data.id != this.selectedGeneGroup.id) { this.setGene(record.data); this.fireEvent('select', this, this.selectedGeneGroup); } },
console.log(slider);
,onSliderClick:function(event) { var slider = $('#' + event.data.instance.slider); console.log(slider); var x = event.pageX; var y = event.pageY; var x_offset = x - ...
var readyState = this.transport.readyState;
var readyState = this.xhr.readyState;
onStateChange: function() { var readyState = this.transport.readyState; if (readyState==4) this.respondToReadyState(readyState); },
this.respondToReadyState(readyState);
{ try { this.respondToReadyState(readyState); } finally { this.cleanup(); } }
onStateChange: function() { var readyState = this.transport.readyState; if (readyState==4) this.respondToReadyState(readyState); },
$$('.authentication h1')[0].innerHTML=values.title;
n2i.dom.setNodeText($$('.authentication h1')[0],values.title);
onSuccess : function() { $$('.authentication h1')[0].innerHTML=values.title; self.win.hide(); }
window[callback_finished_function()];
var json; try { json=response.responseText.evalJSON(true); } catch(error) { json=null; } window[callback_finished_function(json)];
onSuccess: function(response) { if (200 == response.status) { try { if (Object.isUndefined(response.responseText) || response.responseText===null) throw -1; var json=response.responseText.evalJSON(true); if (!Object.isUndefined(json._ajax_nonce) && json._ajax_nonce!==null && json._ajax_nonce.length) ...
sgffx.setPref("extensions.sipgateffx.defaultExtension", true, "bool");
sgffx.setPref("extensions.sipgateffx.systemTeam", true, "bool");
onUnload: function(){ var relogin = false; if (document.getElementById("parsenumbers").value) { sgffx.setXulObjectVisibility('dialactivate', 0); } else { sgffx.setXulObjectVisibility('dialactivate', 1); } if(document.getElementById("dontshowbalance").value) { ...
sgffx.setPref("extensions.sipgateffx.defaultExtension", false, "bool");
sgffx.setPref("extensions.sipgateffx.systemTeam", false, "bool");
onUnload: function(){ var relogin = false; if (document.getElementById("parsenumbers").value) { sgffx.setXulObjectVisibility('dialactivate', 0); } else { sgffx.setXulObjectVisibility('dialactivate', 1); } if(document.getElementById("dontshowbalance").value) { ...
'sendfaxpdfmenuitem',
onUnload: function() { sgffx.log('unload overlay'); var allElements = [ 'showcreditmenuitem', 'pollbalance', 'showvoicemailmenuitem', 'showphonebookmenuitem', 'showsmsformmenuitem', 'showphonenumberformmenuitem', 'showhistorymenuitem', 'showfaxmenuitem', 'showitemizedmenuitem', 'dialactivate', ...
console.log(result);
onValidated : function(result) { // console.log(result); if (result.valid) { /* * Show some kind of summary - how many rows etc, any mismatches with probes. */ Ext.Msg.alert("Your data look valid", "Your data matrix had " + result.numRows + " rows, " + result.numColumns + " columns, "...
var summary = "";
var summary = "Problems: ";
onValidated : function(result) { // console.log(result); if (result.valid) { /* * Show some kind of summary - how many rows etc, any mismatches with probes. */ Ext.Msg.alert("Your data look valid", "Your data matrix had " + result.numRows + " rows, " + result.numColumns + " columns, "...
if (readDataBlock == undefined) {
if (readDataBlock === undefined) {
onWrite : function(request, response) { var readDataBlock; try { readDataBlock = request.reader.readResponse(request.action, response); } catch (e) { return this.handleResponseException(request, response, e); } if (readDataBlock == undefined) { readDataBlock = { success : true, d...
}
};
onWrite : function(request, response) { var readDataBlock; try { readDataBlock = request.reader.readResponse(request.action, response); } catch (e) { return this.handleResponseException(request, response, e); } if (readDataBlock == undefined) { readDataBlock = { success : true, d...
if (readDataBlock.success === false) {
if (readDataBlock == undefined) { readDataBlock = { success : true, data : [] } } if (readDataBlock && readDataBlock.success === false) {
onWrite : function(request, response) { var readDataBlock; try { readDataBlock = request.reader.readResponse(request.action, response); } catch (e) { return this.handleResponseException(request, response, e); } if (readDataBlock.success === false) { this.fireEvent("exception", this, 'remot...
imce.vars.op && $('input:first', imce.ops[imce.vars.op].div).focus();
if (imce.vars.op) { var $inputs = $('input', imce.ops[imce.vars.op].div); $inputs.eq(0).focus(); $('html').is('.ie') && $inputs.addClass('dummyie').removeClass('dummyie'); }
opClick: function(name) { var Op = imce.ops[name], oldop = imce.vars.op; if (!Op || Op.disabled) { return imce.setMessage(Drupal.t('You can not perform this operation.'), 'error'); } if (Op.div) { if (oldop) { var toggle = oldop == name; imce.opShrink(oldop, toggle ? 'slideUp' : 'hide'); if (to...
} if(!this.contentIsLoaded && this.options.loadOnDemand) { this.loadContent(this.content);
open: function() { if (!this.isOpening) { this.isOpening = true; } if (this.contentIsLoaded) { this.removeEvent('contentLoaded', this.openOnLoaded); this.show(); this.fireEvent('open', this); this.isOpening = false; } else { ...
this.log("Database file does not exist."); var manager = Components.classes["@mozilla.org/extensions/manager;1"]; if(manager) { manager = manager.getService(Components.interfaces.nsIExtensionManager); var defaultFile = manager.getInstallLocation('sipgateffx@michael.rotmanov').getItemLocatio n('sipgateffx@michael.rotma...
this.createDatabase(file); file.permissions = 420; _sgffxStorage.getBlacklistedSites();
openDatabase: function() { if(this._conn !== null) { return; } try { var file = Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).get("ProfD", Components.interfaces.nsIFile); file.append("sipgateffx.sqlite"); if(!file.exists()) { this.log("Da...
setTimeout(function(){$('#bsignin').click()},1000);
setTimeout(function(){$('#bsignin').click();},1000);
$.fn.openid = function() { var $this = $(this); //name input value - needed for name based OpenID var $usr = $this.find('input[name=openid_username]'); //final url input value var $id = $this.find('input[name=openid_url]'); //beginning and end of name OpenID url (name being the middle) var $front = $this.find('p...
var conid = attrs['attr_'+attnum];
var conid = attrs['attr_'+attnum][0];
function openlist(e) { var elt = jQuery(e); var attnum = elt.attr('id').match(/\d+/)[0]; var conid = attrs['attr_'+attnum]; var constr = constrs["constr_" + conid]; // get the changed attribute position in the arrays for (i=0; (constr.pattnums[i] != attnum);i++); var datas = { fattpos: i, fvalue: e.value, database...
this.setBusy();
openURL: function(url) { if (url) { this.options.contentURL = url; this.options.content = null; //force Url loading this.loadContent(this.content); this.addEvent('contentLoaded', this.openOnLoaded); } else { this.open(); } },