Difference between revisions 1480321 and 1480322 on nlwiktionary

/** See talk page for details **/
 
//JsMwApi documentation is at http://en.wiktionary.org/wiki/User_talk:Conrad.Irwin/Api.js
function JsMwApi (api_url, request_type) {
 
	if (!api_url) 
	{
		if (typeof(wgEnableAPI) === 'undefined' || wgEnableAPI == false)
(contracted; show full)	}
	// For enforcing an ordering on nested languages.
	this.nestsBefore = function (a, b)
	{
		return  temporalSortKey(a) < temporalSortKey(b);
	}
}

 
addOnloadHook
mw.loader.using('jquery.cookie', function () {
jQuery(document).ready(function () {
 
	// Check if we are on a sensible page
	var actions = window.location.toString().replace(/.*\?/, '&');
	if (wgAction != 'view' || actions.indexOf('&printable=yes') > -1 || actions.indexOf('&diff=') > -1 || actions.indexOf('&oldid=') > -1)
		return;
 
	// Check that we have not been disabled
(contracted; show full)			}
 
		} }, (prefs.get('labeller') == 'true' ? 'Disable' : 'Enable'))
 
		node.appendChild(toggle2);
 
	}
})
;
});

function concatObject(obj) {
  str='';
  for(prop in obj)
  {
    str+=prop + " value :"+ obj[prop]+"\n";
  }
  return(str);
}