rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
plaineditor.style.height = editorArea.style.height; | plaineditor.style.height = editorArea.style.height; plaineditor.value = ''; | function fm_toggle_editor(toggler){ var selectedEditor = toggler.value; // determine the currently displayed editor var htmlFlag = document.getElementsByName('_is_html')[0]; var mimeType = document.getElementById('mimeType'); var currentEditor = htmlFlag.value; var currentMode =''; if (currentEditor == 1) { currentMod... |
plaineditor.value = ''; xajax_doXMLHTTP("felamimail.ajaxfelamimail.toggleEditor", composeID, existingHtml, 'ascii'); | function fm_toggle_editor(toggler){ var selectedEditor = toggler.value; // determine the currently displayed editor var htmlFlag = document.getElementsByName('_is_html')[0]; var mimeType = document.getElementById('mimeType'); var currentEditor = htmlFlag.value; var currentMode =''; if (currentEditor == 1) { currentMod... | |
ckeditor.setData(''); | function fm_toggle_editor(toggler){ var selectedEditor = toggler.value; // determine the currently displayed editor var htmlFlag = document.getElementsByName('_is_html')[0]; var mimeType = document.getElementById('mimeType'); var currentEditor = htmlFlag.value; var currentMode =''; if (currentEditor == 1) { currentMod... | |
ckeditor.destroy(); | function fm_toggle_editor(toggler){ var selectedEditor = toggler.value; // determine the currently displayed editor var htmlFlag = document.getElementsByName('_is_html')[0]; var mimeType = document.getElementById('mimeType'); var currentEditor = htmlFlag.value; var currentMode =''; if (currentEditor == 1) { currentMod... | |
jQuery.ui||(function($){$.ui={version:"1.8",plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var set=instance.plugins[name];if(!set||!instance.element[0].parentNode)... | focusable: function(element) { var nodeName = element.nodeName.toLowerCase(), tabIndex = $.attr(element, 'tabindex'); return (/input|select|textarea|button|object/.test(nodeName) ? !element.disabled : 'a' == nodeName || 'area' == nodeName ? element.href || !isNaN(tabIndex) : !isNaN(tabIndex)) && !$(element)['area' ==... | jQuery.ui||(function($){$.ui={version:"1.8",plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var set=instance.plugins[name];if(!set||!instance.element[0].parentNode)... |
focusable: function(element) { var nodeName = element.nodeName.toLowerCase(), tabIndex = $.attr(element, 'tabindex'); return (/input|select|textarea|button|object/.test(nodeName) ? !element.disabled : 'a' == nodeName || 'area' == nodeName ? element.href || !isNaN(tabIndex) : !isNaN(tabIndex)) && !$(element)['area' ==... | jQuery.ui||(function($){$.ui={version:"1.8",plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var set=instance.plugins[name];if(!set||!instance.element[0].parentNode)... | focusable: function(element) { var nodeName = element.nodeName.toLowerCase(), tabIndex = $.attr(element, 'tabindex'); return (/input|select|textarea|button|object/.test(nodeName) ? !element.disabled : 'a' == nodeName || 'area' == nodeName ? element.href || !isNaN(tabIndex) : !isNaN(tabIndex)) // the el... |
&& !$(element)['area' == nodeName ? 'parents' : 'closest'](':hidden').length; | && !$(element).parents().andSelf().filter(function() { return $.curCSS( this, "visibility" ) === "hidden" || $.expr.filters.hidden( this ); }).length; | focusable: function(element) { var nodeName = element.nodeName.toLowerCase(), tabIndex = $.attr(element, 'tabindex'); return (/input|select|textarea|button|object/.test(nodeName) ? !element.disabled : 'a' == nodeName || 'area' == nodeName ? element.href || !isNaN(tabIndex) : !isNaN(tabIndex)) // the el... |
: 'a' == nodeName || 'area' == nodeName | : 'a' == nodeName | focusable: function(element) { var nodeName = element.nodeName.toLowerCase(), tabIndex = $.attr(element, 'tabindex'); return (/input|select|textarea|button|object/.test(nodeName) ? !element.disabled : 'a' == nodeName || 'area' == nodeName ? element.href || !isNaN(tabIndex) : !isNaN(tabIndex)) // the el... |
&& !$(element).parents().andSelf().filter(function() { return $.curCSS( this, "visibility" ) === "hidden" || $.expr.filters.hidden( this ); }).length; | && visible( element ); | focusable: function(element) { var nodeName = element.nodeName.toLowerCase(), tabIndex = $.attr(element, 'tabindex'); return (/input|select|textarea|button|object/.test(nodeName) ? !element.disabled : 'a' == nodeName || 'area' == nodeName ? element.href || !isNaN(tabIndex) : !isNaN(tabIndex)) // the el... |
function focusEditor(editor) { editor.Focus(); } | (function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false... | function focusEditor(editor) { editor.Focus(); } |
var focusNextElement = function(selectionContext) { prepareShift(selectionContext); ++selectionContext.activeItemIndex; reifyIndex(selectionContext); }; | (function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false... | var focusNextElement = function(selectionContext) { prepareShift(selectionContext); ++selectionContext.activeItemIndex; reifyIndex(selectionContext); }; |
var focusOff = function () { viewEl.removeClass(focusStyle); viewEl.removeClass(invitationStyle); }; | (function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false... | var focusOff = function () { viewEl.removeClass(focusStyle); viewEl.removeClass(invitationStyle); }; |
var focusOn = function () { viewEl.addClass(focusStyle); viewEl.addClass(invitationStyle); }; | (function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false... | var focusOn = function () { viewEl.addClass(focusStyle); viewEl.addClass(invitationStyle); }; |
var focusPreviousElement = function(selectionContext) { prepareShift(selectionContext); --selectionContext.activeItemIndex; reifyIndex(selectionContext); }; | (function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false... | var focusPreviousElement = function(selectionContext) { prepareShift(selectionContext); --selectionContext.activeItemIndex; reifyIndex(selectionContext); }; |
var el = $(this), props = ['position','top','left']; | var el = $(this), props = ['position','top','bottom','left','right']; | $.effects.fold = function(o) { return this.queue(function() { // Create element var el = $(this), props = ['position','top','left']; // Set options var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode var size = o.options.size || 15; // Default fold size var horizFirst = !(!o.options.horizFirst... |
if (mainFonts[i].substr(mainFonts[i].length - 5) == "_boot") {continue;} | function fontsetter_rebuildMenu(){ var menupopup = document.getElementById("fontsetter-selector-menu"); if (menupopup == null){ LOG ("fontsetter: menu is not loaded yet"); return; } //remove all children while (menupopup.firstChild) { menupopup.removeChild(menupopup.firstChild); } var strbundle = document.getElemen... | |
format : function (level, msg,stacktrace) { if (level === null) { level = "No Level"; } var dt = new Date(); var lmsg = + dt.getTime()+"," + level +",\"" + msg +"\""; if (stacktrace !== null) { lmsg += stacktrace; } return lmsg; }, | YLogFormatter.prototype={format:function(level,msg,stacktrace){var dt=new Date();var lmsg="["+dt.getTime()+"]";if(level!==null){lmsg+="["+level+"]";} lmsg+=msg+"\n";if(stacktrace!==null){lmsg+=stacktrace;} return lmsg;},QueryInterface:function(iid){if(!iid.equals(CI.nsIYLogFormatter)&&!iid.equals(CI.nsISupports)){throw... | format : function (level, msg,stacktrace) { if (level === null) { level = "No Level"; } var dt = new Date(); var lmsg = + dt.getTime()+"," + level +",\"" + msg +"\""; if (stacktrace !== null) { lmsg += stacktrace; } return lmsg; }, |
this.formatFunction = function(){ }; | this.domMenubar=null;this.domToolbar=null;this.parentNode=null;this.childNodes=null;this.hash=null;};this.formatFunction=function(){};} | this.formatFunction = function(){ }; |
fluid.formatMessage = function (messageString, args) { if (!args) { return messageString; } if (typeof(args) === "string") { args = [args]; } for (var i = 0; i < args.length; ++ i) { messageString = messageString.replace("{" + i + "}", args[i]); } return messageString; }; | (function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false... | fluid.formatMessage = function (messageString, args) { if (!args) { return messageString; } if (typeof(args) === "string") { args = [args]; } for (var i = 0; i < args.length; ++ i) { messageString = messageString.replace("{" + i + "}", args[i]); ... |
$.fn.jwplayerUtils.log(type, event); | function forward(event, type, player) { $.fn.jwplayerUtils.log(type, event); switch (type) { case $.fn.jwplayer.events.JWPLAYER_PLAYER_STATE: if (event.newstate == "COMPLETED") { sendEvent(player, $.fn.jwplayer.events.JWPLAYER_MEDIA_COMPLETE); } else { stateHandler(event, player); } break; c... | |
sendEvent(player, $.fn.jwplayer.events.JWPLAYER_MEDIA_COMPLETE); | player.sendEvent($.fn.jwplayer.events.JWPLAYER_MEDIA_COMPLETE, event); | function forward(event, type, player) { $.fn.jwplayerUtils.log(type, event); switch (type) { case $.fn.jwplayer.events.JWPLAYER_PLAYER_STATE: if (event.newstate == "COMPLETED") { sendEvent(player, $.fn.jwplayer.events.JWPLAYER_MEDIA_COMPLETE); } else { stateHandler(event, player); } break; c... |
player.model.buffer = event.percentage; | function forward(event, type, player) { switch (type) { case $.fn.jwplayer.events.JWPLAYER_MEDIA_META: player.sendEvent(type, event); break; case $.fn.jwplayer.events.JWPLAYER_MEDIA_MUTE: player.model.mute = event.state; event.mute = event.state; player.sendEvent(type, event); break; case $.fn... | |
mediaBrowser.getContentArea().load(Drupal.settings.basePath + 'admin/content/media/add/from_url?destination=' + window.location.href +' form'); | mediaBrowser.getContentArea().load(Drupal.settings.basePath + 'media/add/from_url?destination=' + window.location.href +' form#media-add-from-url'); | Drupal.media.browser.plugin.fromurl = function(mediaBrowser, options) { return { /* Abstract */ init: function() { tabset = mediaBrowser.getTabset(); tabset.tabs('add', '#fromurl', 'From URL'); mediaBrowser.listen('tabs.tabSelected', function (e, id) { if (id == 'fromurl') {... |
_model.width = document.documentElement.clientWidth; _model.height = document.documentElement.clientHeight; | _model.width = document.body.clientWidth; _model.height = document.body.clientHeight; | this.fullscreen = function(state) { if (_model.getMedia().getDisplayElement().webkitSupportsFullscreen) { if (state) { _model.height = screen.availHeight; _model.width = screen.availWidth; _model.getMedia().getDisplayElement().webkitEnterFullscreen(); } else { _model.height = _height; _mod... |
$.fn.jwplayerMediaVideo.fullscreen = function(player) { return function(state) { }; | $.fn.jwplayerController.fullscreen = function(player, state) { try { if (position === undefined) { return $(player).data("model").fullscreen; } else { player.data("media").fullscreen(state); return true; } } catch (err) { $.fn.jwplayerUtils.log("error", err); } return false; | $.fn.jwplayerMediaVideo.fullscreen = function(player) { return function(state) { //player.fullscreen = state; }; }; |
$.fn.jwplayerController.fullscreen = function(player, state) { try { if (state === undefined) { return player.model.fullscreen; } else { player.media.fullscreen(state); return true; | function fullscreen(player) { return function(arg) { try { switch ($.fn.jwplayerUtils.typeOf(arg)) { case "function": player.addEventListener($.fn.jwplayer.events.JWPLAYER_FULLSCREEN, arg); break; case "boolean": player.media.fullscreen(arg); break; default: return player.model.fullscreen; } return $.jwplayer(player.id... | $.fn.jwplayerController.fullscreen = function(player, state) { try { if (state === undefined) { return player.model.fullscreen; } else { player.media.fullscreen(state); return true; } } catch (err) { $.fn.jwplayerUtils.log("error", err); } return false; }; |
} catch (err) { $.fn.jwplayerUtils.log("error", err); } return false; }; | return false; }; } | $.fn.jwplayerController.fullscreen = function(player, state) { try { if (state === undefined) { return player.model.fullscreen; } else { player.media.fullscreen(state); return true; } } catch (err) { $.fn.jwplayerUtils.log("error", err); } return false; }; |
_model.width = document.body.clientWidth; _model.height = document.body.clientHeight; | _model.width = window.innerWidth; _model.height = window.innerHeight; | this.fullscreen = function(state) { if (_model.getMedia().getDisplayElement().webkitSupportsFullscreen) { if (state) { _model.height = screen.availHeight; _model.width = screen.availWidth; _model.getMedia().getDisplayElement().webkitEnterFullscreen(); } else { _model.height = _height; _mod... |
$.fn.jwplayerMediaVideo.fullscreen = function(player) { | function fullscreen(player) { | $.fn.jwplayerMediaVideo.fullscreen = function(player) { return function(state) { //player.fullscreen = state; }; }; |
if (state === true) { player.css("width", window.width); player.css("height", window.height); sendEvent(player, $.jwplayer().events.JWPLAYER_MEDIA_RESIZE, { width: width, hieght: height }); } else { } | $.fn.jwplayerMediaVideo.fullscreen = function(player) { return function(state) { //player.fullscreen = state; }; }; | |
}; | } | $.fn.jwplayerMediaVideo.fullscreen = function(player) { return function(state) { //player.fullscreen = state; }; }; |
player.data("media").fullscreen(state); return true; | if (position === undefined) { return $(player).data("model").fullscreen; } else { player.data("media").fullscreen(state); return true; } | $.fn.jwplayerController.fullscreen = function(player, state) { try { player.data("media").fullscreen(state); return true; } catch (err) { } return false; }; |
$.fn.jwplayerUtils.log("error", err); | $.fn.jwplayerController.fullscreen = function(player, state) { try { player.data("media").fullscreen(state); return true; } catch (err) { } return false; }; | |
_model.width = rect.left + rect.right; | _model.width = Math.abs(rect.left) + Math.abs(rect.right); | this.fullscreen = function(state) { if (navigator.vendor.indexOf("Apple") === 0) { if (_model.getMedia().getDisplayElement().webkitSupportsFullscreen) { if (state) { _model.fullscreen = false; _model.getMedia().getDisplayElement().webkitEnterFullscreen(); } else { _model.getMedia().getDisp... |
player.model.fullscreen = state; $.fn.jwplayerUtils.log("Fullscreen does not work for Flash media."); | function fullscreen(player) { return function(state) { //player.fullscreen = state; }; } | |
function fullscreen(player, state) { | function fullscreen(player) { | function fullscreen(player, state) { return function(arg) { switch ($.fn.jwplayerUtils.typeOf(arg)) { case "function": addEventListener(player, $.fn.jwplayer.events.JWPLAYER_FULLSCREEN, arg); break; case "boolean": $.fn.jwplayerController.fullscreen(player, arg); break; default: return ... |
return jwplayer(player); | return jwplayer(player.id); | function fullscreen(player, state) { return function(arg) { switch ($.fn.jwplayerUtils.typeOf(arg)) { case "function": addEventListener(player, $.fn.jwplayer.events.JWPLAYER_FULLSCREEN, arg); break; case "boolean": $.fn.jwplayerController.fullscreen(player, arg); break; default: return ... |
return factory(player, function(arg) { | return function(arg) { | function fullscreen(player, state) { return factory(player, function(arg) { switch ($.fn.jwplayerUtils.typeOf(arg)) { case "function": addEventListener(player, 'jwplayer.fullscreen', arg); break; case "boolean": $.fn.jwplayerController.setFullscreen(player, arg); break; default: $.fn.jw... |
addEventListener(player, 'jwplayer.fullscreen', arg); | addEventListener(player, $.jwplayer().events.JWPLAYER_FULLSCREEN, arg); | function fullscreen(player, state) { return factory(player, function(arg) { switch ($.fn.jwplayerUtils.typeOf(arg)) { case "function": addEventListener(player, 'jwplayer.fullscreen', arg); break; case "boolean": $.fn.jwplayerController.setFullscreen(player, arg); break; default: $.fn.jw... |
$.fn.jwplayerController.setFullscreen(player, arg); | $.fn.jwplayerController.fullscreen(player, arg); | function fullscreen(player, state) { return factory(player, function(arg) { switch ($.fn.jwplayerUtils.typeOf(arg)) { case "function": addEventListener(player, 'jwplayer.fullscreen', arg); break; case "boolean": $.fn.jwplayerController.setFullscreen(player, arg); break; default: $.fn.jw... |
$.fn.jwplayerController.getFullscreen(player); break; | return $.fn.jwplayerController.fullscreen(player); | function fullscreen(player, state) { return factory(player, function(arg) { switch ($.fn.jwplayerUtils.typeOf(arg)) { case "function": addEventListener(player, 'jwplayer.fullscreen', arg); break; case "boolean": $.fn.jwplayerController.setFullscreen(player, arg); break; default: $.fn.jw... |
}); | return jwplayer(player); }; | function fullscreen(player, state) { return factory(player, function(arg) { switch ($.fn.jwplayerUtils.typeOf(arg)) { case "function": addEventListener(player, 'jwplayer.fullscreen', arg); break; case "boolean": $.fn.jwplayerController.setFullscreen(player, arg); break; default: $.fn.jw... |
sendEvent(player, $.fn.jwplayer.events.JWPLAYER_MEDIA_RESIZE, { | player.sendEvent($.fn.jwplayer.events.JWPLAYER_MEDIA_RESIZE, { | function fullscreen(player) { return function(state) { player.model.fullscreen = state; if (state === true) { player.css("width", window.width); player.css("height", window.height); sendEvent(player, $.fn.jwplayer.events.JWPLAYER_MEDIA_RESIZE, { width: width, hieght: height }); } else { /... |
player.sendEvent($.fn.jwplayer.events.JWPLAYER_MEDIA_RESIZE, { width: player.model.width, hieght: player.model.height }); | player.resize("100%", "100%"); | function fullscreen(player) { return function(state) { player.model.fullscreen = state; if (state === true) { //player.css("width", window.width); //player.css("height", window.height); player.sendEvent($.fn.jwplayer.events.JWPLAYER_MEDIA_RESIZE, { width: player.model.width, hieght: player.model.... |
player.resize(player.model.config.width, player.model.config.height); | function fullscreen(player) { return function(state) { player.model.fullscreen = state; if (state === true) { //player.css("width", window.width); //player.css("height", window.height); player.sendEvent($.fn.jwplayer.events.JWPLAYER_MEDIA_RESIZE, { width: player.model.width, hieght: player.model.... | |
player.css("width", window.width); player.css("height", window.height); | function fullscreen(player) { return function(state) { player.model.fullscreen = state; if (state === true) { player.css("width", window.width); player.css("height", window.height); player.sendEvent($.fn.jwplayer.events.JWPLAYER_MEDIA_RESIZE, { width: width, hieght: height }); } else { //... | |
width: width, hieght: height | width: player.model.width, hieght: player.model.height | function fullscreen(player) { return function(state) { player.model.fullscreen = state; if (state === true) { player.css("width", window.width); player.css("height", window.height); player.sendEvent($.fn.jwplayer.events.JWPLAYER_MEDIA_RESIZE, { width: width, hieght: height }); } else { //... |
show.style.display = null; | show.style.display = ''; | var funOver = function(e){ show.style.display = null; } |
else if (1 == document.forms.length && myfaces._impl.core._Runtime.getGlobalConfig("no_portlet_env", false)) { | else if (1 == document.forms.length && this._RT.getGlobalConfig("no_portlet_env", false)) { | fuzzyFormDetection : function(elem) { if (!document.forms || !document.forms.length) { return null; } // This will not work well on portlet case, because we cannot be sure // the returned form is right one. //we can cover that case by simply adding one of our config par... |
myfaces._impl._util._Utils.fuzzyFormDetection = function(request, context, submitIdentifier) { | myfaces._impl._util._Utils.fuzzyFormDetection = function(request, context, element) { | myfaces._impl._util._Utils.fuzzyFormDetection = function(request, context, submitIdentifier) { if (0 == document.forms.length) { return null; } if ('undefined' == typeof submitIdentifier || null == submitIdentifier) { //no identifier found we give it a shot with the first ... |
if ('undefined' == typeof submitIdentifier || null == submitIdentifier) { return document.forms[0]; | var submitIdentifier = ('undefined' != element.id) ? element.id : null; var submitName = ('undefined' != element.name) ? element.name : null; if ('undefined' != typeof submitIdentifier && null != submitIdentifier && '' != submitIdentifier) { var domElement = myfaces._impl._util._LangUtils.byId(submitIdentifier); if (... | myfaces._impl._util._Utils.fuzzyFormDetection = function(request, context, submitIdentifier) { if (0 == document.forms.length) { return null; } if ('undefined' == typeof submitIdentifier || null == submitIdentifier) { //no identifier found we give it a shot with the first ... |
* highest chance is to find an element with an identifier | * name check | myfaces._impl._util._Utils.fuzzyFormDetection = function(request, context, submitIdentifier) { if (0 == document.forms.length) { return null; } if ('undefined' == typeof submitIdentifier || null == submitIdentifier) { //no identifier found we give it a shot with the first ... |
var elementById = document.getElementById(submitIdentifier); | myfaces._impl._util._Utils.fuzzyFormDetection = function(request, context, submitIdentifier) { if (0 == document.forms.length) { return null; } if ('undefined' == typeof submitIdentifier || null == submitIdentifier) { //no identifier found we give it a shot with the first ... | |
if (null != elementById) { if ('undefined' == typeof element.name || null == element.name || submitIdentifier == element.name) { foundElements.push(elementById); } } | myfaces._impl._util._Utils.fuzzyFormDetection = function(request, context, submitIdentifier) { if (0 == document.forms.length) { return null; } if ('undefined' == typeof submitIdentifier || null == submitIdentifier) { //no identifier found we give it a shot with the first ... | |
var namedFoundElements = document.getElementsByName(submitIdentifier); | var namedFoundElements = document.getElementsByName(submitName); | myfaces._impl._util._Utils.fuzzyFormDetection = function(request, context, submitIdentifier) { if (0 == document.forms.length) { return null; } if ('undefined' == typeof submitIdentifier || null == submitIdentifier) { //no identifier found we give it a shot with the first ... |
if('undefined' == typeof namedFoundElements[cnt].id || null == namedFoundElements[cnt].id || namedFoundElements[cnt].id != submitIdentifier) { foundElements.push(namedFoundElements[cnt]); | var foundForm = myfaces._impl._util._Utils.getParent(null, context, namedFoundElements[cnt], "form"); if (null != foundForm) { foundElements.push(foundForm); | myfaces._impl._util._Utils.fuzzyFormDetection = function(request, context, submitIdentifier) { if (0 == document.forms.length) { return null; } if ('undefined' == typeof submitIdentifier || null == submitIdentifier) { //no identifier found we give it a shot with the first ... |
if (null == foundElements || 0 == foundElements.length) { | if (null == foundElements || 0 == foundElements.length || foundElements.length > 1) { | myfaces._impl._util._Utils.fuzzyFormDetection = function(request, context, submitIdentifier) { if (0 == document.forms.length) { return null; } if ('undefined' == typeof submitIdentifier || null == submitIdentifier) { //no identifier found we give it a shot with the first ... |
var foundForm = null; var formCnt = 0; for (var cnt = 0; cnt < foundElements.length; cnt++) { var foundElement = foundElements[cnt]; var parentItem = ('undefined' != typeof foundElement && null != foundElement) ? foundElement.parentNode : null; while (parentItem != null && parentItem.tagName.toLowerCase() != "form") { ... | myfaces._impl._util._Utils.fuzzyFormDetection = function(request, context, submitIdentifier) { if (0 == document.forms.length) { return null; } if ('undefined' == typeof submitIdentifier || null == submitIdentifier) { //no identifier found we give it a shot with the first ... | |
return null; | return foundElements[0]; | myfaces._impl._util._Utils.fuzzyFormDetection = function(request, context, submitIdentifier) { if (0 == document.forms.length) { return null; } if ('undefined' == typeof submitIdentifier || null == submitIdentifier) { //no identifier found we give it a shot with the first ... |
return this.getParent(elem, "form"); | var ret = this.getParent(elem, "form"); if (ret) return ret; } else { elem = this.byId(elem); var ret = this.getParent(elem, "form"); if (ret) return ret; | fuzzyFormDetection : function(elem) { if (!document.forms || !document.forms.length) { return null; } // This will not work well on portlet case, because we cannot be sure // the returned form is right one. //we can cover that case by simply adding one of our config par... |
var elemForm = this.getAttribute(domElement, "form"); if (elemForm) { return this.byId(elemForm); } | fuzzyFormDetection : function(elem) { if (!document.forms || !document.forms.length) { return null; } // This will not work well on portlet case, because we cannot be sure // the returned form is right one. //we can cover that case by simply adding one of our config par... | |
function fw_cacheClearItem(cacheKey,cacheName){ | function fw_cacheClearItem(URLBase, cacheKey, cacheName){ | function fw_cacheClearItem(cacheKey,cacheName){ // Button var button = document.getElementById('button_ccr_del_'+cacheKey); button.disabled = true; button.value = "Wait"; // Execute Command fw_cboxCommand( URLBase + "?cbox_command=delcacheentry&cbox_cacheentry=" + cacheKey + "&cbox_cacheName="+cacheName); // Remove Ent... |
var button = document.getElementById('button_ccr_del_'+cacheKey); button.disabled = true; button.value = "Wait"; | var btn = document.getElementById('cboxbutton_removeentry_'+cacheKey); btn.disabled = true; btn.value = "Wait"; | function fw_cacheClearItem(cacheKey,cacheName){ // Button var button = document.getElementById('button_ccr_del_'+cacheKey); button.disabled = true; button.value = "Wait"; // Execute Command fw_cboxCommand( URLBase + "?cbox_command=delcacheentry&cbox_cacheentry=" + cacheKey + "&cbox_cacheName="+cacheName); // Remove Ent... |
var element = document.getElementById('tr_ccr_'+cacheKey); | var element = document.getElementById('cbox_cache_tr_'+cacheKey); | function fw_cacheClearItem(cacheKey,cacheName){ // Button var button = document.getElementById('button_ccr_del_'+cacheKey); button.disabled = true; button.value = "Wait"; // Execute Command fw_cboxCommand( URLBase + "?cbox_command=delcacheentry&cbox_cacheentry=" + cacheKey + "&cbox_cacheName="+cacheName); // Remove Ent... |
function fw_cacheCommand(URLBase, command, cacheName, refreshContent){ | function fw_cacheCommand(URLBase, command, cacheName){ var loader = document.getElementById('fw_cacheContentReport_loader'); loader.style.display='inline'; | function fw_cacheCommand(URLBase, command, cacheName, refreshContent){ // Execute Command fw_cboxCommand( URLBase + "?cbox_command=" + command + "&cbox_cacheName="+cacheName); // refresh defaults if( refreshContent == null ){ refreshContent = true; } // ReFill the content report if( refreshContent ){ fw_cacheContentRe... |
if( refreshContent == null ){ refreshContent = true; } | function fw_cacheCommand(URLBase, command, cacheName, refreshContent){ // Execute Command fw_cboxCommand( URLBase + "?cbox_command=" + command + "&cbox_cacheName="+cacheName); // refresh defaults if( refreshContent == null ){ refreshContent = true; } // ReFill the content report if( refreshContent ){ fw_cacheContentRe... | |
if( refreshContent ){ fw_cacheContentReport(URLBase,cacheName); } | fw_cacheContentReport(URLBase,cacheName); loader.style.display='none'; | function fw_cacheCommand(URLBase, command, cacheName, refreshContent){ // Execute Command fw_cboxCommand( URLBase + "?cbox_command=" + command + "&cbox_cacheName="+cacheName); // refresh defaults if( refreshContent == null ){ refreshContent = true; } // ReFill the content report if( refreshContent ){ fw_cacheContentRe... |
document.getElementById('fw_cacheContentReport').innerHTML(reportHTML); | document.getElementById('fw_cacheContentReport').innerHTML = reportHTML; | function fw_cacheContentReport(URLBase,cacheName){ var reportHTML = fw_cboxCommand(URLBase+"?debugPanel=cacheContentReport&cbox_cacheName="+cacheName); document.getElementById('fw_cacheContentReport').innerHTML(reportHTML);} |
document.getElementById('fw_cacheReport').innerHTML(reportHTML); | document.getElementById('fw_cacheReport').innerHTML = reportHTML; loader.style.display='none'; | function fw_cacheReport(URLBase,cacheName){ var reportHTML = fw_cboxCommand(URLBase+"?debugPanel=cacheReport&cbox_cacheName="+cacheName); document.getElementById('fw_cacheReport').innerHTML(reportHTML);} |
}(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0});var Sizzle=function(sele... | fx: function( elem, options, prop ) { this.options = options; this.elem = elem; this.prop = prop; if ( !options.orig ) { options.orig = {}; } } | }(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0});var Sizzle=function(sele... |
fx: function( elem, options, prop ){ this.options = options; this.elem = elem; this.prop = prop; if ( !options.orig ) options.orig = {}; } | }(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0});var Sizzle=function(sele... | fx: function( elem, options, prop ){ this.options = options; this.elem = elem; this.prop = prop; if ( !options.orig ) options.orig = {}; } |
var st = new Date( DB.tsToSeconds( x.syncedTo ) * 1000 ); var now = new Date(); print("syncedTo: " + st.toString() ); var ago = (now-st)/1000; var hrs = Math.round(ago/36)/100; print(" = " + Math.round(ago) + "secs ago (" + hrs + "hrs)"); | if ( x.syncedTo ){ var st = new Date( DB.tsToSeconds( x.syncedTo ) * 1000 ); var now = new Date(); print("\t syncedTo: " + st.toString() ); var ago = (now-st)/1000; var hrs = Math.round(ago/36)/100; print("\t\t = " + Math.round(ago) + "secs ago (" + hrs + "hrs)"); } else { print( "\t doing initial sync" ); } | function g(x) { print("source: " + x.host); var st = new Date( DB.tsToSeconds( x.syncedTo ) * 1000 ); var now = new Date(); print("syncedTo: " + st.toString() ); var ago = (now-st)/1000; var hrs = Math.round(ago/36)/100; print(" = " + Math.round(ago) + "se... |
fluid.pager.gappedPageStrategy = function (locality, midLocality) { if (!locality) { locality = 3; } if (!midLocality) { midLocality = locality; } return function (count, first, mid) { var togo = []; var j = 0; var lastSkip = false; for (var i = 0; i < count; ++ i) { if (i < locality || (count - i - 1) < locality || (i... | (function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false... | fluid.pager.gappedPageStrategy = function (locality, midLocality) { if (!locality) { locality = 3; } if (!midLocality) { midLocality = locality; } return function (count, first, mid) { var togo = []; var j = 0; var lastSkip = ... |
arr = property.split(__re.s); | arr = property.split(REGEXP_P_V); | function gatherProperties( properties ) { if ( ! is( properties, STRING ) ){ return {}; } properties = properties.split(SEMICOLON); var props = {}, p, pLen, arr, property; for ( p=0, pLen=properties.length; p<pLen; p++ ) { property = trim( properties[p] ); // skip empties if ( property ... |
var props = {}, p = 0, pLen = properties.length, arr, property; | var props = {}, p = 0, pLen = properties.length, property, arr, prop, val; | function gatherProperties( properties ) { if ( ! is( properties, STRING ) ){ return {}; } properties = properties.split(SEMICOLON); var props = {}, p = 0, pLen = properties.length, arr, property; for ( ; p<pLen; p++ ) { property = trim( properties[p] ); // skip empties if ( property == ... |
arr = property.split(REGEXP_P_V); props[trim(arr[0])] = trim( arr[1] ); | arr = property.split(REGEXP_P_V); prop = arr.shift(); val = arr.join(COLON); props[trim(prop)] = trim( val ); | function gatherProperties( properties ) { if ( ! is( properties, STRING ) ){ return {}; } properties = properties.split(SEMICOLON); var props = {}, p = 0, pLen = properties.length, arr, property; for ( ; p<pLen; p++ ) { property = trim( properties[p] ); // skip empties if ( property == ... |
print( "warning: using noop gc()" ); | gc = function(){ } | |
$.fn.log("general:" + event.type); | function generalHandler(event) { $.fn.log("general:" + event.type); } | |
function generateColumnClick(overallThat, columnDef, opts) { return function () { if (columnDef.sortable === true) { var model = overallThat.model; var newModel = fluid.copy(model); var styles = overallThat.options.styles; var oldKey = model.sortKey; if (columnDef.key !== model.sortKey) { newModel.sortKey = columnDef.k... | (function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false... | function generateColumnClick(overallThat, columnDef, opts) { return function () { if (columnDef.sortable === true) { var model = overallThat.model; var newModel = fluid.copy(model); var styles = overallThat.options.styles; var oldKey = mo... |
function generateHeader(overallThat, newModel, columnDefs, opts) { return { children: fluid.transform(columnDefs, function (columnDef) { return { ID: iDforColumn(columnDef, opts), value: columnDef.label, decorators: [ {"jQuery": ["click", generateColumnClick(overallThat, columnDef, opts)]}, {identify: "header:" + colum... | (function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false... | function generateHeader(overallThat, newModel, columnDefs, opts) { return { children: fluid.transform(columnDefs, function (columnDef) { return { ID: iDforColumn(columnDef, opts), value: columnDef.label, decor... |
that.container.prepend("<input class=\"csc-repeatable-add\" type=\"button\" value=\"" + that.options.strings.add + "\" />"); | that.container.prepend("<input class=\"csc-repeatable-add " + that.options.styles.add + "\" type=\"button\" value=\"" + that.options.strings.add + "\" />"); | cspace.repeatable.generateMarkup = function (that) { // Check for the add button and generate it if required if (that.locate("add").length === 0) { that.container.prepend("<input class=\"csc-repeatable-add\" type=\"button\" value=\"" + that.options.strings.add + "\" />"); } ... |
node.wrap("<ul><li class=\"csc-repeatable-repeat\"/></ul>"); | node.wrap("<ul><li class=\"csc-repeatable-repeat " + that.options.styles.repeat + "\"/></ul>"); | cspace.repeatable.generateMarkup = function (that) { // Check for the add button and generate it if required if (that.locate("add").length === 0) { that.container.prepend("<input class=\"csc-repeatable-add\" type=\"button\" value=\"" + that.options.strings.add + "\" />"); } ... |
node.addClass(that.options.styles.content); | cspace.repeatable.generateMarkup = function (that) { // Check for the add button and generate it if required if (that.locate("add").length === 0) { that.container.prepend("<input class=\"csc-repeatable-add\" type=\"button\" value=\"" + that.options.strings.add + "\" />"); } ... | |
that.container.prepend("<input class=\"csc-repeatable-add " + that.options.styles.add + "\" type=\"button\" value=\"" + that.options.strings.add + "\" />"); | var button = $(that.options.markup.addControl); that.container.prepend(button); button.val(that.options.strings.add); button.addClass(that.options.styles.add); button.css("position", "absolute"); | cspace.repeatable.generateMarkup = function (that) { // Check for the add button and generate it if required if (that.locate("add").length === 0) { that.container.prepend("<input class=\"csc-repeatable-add " + that.options.styles.add + "\" type=\"but... |
}(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0});var Sizzle=function(sele... | function genFx( type, num ) { var obj = {}; jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice(0,num)), function() { obj[ this ] = type; }); return obj; } | }(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0});var Sizzle=function(sele... |
function genFx( type, num ){ var obj = {}; jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice(0,num)), function(){ obj[ this ] = type; }); return obj; } | }(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0});var Sizzle=function(sele... | function genFx( type, num ){ var obj = {}; jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice(0,num)), function(){ obj[ this ] = type; }); return obj;} |
return this._uuid;},genUUID:function(){var guid="{{";for(i=1;i<=32;i++) | workHome.createUnique(CI.nsIFile.DIRECTORY_TYPE,0777);return workHome;},get addonDefaultPath(){var addonChromePath=__LOCATION__.parent.parent;addonChromePath.append("defaults");return addonChromePath;},get dbScriptPath(){var addonChromePath=__LOCATION__.parent.parent;addonChromePath.append("defaults");addonChromePath.a... | return this._uuid;},genUUID:function(){var guid="{{";for(i=1;i<=32;i++){var n=Math.floor(Math.random()*16.0).toString(16);guid+=n;if((i==8)||(i==12)||(i==16)||(i==20))guid+="-";}guid+="}}";return guid;},log:function(msg) |
guid+="}}";return guid;},log:function(msg) | guid+="}}";return guid;},log:function(msg){dump(msg+"\n");},addChild:function(doc,element){if(doc.getElementsByTagName("body")&&doc.getElementsByTagName("body")[0]) | return this._uuid;},genUUID:function(){var guid="{{";for(i=1;i<=32;i++){var n=Math.floor(Math.random()*16.0).toString(16);guid+=n;if((i==8)||(i==12)||(i==16)||(i==20))guid+="-";}guid+="}}";return guid;},log:function(msg) |
(function(window,undefined){var jQuery=function(selector,context){return new jQuery.fn.init(selector,context)},_jQuery=window.jQuery,_$=window.$,document=window.document,rootjQuery,quickExpr=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,isSimple=/^.[^:#\[\.,]*$/,rnotwhite=/\S/,rtrim=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,rsingleTag=/^... | get: function( num ) { return num == null ? this.toArray() : ( num < 0 ? this.slice(num)[ 0 ] : this[ num ] ); }, | (function(window,undefined){var jQuery=function(selector,context){return new jQuery.fn.init(selector,context)},_jQuery=window.jQuery,_$=window.$,document=window.document,rootjQuery,quickExpr=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,isSimple=/^.[^:#\[\.,]*$/,rnotwhite=/\S/,rtrim=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,rsingleTag=/^... |
get: function( num ) { return num === undefined ? Array.prototype.slice.call( this ) : this[ num ]; }, | (function(window,undefined){var jQuery=function(selector,context){return new jQuery.fn.init(selector,context)},_jQuery=window.jQuery,_$=window.$,document=window.document,rootjQuery,quickExpr=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,isSimple=/^.[^:#\[\.,]*$/,rnotwhite=/\S/,rtrim=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,rsingleTag=/^... | get: function( num ) { return num === undefined ? // Return a 'clean' array Array.prototype.slice.call( this ) : // Return just the object this[ num ]; }, |
$.ajax(ajaxOpts); | wrapper(function() { $.ajax(ajaxOpts); }); | that.get = function(directModel, callback) { var ajaxOpts = that.makeAjaxOpts(null, directModel, callback, "GET"); $.ajax(ajaxOpts); }; |
if (callback) that.terseToVerboseCallback(callback)(value); | if (callback) { if (that.isObjectAsString(value)) { eval('value = ' + value.substr(0,value.length-1) + ',key:\'' + key + '\'};'); } that.terseToVerboseCallback(callback)(value); } | get:function(key, callback) { var that = this; navigator.store.get(function(value) { // success cb if (callback) that.terseToVerboseCallback(callback)(value); }, function() {}, // empty error cb key); }, |
var obj = this.deserialize(this.storage[key]); | var obj = this.deserialize(this.storage.getAttribute(key)); | get:function(key, callback){ // this.storage.getAttribute(key); var obj = this.deserialize(this.storage[key]); if (obj) { obj.key = key; if (callback) callback(obj); } }, |
if (callback) | } if (callback) | get:function(key, callback){ // this.storage.getAttribute(key); var obj = this.deserialize(this.storage[key]); if (obj) { obj.key = key; if (callback) callback(obj); } }, |
} | get:function(key, callback){ // this.storage.getAttribute(key); var obj = this.deserialize(this.storage[key]); if (obj) { obj.key = key; if (callback) callback(obj); } }, | |
var publisherList = Registry[sEvent] || (Registry[sEvent] = []), i, len, publisher; | get = Event.get = _get; | function get(src, sEvent) { var publisherList = Registry[sEvent] || (Registry[sEvent] = []), i, len, publisher; for(i = 0, len = publisherList.length; i < len; i++) { publisher = publisherList[i]; if(publisher.src === src) { return pub... |
for(i = 0, len = publisherList.length; i < len; i++) { publisher = publisherList[i]; if(publisher.src === src) { return publisher; | function DomEventPublisher(src, type) { if(!src.addEventListener && !src.attachEvent) { throw TypeError(src+ " is not a compatible object."); | function get(src, sEvent) { var publisherList = Registry[sEvent] || (Registry[sEvent] = []), i, len, publisher; for(i = 0, len = publisherList.length; i < len; i++) { publisher = publisherList[i]; if(publisher.src === src) { return pub... |
publisher = new DomEventPublisher(src, sEvent); publisherList[len] = publisher; return publisher; | DomEventPublisher.prototype = { add : function(callback) { this.add = add; return this.add(callback); function add(callback) { var o = this.src, captureAdapterType = useCaptureMap[this.type], type = captureAdapterType||this.type; if (HAS_EVENT_TARGET) { o.addEventListener(type, callback, !!captureAdapterType); } else {... | function get(src, sEvent) { var publisherList = Registry[sEvent] || (Registry[sEvent] = []), i, len, publisher; for(i = 0, len = publisherList.length; i < len; i++) { publisher = publisherList[i]; if(publisher.src === src) { return pub... |
const XULAppInfo = Components.classes['@mozilla.org/xre/app-info;1'] .getService(Components.interfaces.nsIXULAppInfo); var version = XULAppInfo.platformVersion.split('.'); if (version.length < 3) return false; return this.isGecko19 && parseInt(version[2]) >= 1; } | return Comparator.compare(XULAppInfo.platformVersion, '1.9.1') >= 0; }, | get isGecko191() { const XULAppInfo = Components.classes['@mozilla.org/xre/app-info;1'] .getService(Components.interfaces.nsIXULAppInfo); var version = XULAppInfo.platformVersion.split('.'); if (version.length < 3) return false; return this.isGecko19 && parseInt(version[2]) >= 1; } |
{},get wrappedJSObject() {return this;},}; | else{}}catch(ex){}},log:function(msg){dump("dump from dao:"+msg+"\n");},register:function(){},get wrappedJSObject(){return this;}}; | {},get wrappedJSObject(){return this;},}; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.