Skip to content
Browse files

Using the exposed P object

  • Loading branch information...
1 parent 3ccd36d commit 33633c82458091f428d9972e9f28f24b67c21154 @jaseemabid jaseemabid committed
Showing with 9 additions and 12 deletions.
  1. +1 −1 contribute.php
  2. +3 −3 index.php
  3. +3 −3 profile.php
  4. +1 −4 search.php
  5. +1 −1 video.php
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){

0 comments on commit 33633c8

Please sign in to comment.
Something went wrong with that request. Please try again.