rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
var post = (function(){ var ID = 0; return function(ps){ var id = "post_"+(++ID); var ret = Callbacks[id] = new Deferred(); connection.postMessage({ "type" : "post", "ps" : ps, "id" : id }); return ret; } })();
maybeDeferred(d).addCallback(function(ps){ func(update({ page : title, pageUrl : content.url }, ps)); });
var post = (function(){ var ID = 0; return function(ps){ var id = "post_"+(++ID); var ret = Callbacks[id] = new Deferred(); connection.postMessage({ "type" : "post", "ps" : ps, "id" : id }); return ret; }})();
this.each(function(value, index) { results.push(iterator.call(context, value, index)); });
var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(...
this.each(function(value, index) { results.push(iterator.call(context, value, index)); });
function () { editor.expandAbbreviation(modes.INSERT); },
function () { if (!editor.isTextEdit) modes.push(modes.TEXT_EDIT); else dactyl.beep(); });
function () { editor.expandAbbreviation(modes.INSERT); },
util.timeout(function () { doc.body.removeChild(indicator); }, 500);
frames = frames.filter(function (frame) { frame.focus(); return document.commandDispatcher.focusedWindow == frame; });
util.timeout(function () { doc.body.removeChild(indicator); }, 500);
dactyl.registerObserver("shutdown", function () { if (this._loadPreference("dom.popup_allowed_events", "") == popupAllowedEvents + " keypress") this._storePreference("dom.popup_allowed_events", popupAllowedEvents); });
this.__defineGetter__(name, function () this._optionMap[name].values);
dactyl.registerObserver("shutdown", function () { if (this._loadPreference("dom.popup_allowed_events", "") == popupAllowedEvents + " keypress") this._storePreference("dom.popup_allowed_events", popupAllowedEvents); });
if(attributes["color"]){style+='color:'+attributes["color"]+';';}
if(attributes["color"]&&attributes["color"].match(/^#[0-9a-fA-F]{6}$/)){style+='color:'+attributes["color"]+';';}
return result;};rep(/</gi,"&lt;");rep(/>/gi,"&gt;");rep(/\n/gi,"<br />");rep(/&lt;(\/|)op:(b|u|s|i|font|large|small|color)(?:\s+(.*?)|)&gt;/gi,function(str,isEndTag,org_tagname,attributes_str){var opt="";var style="";var tagname=org_tagname;var attributes=getAttributes(attributes_str);var fontSizeMap=["xx-small","x-sma...
if(org_tagname=="color"&&attributes["code"]){opt=' style="color:'+attributes["code"]+';"';}
if(org_tagname=="color"&&attributes["code"]&&attributes["code"].match(/^#[0-9a-fA-F]{6}$/)){opt=' style="color:'+attributes["code"]+';"';}
return result;};rep(/</gi,"&lt;");rep(/>/gi,"&gt;");rep(/\n/gi,"<br />");rep(/&lt;(\/|)op:(b|u|s|i|font|large|small|color)(?:\s+(.*?)|)&gt;/gi,function(str,isEndTag,org_tagname,attributes_str){var opt="";var style="";var tagname=org_tagname;var attributes=getAttributes(attributes_str);var fontSizeMap=["xx-small","x-sma...
function (arg) /^[0-4]$/.test(arg),
CommandOption.defaultValue("type", function () CommandOption.NOARG);
function (arg) /^[0-4]$/.test(arg),
if(separatorPostion > 0 && separatorPostion<len && idx >= len-separatorPostion) { idx++ ; }
objects.forEach(function(object) { if (object) { //Get the name value. If value key is not specified convert obj //to string name = nameKey ? (object.get ? object.get(nameKey) : object[nameKey]) : object.toString() ; // localize name if specified. name = shouldLocalize? name.loc()...
array_each(elements, function(a) {
var topics = arrayMap(anchors, function(anchor, index) { var item = anchor, elements = []; while(item && item != anchors[index + 1]) { if(item.tagName && item.tagName.toLowerCase() == "hr") { break; } elements.push(item); item = item.nextSibling; } var tag = document.createElement("div"); insertBefore(anchor, tag); arr...
array_each(elements, function(a) { a.parentNode.removeChild(a); tag.appendChild(a); });
return tag; });
array_each(elements, function(a) { a.parentNode.removeChild(a); tag.appendChild(a); });
c_list.element.bind('dcmgrGUI.contentChange',function(event,params){ var volume = params.data.volume; c_pagenate.changeTotal(volume.owner_total); c_list.setData(volume.results); c_list.multiCheckList(c_list.detail_template); $("#list_load_mask").unmask(); });
$.each(delete_volumes,function(){ ids.push($(this).text()) })
c_list.element.bind('dcmgrGUI.contentChange',function(event,params){ var volume = params.data.volume; c_pagenate.changeTotal(volume.owner_total); c_list.setData(volume.results); c_list.multiCheckList(c_list.detail_template); $("#list_load_mask").unmask(); });
}).bind('keyup',function (e) {
}).bind('keypress',function (e) {
return this.each(function() { $this = $(this); // build element specific options var options = $.meta ? $.extend({}, opts, $this.data()) : opts; $this.bind('keydown',function (e) { var kc = $.fn.tabby.catch_kc(e); if (16 == kc) pressed.shft = true; /* because both CTRL+TAB and ALT+TAB defaul...
equals(view.$('.sc-inner').css("width"), "25%", 'width should be 25%');
equals(view.$('.sc-inner')[0].style.width, "25%", 'width should be 25%');
test("basic", function() { var view = pane.view('progress basic'); ok(!view.$().hasClass('disabled'), 'should NOT have disabled class'); ok(view.$('.sc-inner'), 'should have sc-inner class'); ok(view.$('.sc-outer-head'), 'should have sc-outer-head class'); ok(view.$('.sc-outer-tail'), 'should have sc-outer-tai...
equals(child.get("theme"), SC.Theme.find("sc-base"), "view's child's theme should start at base theme");
equals(child.get("theme"), SC.Theme.find('sc-base'), "view's child's theme should start at base theme");
test("adding child to parent propagates theme to child view.", function() { var child = SC.View.create({}); var view = SC.View.create({ theme: "sc-test-1" }); ok(t1 === view.get("theme"), "view's theme should be sc-test-1"); equals(child.get("theme"), SC.Theme.find("sc-base"), "view's child's theme should sta...
bt_refresh.element.bind('dcmgrGUI.refresh',function(){ c_list.page = c_pagenate.current_page; list_request.url = DcmgrGUI.Util.getPagePath('/security_groups/list/',c_list.page); list_request.data = DcmgrGUI.Util.getPagenateData(c_list.page,c_list.maxrow) c_list.element.trigger('dcmgrGUI.updateList',{request:list_requ...
bt_edit_security_group.target.bind('click',function(event){ var id = $(this).attr('id').replace(/edit_([a-z_]+)/,'$1') if( id ){ bt_edit_security_group.open({"ids":[id]}); } c_list.checkRadioButton(id); $('#detail').html(''); return false;
bt_refresh.element.bind('dcmgrGUI.refresh',function(){ //Update list element c_list.page = c_pagenate.current_page; list_request.url = DcmgrGUI.Util.getPagePath('/security_groups/list/',c_list.page); list_request.data = DcmgrGUI.Util.getPagenateData(c_list.page,c_list.maxrow) c_list.element.trigger...
});
bt_refresh.element.bind('dcmgrGUI.refresh',function(){ //Update list element c_list.page = c_pagenate.current_page; list_request.url = DcmgrGUI.Util.getPagePath('/security_groups/list/',c_list.page); list_request.data = DcmgrGUI.Util.getPagenateData(c_list.page,c_list.maxrow) c_list.element.trigger...
}[config.hostApplication] || function () {};
get visibleTabs() config.tabbrowser.visibleTabs || this.allTabs.filter(function (tab) !tab.hidden),
}[config.hostApplication] || function () {};
SC.RunLoop.end();
test("should accept shorthand notation", function(){ view.animate('left', 100, 1); equals(transitionFor(view), 'left 1s linear', 'add transition'); });
: function() { return method.apply(context, args.concat(SLICE.call(arguments, 0))); }
return setTimeout(function() { try { f.apply(this, args); } catch(e) { } }, t)
: function() { return method.apply(context, args.concat(SLICE.call(arguments, 0))); }
function (o) {
function (o, extended) {
function (o) { o = '"' + o.replace(/([\"\\])/g, '\\$1') + '"'; o = o.replace(/[\f]/g, "\\f") .replace(/[\b]/g, "\\b") .replace(/[\n]/g, "\\n") .replace(/[\t]/g, "\\t") .replace(/[\r]/g, "\\r"); return o; }],
c_list.element.bind('dcmgrGUI.contentChange',function(event,params){ var instance = params.data.instance; c_pagenate.changeTotal(instance.owner_total); c_list.setData(instance.results); c_list.multiCheckList(c_list.detail_template); $("#list_load_mask").unmask();
bt_instance_start.target.bind('click',function(){ bt_instance_start.open(c_list.getCheckedInstanceIds());
c_list.element.bind('dcmgrGUI.contentChange',function(event,params){ var instance = params.data.instance; c_pagenate.changeTotal(instance.owner_total); c_list.setData(instance.results); c_list.multiCheckList(c_list.detail_template); $("#list_load_mask").unmask(); });
this.timeout(function () { dactyl.focusContent(true); }, 10);
get visibleTabs() config.tabbrowser.visibleTabs || this.allTabs.filter(function (tab) !tab.hidden),
this.timeout(function () { dactyl.focusContent(true); }, 10); // just make sure, that no widget has focus
}
};
return function(){ method = (typeof method == 'string' ? context[method] : method); return method.apply(context, args.concat(Array.prototype.slice.call(arguments, 0))); }
this.observers[type] = this.observers[type].filter(function (callback) { if (callback.get()) { callback.get().apply(null, args); return true; } });
beep: requiresMainThread(function () { if (options["visualbell"]) { let popup = document.getElementById("dactyl-visualbell"); let win = config.visualbellWindow; let rect = win.getBoundingClientRect(); let width = rect.right - rect.left; let height = rect.bottom - rect.top; popup.openPopup(win, "overlap", 1, 1, fals...
this.observers[type] = this.observers[type].filter(function (callback) { if (callback.get()) { callback.get().apply(null, args); return true; } });
isEnabled: YES,
isEnabled: itemEnabled,
items.forEach(function(object) { if (object) { //Get the name value. If value key is not specified convert obj //to string name = nameKey ? (object.get ? object.get(nameKey) : object[nameKey]) : object.toString() ; // localize name if specified. name = shouldLocalize? name.loc() :...
target: this,
items.forEach(function(object) { if (object) { //Get the name value. If value key is not specified convert obj //to string name = nameKey ? (object.get ? object.get(nameKey) : object[nameKey]) : object.toString() ; // localize name if specified. name = shouldLocalize? name.loc() :...
$.each(thisRef.Data.or, function() { $('#tablePlus_'+this).parent().trigger('click'); });
this.Data.ajax_getData('subsReq', _Settings.dataURL, _Settings.dataURL_params(this.Data), getData, function(){});
$.each(thisRef.Data.or, function() { $('#tablePlus_'+this).parent().trigger('click'); });
$('#detail').html(''); return false;
bt_edit_security_group.target.bind('click',function(event){ var uuid = $(this).attr('id').replace(/edit_(ng-[a-z0-9]+)/,'$1'); if( uuid ){ bt_edit_security_group.open({"ids":[uuid]}); } c_list.checkRadioButton(uuid); $('#detail').html(''); return false; });
Mode.defaultValue("tags", function () function () options.hinttags);
Mode.defaultValue("tags", function () function () options["hinttags"]);
Mode.defaultValue("tags", function () function () options.hinttags);
var $this = $(this).css({ display: 'block', overflow: 'hidden' }), minHeight = $this.height(), interval, heightDiff = this.offsetHeight - minHeight, rowSize = ( parseInt($this.css('lineHeight'), 10) || parseInt($this.css('fontSize'), 10) ), $div = $('<div style="position:absolute;top:-999px;left:-999px;border-color:#00...
var $this = $(this).css({ display: 'block', overflow: 'hidden' }), minHeight = $this.height(), heightDiff = this.offsetHeight - minHeight, rowSize = ( parseInt($this.css('lineHeight'), 10) || parseInt($this.css('fontSize'), 10) ), $mirror = $('<div style="position:absolute;top:-999px;left:-999px;border-color:#000;bo...
return this.filter('textarea').each(function() { var $this = $(this).css({ display: 'block', overflow: 'hidden' }), minHeight = $this.height(), interval, heightDiff = this.offsetHeight - minHeight, rowSize = ( parseInt($this.css('lineHeight'), 10) || parseInt($this.css('fontSize'), 10) ), $div = $('<div style...
function check() { var text = $this.val(), newHeight, height, usedHeight, usedRows, availableRows; $div.html( text.replace(/\n/g, '&nbsp;<br>').replace(/<(\/?)scrip/g,'<$1scirp') ); height = $this[0].offsetHeight - heightDiff; usedHeight = $div[0].offsetHeight - heightDiff; usedRows = Math.floor(usedHeight / rowSize); ...
function check() { var text = $this.val(), newHeight, height, usedHeight, usedRows, availableRows; $mirror.html( encodeHTML(text).replace(/\n/g, '&nbsp;<br>') ); height = $this[0].offsetHeight - heightDiff; usedHeight = $mirror[0].offsetHeight - heightDiff; usedRows = Math.floor(usedHeight / rowSize); availableRows...
return this.filter('textarea').each(function() { var $this = $(this).css({ display: 'block', overflow: 'hidden' }), minHeight = $this.height(), interval, heightDiff = this.offsetHeight - minHeight, rowSize = ( parseInt($this.css('lineHeight'), 10) || parseInt($this.css('fontSize'), 10) ), $div = $('<div style...
$('#navbar-search-form').click(function() {
$('#navbar-search-form-text').click(function() {
$('#navbar-search-form').click(function() { if ($(this).attr('value') == 'Search') { $(this).attr({'value': ''}); } });
throw new EmptyBufferError("delimiter " + delmiter + "not present in buffer");
throw new EmptyBufferError("delimiter " + delimiter + "not present in buffer");
exports.Buffer = Class(function(supr) { this.init = function(rawBuffer) { this._rawBuffer = !!rawBuffer ? rawBuffer : ""; } this.getLength = function() { return this._rawBuffer.length; } this.append = function(data) { logger.debug('append', JSON.stringify(data)); this._rawBuffer += data; } this.peekBytes = functi...
this.editFileExternally(tmpfile.path);
let lastUpdate = Date.now(); function update (force) { if (force != true && tmpfile.lastModifiedTime <= lastUpdate) return; lastUpdate = Date.now();
let res = io.withTempFiles(function (tmpfile) { if (textBox) { textBox.setAttribute("readonly", "true"); elem = textBox; } else if (nsEditor) { nsEditor.flags |= Ci.nsIPlaintextEditor.eEditorReadonlyMask; ...
let val = tmpfile.read(); if (textBox) { textBox.removeAttribute("readonly"); textBox.value = val; } else if (nsEditor) { nsEditor.flags &= ~Ci.nsIPlaintextEditor.eEditorReadonlyMask; let wholeDocRange = nsEditor.document.createRange(); let rootNode = nsEditor.rootElement.QueryInterface(Ci.nsIDOMNode); wholeDocRange.se...
let val = tmpfile.read(); if (textBox) textBox.value = val; else if (nsEditor) { let wholeDocRange = nsEditor.document.createRange(); let rootNode = nsEditor.rootElement.QueryInterface(Ci.nsIDOMNode); wholeDocRange.selectNodeContents(rootNode); nsEditor.selection.addRange(wholeDocRange); nsEditor.selection.deleteFromDo...
let res = io.withTempFiles(function (tmpfile) { if (textBox) { textBox.setAttribute("readonly", "true"); elem = textBox; } else if (nsEditor) { nsEditor.flags |= Ci.nsIPlaintextEditor.eEditorReadonlyMask; ...
let timer = services.create("timer"); timer.initWithCallback({ notify: update }, 100, timer.TYPE_REPEATING_SLACK); try { this.editFileExternally(tmpfile.path); } finally { timer.cancel(); } update(true);
let res = io.withTempFiles(function (tmpfile) { if (textBox) { textBox.setAttribute("readonly", "true"); elem = textBox; } else if (nsEditor) { nsEditor.flags |= Ci.nsIPlaintextEditor.eEditorReadonlyMask; ...
top.Event.observe(document.body, 'keypress', function(event) { if (event.which == 0) { closeHTMLpop(); } });
}).invoke('observe', 'mouseover', function(evt) { evt.preventDefault(); } );
top.Event.observe(document.body, 'keypress', function(event) { if (event.which == 0) { closeHTMLpop(); } });
equals(child.get('layoutStyle')[key], no_s[key], "STYLE NO PARENT %@".fmt(key)) ;
testKey = key === 'transform' ? SC.platform.domCSSPrefix+'Transform' : key; equals(child.get('layoutStyle')[testKey], no_s[key], "STYLE NO PARENT %@".fmt(key)) ;
keys.forEach(function(key) { equals(child.get('layoutStyle')[key], no_s[key], "STYLE NO PARENT %@".fmt(key)) ; });
var bindingElement = this.bindingTypeElements.filter(function(el) { return el.bindingType == visTypeResults[i].type.value; } )[0];
var bindingElement = this.bindingTypeElements.filter(function(el) { return el.bindingType == visBindingTypes[i].type.value; } )[0];
var bindingElement = this.bindingTypeElements.filter(function(el) { return el.bindingType == visTypeResults[i].type.value; } )[0];
function() { PS_LOG('Minimal beacon failed to send results.'); });
function(data) { var resultsContainer = data.resultsContainer; PAGESPEED.minimalBeacon.sendBeacon(resultsContainer, true); });
function() { PS_LOG('Minimal beacon failed to send results.'); });
c_list.element.bind('dcmgrGUI.contentChange',function(event,params){ var image = params.data.image; c_pagenate.changeTotal(image.owner_total); c_list.setData(image.results); c_list.singleCheckList(c_list.detail_template); $("#list_load_mask").unmask();
bt_refresh.element.bind('dcmgrGUI.refresh',function(){ c_list.page = c_pagenate.current_page; list_request.url = DcmgrGUI.Util.getPagePath('/images/list/',c_pagenate.current_page); list_request.data = DcmgrGUI.Util.getPagenateData(c_list.page,c_list.maxrow) c_list.element.trigger('dcmgrGUI.updateList',{request:list_req...
c_list.element.bind('dcmgrGUI.contentChange',function(event,params){ var image = params.data.image; c_pagenate.changeTotal(image.owner_total); c_list.setData(image.results); c_list.singleCheckList(c_list.detail_template); $("#list_load_mask").unmask(); });
test("should have span with title inside", function() { var q = Q$('span', view.get('layer')); ok(view.get('displayTitle').length>0, 'precond - display title should not be empty'); equals(q.text(), view.get('displayTitle'), 'should have display title');
test("double-check that there is NO input element. Just in case.", function(){ equals(view.$("input").length, 0, "CoreQuery lookup for inputs should have length of 0.");
test("should have span with title inside", function() { var q = Q$('span', view.get('layer')); ok(view.get('displayTitle').length>0, 'precond - display title should not be empty'); equals(q.text(), view.get('displayTitle'), 'should have display title');});
this.map(this.ignore_types, function(string) { if (types[string] == undefined) ignore_types.push(string); });
this.map(show_types, function(string) { types[string] = undefined; });
this.map(this.ignore_types, function(string) { if (types[string] == undefined) ignore_types.push(string); });
csp.Session = Class(function() { this.init = function () { this.key = uuid.uuid(8); sessionDict[this.key] = this; this.connection = null; this.outgoingPacketBuffer = []; this.incomingPacketBuffer = []; this.lastSequentialIncomingId = 0 this.cometResponse = null; this.durationTimer = null; this.intervalTimer = null; th...
exports.Connection = Class(process.EventEmitter, function() { this.init = function (session) { this.remoteAddress = null; this.readyState = 'open'; this._session = session; this._encoding = 'binary'; this._utf8buffer = ''; }; this._receive = function (data) { if (this._encoding === 'utf8') { this._utf8buffer += data; ...
csp.Session = Class(function() { this.init = function () { // this.lastAck = 0; // 'a' variable this.key = uuid.uuid(8); // generate 8-character base-62 UUID sessionDict[this.key] = this; // Add session to sessions dictionary this.connection = null; // this.connection set from outside. this.outgoingPacketB...
this.resetTimeoutTimer();
this.emit('receive', data);
csp.Session = Class(function() { this.init = function () { // this.lastAck = 0; // 'a' variable this.key = uuid.uuid(8); // generate 8-character base-62 UUID sessionDict[this.key] = this; // Add session to sessions dictionary this.connection = null; // this.connection set from outside. this.outgoingPacketB...
this.teardownSession = function () { $clearTimeout(this.durationTimer); this.connection.readyState = (this.connection.readyState === 'open' ? 'writeOnly' : 'closed'); this.connection.emit('eof'); delete sessionDict[this.key];
var validEncodings = new Hash('utf8', 'binary'); this.setEncoding = function (encoding) { assert(validEncodings.contains(encoding), 'unrecognized encoding'); if (encoding !== 'utf8') { assert(!(this._utf8buffer), 'cannot switch encodings with dirty utf8 buffer'); }; this._encoding = encoding;
csp.Session = Class(function() { this.init = function () { // this.lastAck = 0; // 'a' variable this.key = uuid.uuid(8); // generate 8-character base-62 UUID sessionDict[this.key] = this; // Add session to sessions dictionary this.connection = null; // this.connection set from outside. this.outgoingPacketB...
this.send = function (data) { var packet = (typeof data === 'string' && (/[^\r\n\t\x32-\x7E]/).test(data)) ? [this.outgoingPacketId, 1, base64.encode(data)] : [this.outgoingPacketId, 0, data]; this.outgoingPacketId += 1; this.outgoingPacketBuffer.push(packet); if (this.cometResponse) { this.sendBatch([packet]); };
var validReadyStates = new Hash('writeOnly', 'open'); this.send = function (data, encoding) { if (!validReadyStates.contains(this.readyState)) { throw new Error("Socket is not writable in readyState: " + this.readyState); }; encoding = encoding || 'binary'; assert(validEncodings.contains(encoding), 'unrecognized encod...
csp.Session = Class(function() { this.init = function () { // this.lastAck = 0; // 'a' variable this.key = uuid.uuid(8); // generate 8-character base-62 UUID sessionDict[this.key] = this; // Add session to sessions dictionary this.connection = null; // this.connection set from outside. this.outgoingPacketB...
this.send(null); this.connection.readyState = (this.connection.readyState === 'open' ? 'readOnly' : 'closed'); }; this.updateVars = function (params) { for (param in params) { var key = varNames[param]; if (!key) continue; var value = params[param]; if (key in Set('gzipOk', 'contentType') && value != this.variables[k...
this._session.close();
csp.Session = Class(function() { this.init = function () { // this.lastAck = 0; // 'a' variable this.key = uuid.uuid(8); // generate 8-character base-62 UUID sessionDict[this.key] = this; // Add session to sessions dictionary this.connection = null; // this.connection set from outside. this.outgoingPacketB...
list_request.url = DcmgrGUI.Util.getPagePath('/images/show/',c_pagenate.current_page);
c_list.page = c_pagenate.current_page; list_request.url = DcmgrGUI.Util.getPagePath('/images/list/',c_pagenate.current_page); list_request.data = DcmgrGUI.Util.getPagenateData(c_list.page,c_list.maxrow)
bt_refresh.element.bind('dcmgrGUI.refresh',function(){ list_request.url = DcmgrGUI.Util.getPagePath('/images/show/',c_pagenate.current_page); c_list.element.trigger('dcmgrGUI.updateList',{request:list_request}) //update detail $.each(c_list.checked_list,function(check_id,obj){ //remove $(...
url:DcmgrGUI.Util.getPagePath('/images/detail/',check_id)
url:DcmgrGUI.Util.getPagePath('/images/show/',check_id)
bt_refresh.element.bind('dcmgrGUI.refresh',function(){ list_request.url = DcmgrGUI.Util.getPagePath('/images/show/',c_pagenate.current_page); c_list.element.trigger('dcmgrGUI.updateList',{request:list_request}) //update detail $.each(c_list.checked_list,function(check_id,obj){ //remove $(...
layers.push(scriptName);
addLayer(scriptName);
html.replace(/dojo\.require\(["']([^'"]+)["']\)/g, function(t, scriptName){ // for each dojo.require call add it to the layers as well layers.push(scriptName); });
if (!el.hasClassName("broadcast")) el.disabled = false;
if (!el.hasClassName("broadcast")) el.enable();
$$("input.broadcast").each(function(e) { e.observe("change", function(ev) { if (ev.element().checked) { $$("input[chip=\"" + ev.element().readAttribute("chip") + "\"]").each(function(el) { if (!el.hasClassName("broadcast")) el.disabled = true; }); } else { $$("input[chip=\"" + ev.element().readAttrib...
setTimeout(function(){ d.callback(tab); }, 0);
chrome.tabs.getSelected(null, function(tab){ if(background.TBRL.Service.isEnableSite(tab.url)){ tab = tab; d.callback(tab); } else { window.close(); } });
setTimeout(function(){ d.callback(tab); }, 0);
context.quote = [args.last, function (text) util.escapeString(text.substr(args.offset), ""), args.last];
context.filters.push(function (item) /^[a-zA-Z_$][\w$]*$/.test(item.text));
context.quote = [args.last, function (text) util.escapeString(text.substr(args.offset), ""), args.last];
this.element.bind('dcmgrGUI.contentChange',function(event,params){ self.setData(params.data); self.checkList(self.detail_template);
this.element.bind('dcmgrGUI.afterUpdate',function(event){ var bg; var kids; $("table").find('td').hover( function () { bg = $(this).parent().css("background-color"); kids = $(this).parent().children(); kids.css("background-color","#82c9d9"); }, function () { kids.css("background-color",bg); } ); self.element.find(...
this.element.bind('dcmgrGUI.contentChange',function(event,params){ self.setData(params.data); self.checkList(self.detail_template); });
q.sort(function (a, b) { return a - b; });
$.getJSON(this.DATA_DIR + prefix + this.JSON, null, function (data) { data.prefix = prefix; me._dict = data; if (callback) { callback(schema); } });
q.sort(function (a, b) { return a - b; });
let res = io.withTempFiles(function (tmpfile) { if (textBox) { textBox.setAttribute("readonly", "true"); oldBg = textBox.style.backgroundColor; tmpBg = "yellow"; textBox.style.backgroundColor = "#bbbbbb"; } if (!tmpfile.write(text)) throw Error("Input contains characters not valid in the current " + "file encoding"); ...
function (resp) { if (resp && resp.match(/^y(es)?$/i)) editor.editFieldExternally(true); });
let res = io.withTempFiles(function (tmpfile) { if (textBox) { textBox.setAttribute("readonly", "true"); oldBg = textBox.style.backgroundColor; tmpBg = "yellow"; textBox.style.backgroundColor = "#bbbbbb"; ...
test("creates a context and then invokes prepareContext on each childView", function() {
test("creates a context and then invokes renderToContext or updateLayer on each childView", function() {
test("creates a context and then invokes prepareContext on each childView", function() { var runCount = 0, curContext, curFirstTime ; var ChildView = SC.View.extend({ prepareContext: function(context, firstTime) { equals(context.prevObject, curContext, 'passed child context of curContext'); equals(firstTime, c...
prepareContext: function(context, firstTime) {
renderToContext: function(context) {
test("creates a context and then invokes prepareContext on each childView", function() { var runCount = 0, curContext, curFirstTime ; var ChildView = SC.View.extend({ prepareContext: function(context, firstTime) { equals(context.prevObject, curContext, 'passed child context of curContext'); equals(firstTime, c...
equals(firstTime, curFirstTime, 'passed first time flag');
test("creates a context and then invokes prepareContext on each childView", function() { var runCount = 0, curContext, curFirstTime ; var ChildView = SC.View.extend({ prepareContext: function(context, firstTime) { equals(context.prevObject, curContext, 'passed child context of curContext'); equals(firstTime, c...
equals(runCount, 3, 'prepareContext() invoked for each child view');
equals(runCount, 3, 'renderToContext() invoked for each child view');
test("creates a context and then invokes prepareContext on each childView", function() { var runCount = 0, curContext, curFirstTime ; var ChildView = SC.View.extend({ prepareContext: function(context, firstTime) { equals(context.prevObject, curContext, 'passed child context of curContext'); equals(firstTime, c...
equals(runCount, 3, 'prepareContext() invoked for each child view');
equals(runCount, 3, 'updateLayer() invoked for each child view');
test("creates a context and then invokes prepareContext on each childView", function() { var runCount = 0, curContext, curFirstTime ; var ChildView = SC.View.extend({ prepareContext: function(context, firstTime) { equals(context.prevObject, curContext, 'passed child context of curContext'); equals(firstTime, c...
$('#dataTable_0 tbody a').parents('td').click(function(){ thisRef.gotoTask_click(this); });
this.Data.ajax_getData_sync('expand', _Settings.expandData.dataURL, _Settings.expandData.dataURL_params(this.Data, rowDataSet), processData, function(){});
$('#dataTable_0 tbody a').parents('td').click(function(){ thisRef.gotoTask_click(this); });
n=DOM.add(tr,'td');n=DOM.add(n,'img',{src:op_get_relative_uri_root()+"/images/emoji/"+s.carrier+"/"+s.carrier+i+".gif",alt:"["+s.carrier+":"+i+"]"});Event.add(n,'mousedown',function(e){if(Prototype.Browser.IE){tinyMCE.execCommand("mceInsertContent",false,e.srcElement.getAttribute("alt"));}else{tinyMCE.execCommand("mceI...
n=DOM.add(tr,'td');n=DOM.add(n,'img',{src:op_get_relative_uri_root()+"/images/emoji/"+s.carrier+"/"+s.carrier+i+".gif",alt:"["+s.carrier+":"+i+"]",width:12,height:12});Event.add(n,'mousedown',function(e){if(Prototype.Browser.IE){tinyMCE.execCommand("mceInsertContent",false,e.srcElement.getAttribute("alt"));}else{tinyMC...
n=DOM.add(tr,'td');n=DOM.add(n,'img',{src:op_get_relative_uri_root()+"/images/emoji/"+s.carrier+"/"+s.carrier+i+".gif",alt:"["+s.carrier+":"+i+"]"});Event.add(n,'mousedown',function(e){if(Prototype.Browser.IE){tinyMCE.execCommand("mceInsertContent",false,e.srcElement.getAttribute("alt"));}else{tinyMCE.execCommand("mceI...
$.each(AjaxHooks.postAjaxCallbacks, function() { this(updatedDomElements); });
$(document).ready(function() { if (Wicket.Ajax) Wicket.Ajax.registerPostCallHandler(AjaxHooks.firePostAjax); });
$.each(AjaxHooks.postAjaxCallbacks, function() { this(updatedDomElements); });
Y.on( 'domready', function() { updateSubdivisions( Y.Node.get( '#country' ) ); if ( Y.Node.get( '#shipping-checkbox' ) ) { updateSubdivisions( Y.Node.get( '#s_country' ) ); Y.on( 'change', function( e ) { if ( Y.Node.get( '#shipping-checkbox' ).get( 'checked' ) ) { updateShipping(); } updateSubdivisions( e.currentTarge...
Y.on( 'domready', function() { if ( Y.Node.get( '#country' ) ) { updateSubdivisions( Y.Node.get( '#country' ) ); } if ( Y.Node.get( '#shipping-checkbox' ) ) { if ( Y.Node.get( '#s_country' ) ) { updateSubdivisions( Y.Node.get( '#s_country' ) ); } Y.on( 'change', function( e ) { if ( Y.Node.get( '#shipping-checkbox' ).g...
Y.on( 'domready', function() { updateSubdivisions( Y.Node.get( '#country' ) ); if ( Y.Node.get( '#shipping-checkbox' ) ) { updateSubdivisions( Y.Node.get( '#s_country' ) ); Y.on( 'change', function( e ) { if ( Y.Node.get( '#shipping-checkbox' ).get( 'checked' ) ) { updateShipping(); } updateSubdi...
list_request.data = DcmgrGUI.Util.getPagenateData(c_list.page, c_list.maxrow)
list_request.data = DcmgrGUI.Util.getPagenateData(c_pagenate.start,c_pagenate.row);
bt_refresh.element.bind('dcmgrGUI.refresh', function(){ //Update list element c_list.page = c_pagenate.current_page; list_request.url = DcmgrGUI.Util.getPagePath('/keypairs/list/', c_list.page); list_request.data = DcmgrGUI.Util.getPagenateData(c_list.page, c_list.maxrow) c_list.element.trigger('dc...
self.element.trigger('dcmgrGUI.configUpdatee',[self.id]);
self.element.trigger('dcmgrGUI.configUpdate',[self.id]);
DcmgrGUI.Detail.prototype.register_event('dcmgrGUI.afterUpdate',function(event,params){ var self = params.self; $('#detail').find('#update_'+self.id).live('click',function(){ $.ajax({ "type": "POST", "async": true, "url": '/security_groups/config', "data":"id="+self.id, ...
var text = original+'<em>@<a href="'+jQuery(this).parent().children('a').get(0)+'">'+jQuery(this).parent().parent().parent().children('.threadauthor').children('p').children('strong').children('a').text()+'</a></em>\n\n';
var text = original+'<em>@<a href="'+jQuery(this).parent().children('a').get(0)+'">'+jQuery(this).parent().parent().parent().children('.threadauthor').children('p').children('strong').text()+'</a></em>\n\n';
jQuery(".reply_link").click(function () { var original = jQuery("#post_content").val(); if( original != ''){ original = original + '\n\n'; } var text = original+'<em>@<a href="'+jQuery(this).parent().children('a').get(0)+'">'+jQuery(this).parent().parent().parent().children('....
test("calls prepareContext() and sets layer to resulting element", function() {
test("calls renderToContext() and sets layer to resulting element", function() {
test("calls prepareContext() and sets layer to resulting element", function() { var v= SC.View.create({ tagName: 'span', prepareContext: function(context, firstTime) { context.push("foo"); } }); equals(v.get('layer'), null, 'precondition - has no layer'); v.createLayer(); var elem = v.get('la...
prepareContext: function(context, firstTime) {
renderToContext: function(context, firstTime) {
test("calls prepareContext() and sets layer to resulting element", function() { var v= SC.View.create({ tagName: 'span', prepareContext: function(context, firstTime) { context.push("foo"); } }); equals(v.get('layer'), null, 'precondition - has no layer'); v.createLayer(); var elem = v.get('la...
jQuery(this).prependTo('#comment-' + thisId + ' .submitted-on');
jQuery(this).prependTo('#comment-' + thisId + ' .column-comment div:first-child');
jQuery('.akismet-status').each(function () { var thisId = jQuery(this).attr('commentid'); jQuery(this).prependTo('#comment-' + thisId + ' .submitted-on'); });
equals(selectedItem.title, menuItem.get('content').title, 'selectedItem should be set to the content item that was clicked');
equals(selectedItem ? selectedItem.title : null, menuItem.get('content').title, 'selectedItem should be set to the content item that was clicked');
test('Basic UI', function(){ menu.popup(); ok(menu.$().hasClass('sc-menu'), 'pane should have "sc-menu" class'); ok(menu.$().hasClass('sc-regular-size'), 'pane should have default control size class'); ok(!menu.get('isSubMenu'), 'isSubMenu should be NO on menus that are not submenus'); var menuItem = menu.get('men...
["anchored", "compare", "editor", "_filter", "filterFunc", "keys", "_process", "top"].forEach(function (key)
["anchored", "compare", "editor", "inputField", "_filter", "filterFunc", "keys", "_process", "top"].forEach(function (key)
["anchored", "compare", "editor", "_filter", "filterFunc", "keys", "_process", "top"].forEach(function (key) self[key] = parent[key]);
get visibleTabs() config.tabbrowser.visibleTabs || this.allTabs.filter(function (tab) !tab.hidden),
tab.__defineGetter__("ordinal", function () Number(nodes.icon.value));
get visibleTabs() config.tabbrowser.visibleTabs || this.allTabs.filter(function (tab) !tab.hidden),
if (level < this.level || production) return; log.apply(log, [type, this.name].concat(Array.prototype.slice.call(arguments, 0)));
if (!production && level >= this.level) { log.apply(log, [type, this.name].concat(Array.prototype.slice.call(arguments, 0))); } return arguments[0];
return function() { if (level < this.level || production) return; log.apply(log, [type, this.name].concat(Array.prototype.slice.call(arguments, 0))); }
11}function ta(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var f=c.data(a[d++]),e=c.data(this,f);if(f=f&&f.events){delete e.handle;e.events={};for(var i in f)for(var j in f[i])c.event.add(this,i,f[i][j],f[i][j].data)}}})}function ua(a,b,d){var f,e,i;if(a.length===1&&typeof a[0]==="string"&&...
"&")}function qa(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function ra(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var f=c.data(a[d++]),e=c.data(this,f);if(f=f&&f.events){delete e.handle;e.events={};for(var j in f)for(var i in f[j])c.event.add(this,j,f[j][i],f[j][i].data)}}})}f...
11}function ta(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var f=c.data(a[d++]),e=c.data(this,f);if(f=f&&f.events){delete e.handle;e.events={};for(var i in f)for(var j in f[i])c.event.add(this,i,f[i][j],f[i][j].data)}}})}function ua(a,b,d){var f,e,i;if(a.length===1&&typeof a[0]==="string"&&...
list_request.data = DcmgrGUI.Util.getPagenateData(c_list.page,c_list.maxrow)
list_request.data = DcmgrGUI.Util.getPagenateData(c_pagenate.start,c_pagenate.row);
bt_refresh.element.bind('dcmgrGUI.refresh',function(){ c_list.page = c_pagenate.current_page; list_request.url = DcmgrGUI.Util.getPagePath('/images/list/',c_pagenate.current_page); list_request.data = DcmgrGUI.Util.getPagenateData(c_list.page,c_list.maxrow) c_list.element.trigger('dcmgrGUI.updateList',{re...
get visibleTabs() config.tabbrowser.visibleTabs || this.allTabs.filter(function (tab) !tab.hidden),
this.timeout(function () { dactyl.focusContent(true); }, 10);
get visibleTabs() config.tabbrowser.visibleTabs || this.allTabs.filter(function (tab) !tab.hidden),
); }
); });
$(this).each(function(){ $(this).hover( function() { $(this).addClass('ui-state-hover'); }, function() { $(this).removeClass('ui-state-hover'); } ); }
checkForCrashedTest();
Event.onDOMReady(function () { var checkboxes = Dom.get([ 'SET_failure', 'SET_success', 'SET_error', 'SET_skipped', 'SET_notimplemented', 'SET_testdox', 'SET_showMemoryAndTime' ]); for (var i = 0; i < checkboxes.length; i++) { var checkbox = checkboxes[i]; var display = checkbox.checked ? 'block' : 'none'; ...
test("invokes renderLayout if first time", function() { var runCount = 0; var context, isFirstTime ;
test("check that testing without first time does not render to a context (no render needed)", function() {
test("invokes renderLayout if first time", function() { var runCount = 0; var context, isFirstTime ; var view = SC.View.create({ renderLayout: function(aContext, firstTime) { equals(aContext, context, 'passed context'); equals(firstTime, isFirstTime, 'passed firstTime'); runCount++; } }); // t...
renderLayout: function(aContext, firstTime) { equals(aContext, context, 'passed context'); equals(firstTime, isFirstTime, 'passed firstTime'); runCount++; }
layerId: "foo", classNames: ["bar"]
test("invokes renderLayout if first time", function() { var runCount = 0; var context, isFirstTime ; var view = SC.View.create({ renderLayout: function(aContext, firstTime) { equals(aContext, context, 'passed context'); equals(firstTime, isFirstTime, 'passed firstTime'); runCount++; } }); // t...
context = view.renderContext(); isFirstTime = YES ; view.prepareContext(context, YES); equals(runCount, 1, 'should call renderLayout'); runCount = 0 ; context = view.renderContext(); isFirstTime = NO ; view.prepareContext(context, NO); equals(runCount, 0, 'should not call renderLayout');
ok(context.id() !== 'foo', 'did not set id'); ok(!context.hasClass('bar'), 'did not set class name');
test("invokes renderLayout if first time", function() { var runCount = 0; var context, isFirstTime ; var view = SC.View.create({ renderLayout: function(aContext, firstTime) { equals(aContext, context, 'passed context'); equals(firstTime, isFirstTime, 'passed firstTime'); runCount++; } }); // t...
DcmgrGUI.Detail.prototype.register_event('dcmgrGUI.afterUpdate',function(event,params){ var self = params.self; $('#detail').find('#update_'+self.id).live('click',function(){
$('#detail').find('#update_'+self.id).live('click',function(){
DcmgrGUI.Detail.prototype.register_event('dcmgrGUI.afterUpdate',function(event,params){ var self = params.self; $('#detail').find('#update_'+self.id).live('click',function(){ $.ajax({ "type": "POST", "async": true, "url": '/security_groups/config', "data":"id="+self.id, ...
self.element.trigger('dcmgrGUI.configUpdate',[self.id]); });
DcmgrGUI.Detail.prototype.register_event('dcmgrGUI.afterUpdate',function(event,params){ var self = params.self; $('#detail').find('#update_'+self.id).live('click',function(){ $.ajax({ "type": "POST", "async": true, "url": '/security_groups/config', "data":"id="+self.id, ...
a+'"/>')});p(e.basefiles.concat(e.parserfile),function(a){/^https?:/.test(a)||(a=e.path+a);c.push('<script type="text/javascript" src="'+a+(e.noScriptCaching?"?nocache="+(new Date).getTime().toString(16):"")+'"><\/script>')});c.push('</head><body style="border-width: 0;" class="editbox" spellcheck="'+(e.disableSpellche...
c+'"/>')});D(a.basefiles.concat(a.parserfile),function(c){/^https?:/.test(c)||(c=a.path+c);b.push('<script type="text/javascript" src="'+c+(a.noScriptCaching?"?nocache="+(new Date).getTime().toString(16):"")+'"><\/script>')});b.push('</head><body style="border-width: 0;" class="editbox" spellcheck="'+(a.disableSpellche...
a+'"/>')});p(e.basefiles.concat(e.parserfile),function(a){/^https?:/.test(a)||(a=e.path+a);c.push('<script type="text/javascript" src="'+a+(e.noScriptCaching?"?nocache="+(new Date).getTime().toString(16):"")+'"><\/script>')});c.push('</head><body style="border-width: 0;" class="editbox" spellcheck="'+(e.disableSpellche...
test("check that testing without first time does not render to a context (no render needed)", function() {
test("check that testing without first time still renders to a context", function() {
test("check that testing without first time does not render to a context (no render needed)", function() { var view = SC.View.create({ layerId: "foo", classNames: ["bar"], createRenderer: function(t) { return undefined; } }); var context = view.renderContext(); view.prepareContext(context, NO); // upd...
ok(context.id() !== 'foo', 'did not set id'); ok(!context.hasClass('bar'), 'did not set class name');
ok(context.id() === 'foo', 'set id'); ok(context.hasClass('bar'), 'set class name');
test("check that testing without first time does not render to a context (no render needed)", function() { var view = SC.View.create({ layerId: "foo", classNames: ["bar"], createRenderer: function(t) { return undefined; } }); var context = view.renderContext(); view.prepareContext(context, NO); // upd...
this.xform = (xformRules.length == 0) ? null : function (s) { $.each(xformRules, function (i_, r) { s = s.replace(r.pattern, r.repl); }); return s; };
var xformRules = $.map(this.getConfigList("TransformRule"), function (r) { var p = r.split(/\s+/); return {pattern: new RegExp(p[0], "g"), repl: p[1]}; });
this.xform = (xformRules.length == 0) ? null : function (s) { // apply transform rules $.each(xformRules, function (i_, r) { s = s.replace(r.pattern, r.repl); }); return s; };
let res = io.withTempFiles(function (tmpfile) { if (textBox) { textBox.setAttribute("readonly", "true"); oldBg = textBox.style.backgroundColor; tmpBg = "yellow"; textBox.style.backgroundColor = "#bbbbbb"; } else var editor = GetCurrentEditor(); if (!tmpfile.write(text)) throw Error("Input contains characters not valid...
text = Array.map(editor.rootElement.childNodes, function (e) util.domToString(e, true)).join("");
let res = io.withTempFiles(function (tmpfile) { if (textBox) { textBox.setAttribute("readonly", "true"); oldBg = textBox.style.backgroundColor; tmpBg = "yellow"; textBox.style.backgroundColor = "#bbbbbb"; ...
$.each(c_list.checked_list,function(check_id,obj){
bt_refresh.element.bind('dcmgrGUI.refresh',function(){ list_request.url = DcmgrGUI.Util.getPagePath('/images/show/',c_pagenate.current_page); c_list.element.trigger('dcmgrGUI.updateList',{request:list_request}) $.each(c_list.checked_list,function(check_id,obj){
$.each(c_list.checked_list,function(check_id,obj){ //remove $($('#detail').find('#'+check_id)).remove(); //update c_list.checked_list[check_id].c_detail.update({ url:DcmgrGUI.Util.getPagePath('/images/detail/',check_id) },true); });
});
$.each(c_list.checked_list,function(check_id,obj){ //remove $($('#detail').find('#'+check_id)).remove(); //update c_list.checked_list[check_id].c_detail.update({ url:DcmgrGUI.Util.getPagePath('/images/detail/',check_id) },true); });
var toggleButtonsIds = Dom.get(['SET[failure]', 'SET[success]', 'SET[error]', 'SET[skipped]', 'SET[notimplemented]', 'SET[testdox]', 'SET[showMemoryAndTime]']); for (var i = 0; i < toggleButtonsIds.length; i += 1) { var elm = toggleButtonsIds[i]; var display = elm.checked ? 'block' : 'none'; var className = mapClasses(...
var checkboxes = Dom.get([ 'SET_failure', 'SET_success', 'SET_error', 'SET_skipped', 'SET_notimplemented', 'SET_testdox', 'SET_showMemoryAndTime' ]); for (var i = 0; i < checkboxes.length; i++) { var checkbox = checkboxes[i]; var display = checkbox.checked ? 'block' : 'none'; var className = mapClasses(checkbox.id); Do...
Event.onDOMReady(function () { var toggleButtonsIds = Dom.get(['SET[failure]', 'SET[success]', 'SET[error]', 'SET[skipped]', 'SET[notimplemented]', 'SET[testdox]', 'SET[showMemoryAndTime]']); for (var i = 0; i < toggleButtonsIds.length; i += 1) { var elm = toggleButtonsIds[i]; var display = elm.checked ? 'block'...
Event.addListener(toggleButtonsIds, 'click', toggle, this, true); Event.addListener('SET[codeCoverage]', 'click', toggleCodeCoverage, this, true);
Event.addListener(checkboxes, 'click', toggle, this, true); Event.addListener('SET_codeCoverage', 'click', toggleCodeCoverage, this, true);
Event.onDOMReady(function () { var toggleButtonsIds = Dom.get(['SET[failure]', 'SET[success]', 'SET[error]', 'SET[skipped]', 'SET[notimplemented]', 'SET[testdox]', 'SET[showMemoryAndTime]']); for (var i = 0; i < toggleButtonsIds.length; i += 1) { var elm = toggleButtonsIds[i]; var display = elm.checked ? 'block'...
bt_instance_stop.target.bind('click',function(){ bt_instance_stop.open(c_list.getCheckedInstanceIds());
bt_instance_start.target.bind('click',function(){ bt_instance_start.open(c_list.getCheckedInstanceIds());
bt_instance_stop.target.bind('click',function(){ bt_instance_stop.open(c_list.getCheckedInstanceIds()); });
if ($('#edit-vertical_tabs_example-enabled', context).attr('checked')) { return Drupal.checkPlain($('#edit-vertical_tabs_example-custom-setting', context).val());
if ($('#edit-vertical-tabs-example-enabled', context).attr('checked')) { return Drupal.checkPlain($('#edit-vertical-tabs-example-custom-setting', context).val());
$('fieldset.vertical_tabs_example-custom-form', context).setSummary(function (context) { // Depending on the checkbox status, the settings will be customized, so // update the summary with the custom setting textfield string or a use a // default string. if ($('#edit-vertical_tabs_example-enable...
return Drupal.t('Using default.');
return Drupal.t('Using default');
$('fieldset.vertical_tabs_example-custom-form', context).setSummary(function (context) { // Depending on the checkbox status, the settings will be customized, so // update the summary with the custom setting textfield string or a use a // default string. if ($('#edit-vertical_tabs_example-enable...
$('fieldset#edit-path', context).drupalSetSummary(function (context) { var path = $('#edit-path-alias').val(); var automatic = $('#edit-path-pathauto-perform-alias').attr('checked');
$('fieldset.path-form', context).drupalSetSummary(function (context) { var path = $('.form-item-path-alias input').val(); var automatic = $('.form-item-path-pathauto input').attr('checked');
$('fieldset#edit-path', context).drupalSetSummary(function (context) { var path = $('#edit-path-alias').val(); var automatic = $('#edit-path-pathauto-perform-alias').attr('checked'); if (automatic) { return Drupal.t('Automatic alias'); } if (path) { return Drupal.t('Alias: @al...