From: <al...@us...> - 2008-08-24 20:06:16
|
Revision: 631 http://sciret.svn.sourceforge.net/sciret/?rev=631&view=rev Author: alpeb Date: 2008-08-24 20:06:14 +0000 (Sun, 24 Aug 2008) Log Message: ----------- the file used is under /javascript, not this one Removed Paths: ------------- trunk/general.js Deleted: trunk/general.js =================================================================== --- trunk/general.js 2008-08-24 20:03:18 UTC (rev 630) +++ trunk/general.js 2008-08-24 20:06:14 UTC (rev 631) @@ -1,58 +0,0 @@ -/* -* @copyright Copyright (C) 2005-2007 TheGang http://www.the-gang.net -* @license http://www.fsf.org/copyleft/lgpl.html GNU Lesser General Public License -* @author Alejandro Pedraza -* @since Sciret 1.0 -* @package Sciret -* @packager TheGang -*/ - -var onloadFunctions = new Array(); - -function triggerOnloadFunctions() { - for (var i = 0; i < onloadFunctions.length; i++) { - onloadFunctions[i](); - } -} - - -function openpopup() { - var window1 = window.open('index.php?view=ManageArticles&selectArticles=1', 'Search', 'width=800,height=600,toolbar=no,scrollbars=yes,resizable=yes'); -} - -function isEnterKey(evt) { - evt = (evt)? evt : (window.event)? window.event : ''; - var theKey; - if (evt) { - theKey = (evt.which)? evt.which : evt.keyCode; - } - - return (theKey == 13); -} - - -function catchEnter(evt, execute) { - if (isEnterKey(evt)) { - execute(); - } - return false; -} - -function deleteArticle(articleId, articleTitle, confirmationMessage, referrerView) { - if (!confirm(confirmationMessage + ' "' + articleTitle + '" ?')) { - return; - } - - location.href = 'index.php?action=DeleteArticle&id=' + articleId + '&referrerView=' + referrerView; -} - -function transferId(articleID) { - if (opener.document.add_article_form.related_articles.value == '') { - old_value = new Array(); - } else { - old_value = opener.document.add_article_form.related_articles.value.split(', '); - } - old_value.push(articleID); - opener.document.add_article_form.related_articles.value = old_value.join(', '); -} - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |