This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Used to get the current viewed node (works when viewed in page mode). | |
* @param array $node_types[optional] A filter on the type of node you want to see. | |
* @return object The node or null if not successfull. | |
*/ | |
function helper_get_current_node($node_types = array()) { | |
// Store the current node id, to avoid doing the URL testing | |
// on every call to this function. I didn't store the node itself | |
// because I was afraid of data changes during page processing. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Author: Aleksandar Janković, [email protected] | |
Description: Main javascript file for Google Chrome plugin Chrasks. It uses | |
localStorage technology for saving tasks data. | |
*/ | |
// Declaring Chrasks object | |
function Chrasks(){ | |
var me = this; | |
this.taskForm = document.getElementById('task-form'); |
NewerOlder