jablonka.czprosek.czf

weathermap

Subversion Repositories:
[/] [editor.js] - Diff between revs 1 and 13

Show entire file Ignore whitespace

Rev 1 Rev 13
Line 195... Line 195...
addEvent(document.getElementById('tb_images_cancel'), 'click', cancel_op); addEvent(document.getElementById('tb_images_cancel'), 'click', cancel_op);
addEvent(document.getElementById('tb_images_submit'), 'click', do_submit); addEvent(document.getElementById('tb_images_submit'), 'click', do_submit);
   
var cp = document.getElementById('link_cactipick'); var cp = document.getElementById('link_cactipick');
addEvent(cp, 'click', cactipicker); addEvent(cp, 'click', cactipicker);
  cp.setAttribute('href', '#');
   
  cp = document.getElementById('node_cactipick');
  addEvent(cp, 'click', nodecactipicker);
cp.setAttribute('href', '#'); cp.setAttribute('href', '#');
} }
   
// used by the cancel button on each of the properties dialogs // used by the cancel button on each of the properties dialogs
function cancel_op() function cancel_op()
Line 398... Line 402...
{ {
// window is already open and focusable, so bring it to the front // window is already open and focusable, so bring it to the front
newWindow.focus(); newWindow.focus();
} }
   
newWindow.location = "cacti-pick.php"; newWindow.location = "cacti-pick.php?command=link_step1";
  }
   
   
  function nodecactipicker()
  {
  // make sure it isn't already opened
  if (!newWindow || newWindow.closed)
  {
  newWindow = window.open("", "cactipicker", "status,scrollbars=yes,height=400,width=400");
  }
   
  else if (newWindow.focus)
  {
  // window is already open and focusable, so bring it to the front
  newWindow.focus();
  }
   
  newWindow.location = "cacti-pick.php?command=node_step1";
} }
   
function show_context_help(itemid, targetid) function show_context_help(itemid, targetid)
{ {
// var itemid = item.id; // var itemid = item.id;

Powered by WebSVN 2.2.1