rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
}
};
var sendAjax = function(tagname, reason, action, callback){ url = scriptUrl; if (action == 'add'){ url += $.i18n._('mark-tag/'); if (reason == 'good'){ url += $.i18n._('interesting/'); } else { url += $.i18n._('ignored/'); ...
};
}
function serializeChildren(table_id, parent, serialed, cur_child_string) { serialed.push(table_id+"["+cur_level+"]"+cur_child_string+"[id]="+parent[0].id); var kids = $(parent).nextAll("tr.child-of-" + parent[0].id); cur_child_string += "[children]"; if(kids.length > 0) { var kid_level = 0; k...
this.set_article_path = function () {
function set_article_path(e) {
this.set_article_path = function () { var subj = document.getElementById("subject").value; var path = subj.toLowerCase(); if (document.getElementById("short_path").value) return true; path = path.replace(/\W+/g, " "); path = path.replace(/^ */, ""); path = path.replace(/ *$/, ""); path = path.replace(/\W+/g, "_...
this.button.setActive(active);
if (this.button) { this.button.setActive(active); }
setActive: function(active) { this.button.setActive(active); },
this.log("setActive");
setActive: function(activeItem) { this.log("setActive"); $(this.selectedLi).removeClass(this.css.liActive); this.selectedLi = activeItem; $(this.selectedLi).addClass(this.css.liActive); },
this.activeButton.domA.removeEvent('click', this.clickHandler);
this.activeButton.domA.removeEvent('click', this.bound.click);
setActiveButton: function(button) { if (this.activeButton) { this.activeButton.domA.dispose(); this.activeButton.domA.removeEvent('click', this.clickHandler); } if (button && button.domA) { this.domObj.grab(button.domA, 'top'); this.domA = button.domA...
this.domA.addEvent('click', this.clickHandler);
this.domA.addEvent('click', this.bound.click);
setActiveButton: function(button) { if (this.activeButton) { this.activeButton.domA.dispose(); this.activeButton.domA.removeEvent('click', this.clickHandler); } if (button && button.domA) { this.domObj.grab(button.domA, 'top'); this.domA = button.domA...
alert(exception.msg); return;
adminLogout();
function setAlbumCoverResponse(cover, exception) { if (exception) { alert(exception.msg); return; } document.getElementById('albumCoverDiv').innerHTML = "<table id='albumCover' style='width:200px;' border='0' cellspacing='0' cellpadding='1'></table>"; var table = document.getElementById('album...
if (onSuccessFn) onSuccessFn(r.getResult().Result);
if (onSuccessFn) onSuccessFn(r.Result);
setContainsItem: function(id, item, onSuccessFn, onErrorFn) { this.gateway.getFromService('SetContainsItem', { Id: id || null, Item: item || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Result); }, onErrorFn || RedisClient.errorFn); },
this.log(newSelectWidth + " : " + inputWidth + " : " + buttonWidth + " : " + (newSelectWidth - listWrapBP));
setDimensions: function() { // console.time("1"); this.wrapper.addClass(this.css.hidden); if(this.selectIsWrapped) { //unwrap this.wrapper.before(this.selectbox); } // console.timeEnd("1"); // console.time("2"); //get dimensions un-wrapped, in case of % width etc. this.originalSelectboxWidth = this.selectbox...
this.wrapper.removeClass(this.css.hidden);
setDimensions: function() { // console.time("1"); this.wrapper.addClass(this.css.hidden); if(this.selectIsWrapped && (!this.options.manualWidth || this.options.unwrapForCSS)) { // unwrap this.wrapper.before(this.selectbox); this.selectIsWrapped = false; } // console.timeEnd("1"); // console.time("2"); //mat...
var buttonWidth = this.button.outerWidth(); var inputBP = this.input.outerWidth() - this.input.width();
var buttonWidth = this.button.outerWidth(true); var wrapperBP = this.wrapper.outerWidth() - this.wrapper.width(); var inputBP = this.input.outerWidth(true) - this.input.width(); var listScrollBP = this.listScroll.outerWidth() - this.listScroll.width();
setDimensions: function() { // console.time("1"); this.wrapper.addClass(this.css.hidden); if(this.selectIsWrapped && (!this.options.manualWidth || this.options.unwrapForCSS)) { // unwrap this.wrapper.before(this.selectbox); this.selectIsWrapped = false; } // console.timeEnd("1"); // console.time("2"); //mat...
var listWrapBP = this.listWrapper.outerWidth() - this.listWrapper.width();
setDimensions: function() { // console.time("1"); this.wrapper.addClass(this.css.hidden); if(this.selectIsWrapped && (!this.options.manualWidth || this.options.unwrapForCSS)) { // unwrap this.wrapper.before(this.selectbox); this.selectIsWrapped = false; } // console.timeEnd("1"); // console.time("2"); //mat...
this.listWrapper.width(newSelectWidth - listWrapBP); this.listScroll.width(newSelectWidth - listWrapBP);
this.listWrapper.width(newSelectWidth + wrapperBP); this.listScroll.width(newSelectWidth + wrapperBP - listScrollBP);
setDimensions: function() { // console.time("1"); this.wrapper.addClass(this.css.hidden); if(this.selectIsWrapped && (!this.options.manualWidth || this.options.unwrapForCSS)) { // unwrap this.wrapper.before(this.selectbox); this.selectIsWrapped = false; } // console.timeEnd("1"); // console.time("2"); //mat...
console.log(newSelectWidth + " : " + inputWidth + " : " + buttonWidth + " : " + listScrollBP); this.listWrapper.addClass(this.css.hidden);
setDimensions: function() { // console.time("1"); this.wrapper.addClass(this.css.hidden); if(this.selectIsWrapped && (!this.options.manualWidth || this.options.unwrapForCSS)) { // unwrap this.wrapper.before(this.selectbox); this.selectIsWrapped = false; } // console.timeEnd("1"); // console.time("2"); //mat...
if(this.selectIsWrapped) {
if(this.selectIsWrapped && (!this.options.manualWidth || this.options.unwrapForCSS)) {
setDimensions: function() { // console.time("1"); this.wrapper.addClass(this.css.hidden); if(this.selectIsWrapped) { //unwrap this.wrapper.before(this.selectbox); } // console.timeEnd("1"); // console.time("2"); //get dimensions un-wrapped, in case of % width etc. this.originalSelectboxWidth = this.selectbox...
this.originalSelectboxWidth = this.selectbox.outerWidth();
var newSelectWidth; if(this.options.manualWidth) { newSelectWidth = this.options.manualWidth; } else { newSelectWidth = this.selectbox.outerWidth(); if (newSelectWidth < this.options.minWidth) { newSelectWidth = this.options.minWidth; } else if (this.options.maxWidth && (newSelectWidth > this.options.maxWidth) ) { newS...
setDimensions: function() { // console.time("1"); this.wrapper.addClass(this.css.hidden); if(this.selectIsWrapped) { //unwrap this.wrapper.before(this.selectbox); } // console.timeEnd("1"); // console.time("2"); //get dimensions un-wrapped, in case of % width etc. this.originalSelectboxWidth = this.selectbox...
this.wrapper.get(0).appendChild(this.selectbox.get(0));
if(!this.selectIsWrapped) { this.wrapper.get(0).appendChild(this.selectbox.get(0)); this.selectIsWrapped = true; } this.wrapper.removeClass(this.css.hidden);
setDimensions: function() { // console.time("1"); this.wrapper.addClass(this.css.hidden); if(this.selectIsWrapped) { //unwrap this.wrapper.before(this.selectbox); } // console.timeEnd("1"); // console.time("2"); //get dimensions un-wrapped, in case of % width etc. this.originalSelectboxWidth = this.selectbox...
this.wrapper.removeClass(this.css.hidden); this.selectIsWrapped = true; var newSelectWidth = this.originalSelectboxWidth; if(this.options.manualWidth) { newSelectWidth = this.options.manualWidth; } else if (newSelectWidth < this.options.minWidth) { newSelectWidth = this.options.minWidth; } else if (this.options.maxWi...
setDimensions: function() { // console.time("1"); this.wrapper.addClass(this.css.hidden); if(this.selectIsWrapped) { //unwrap this.wrapper.before(this.selectbox); } // console.timeEnd("1"); // console.time("2"); //get dimensions un-wrapped, in case of % width etc. this.originalSelectboxWidth = this.selectbox...
var limitType = Jx.type(this.options.limit);
var limitType = this.options.limit != null ? Jx.type(this.options.limit) : false;
setDragLimit : function(reference) { if($defined(reference)) this.options.limit = reference; // check drag limit if it is an container or string for an element and use dimensions var limitType = Jx.type(this.options.limit); if(this.options.limit && limitType != 'object') { var coord...
return this.button.setEnabled(enabled);
return this.button ? this.button.setEnabled(enabled) : this.options.enable;
setEnabled: function(enabled) { return this.button.setEnabled(enabled); },
if (onSuccessFn) onSuccessFn(r.getResult().Result);
if (onSuccessFn) onSuccessFn(r.Result);
setEntryIfNotExists: function(key, value, onSuccessFn, onErrorFn) { this.gateway.getFromService('SetEntryIfNotExists', { Key: key || null, Value: value || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Result); }, onErrorFn || RedisClient.errorFn); },
if (onSuccessFn) onSuccessFn(r.getResult().Result);
if (onSuccessFn) onSuccessFn(r.Result);
setEntryInHash: function(id, key, value, onSuccessFn, onErrorFn) { this.gateway.getFromService('SetEntryInHash', { Id: id || null, Key: key || null, Value: value || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Result); }, onErrorFn || RedisClient.errorFn); },
if (onSuccessFn) onSuccessFn(r.getResult().Result);
if (onSuccessFn) onSuccessFn(r.Result);
setEntryInHashIfNotExists: function(id, key, value, onSuccessFn, onErrorFn) { this.gateway.getFromService('SetEntryInHashIfNotExists', { Id: id || null, Key: key || null, Value: value || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Result); }, onErrorFn || RedisClient.errorFn); },
if (efId == null) { this.store.removeAll(); return; }
setExperimentalFactor : function(efId, callback) { var options = { params : [{ id : efId, classDelegatingFor : "ExperimentalFactor" }] }; if (callback) { options.callback = callback; } this.store.load(options); },
this.service.setString('hudson.feeds.' + id + '.name', feed.getName()); this.service.setString('hudson.feeds.' + id + '.url', feed.getUrl());
this.service.setString('extensions.hudson.buildmonitor.feeds.' + id + '.name', feed.getName()); this.service.setString('extensions.hudson.buildmonitor.feeds.' + id + '.url', feed.getUrl());
setFeed: function(feed) { var id = feed.getId(); this.service.setString('hudson.feeds.' + id + '.name', feed.getName()); this.service.setString('hudson.feeds.' + id + '.url', feed.getUrl()); var lastFail = ''; if (feed.getLastFail() !== null) { lastFail = com_mattkruse_formatDate(feed.getLastFail(), 'yyyy-MM-...
this.service.setString('hudson.feeds.' + id + '.lastfail', lastFail); }
this.service.setString('extensions.hudson.buildmonitor.feeds.' + id + '.lastfail', lastFail); },
setFeed: function(feed) { var id = feed.getId(); this.service.setString('hudson.feeds.' + id + '.name', feed.getName()); this.service.setString('hudson.feeds.' + id + '.url', feed.getUrl()); var lastFail = ''; if (feed.getLastFail() !== null) { lastFail = com_mattkruse_formatDate(feed.getLastFail(), 'yyyy-MM-...
lastFail = formatDate(feed.getLastFail(), 'yyyy-MM-ddTHH:mm:ssZ');
lastFail = com_mattkruse_formatDate(feed.getLastFail(), 'yyyy-MM-ddTHH:mm:ssZ');
setFeed: function(feed) { var id = feed.getId(); this.service.setString('hudson.feeds.' + id + '.name', feed.getName()); this.service.setString('hudson.feeds.' + id + '.url', feed.getUrl()); var lastFail = ''; if (feed.getLastFail() !== null) { lastFail = formatDate(feed.getLastFail(), 'yyyy-MM-ddTHH:mm:ssZ')...
Op.title = $(this).children('legend').remove().text();
Op.title = $(this).children('legend').remove().text() || $sbmt.val();
setFileOps: function () { var form = imce.el('imce-fileop-form'); if (!form) return; $(form.elements.filenames).parent().remove(); $(form).find('fieldset').each(function() {//remove fieldsets var $sbmt = $('input:submit', this); if (!$sbmt.size()) return; var Op = {name: $sbmt.attr('id').substr(5)}; var...
this.taxon = gene.taxon;
this.taxon = { id : gene.taxonId, commonName : gene.taxonCommonName, scientificname : gene.taxonScientificName };
setGene : function(gene) { if (this.tooltip) { this.tooltip.destroy(); } if (gene) { this.selectedGene = gene; this.taxon = gene.taxon; this.tooltip = new Ext.ToolTip({ target : this.getEl(), html : String.format('{0} ({1})', gene.officialName || "no description", gene.taxon.scientificName)...
gene.taxon.scientificName)
gene.taxonScientificName)
setGene : function(gene) { if (this.tooltip) { this.tooltip.destroy(); } if (gene) { this.selectedGene = gene; this.taxon = gene.taxon; this.tooltip = new Ext.ToolTip({ target : this.getEl(), html : String.format('{0} ({1})', gene.officialName || "no description", gene.taxon.scientificName)...
html : String.format('{0} ({1})', geneGroup.name, description)
html : String.format('{0} ({1})', geneGroup.name, geneGroup.description)
setGeneGroup : function(geneGroup) { if (this.tooltip) { this.tooltip.destroy(); } if (geneGroup) { this.selectedGeneGroup = geneGroup; //FIXME: gene group contains no taxon, taxon is in the gene members contained in the genegroup.... this.taxon = geneGroup.taxon; this.tooltip = new Ext.ToolTip({ tar...
setGeneGroup : function(geneGroup) { if (this.tooltip) { this.tooltip.destroy(); } if (geneGroup) { this.selectedGeneGroup = geneGroup; this.taxon = geneGroup.taxon; this.tooltip = new Ext.ToolTip({ target : this.getEl(), html : String.format('{0} ({1})', geneGroup.name, geneGroup.description) }); }
setGeneGroup : function(combo, geneGroup, index) { this.selectedGeneGroup = geneGroup.data; this.tooltip = new Ext.ToolTip({ target : this.getEl(), html : String.format('{0} ({1})', this.selectedGeneGroup.name, this.selectedGeneGroup.description) }); this.lastQuery = null;
setGeneGroup : function(geneGroup) { if (this.tooltip) { this.tooltip.destroy(); } if (geneGroup) { this.selectedGeneGroup = geneGroup; // FIXME: gene group contains no taxon, taxon is in the gene members contained in the genegroup.... this.taxon = geneGroup.taxon; this.tooltip = new Ext.ToolTip({ ta...
this.button.setImage(path);
if (this.button) { this.button.setImage(path); }
setImage: function(path) { this.button.setImage(path); },
setImage: function(url) {
setImage: function(url, imageClass) {
setImage: function(url) { if ($defined(this.icon)) { this.icon.setStyle('background', 'url('+url+') no-repeat center center'); } if (!url) { this.wrapper.addClass('jxInputIconHidden'); } else { this.wrapper.removeClass('jxInputIconHidden'); } },
this.icon.setStyle('background', 'url('+url+') no-repeat center center');
this.icon.setStyle('background-image', 'url('+url+')'); this.icon.setStyle('background-repeat', 'no-repeat'); if (this.options.imageClass) { this.icon.removeClass(this.options.imageClass); } if (imageClass) { this.options.imageClass = imageClass; this.icon.addClass(imageClass); this.icon.setStyle('background-position'...
setImage: function(url) { if ($defined(this.icon)) { this.icon.setStyle('background', 'url('+url+') no-repeat center center'); } if (!url) { this.wrapper.addClass('jxInputIconHidden'); } else { this.wrapper.removeClass('jxInputIconHidden'); } },
var selectedIndex = this.selectbox.get(0).selectedIndex;
var selectNode = this.selectbox.get(0);
setInputFromMaster: function() { var selectedIndex = this.selectbox.get(0).selectedIndex; var val = ""; try { val = selectNode.options[selectedIndex].text; } catch(e) { //must have no items! } this.log("setting input to: " + val); this.input.val(val); },
val = selectNode.options[selectedIndex].text;
val = selectNode.options[selectNode.selectedIndex].text;
setInputFromMaster: function() { var selectedIndex = this.selectbox.get(0).selectedIndex; var val = ""; try { val = selectNode.options[selectedIndex].text; } catch(e) { //must have no items! } this.log("setting input to: " + val); this.input.val(val); },
this.log("setting input to: " + val);
setInputFromMaster: function() { var selectedIndex = this.selectbox.get(0).selectedIndex; var val = ""; try { val = selectNode.options[selectedIndex].text; } catch(e) { //must have no items! } this.log("setting input to: " + val); this.input.val(val); },
}
},
setInteger: function(key, value) { this.ffPreferencesService.setIntPref(key, value); }
this.button.setLabel(label);
if (this.button) { this.button.setLabel(label); }
setLabel: function(label) { this.button.setLabel(label); },
this.log("listItemHeight: " + this.itemHeight);
setListDisplay: function() { // console.time("listDisplay"); if(!this.itemHeight) { // caclulate only once this.itemHeight = this.listItems.filter("li:first").outerHeight(); this.log("listItemHeight: " + this.itemHeight); } var visibleCount = this.visibleCount; var height; if (visibleCount > this.options.l...
this.log("height set to: " + height);
setListDisplay: function() { // console.time("listDisplay"); if(!this.itemHeight) { // caclulate only once this.itemHeight = this.listItems.filter("li:first").outerHeight(); this.log("listItemHeight: " + this.itemHeight); } var visibleCount = this.visibleCount; var height; if (visibleCount > this.options.l...
this.scrollTo();
setListDisplay: function() { // console.time("listDisplay"); if(!this.itemHeight) { // caclulate only once this.itemHeight = this.listItems.filter("li:first").outerHeight(); this.log("listItemHeight: " + this.itemHeight); } var visibleCount = this.visibleCount; var height; if (visibleCount > this.options.l...
this.itemHeight = this.listItems.filter("li:first").outerHeight();
this.itemHeight = this.listItems.filter("li:first").outerHeight(true);
setListDisplay: function() { // console.time("listDisplay"); if(!this.itemHeight) { // caclulate only once this.itemHeight = this.listItems.filter("li:first").outerHeight(); // this.log("listItemHeight: " + this.itemHeight); } var visibleCount = this.visibleCount; var height; if (visibleCount > this.option...
var visibleCount = this.visibleCount;
setListDisplay: function() { // console.time("listDisplay"); if(!this.itemHeight) { // caclulate only once this.itemHeight = this.listItems.filter("li:first").outerHeight(); // this.log("listItemHeight: " + this.itemHeight); } var visibleCount = this.visibleCount; var height; if (visibleCount > this.option...
if (visibleCount > this.options.listMaxVisible) {
if (this.visibleCount > this.options.listMaxVisible) {
setListDisplay: function() { // console.time("listDisplay"); if(!this.itemHeight) { // caclulate only once this.itemHeight = this.listItems.filter("li:first").outerHeight(); // this.log("listItemHeight: " + this.itemHeight); } var visibleCount = this.visibleCount; var height; if (visibleCount > this.option...
height = visibleCount * this.itemHeight;
height = this.visibleCount * this.itemHeight;
setListDisplay: function() { // console.time("listDisplay"); if(!this.itemHeight) { // caclulate only once this.itemHeight = this.listItems.filter("li:first").outerHeight(); // this.log("listItemHeight: " + this.itemHeight); } var visibleCount = this.visibleCount; var height; if (visibleCount > this.option...
this.listWrapper.height(height);
var outerHeight = this.listScroll.outerHeight(); this.listWrapper.height(outerHeight);
setListDisplay: function() { // console.time("listDisplay"); if(!this.itemHeight) { // caclulate only once this.itemHeight = this.listItems.filter("li:first").outerHeight(); // this.log("listItemHeight: " + this.itemHeight); } var visibleCount = this.visibleCount; var height; if (visibleCount > this.option...
var offset = this.input.offset(); var listSpace = height; var inputHeight = this.wrapper.height(); var bottomPos = offset.top + inputHeight + listSpace;
var offset = this.wrapper.offset(); var wrapperOuterHeight = this.wrapper.outerHeight(); var bottomPos = offset.top + wrapperOuterHeight + outerHeight;
setListDisplay: function() { // console.time("listDisplay"); if(!this.itemHeight) { // caclulate only once this.itemHeight = this.listItems.filter("li:first").outerHeight(); // this.log("listItemHeight: " + this.itemHeight); } var visibleCount = this.visibleCount; var height; if (visibleCount > this.option...
top = (offset.top - this.listScroll.height() - 1) ;
top = (offset.top - outerHeight) ;
setListDisplay: function() { // console.time("listDisplay"); if(!this.itemHeight) { // caclulate only once this.itemHeight = this.listItems.filter("li:first").outerHeight(); // this.log("listItemHeight: " + this.itemHeight); } var visibleCount = this.visibleCount; var height; if (visibleCount > this.option...
top = (offset.top + this.input.outerHeight() - 1);
top = (offset.top + wrapperOuterHeight);
setListDisplay: function() { // console.time("listDisplay"); if(!this.itemHeight) { // caclulate only once this.itemHeight = this.listItems.filter("li:first").outerHeight(); // this.log("listItemHeight: " + this.itemHeight); } var visibleCount = this.visibleCount; var height; if (visibleCount > this.option...
this.listWrapper.css("left", offset.left);
this.listWrapper.css("left", left);
setListDisplay: function() { // console.time("listDisplay"); if(!this.itemHeight) { // caclulate only once this.itemHeight = this.listItems.filter("li:first").outerHeight(); // this.log("listItemHeight: " + this.itemHeight); } var visibleCount = this.visibleCount; var height; if (visibleCount > this.option...
var doDropUp = false;
setListDisplay: function() { var listHeight = this.list.outerHeight(); var maxHeight = this.listMaxHeight; // this.log("set list height - listItemsHeight: " + listHeight + " : maxHeight: " + maxHeight ); var height = listHeight; if (height > maxHeight) { height = maxHeight; this.listScroll.css(this.overflowCS...
if(this.options.allowDropUp) { var listSpace = height; var inputHeight = this.wrapper.height(); var bottomPos = offset.top + inputHeight + listSpace; var maxShown = $(window).height() + $(document).scrollTop(); doDropUp = (bottomPos > maxShown); }
var listSpace = height; var inputHeight = this.wrapper.height(); var bottomPos = offset.top + inputHeight + listSpace; var maxShown = $(window).height() + $(document).scrollTop(); var doDropUp = (bottomPos > maxShown);
setListDisplay: function() { var listHeight = this.list.outerHeight(); var maxHeight = this.listMaxHeight; // this.log("set list height - listItemsHeight: " + listHeight + " : maxHeight: " + maxHeight ); var height = listHeight; if (height > maxHeight) { height = maxHeight; this.listScroll.css(this.overflowCS...
setPopUpButtons : function(innerWrapper) {
setPopUpButtons : function() {
setPopUpButtons : function(innerWrapper) { var self = this, buttons = { submit : null, cancel : null }; // check if buttons are needed, innerWrapper exists and no buttons already exist if(this.options.popup.useButtons && this.popup.innerWrapper != null && this.popup....
html = imce.vars.previewImages && width ? imce.imgHtml(fid, width, row.cells[3].innerHTML) : imce.decode(fid);
html = imce.vars.previewImages && width ? imce.imgHtml(fid, width, row.cells[3].innerHTML) : imce.decodePlain(fid);
setPreview: function (fid) { var row, html = ''; imce.vars.prvfid = fid; if (fid && (row = imce.fids[fid])) { var width = row.cells[2].innerHTML * 1; html = imce.vars.previewImages && width ? imce.imgHtml(fid, width, row.cells[3].innerHTML) : imce.decode(fid); html = '<a href="#" onclick="imce.send(\''+ fid...
var min = axisOptions.min != null ? +axisOptions.min : axis.datamin, max = axisOptions.max != null ? +axisOptions.max : axis.datamax;
var min = +(axisOptions.min != null ? axisOptions.min : axis.datamin), max = +(axisOptions.max != null ? axisOptions.max : axis.datamax), delta = max - min;
function setRange(axis, axisOptions) { var min = axisOptions.min != null ? +axisOptions.min : axis.datamin, max = axisOptions.max != null ? +axisOptions.max : axis.datamax; // degenerate case if (min == Number.POSITIVE_INFINITY) min = 0; ...
if (min == Number.POSITIVE_INFINITY) min = 0; if (max == Number.NEGATIVE_INFINITY) max = 1; if (max - min == 0.0) {
if (delta == 0.0) {
function setRange(axis, axisOptions) { var min = axisOptions.min != null ? +axisOptions.min : axis.datamin, max = axisOptions.max != null ? +axisOptions.max : axis.datamax; // degenerate case if (min == Number.POSITIVE_INFINITY) min = 0; ...
min -= (max - min) * margin;
min -= delta * margin;
function setRange(axis, axisOptions) { var min = axisOptions.min != null ? +axisOptions.min : axis.datamin, max = axisOptions.max != null ? +axisOptions.max : axis.datamax; // degenerate case if (min == Number.POSITIVE_INFINITY) min = 0; ...
max += (max - min) * margin; if (max > 0 && axis.datamax <= 0)
max += delta * margin; if (max > 0 && axis.datamax != null && axis.datamax <= 0)
function setRange(axis, axisOptions) { var min = axisOptions.min != null ? +axisOptions.min : axis.datamin, max = axisOptions.max != null ? +axisOptions.max : axis.datamax; // degenerate case if (min == Number.POSITIVE_INFINITY) min = 0; ...
this.button.setTooltip(tooltip);
if (this.button) { this.button.setTooltip(tooltip); }
setTooltip: function(tooltip) { this.button.setTooltip(tooltip); },
Y(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,d){if(c.isWindow(this))this.onbeforeunload=d},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};c.removeEvent=t.removeEventListener?function(a,b,d){a.removeEventListener&&a.removeEventListener(b,d,false)}:function(a,b,d){a.detac...
{setup:function(){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length)return na("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="te...
Y(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,d){if(c.isWindow(this))this.onbeforeunload=d},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};c.removeEvent=t.removeEventListener?function(a,b,d){a.removeEventListener&&a.removeEventListener(b,d,false)}:function(a,b,d){a.detac...
elements.unbind('click').click(handler_function); elements.unbind('keypress').keypress( function(e){ if ((e.which && e.which == 13)||(e.keyCode && e.keyCode == 13)){ return handler_function(); } } );
setup_click_handler(elements, handler_function); setup_enter_key_handler(elements);
var setup_event_handlers = function(elements, handler_function){ elements.unbind('click').click(handler_function); elements.unbind('keypress').keypress( function(e){ if ((e.which && e.which == 13)||(e.keyCode && e.keyCode == 13)){ return handler_function()...
post_new_book(obj.value, obj.info, obj.id); }
showLoadingGif(); post_new_book(obj.value, obj.info, obj.id); hideLoadingGif(); }
function setup_handlers(){ var options = { script: "/lookup_amz?", varname: "fragment", json: true, callback: function(obj){ post_new_book(obj.value, obj.info, obj.id); } }; new bsn.AutoSuggest('suggestbox', options); $("#btn_add_book").click(function(){ post_new_book($("#book_title").val(), $("#book_author")...
$(window).scroll(function() { if(!availableTabInFocus) return; var gap = $(document).height() - $(window).height() - $(window).scrollTop(); if (gap < 2) { loadMore(); } });
function setup_handlers(){ var options = { script: "/lookup_amz?", varname: "fragment", json: true, callback: function(obj){ post_new_book(obj.value, obj.info, obj.id); } }; new bsn.AutoSuggest('suggestbox', options); $("#btn_add_book").click(function(){ post_new_book($("#book_title").val(), $("#book_author")...
nickname = jQuery(this).val();
handler(arg); return false; } return true; } function changeNickname(newNick){
function setup_handlers(){ var options = { script: "/lookup_amz?", varname: "fragment", json: true, callback: function(obj){ post_new_book(obj.value, obj.info, obj.id); } }; new bsn.AutoSuggest('suggestbox', options); $("#btn_add_book").click(function(){ ...
"new_nick": nickname
"new_nick": newNick
function setup_handlers(){ var options = { script: "/lookup_amz?", varname: "fragment", json: true, callback: function(obj){ post_new_book(obj.value, obj.info, obj.id); } }; new bsn.AutoSuggest('suggestbox', options); $("#btn_add_book").click(function(){ ...
$("#hi_msg").text("Hi " + nickname);
$("#hi_msg").text("Hi " + newNick);
function setup_handlers(){ var options = { script: "/lookup_amz?", varname: "fragment", json: true, callback: function(obj){ post_new_book(obj.value, obj.info, obj.id); } }; new bsn.AutoSuggest('suggestbox', options); $("#btn_add_book").click(function(){ ...
return false; } return true;
} $("#search").keypress(function(e){ onEnterDo(e, searchAvailable, jQuery(this).val());
function setup_handlers(){ var options = { script: "/lookup_amz?", varname: "fragment", json: true, callback: function(obj){ post_new_book(obj.value, obj.info, obj.id); } }; new bsn.AutoSuggest('suggestbox', options); $("#btn_add_book").click(function(){ ...
$("#btn_search").click(function(e){
function searchAvailable(term){
function setup_handlers(){ var options = { script: "/lookup_amz?", varname: "fragment", json: true, callback: function(obj){ post_new_book(obj.value, obj.info, obj.id); } }; new bsn.AutoSuggest('suggestbox', options); $("#btn_add_book").click(function(){ ...
searchTerm = jQuery($("#search")).val();
$.ajax({ url: "/search", type: "POST", data: {"term": term}, success: function(books){ $("#search_progress").hide(); renderOtherBooks(books); showAvailableTab(); }, error: on_ajax_fail, dataType: "json" }); } $("#searchmine").keypress(function(e){ onEnterDo(e, searchMine, jQuery(this).val()); }); function searchMine(...
function setup_handlers(){ var options = { script: "/lookup_amz?", varname: "fragment", json: true, callback: function(obj){ post_new_book(obj.value, obj.info, obj.id); } }; new bsn.AutoSuggest('suggestbox', options); $("#btn_add_book").click(function(){ ...
"term": searchTerm
"term": term, "whose": 'mine'
function setup_handlers(){ var options = { script: "/lookup_amz?", varname: "fragment", json: true, callback: function(obj){ post_new_book(obj.value, obj.info, obj.id); } }; new bsn.AutoSuggest('suggestbox', options); $("#btn_add_book").click(function(){ ...
$("#search_progress").hide(); renderOtherBooks(books); showAvailableTab();},
$("#searchmine_progress").hide(); myBooks.render(books); showOwnedTab(); },
function setup_handlers(){ var options = { script: "/lookup_amz?", varname: "fragment", json: true, callback: function(obj){ post_new_book(obj.value, obj.info, obj.id); } }; new bsn.AutoSuggest('suggestbox', options); $("#btn_add_book").click(function(){ ...
}); $("#btn_searchmine").click(function(e){ $("#searchmine_progress").show(); searchTerm = jQuery($("#searchmine")).val(); $.ajax({ url: "/search", type: "POST", data: { "term": searchTerm, "whose": 'mine' }, success: function(books){ $("#searchmine_progress").hide(); myBooks.render(books); showOwnedTab();}, error: on...
}
function setup_handlers(){ var options = { script: "/lookup_amz?", varname: "fragment", json: true, callback: function(obj){ post_new_book(obj.value, obj.info, obj.id); } }; new bsn.AutoSuggest('suggestbox', options); $("#btn_add_book").click(function(){ ...
if(term.length < 4){ alert("search term should be at least 4 characters long!"); return; }
function setup_handlers(){ var options = { script: "/lookup_amz?", varname: "fragment", json: true, callback: function(obj){ post_new_book(obj.value, obj.info, obj.id); } }; new bsn.AutoSuggest('suggestbox', options); $("#btn_add_book").click(function(){ ...
if (span.length == 0) {
if (span.length === 0) {
function setupFormValidation(formSelector, validationRules, validationMessages, onSubmitCallback) { enableSubmitButton(formSelector); $(formSelector).validate({ rules: (validationRules ? validationRules : {}), messages: (validationMessages ? validationMessages : {}), errorElement: "span", ...
if (onSubmitCallback)
if (onSubmitCallback){
function setupFormValidation(formSelector, validationRules, validationMessages, onSubmitCallback) { enableSubmitButton(formSelector); $(formSelector).validate({ rules: (validationRules ? validationRules : {}), messages: (validationMessages ? validationMessages : {}), errorElement: "span", ...
else
} else{
function setupFormValidation(formSelector, validationRules, validationMessages, onSubmitCallback) { enableSubmitButton(formSelector); $(formSelector).validate({ rules: (validationRules ? validationRules : {}), messages: (validationMessages ? validationMessages : {}), errorElement: "span", ...
}
function setupFormValidation(formSelector, validationRules, validationMessages, onSubmitCallback) { enableSubmitButton(formSelector); $(formSelector).validate({ rules: (validationRules ? validationRules : {}), messages: (validationMessages ? validationMessages : {}), errorElement: "span", ...
span = element.parent().find("span.form-error");
var span = element.parent().find("span.form-error"); if (span.length === 0){ var element_id = element.attr('id'); span = $("label[for='" + element_id + "']"); }
function setupFormValidation(formSelector, validationRules, validationMessages, onSubmitCallback) { enableSubmitButton(formSelector); $(formSelector).validate({ rules: (validationRules ? validationRules : {}), messages: (validationMessages ? validationMessages : {}), errorElement: "span", ...
function setupAxis(axis, options) { setRange(axis, options); prepareTickGeneration(axis, options); setTicks(axis, options);
function setTransformationHelpers(axis, o) { function identity(x) { return x; } var s, m, t = o.transform || identity, it = o.inverseTransform;
function setupGrid() { function setupAxis(axis, options) { setRange(axis, options); prepareTickGeneration(axis, options); setTicks(axis, options); // add transformation helpers if (axis == axes.xaxis || axis == axes.x2axis) { ...
axis.p2c = function (p) { return (p - axis.min) * axis.scale; }; axis.c2p = function (c) { return axis.min + c / axis.scale; };
if (t == identity) axis.p2c = function (p) { return (p - m) * s; }; else axis.p2c = function (p) { return (t(p) - m) * s; }; if (!it) axis.c2p = function (c) { return m + c / s; }; else axis.c2p = function (c) { return it(m + c / s); };
function setupGrid() { function setupAxis(axis, options) { setRange(axis, options); prepareTickGeneration(axis, options); setTicks(axis, options); // add transformation helpers if (axis == axes.xaxis || axis == axes.x2axis) { ...
axis.p2c = function (p) { return (axis.max - p) * axis.scale; }; axis.c2p = function (p) { return axis.max - p / axis.scale; };
s = axis.scale = plotHeight / (t(axis.max) - t(axis.min)); m = t(axis.max); if (t == identity) axis.p2c = function (p) { return (m - p) * s; }; else axis.p2c = function (p) { return (m - t(p)) * s; }; if (!it) axis.c2p = function (c) { return m - c / s; }; else axis.c2p = function (c) { return it(m - c / s); };
function setupGrid() { function setupAxis(axis, options) { setRange(axis, options); prepareTickGeneration(axis, options); setTicks(axis, options); // add transformation helpers if (axis == axes.xaxis || axis == axes.x2axis) { ...
for (var axis in axes) setupAxis(axes[axis], options[axis]);
function measureLabels(axis, axisOptions) { var i, labels = [], l; axis.labelWidth = axisOptions.labelWidth; axis.labelHeight = axisOptions.labelHeight;
function setupGrid() { function setupAxis(axis, options) { setRange(axis, options); prepareTickGeneration(axis, options); setTicks(axis, options); // add transformation helpers if (axis == axes.xaxis || axis == axes.x2axis) { ...
setSpacing(); insertLabels();
if (axis == axes.xaxis || axis == axes.x2axis) { if (axis.labelWidth == null) axis.labelWidth = canvasWidth / (axis.ticks.length > 0 ? axis.ticks.length : 1); if (axis.labelHeight == null) { labels = []; for (i = 0; i < axis.ticks.length; ++i) { l = axis.ticks[i].label; if (l) labels.push('<div class="tickLabel" ...
function setupGrid() { function setupAxis(axis, options) { setRange(axis, options); prepareTickGeneration(axis, options); setTicks(axis, options); // add transformation helpers if (axis == axes.xaxis || axis == axes.x2axis) { ...
}
};
var setupHideIgnoredQuestionsControl = function(){ $('#hideIgnoredTagsCb').unbind('click').click(function(){ $.ajax({ type: 'POST', dataType: 'json', cache: false, url: scriptUrl + $.i18n._('command/'), ...
}
};
var setupTagDeleteEvents = function(obj,tag_store,tagname,reason,send_ajax){ obj.unbind('mouseover').bind('mouseover', function(){ $(this).attr('src', scriptUrl + 'content/images/close-small-hover.png'); }); obj.unbind('mouseout').bind('mouseout', function(){ $(this).attr(...
$(this).attr('src', scriptUrl + 'media/images/close-small-hover.png');
$(this).attr('src', mediaUrl('media/images/close-small-hover.png'));
var setupTagDeleteEvents = function(obj,tag_store,tagname,reason,send_ajax){ obj.unbind('mouseover').bind('mouseover', function(){ $(this).attr('src', scriptUrl + 'media/images/close-small-hover.png'); }); obj.unbind('mouseout').bind('mouseout', function(){ $(this).attr('s...
$(this).attr('src', scriptUrl + 'media/images/close-small-dark.png');
$(this).attr('src', mediaUrl('media/images/close-small-dark.png'));
var setupTagDeleteEvents = function(obj,tag_store,tagname,reason,send_ajax){ obj.unbind('mouseover').bind('mouseover', function(){ $(this).attr('src', scriptUrl + 'media/images/close-small-hover.png'); }); obj.unbind('mouseout').bind('mouseout', function(){ $(this).attr('s...
setUrl: function(index, fWidth, fHeight) {
setUrl: function(index, shimWidth, shimHeight) {
setUrl: function(index, fWidth, fHeight) { activeUrl = index; els.shim.dom.src = urls[activeUrl][0]; this.urlIsSet = true; this.shimWidth = fWidth; this.shimHeight = fHeight; },
this.shimWidth = fWidth; this.shimHeight = fHeight;
this.shimWidth = shimWidth; this.shimHeight = shimHeight;
setUrl: function(index, fWidth, fHeight) { activeUrl = index; els.shim.dom.src = urls[activeUrl][0]; this.urlIsSet = true; this.shimWidth = fWidth; this.shimHeight = fHeight; },
this.field.set('value', v);
if (!this.options.readonly) { this.field.set('value', v); }
setValue : function (v) { this.field.set('value', v); },
if (v === 'checked') { this.field.set('checked', "checked"); } else { this.field.erase('checked');
if (!this.options.readonly) { if (v === 'checked' || v === 'true' || v === true) { this.field.set('checked', "checked"); } else { this.field.erase('checked'); }
setValue : function (v) { if (v === 'checked') { this.field.set('checked', "checked"); } else { this.field.erase('checked'); } },
if (button.options.label === value) { button.setActive(true); }
button.setActive(button.options.label === value);
setValue: function(value) { this.buttonSet.buttons.each(function(button){ if (button.options.label === value) { button.setActive(true); } },this); },
$$(this.field.options).each(function (opt) { if (opt.get('value') === v) { document.id(opt).set("selected", true); } }, this);
if (!this.options.readonly) { $$(this.field.options).each(function (opt) { if (opt.get('value') === v) { document.id(opt).set("selected", true); } }, this); }
setValue: function (v) { //loop through the options and set the one that matches v $$(this.field.options).each(function (opt) { if (opt.get('value') === v) { document.id(opt).set("selected", true); } }, this); },
setValue: function() {
setValue: function(value) { this.buttonSet.buttons.each(function(button){ if (button.options.label === value) { this.buttonSet.buttonChanged(button); } },this);
setValue: function() { },
if (this.hideTimer) { window.clearTimeout(this.hideTimer); }
setVisibleItem: function(obj) { if (this.visibleItem != obj) { if (this.visibleItem && this.visibleItem.hide) { this.visibleItem.hide(); } this.visibleItem = obj; this.visibleItem.show(); } },
object.attr("src", scriptUrl + "media/images/vote-arrow-"+ arrow + flag +".png");
object.attr("src", mediaUrl("media/images/vote-arrow-"+ arrow + flag +".png"));
var setVoteImage = function(voteType, undo, object){ var flag = undo ? "" : "-on"; var arrow = (voteType == VoteType.questionUpVote || voteType == VoteType.answerUpVote) ? "up" : "down"; object.attr("src", scriptUrl + "media/images/vote-arrow-"+ arrow + flag +".png"); // if undo ...
$(getQuestionVoteUpButton()).attr("src", scriptUrl + "media/images/vote-arrow-up.png"); $(getQuestionVoteDownButton()).attr("src", scriptUrl + "media/images/vote-arrow-down.png");
$(getQuestionVoteUpButton()).attr("src", mediaUrl("media/images/vote-arrow-up.png")); $(getQuestionVoteDownButton()).attr("src", mediaUrl("media/images/vote-arrow-down.png"));
var setVoteImage = function(voteType, undo, object){ var flag = undo ? "" : "-on"; var arrow = (voteType == VoteType.questionUpVote || voteType == VoteType.answerUpVote) ? "up" : "down"; object.attr("src", scriptUrl + "media/images/vote-arrow-"+ arrow + flag +".png"); // if undo ...