Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Using the exposed P object

  • Loading branch information...
commit 33633c82458091f428d9972e9f28f24b67c21154 1 parent 3ccd36d
@jaseemabid jaseemabid authored
View
2  contribute.php
@@ -44,7 +44,7 @@
<script src='js/comment.js' type='text/javascript'></script>
<script type='text/javascript'>
$(document).ready(function() {
- Paathshaala.getVideo();
+ P.getVideo();
$('span#helpTrigger').click(function(){
$('div#helpMessage').slideToggle();
});
View
6 index.php
@@ -24,9 +24,9 @@
?>
<script type="text/javascript">
$(document).ready(function() {
- Paathshaala.updateStoryBox('Featured')
- Paathshaala.updateStoryBox('Popular')
- Paathshaala.updateStoryBox('Top Rated')
+ P.updateStoryBox('Featured')
+ P.updateStoryBox('Popular')
+ P.updateStoryBox('Top Rated')
});
</script>
View
6 profile.php
@@ -46,9 +46,9 @@
?>
<script type="text/javascript">
$(document).ready(function() {
- Paathshaala.updateStoryBox('My Uploads');
- Paathshaala.updateStoryBox('Liked videos');
- Paathshaala.updateStoryBox('Disliked videos');
+ P.updateStoryBox('My Uploads');
+ P.updateStoryBox('Liked videos');
+ P.updateStoryBox('Disliked videos');
});
</script>
</body>
View
5 search.php
@@ -33,15 +33,12 @@
?>
<script type='text/javascript'>
$(document).ready(function() {
-
$('div#next').mouseover(function(){
var q = getUrlVars()['q'],
tag = getUrlVars()['tag'];
- Paathshaala.Search( q , tag );
+ P.Search( q , tag );
});
-
$('div#next').trigger('mouseover');
-
});
</script>
</body>
View
2  video.php
@@ -44,7 +44,7 @@ function getActiveUser() {
}
$(document).ready(function() {
- Paathshaala.getVideo( <?php echo $_GET['video'] ?> );
+ P.getVideo( <?php echo $_GET['video'] ?> );
/* Function calls to update the comments */
updateComment("/couch/comments/_design/comments/_view/commentbycid?key=\"<?php echo $_GET['video']; ?>\"");
getNewComment(function(changes){
Please sign in to comment.
Something went wrong with that request. Please try again.