diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-24 12:01:27 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-24 12:01:27 +0000 |
commit | fc6b7d5e724215883d3edf01e50b8134e868cc05 (patch) | |
tree | 13a3ba399f32510d5f83a4b0488dd2f0ef3c452e | |
parent | 4a0f40ed8817308a1be65395b5b53976e433f386 (diff) | |
download | elgg-fc6b7d5e724215883d3edf01e50b8134e868cc05.tar.gz elgg-fc6b7d5e724215883d3edf01e50b8134e868cc05.tar.bz2 |
Introducing elgg_view_title
git-svn-id: https://code.elgg.org/elgg/trunk@1097 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | views/default/page_elements/title.php | 18 | ||||
-rw-r--r-- | views/default/widgets/editwrapper.php | 2 |
2 files changed, 19 insertions, 1 deletions
diff --git a/views/default/page_elements/title.php b/views/default/page_elements/title.php new file mode 100644 index 000000000..df21df4e4 --- /dev/null +++ b/views/default/page_elements/title.php @@ -0,0 +1,18 @@ +<?php
+
+ /**
+ * Elgg title element
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ *
+ * @uses $vars['title'] The page title
+ */
+
+?>
+
+<h2 class="page_title"><?php echo $vars['title']; ?></h2>
\ No newline at end of file diff --git a/views/default/widgets/editwrapper.php b/views/default/widgets/editwrapper.php index 17be9480e..dd94fe27c 100644 --- a/views/default/widgets/editwrapper.php +++ b/views/default/widgets/editwrapper.php @@ -49,7 +49,7 @@ $(document).ready(function() { $("#submit<?php echo $guid; ?>").attr("disabled","disabled");
$("#submit<?php echo $guid; ?>").attr("value","<?php echo elgg_echo("saving"); ?>");
$("#widgetcontent<?php echo $guid; ?>").html('<?php echo elgg_view('ajax/loader',array('slashes' => true)); ?>');
- $("#widget<?php echo $guid; ?>").add(".toggle_box_edit_panel").click();
+ $("#widget<?php echo $guid; ?>.toggle_box_edit_panel").click();
var variables = $("#widgetform<?php echo $guid; ?>").serialize();
$.post($("#widgetform<?php echo $guid; ?>").attr("action"),variables,function() {
|