Revision: 341
Author:
martij...@gmail.com
Date: Sat Nov 27 04:18:03 2010
Log: Removed all remaining references to jQuery compatibility mode.
Also updated some of the copyright headers to the new smaller version.
http://code.google.com/p/wolfcms/source/detail?r=341
Modified:
/trunk/wolf/admin/javascripts/wolf.js
/trunk/wolf/app/layouts/backend.php
/trunk/wolf/app/views/layout/edit.php
/trunk/wolf/app/views/layout/index.php
/trunk/wolf/app/views/page/edit.php
/trunk/wolf/app/views/page/index.php
/trunk/wolf/app/views/page/part_edit.php
/trunk/wolf/app/views/setting/index.php
/trunk/wolf/app/views/snippet/edit.php
/trunk/wolf/app/views/snippet/index.php
/trunk/wolf/app/views/user/edit.php
/trunk/wolf/plugins/backup_restore/views/settings.php
/trunk/wolf/plugins/comment/views/edit.php
/trunk/wolf/plugins/comment/views/settings.php
/trunk/wolf/plugins/file_manager/file_manager.js
/trunk/wolf/plugins/multi_lang/views/settings.php
/trunk/wolf/plugins/skeleton/views/settings.php
=======================================
--- /trunk/wolf/admin/javascripts/wolf.js Sat Nov 20 11:29:24 2010
+++ /trunk/wolf/admin/javascripts/wolf.js Sat Nov 27 04:18:03 2010
@@ -17,7 +17,7 @@
return value;
}
else {
- value = $j.trim(value);
+ value = $.trim(value);
value = value.toLowerCase();
value =
value.replace(/[à â]/g,"a").replace(/[éèêë]/g,"e").replace(/[îï]/g,"i")
.replace(/[ô]/g,"o").replace(/[ùû]/g,"u").replace(/[ñ]/g,"n")
@@ -62,7 +62,7 @@
// Updated valid_part_name function for JQuery
function valid_part_name(name) {
name = name.toLowerCase();
- name = $j.trim(name);
+ name = $.trim(name);
var result = true;
if (name == '') {
@@ -70,7 +70,7 @@
return false;
}
- $j('#part-tabs .tabNavigation .tab a').each(function(){
+ $('#part-tabs .tabNavigation .tab a').each(function(){
if (this.text == name) {
result = false;
alert('Part name must be unique.');
=======================================
--- /trunk/wolf/app/layouts/backend.php Mon Nov 22 09:39:41 2010
+++ /trunk/wolf/app/layouts/backend.php Sat Nov 27 04:18:03 2010
@@ -60,25 +60,21 @@
<script type="text/javascript" src="<?php echo
URI_PUBLIC; ?>wolf/admin/markitup/jquery.markitup.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo
URI_PUBLIC; ?>wolf/admin/markitup/skins/simple/style.css" />
- <script type="text/javascript" charset="utf-8">
- var $j = jQuery.noConflict();
- </script>
-
<script type="text/javascript">
// <![CDATA[
- $j(document).ready(function() {
+ $(document).ready(function() {
(function showMessages(e) {
e.fadeIn('slow')
.animate({opacity: 1.0}, 1500)
.fadeOut('slow', function() {
- if ($j(this).next().attr('class') == 'message') {
- showMessages($j(this).next());
- }
- $j(this).remove();
+ if ($(this).next().attr('class') == 'message') {
+ showMessages($(this).next());
+ }
+ $(this).remove();
})
- })( $j(".message:first") );
-
- $j("input:visible:enabled:first").focus();
+ })( $(".message:first") );
+
+ $("input:visible:enabled:first").focus();
});
// ]]>
</script>
=======================================
--- /trunk/wolf/app/views/layout/edit.php Sat Nov 20 14:57:17 2010
+++ /trunk/wolf/app/views/layout/edit.php Sat Nov 27 04:18:03 2010
@@ -1,26 +1,12 @@
<?php
+
/*
* Wolf CMS - Content Management Simplified. <
http://www.wolfcms.org>
- * Copyright (C) 2009 Martijn van der Kleijn <
martij...@gmail.com>
+ * Copyright (C) 2009-2010 Martijn van der Kleijn <
martij...@gmail.com>
* Copyright (C) 2008 Philippe Archambault <
philippe.a...@gmail.com>
*
- * This file is part of Wolf CMS.
- *
- * Wolf CMS is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Wolf CMS is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Wolf CMS. If not, see <
http://www.gnu.org/licenses/>.
- *
- * Wolf CMS has made an exception to the GNU General Public License for
plugins.
- * See exception.txt for details and the full text.
+ * This file is part of Wolf CMS. Wolf CMS is licensed under the GNU GPLv3
license.
+ * Please see license.txt for the full license text.
*/
/**
@@ -76,10 +62,10 @@
return '<?php echo __('You have modified this page. If you
navigate away from this page without first saving your data, the changes
will be lost.'); ?>';
}
- $j(document).ready(function() {
+ $(document).ready(function() {
// Prevent accidentally navigating away
- $j(':input').bind('change', function() { setConfirmUnload(true);
});
- $j('form').submit(function() { setConfirmUnload(false); return
true; });
+ $(':input').bind('change', function() { setConfirmUnload(true); });
+ $('form').submit(function() { setConfirmUnload(false); return
true; });
});
document.getElementById('layout_name').focus();
=======================================
--- /trunk/wolf/app/views/layout/index.php Mon Sep 20 03:22:17 2010
+++ /trunk/wolf/app/views/layout/index.php Sat Nov 27 04:18:03 2010
@@ -1,26 +1,11 @@
<?php
/*
* Wolf CMS - Content Management Simplified. <
http://www.wolfcms.org>
- * Copyright (C) 2009 Martijn van der Kleijn <
martij...@gmail.com>
+ * Copyright (C) 2009-2010 Martijn van der Kleijn <
martij...@gmail.com>
* Copyright (C) 2008 Philippe Archambault <
philippe.a...@gmail.com>
*
- * This file is part of Wolf CMS.
- *
- * Wolf CMS is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Wolf CMS is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Wolf CMS. If not, see <
http://www.gnu.org/licenses/>.
- *
- * Wolf CMS has made an exception to the GNU General Public License for
plugins.
- * See exception.txt for details and the full text.
+ * This file is part of Wolf CMS. Wolf CMS is licensed under the GNU GPLv3
license.
+ * Please see license.txt for the full license text.
*/
/**
@@ -76,8 +61,8 @@
cursor:'crosshair',
distance:'15',
stop: function(event, ui) {
- var order = $j(ui.item.parent()).sortable('serialize',
{key: 'layouts[]'});
- $
j.post('<?php echo get_url('layout/reorder/'); ?>',
{data : order});
+ var order = $(ui.item.parent()).sortable('serialize',
{key: 'layouts[]'});
+ $.post('<?php echo get_url('layout/reorder/'); ?>',
{data : order});
}
})
.disableSelection();
@@ -85,18 +70,18 @@
return this;
};
- $j(document).ready(function() {
- $j('ul#layouts').sortableSetup();
- $j('#reorder-toggle').toggle(
+ $(document).ready(function() {
+ $('ul#layouts').sortableSetup();
+ $('#reorder-toggle').toggle(
function(){
- $j('ul#layouts').sortable('option', 'disabled', false);
- $j('.handle').show();
- $j('#reorder-toggle').text('<?php echo __('disable
reorder');?>');
+ $('ul#layouts').sortable('option', 'disabled', false);
+ $('.handle').show();
+ $('#reorder-toggle').text('<?php echo __('disable
reorder');?>');
},
function() {
- $j('ul#layouts').sortable('option', 'disabled', true);
- $j('.handle').hide();
- $j('#reorder-toggle').text('<?php echo __('reorder');?>');
+ $('ul#layouts').sortable('option', 'disabled', true);
+ $('.handle').hide();
+ $('#reorder-toggle').text('<?php echo __('reorder');?>');
}
)
});
=======================================
--- /trunk/wolf/app/views/page/edit.php Tue Nov 23 03:51:18 2010
+++ /trunk/wolf/app/views/page/edit.php Sat Nov 27 04:18:03 2010
@@ -261,24 +261,24 @@
jQuery.fn.spinnerSetup = function spinnerSetup() {
this.each(function() {
- var pid = $j(this).attr('id')
- $j('#'+pid).hide() // hide it initially
+ var pid = $(this).attr('id')
+ $('#'+pid).hide() // hide it initially
.ajaxStop(function() {
- $j('#'+pid).hide();
+ $('#'+pid).hide();
});
});
return this;
};
- $j(document).ready(function() {
- $j(".busy").spinnerSetup();
+ $(document).ready(function() {
+ $(".busy").spinnerSetup();
var editAction = '<?php echo $action; ?>';
if (editAction == 'add') {
- $j('#page_title').change(function (){
- $j('#page_slug').val(toSlug(this.value));
+ $('#page_title').change(function (){
+ $('#page_slug').val(toSlug(this.value));
});
}
@@ -286,74 +286,74 @@
var partIndex = <?php echo $index; ?>;
// Prevent accidentally navigating away
- $j('form#page_edit_form :input').bind('change', function() {
setConfirmUnload(true); });
- $j('form#page_edit_form').submit(function() {
setConfirmUnload(false); return true; });
+ $('form#page_edit_form :input').bind('change', function() {
setConfirmUnload(true); });
+ $('form#page_edit_form').submit(function() {
setConfirmUnload(false); return true; });
// Do the metainfo tab thing
- $j('div#metainfo-tabs ul.tabNavigation a').live('click',
function() {
- $j('div#metainfo-content >
div.page').hide().filter(this.hash).show();
- $j('div#metainfo-tabs ul.tabNavigation a').removeClass('here');
- $j(this).addClass('here');
+ $('div#metainfo-tabs ul.tabNavigation a').live('click', function()
{
+ $('div#metainfo-content >
div.page').hide().filter(this.hash).show();
+ $('div#metainfo-tabs ul.tabNavigation a').removeClass('here');
+ $(this).addClass('here');
return false;
}).filter(':first').click();
// Do the parts tab thing
- $j('div#part-tabs ul.tabNavigation a').live('click', function() {
- $j('div#part-content >
div.page').hide().filter(this.hash).show();
- $j('div#part-tabs ul.tabNavigation a').removeClass('here');
- $j(this).addClass('here');
+ $('div#part-tabs ul.tabNavigation a').live('click', function() {
+ $('div#part-content >
div.page').hide().filter(this.hash).show();
+ $('div#part-tabs ul.tabNavigation a').removeClass('here');
+ $(this).addClass('here');
return false;
}).filter(':first').click();
// Do the add part button thing
- $j('#add-part').click(function() {
+ $('#add-part').click(function() {
// START show popup
var id = 'div#boxes div#add-part-dialog';
//Get the screen height and width
- var maskHeight = $j(document).height();
- var maskWidth = $j(window).width();
+ var maskHeight = $(document).height();
+ var maskWidth = $(window).width();
//Set height and width to mask to fill up the whole screen
-
$j('#mask').css({'width':maskWidth,'height':maskHeight,'top':0,'left':0});
+
$('#mask').css({'width':maskWidth,'height':maskHeight,'top':0,'left':0});
//transition effect
- $j('#mask').show();
- $j('#mask').fadeTo("fast",0.5);
+ $('#mask').show();
+ $('#mask').fadeTo("fast",0.5);
//Get the window height and width
- var winH = $j(window).height();
- var winW = $j(window).width();
+ var winH = $(window).height();
+ var winW = $(window).width();
//Set the popup window to center
- $j(id).css('top', winH/2-$j(id).height()/2);
- $j(id).css('left', winW/2-$j(id).width()/2);
+ $(id).css('top', winH/2-$(id).height()/2);
+ $(id).css('left', winW/2-$(id).width()/2);
//transition effect
- $j(id).fadeIn("fast"); //2000
-
- $j(id+" :input:visible:enabled:first").focus();
+ $(id).fadeIn("fast"); //2000
+
+ $(id+" :input:visible:enabled:first").focus();
// END show popup
});
// Do the submit add part window thing
- $j('div#add-part-dialog div.content form').submit(function(e) {
+ $('div#add-part-dialog div.content form').submit(function(e) {
e.preventDefault();
- if (valid_part_name($j('div#add-part-dialog div.content form
input#part-name-field').val())) {
- $j('div#part-tabs ul.tabNavigation').append('<li
id="part-'+partIndex+'-tab" class="tab">\n\
- <a
href="#part-'+partIndex+'-content">'+$j('div#add-part-dialog div.content
form input#part-name-field').val()+'</a></li>');
-
- $j('div#part-tabs ul.tabNavigation
li#part-'+partIndex+'-tab a').click();
-
- $j('#busy').show();
-
- $
j.post('<?php echo get_url('page/addPart'); ?>',
- $j('div#add-part-dialog div.content
form').serialize(),
+ if (valid_part_name($('div#add-part-dialog div.content form
input#part-name-field').val())) {
+ $('div#part-tabs ul.tabNavigation').append('<li
id="part-'+partIndex+'-tab" class="tab">\n\
+ <a
href="#part-'+partIndex+'-content">'+$('div#add-part-dialog div.content
form input#part-name-field').val()+'</a></li>');
+
+ $('div#part-tabs ul.tabNavigation
li#part-'+partIndex+'-tab a').click();
+
+ $('#busy').show();
+
+ $.post('<?php echo get_url('page/addPart'); ?>',
+ $('div#add-part-dialog div.content
form').serialize(),
function(data) {
- $j('div#part-content').append(data);
- $j('#busy').hide();
+ $('div#part-content').append(data);
+ $('#busy').hide();
});
partIndex++;
@@ -362,28 +362,28 @@
setConfirmUnload(true);
}
- $j('#mask, .window').hide();
+ $('#mask, .window').hide();
return false;
});
// Do the delete part button thing
- $j('#delete-part').click(function() {
+ $('#delete-part').click(function() {
// Delete the tab
var partRegEx = /part-(\d+)-tab/i;
var myRegEx = new RegExp(partRegEx);
- var matched = myRegEx.exec($j('div#part-tabs ul.tabNavigation
li.tab a.here').parent().attr('id'));
+ var matched = myRegEx.exec($('div#part-tabs ul.tabNavigation
li.tab a.here').parent().attr('id'));
var removePart = matched[1];
if (!confirm('<?php echo __('Delete the current tab?'); ?>')) {
return;
}
- $j('div#part-tabs ul.tabNavigation li.tab a.here').remove();
- $j('div#part-tabs ul.tabNavigation
a').filter(':first').click();
+ $('div#part-tabs ul.tabNavigation li.tab a.here').remove();
+ $('div#part-tabs ul.tabNavigation a').filter(':first').click();
// Delete the content section
- $j('div#part-'+removePart+'-content').remove();
+ $('div#part-'+removePart+'-content').remove();
// Make sure users save changes
setConfirmUnload(true);
@@ -391,7 +391,7 @@
// Make all modal dialogs draggable
- $j("#boxes .window").draggable({
+ $("#boxes .window").draggable({
addClasses: false,
containment: 'window',
scroll: false,
@@ -399,10 +399,10 @@
})
//if close button is clicked
- $j('#boxes .window .close').click(function (e) {
+ $('#boxes .window .close').click(function (e) {
//Cancel the link behavior
e.preventDefault();
- $j('#mask, .window').hide();
+ $('#mask, .window').hide();
});
});
=======================================
--- /trunk/wolf/app/views/page/index.php Wed Oct 20 15:43:23 2010
+++ /trunk/wolf/app/views/page/index.php Sat Nov 27 04:18:03 2010
@@ -1,26 +1,11 @@
<?php
/*
* Wolf CMS - Content Management Simplified. <
http://www.wolfcms.org>
- * Copyright (C) 2009 Martijn van der Kleijn <
martij...@gmail.com>
+ * Copyright (C) 2009-2010 Martijn van der Kleijn <
martij...@gmail.com>
* Copyright (C) 2008 Philippe Archambault <
philippe.a...@gmail.com>
*
- * This file is part of Wolf CMS.
- *
- * Wolf CMS is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Wolf CMS is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Wolf CMS. If not, see <
http://www.gnu.org/licenses/>.
- *
- * Wolf CMS has made an exception to the GNU General Public License for
plugins.
- * See exception.txt for details and the full text.
+ * This file is part of Wolf CMS. Wolf CMS is licensed under the GNU GPLv3
license.
+ * Please see license.txt for the full license text.
*/
/**
@@ -120,10 +105,10 @@
//jQuery(function() {
jQuery.fn.spinnerSetup = function spinnerSetup() {
this.each(function() {
- var pid = $j(this).attr('id')
- $j('#'+pid).hide() // hide it initially
+ var pid = $(this).attr('id')
+ $('#'+pid).hide() // hide it initially
.ajaxStop(function() {
- $j('#'+pid).hide();
+ $('#'+pid).hide();
});
});
@@ -132,46 +117,46 @@
jQuery.fn.sitemapSetup = function sitemapSetup() {
this.each(function () {
- if($j('ul',this).length) return;
- var pid = $j(this).attr('id').split('_')[1];
+ if($('ul',this).length) return;
+ var pid = $(this).attr('id').split('_')[1];
});
return this;
};
jQuery.fn.expandableSetup = function expandableSetup() {
- $j(this).live('click', function() {
- if ($j(this).hasClass("expanded")) {
- $j(this).removeClass("expanded");
- $j(this).attr('src', '<?php echo
URI_PUBLIC; ?>wolf/admin/images/expand.png');
-
- var parent = $j(this).parents("li.node:first")
+ $(this).live('click', function() {
+ if ($(this).hasClass("expanded")) {
+ $(this).removeClass("expanded");
+ $(this).attr('src', '<?php echo
URI_PUBLIC; ?>wolf/admin/images/expand.png');
+
+ var parent = $(this).parents("li.node:first")
var parentId = parent.attr('id').split('_')[1];
- $j('#page_'+parentId).children('ul').hide();
+ $('#page_'+parentId).children('ul').hide();
}
else {
- $j(this).addClass("expanded");
- $j(this).attr('src', '<?php echo
URI_PUBLIC; ?>wolf/admin/images/collapse.png');
- var parent = $j(this).parents("li.node:first");
+ $(this).addClass("expanded");
+ $(this).attr('src', '<?php echo
URI_PUBLIC; ?>wolf/admin/images/collapse.png');
+ var parent = $(this).parents("li.node:first");
var parentId = parent.attr('id').split('_')[1];
- if ($j('#page_'+parentId).children('ul').length == 0) {
- $j('#busy-'+parentId).show();
- $j.get("<?php echo
get_url('page/children/'); ?>"+parentId+'/'+'1', function(data) {
- $j('#page_'+parentId).append(data);
- $j('#site-map li').sitemapSetup();
- $j('.busy').spinnerSetup();
+ if ($('#page_'+parentId).children('ul').length == 0) {
+ $('#busy-'+parentId).show();
+ $.get("<?php echo
get_url('page/children/'); ?>"+parentId+'/'+'1', function(data) {
+ $('#page_'+parentId).append(data);
+ $('#site-map li').sitemapSetup();
+ $('.busy').spinnerSetup();
});
}
else {
- $j('#page_'+parentId).children('ul').show();
+ $('#page_'+parentId).children('ul').show();
}
}
});
};
jQuery.fn.sortableSetup = function sortableSetup() {
- $j('ul#site-map').nestedSortable({
+ $('ul#site-map').nestedSortable({
disableNesting: 'no-nest',
forcePlaceholderSize: true,
handle: 'div',
@@ -187,13 +172,13 @@
// quick checks incase they have taken it out of the sitemap tree
if(ui.item.parents("#page-0").is('li') === false)
{
- $j("ul#site-map").nestedSortable('cancel');
+ $("ul#site-map").nestedSortable('cancel');
}
},
stop: function(event, ui) {
- var order = $j("ul#site-map").nestedSortable('serialize');
-
- $j.ajax({
+ var order = $("ul#site-map").nestedSortable('serialize');
+
+ $.ajax({
type: 'post',
url: '<?php echo get_url('page/reorder'); ?>',
data: order,
@@ -254,10 +239,10 @@
jQuery.fn.copyableSetup = function() {
- $j(this).live('click', function() {
- var id = $j(this).attr('id').split('-');
-
- $j.ajax({
+ $(this).live('click', function() {
+ var id = $(this).attr('id').split('-');
+
+ $.ajax({
type: 'post',
url: '<?php echo get_url('page/copy'); ?>',
data: "&originalid="+id[1],
@@ -268,7 +253,7 @@
var newid = parseInt(data[0]);
// setup the new row
- var newobj = $j("#page_"+id[1]).clone().css('display', 'none');
+ var newobj = $("#page_"+id[1]).clone().css('display', 'none');
newobj.attr('id', 'page_'+newid); // set the main li id
newobj.find('.edit-link').attr({ // set the edit link
@@ -282,7 +267,7 @@
newobj.find('.remove').attr('href', data[6]); // set the delete link
newobj.find('.copy-page').attr('id', 'copy-'+newid); // set the copy
id
- $j("#page_"+id[1]).after(newobj); // add row to dom and slide down
+ $("#page_"+id[1]).after(newobj); // add row to dom and slide down
newobj.slideDown();
}
});
@@ -291,24 +276,24 @@
};
-$j(document).ready(function(){
- $j('#site-map li').sitemapSetup();
- $j("img.expander").expandableSetup();
- $j(".busy").spinnerSetup();
- $j(".copy-page").copyableSetup();
- $j('ul#site-map').sortableSetup();
- $j('ul#site-map').nestedSortable('disable');
-
- $j('#toggle_reorder').toggle(
+$(document).ready(function(){
+ $('#site-map li').sitemapSetup();
+ $("img.expander").expandableSetup();
+ $(".busy").spinnerSetup();
+ $(".copy-page").copyableSetup();
+ $('ul#site-map').sortableSetup();
+ $('ul#site-map').nestedSortable('disable');
+
+ $('#toggle_reorder').toggle(
function(){
- $j('ul#site-map').nestedSortable('enable');
- $j('img.handle_reorder').show();
- $j('#toggle_reorder').text('<?php echo __('disable
reorder');?>');
+ $('ul#site-map').nestedSortable('enable');
+ $('img.handle_reorder').show();
+ $('#toggle_reorder').text('<?php echo __('disable
reorder');?>');
},
function() {
- $j('ul#site-map').nestedSortable('disable');
- $j('img.handle_reorder').hide();
- $j('#toggle_reorder').text('<?php echo __('reorder');?>');
+ $('ul#site-map').nestedSortable('disable');
+ $('img.handle_reorder').hide();
+ $('#toggle_reorder').text('<?php echo __('reorder');?>');
}
)
});
=======================================
--- /trunk/wolf/app/views/page/part_edit.php Sun Oct 31 06:05:53 2010
+++ /trunk/wolf/app/views/page/part_edit.php Sat Nov 27 04:18:03 2010
@@ -1,26 +1,11 @@
<?php
/*
* Wolf CMS - Content Management Simplified. <
http://www.wolfcms.org>
- * Copyright (C) 2009 Martijn van der Kleijn <
martij...@gmail.com>
+ * Copyright (C) 2009-2010 Martijn van der Kleijn <
martij...@gmail.com>
* Copyright (C) 2008 Philippe Archambault <
philippe.a...@gmail.com>
*
- * This file is part of Wolf CMS.
- *
- * Wolf CMS is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Wolf CMS is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Wolf CMS. If not, see <
http://www.gnu.org/licenses/>.
- *
- * Wolf CMS has made an exception to the GNU General Public License for
plugins.
- * See exception.txt for details and the full text.
+ * This file is part of Wolf CMS. Wolf CMS is licensed under the GNU GPLv3
license.
+ * Please see license.txt for the full license text.
*/
/**
@@ -57,21 +42,21 @@
</div>
<script type="text/javascript">
-$j(document).ready(function() {
+$(document).ready(function() {
<?php
if($page_part->filter_id != "")
{
?>
- $j('#part_<?php echo ($index-1); ?>_content').markItUp(<?php echo
$page_part->filter_id; ?>Settings);
+ $('#part_<?php echo ($index-1); ?>_content').markItUp(<?php echo
$page_part->filter_id; ?>Settings);
<?php } ?>
- $j('#part_<?php echo ($index-1); ?>_filter_id').change(function() {
- $j('#part_<?php echo ($index-1); ?>_content').markItUpRemove();
- var newfilter = $j(this).val();
+ $('#part_<?php echo ($index-1); ?>_filter_id').change(function() {
+ $('#part_<?php echo ($index-1); ?>_content').markItUpRemove();
+ var newfilter = $(this).val();
<?php foreach (Filter::findAll() as $filter): ?>
if(newfilter == '<?php echo $filter; ?>')
{
- $j('#part_<?php echo ($index-1); ?>_content').markItUp(<?php echo
$filter; ?>Settings);
+ $('#part_<?php echo ($index-1); ?>_content').markItUp(<?php echo
$filter; ?>Settings);
}
<?php endforeach; ?>
=======================================
--- /trunk/wolf/app/views/setting/index.php Sat Sep 18 17:38:05 2010
+++ /trunk/wolf/app/views/setting/index.php Sat Nov 27 04:18:03 2010
@@ -1,26 +1,11 @@
<?php
/*
* Wolf CMS - Content Management Simplified. <
http://www.wolfcms.org>
- * Copyright (C) 2009,2010 Martijn van der Kleijn <
martij...@gmail.com>
+ * Copyright (C) 2009-2010 Martijn van der Kleijn <
martij...@gmail.com>
* Copyright (C) 2008 Philippe Archambault <
philippe.a...@gmail.com>
*
- * This file is part of Wolf CMS.
- *
- * Wolf CMS is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Wolf CMS is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Wolf CMS. If not, see <
http://www.gnu.org/licenses/>.
- *
- * Wolf CMS has made an exception to the GNU General Public License for
plugins.
- * See exception.txt for details and the full text.
+ * This file is part of Wolf CMS. Wolf CMS is licensed under the GNU GPLv3
license.
+ * Please see license.txt for the full license text.
*/
/**
@@ -218,47 +203,47 @@
}
-$j(document).ready(function() {
+$(document).ready(function() {
// Setup tabs
- $j(function () {
- var tabContainers = $j('div.tabs > div.pages > div');
-
- $j('div.tabs ul.tabNavigation a').click(function () {
+ $(function () {
+ var tabContainers = $('div.tabs > div.pages > div');
+
+ $('div.tabs ul.tabNavigation a').click(function () {
tabContainers.hide().filter(this.hash).show();
- $j('div.tabs ul.tabNavigation a').removeClass('here');
- $j(this).addClass('here');
+ $('div.tabs ul.tabNavigation a').removeClass('here');
+ $(this).addClass('here');
return false;
}).filter(':first').click();
});
// Dynamically change look-and-feel
- $j('#setting_theme').change(function() {
- $j('#css_theme').attr({href : 'wolf/admin/themes/' + this.value
+ '/styles.css'});
+ $('#setting_theme').change(function() {
+ $('#css_theme').attr({href : 'wolf/admin/themes/' + this.value
+ '/styles.css'});
});
// Dynamically change enabled state
- $j('.enabled input').change(function() {
- $j.get('<?php echo
get_url('setting'); ?>'+(this.checked ? '/activate_plugin/':'/deactivate_plugin/')+this.value);
+ $('.enabled input').change(function() {
+ $.get('<?php echo
get_url('setting'); ?>'+(this.checked ? '/activate_plugin/':'/deactivate_plugin/')+this.value);
// Add or remove tab for plugin
if (this.checked) {
var label = toLabelCase(this.value).replace(/_/g," ");
- $j('#mainTabs ul').append('<li id="'+this.value+'-plugin"
class="plugin"><a href="?/admin/plugin/'+this.value+'">'+label+'</a></li>');
+ $('#mainTabs ul').append('<li id="'+this.value+'-plugin"
class="plugin"><a href="?/admin/plugin/'+this.value+'">'+label+'</a></li>');
}
else {
- $j('#mainTabs ul li#'+this.value+'-plugin').remove();
+ $('#mainTabs ul li#'+this.value+'-plugin').remove();
}
});
// Dynamically uninstall
- $j('.uninstall a').click(function() {
+ $('.uninstall a').click(function() {
if (confirm('<?php echo __('Are you sure you wish to uninstall
this plugin?'); ?>')) {
var pluginId = this.name.replace('uninstall_', '');
//alert('TEST-<?php echo
get_url('setting/uninstall_plugin/'); ?>'+pluginId);
- $j.get('<?php echo
get_url('setting/uninstall_plugin/'); ?>'+pluginId);
+ $.get('<?php echo
get_url('setting/uninstall_plugin/'); ?>'+pluginId);
}
});
=======================================
--- /trunk/wolf/app/views/snippet/edit.php Mon Nov 22 08:01:59 2010
+++ /trunk/wolf/app/views/snippet/edit.php Sat Nov 27 04:18:03 2010
@@ -73,10 +73,10 @@
return '<?php echo __('You have modified this page. If you
navigate away from this page without first saving your data, the changes
will be lost.'); ?>';
}
- $j(document).ready(function() {
+ $(document).ready(function() {
// Prevent accidentally navigating away
- $j(':input').bind('change', function() { setConfirmUnload(true);
});
- $j('form').submit(function() { setConfirmUnload(false); return
true; });
+ $(':input').bind('change', function() { setConfirmUnload(true); });
+ $('form').submit(function() { setConfirmUnload(false); return
true; });
});
setTextAreaToolbar('snippet_content', '<?php echo
$snippet->filter_id; ?>');
=======================================
--- /trunk/wolf/app/views/snippet/index.php Mon Sep 20 03:22:17 2010
+++ /trunk/wolf/app/views/snippet/index.php Sat Nov 27 04:18:03 2010
@@ -1,26 +1,11 @@
<?php
/*
* Wolf CMS - Content Management Simplified. <
http://www.wolfcms.org>
- * Copyright (C) 2009 Martijn van der Kleijn <
martij...@gmail.com>
+ * Copyright (C) 2009-2010 Martijn van der Kleijn <
martij...@gmail.com>
* Copyright (C) 2008 Philippe Archambault <
philippe.a...@gmail.com>
*
- * This file is part of Wolf CMS.
- *
- * Wolf CMS is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Wolf CMS is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Wolf CMS. If not, see <
http://www.gnu.org/licenses/>.
- *
- * Wolf CMS has made an exception to the GNU General Public License for
plugins.
- * See exception.txt for details and the full text.
+ * This file is part of Wolf CMS. Wolf CMS is licensed under the GNU GPLv3
license.
+ * Please see license.txt for the full license text.
*/
/**
@@ -76,8 +61,8 @@
cursor:'crosshair',
distance:'15',
stop: function(event, ui) {
- var order = $j(ui.item.parent()).sortable('serialize',
{key: 'snippets[]'});
- $
j.post('<?php echo get_url('snippet/reorder/'); ?>',
{data : order});
+ var order = $(ui.item.parent()).sortable('serialize',
{key: 'snippets[]'});
+ $.post('<?php echo get_url('snippet/reorder/'); ?>',
{data : order});
}
})
.disableSelection();
@@ -85,18 +70,18 @@
return this;
};
- $j(document).ready(function() {
- $j('ul#snippets').sortableSetup();
- $j('#reorder-toggle').toggle(
+ $(document).ready(function() {
+ $('ul#snippets').sortableSetup();
+ $('#reorder-toggle').toggle(
function(){
- $j('ul#snippets').sortable('option', 'disabled', false);
- $j('.handle').show();
- $j('#reorder-toggle').text('<?php echo __('disable
reorder');?>');
+ $('ul#snippets').sortable('option', 'disabled', false);
+ $('.handle').show();
+ $('#reorder-toggle').text('<?php echo __('disable
reorder');?>');
},
function() {
- $j('ul#snippets').sortable('option', 'disabled', true);
- $j('.handle').hide();
- $j('#reorder-toggle').text('<?php echo __('reorder');?>');
+ $('ul#snippets').sortable('option', 'disabled', true);
+ $('.handle').hide();
+ $('#reorder-toggle').text('<?php echo __('reorder');?>');
}
)
});
=======================================
--- /trunk/wolf/app/views/user/edit.php Sun Oct 17 13:01:02 2010
+++ /trunk/wolf/app/views/user/edit.php Sat Nov 27 04:18:03 2010
@@ -1,26 +1,12 @@
<?php
+
/*
* Wolf CMS - Content Management Simplified. <
http://www.wolfcms.org>
- * Copyright (C) 2009 Martijn van der Kleijn <
martij...@gmail.com>
+ * Copyright (C) 2009-2010 Martijn van der Kleijn <
martij...@gmail.com>
* Copyright (C) 2008 Philippe Archambault <
philippe.a...@gmail.com>
*
- * This file is part of Wolf CMS.
- *
- * Wolf CMS is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Wolf CMS is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Wolf CMS. If not, see <
http://www.gnu.org/licenses/>.
- *
- * Wolf CMS has made an exception to the GNU General Public License for
plugins.
- * See exception.txt for details and the full text.
+ * This file is part of Wolf CMS. Wolf CMS is licensed under the GNU GPLv3
license.
+ * Please see license.txt for the full license text.
*/
/**
@@ -113,10 +99,10 @@
return '<?php echo __('You have modified this page. If you
navigate away from this page without first saving your data, the changes
will be lost.'); ?>';
}
- $j(document).ready(function() {
+ $(document).ready(function() {
// Prevent accidentally navigating away
- $j(':input').bind('change', function() { setConfirmUnload(true);
});
- $j('form').submit(function() { setConfirmUnload(false); return
true; });
+ $(':input').bind('change', function() { setConfirmUnload(true); });
+ $('form').submit(function() { setConfirmUnload(false); return
true; });
});
Field.activate('user_name');
=======================================
--- /trunk/wolf/plugins/backup_restore/views/settings.php Sun Mar 21
12:16:09 2010
+++ /trunk/wolf/plugins/backup_restore/views/settings.php Sat Nov 27
04:18:03 2010
@@ -1,25 +1,10 @@
<?php
/*
* Wolf CMS - Content Management Simplified. <
http://www.wolfcms.org>
- * Copyright (C) 2009 Martijn van der Kleijn <
martij...@gmail.com>
+ * Copyright (C) 2009-2010 Martijn van der Kleijn <
martij...@gmail.com>
*
- * This file is part of Wolf CMS.
- *
- * Wolf CMS is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Wolf CMS is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Wolf CMS. If not, see <
http://www.gnu.org/licenses/>.
- *
- * Wolf CMS has made an exception to the GNU General Public License for
plugins.
- * See exception.txt for details and the full text.
+ * This file is part of Wolf CMS. Wolf CMS is licensed under the GNU GPLv3
license.
+ * Please see license.txt for the full license text.
*/
/* Security measure */
@@ -110,10 +95,10 @@
return '<?php echo __('You have modified this page. If you
navigate away from this page without first saving your data, the changes
will be lost.'); ?>';
}
- $j(document).ready(function() {
+ $(document).ready(function() {
// Prevent accidentally navigating away
- $j(':input').bind('change', function() { setConfirmUnload(true);
});
- $j('form').submit(function() { setConfirmUnload(false); return
true; });
+ $(':input').bind('change', function() { setConfirmUnload(true); });
+ $('form').submit(function() { setConfirmUnload(false); return
true; });
});
// ]]>
</script>
=======================================
--- /trunk/wolf/plugins/comment/views/edit.php Sat Apr 10 03:43:04 2010
+++ /trunk/wolf/plugins/comment/views/edit.php Sat Nov 27 04:18:03 2010
@@ -1,26 +1,11 @@
<?php
/*
* Wolf CMS - Content Management Simplified. <
http://www.wolfcms.org>
+ * Copyright (C) 2009-2010 Martijn van der Kleijn <
martij...@gmail.com>
* Copyright (C) 2008 Philippe Archambault <
philippe.a...@gmail.com>
- * Copyright (C) 2008,2009 Martijn van der Kleijn <
martij...@gmail.com>
*
- * This file is part of Wolf CMS.
- *
- * Wolf CMS is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Wolf CMS is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Wolf CMS. If not, see <
http://www.gnu.org/licenses/>.
- *
- * Wolf CMS has made an exception to the GNU General Public License for
plugins.
- * See exception.txt for details and the full text.
+ * This file is part of Wolf CMS. Wolf CMS is licensed under the GNU GPLv3
license.
+ * Please see license.txt for the full license text.
*/
/* Security measure */
@@ -67,10 +52,10 @@
return '<?php echo __('You have modified this page. If you
navigate away from this page without first saving your data, the changes
will be lost.'); ?>';
}
- $j(document).ready(function() {
+ $(document).ready(function() {
// Prevent accidentally navigating away
- $j(':input').bind('change', function() { setConfirmUnload(true);
});
- $j('form').submit(function() { setConfirmUnload(false); return
true; });
+ $(':input').bind('change', function() { setConfirmUnload(true); });
+ $('form').submit(function() { setConfirmUnload(false); return
true; });
});
// ]]>
</script>
=======================================
--- /trunk/wolf/plugins/comment/views/settings.php Sat Apr 10 03:43:04 2010
+++ /trunk/wolf/plugins/comment/views/settings.php Sat Nov 27 04:18:03 2010
@@ -1,26 +1,11 @@
<?php
/*
* Wolf CMS - Content Management Simplified. <
http://www.wolfcms.org>
+ * Copyright (C) 2009-2010 Martijn van der Kleijn <
martij...@gmail.com>
* Copyright (C) 2008 Philippe Archambault <
philippe.a...@gmail.com>
- * Copyright (C) 2008,2009 Martijn van der Kleijn <
martij...@gmail.com>
*
- * This file is part of Wolf CMS.
- *
- * Wolf CMS is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Wolf CMS is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Wolf CMS. If not, see <
http://www.gnu.org/licenses/>.
- *
- * Wolf CMS has made an exception to the GNU General Public License for
plugins.
- * See exception.txt for details and the full text.
+ * This file is part of Wolf CMS. Wolf CMS is licensed under the GNU GPLv3
license.
+ * Please see license.txt for the full license text.
*/
/* Security measure */
@@ -103,10 +88,10 @@
return '<?php echo __('You have modified this page. If you
navigate away from this page without first saving your data, the changes
will be lost.'); ?>';
}
- $j(document).ready(function() {
+ $(document).ready(function() {
// Prevent accidentally navigating away
- $j(':input').bind('change', function() { setConfirmUnload(true);
});
- $j('form').submit(function() { setConfirmUnload(false); return
true; });
+ $(':input').bind('change', function() { setConfirmUnload(true); });
+ $('form').submit(function() { setConfirmUnload(false); return
true; });
});
// ]]>
</script>
=======================================
--- /trunk/wolf/plugins/file_manager/file_manager.js Sun Nov 21 15:41:39
2010
+++ /trunk/wolf/plugins/file_manager/file_manager.js Sat Nov 27 04:18:03
2010
@@ -1,50 +1,34 @@
-
-/**
+/*
* Wolf CMS - Content Management Simplified. <
http://www.wolfcms.org>
- * Copyright (C) 2009 Martijn van der Kleijn <
martij...@gmail.com>
+ * Copyright (C) 2009-2010 Martijn van der Kleijn <
martij...@gmail.com>
* Copyright (C) 2008 Philippe Archambault <
philippe.a...@gmail.com>
*
- * This file is part of Wolf CMS.
- *
- * Wolf CMS is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Wolf CMS is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Wolf CMS. If not, see <
http://www.gnu.org/licenses/>.
- *
- * Wolf CMS has made an exception to the GNU General Public License for
plugins.
- * See exception.txt for details and the full text.
+ * This file is part of Wolf CMS. Wolf CMS is licensed under the GNU GPLv3
license.
+ * Please see license.txt for the full license text.
*/
function toggle_chmod_popup(filename) {
- var popup = $j('#chmod-popup');
- $j('#chmod_file_name').val(filename);
-
- var height = $j(document).height();
+ var popup = $('#chmod-popup');
+ $('#chmod_file_name').val(filename);
+
+ var height = $(document).height();
var popup_height = popup.height();
- var width = $j(document).width();
+ var width = $(document).width();
var popup_width = popup.width();
popup.css({"position" : "absolute", "top" : height/3 -
popup_height/2, "left" : width/3 - popup_width/2});
popup.toggle("normal");
- $j("#chmod_file_mode").focus();
+ $("#chmod_file_mode").focus();
}
function toggle_rename_popup(file, filename) {
- var popup = $j('#rename-popup');
- var file_mode = $j('#rename_file_new_name');
- $j('#rename_file_current_name').val(file);
+ var popup = $('#rename-popup');
+ var file_mode = $('#rename_file_new_name');
+ $('#rename_file_current_name').val(file);
file_mode.val(filename);
- var height = $j(document).height();
+ var height = $(document).height();
var popup_height = popup.height();
- var width = $j(document).width();
+ var width = $(document).width();
var popup_width = popup.width();
popup.css({"position" : "absolute", "top" : height/3 -
popup_height/2, "left" : width/3 - popup_width/2});
popup.toggle("normal");
@@ -52,9 +36,9 @@
}
-$j(document).ready(function() {
+$(document).ready(function() {
// Make all modal dialogs draggable
- $j("#boxes .window").draggable({
+ $("#boxes .window").draggable({
addClasses: false,
containment: 'window',
scroll: false,
@@ -62,42 +46,42 @@
})
//select all the a tag with name equal to modal
- $j('a.popupLink').click(function(e) {
+ $('a.popupLink').click(function(e) {
//Cancel the link behavior
e.preventDefault();
//Get the A tag
- var id = $j(this).attr('href');
+ var id = $(this).attr('href');
//Get the screen height and width
- var maskHeight = $j(document).height();
- var maskWidth = $j(window).width();
+ var maskHeight = $(document).height();
+ var maskWidth = $(window).width();
//Set height and width to mask to fill up the whole screen
-
$j('#mask').css({'width':maskWidth,'height':maskHeight,'top':0,'left':0});
+ $('#mask').css({'width':maskWidth,'height':maskHeight,'top':0,'left':0});
//transition effect
- $j('#mask').show();//fadeIn(10000);
- $j('#mask').fadeTo("fast",0.5);
+ $('#mask').show();//fadeIn(10000);
+ $('#mask').fadeTo("fast",0.5);
//Get the window height and width
- var winH = $j(window).height();
- var winW = $j(window).width();
+ var winH = $(window).height();
+ var winW = $(window).width();
//Set the popup window to center
- $j(id).css('top', winH/2-$j(id).height()/2);
- $j(id).css('left', winW/2-$j(id).width()/2);
+ $(id).css('top', winH/2-$(id).height()/2);
+ $(id).css('left', winW/2-$(id).width()/2);
//transition effect
- $j(id).fadeIn("fast"); //2000
-
- $j(id+" :input:visible:enabled:first").focus();
+ $(id).fadeIn("fast"); //2000
+
+ $(id+" :input:visible:enabled:first").focus();
});
//if close button is clicked
- $j('#boxes .window .close').click(function (e) {
+ $('#boxes .window .close').click(function (e) {
//Cancel the link behavior
e.preventDefault();
- $j('#mask, .window').hide();
+ $('#mask, .window').hide();
});
});
=======================================
--- /trunk/wolf/plugins/multi_lang/views/settings.php Sun Mar 21 12:16:09
2010
+++ /trunk/wolf/plugins/multi_lang/views/settings.php Sat Nov 27 04:18:03
2010
@@ -1,25 +1,10 @@
<?php
/*
* Wolf CMS - Content Management Simplified. <
http://www.wolfcms.org>
- * Copyright (C) 2008 Martijn van der Kleijn <
martij...@gmail.com>
+ * Copyright (C) 2009-2010 Martijn van der Kleijn <
martij...@gmail.com>
*
- * This file is part of Wolf CMS.
- *
- * Wolf CMS is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Wolf CMS is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Wolf CMS. If not, see <
http://www.gnu.org/licenses/>.
- *
- * Wolf CMS has made an exception to the GNU General Public License for
plugins.
- * See exception.txt for details and the full text.
+ * This file is part of Wolf CMS. Wolf CMS is licensed under the GNU GPLv3
license.
+ * Please see license.txt for the full license text.
*/
/* Security measure */
@@ -92,10 +77,10 @@
return '<?php echo __('You have modified this page. If you
navigate away from this page without first saving your data, the changes
will be lost.'); ?>';
}
- $j(document).ready(function() {
+ $(document).ready(function() {
// Prevent accidentally navigating away
- $j(':input').bind('change', function() { setConfirmUnload(true);
});
- $j('form').submit(function() { setConfirmUnload(false); return
true; });
+ $(':input').bind('change', function() { setConfirmUnload(true); });
+ $('form').submit(function() { setConfirmUnload(false); return
true; });
});
// ]]>
</script>
=======================================
--- /trunk/wolf/plugins/skeleton/views/settings.php Sun Mar 21 12:16:09 2010
+++ /trunk/wolf/plugins/skeleton/views/settings.php Sat Nov 27 04:18:03 2010
@@ -1,25 +1,10 @@
<?php
/*
* Wolf CMS - Content Management Simplified. <
http://www.wolfcms.org>
- * Copyright (C) 2008 Martijn van der Kleijn <
martij...@gmail.com>
+ * Copyright (C) 2008-2010 Martijn van der Kleijn <
martij...@gmail.com>
*
- * This file is part of Wolf CMS.
- *
- * Wolf CMS is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Wolf CMS is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Wolf CMS. If not, see <
http://www.gnu.org/licenses/>.
- *
- * Wolf CMS has made an exception to the GNU General Public License for
plugins.
- * See exception.txt for details and the full text.
+ * This file is part of Wolf CMS. Wolf CMS is licensed under the GNU GPLv3
license.
+ * Please see license.txt for the full license text.
*/
/* Security measure */
@@ -65,10 +50,10 @@
return '<?php echo __('You have modified this page. If you
navigate away from this page without first saving your data, the changes
will be lost.'); ?>';
}
- $j(document).ready(function() {
+ $(document).ready(function() {
// Prevent accidentally navigating away
- $j(':input').bind('change', function() { setConfirmUnload(true);
});
- $j('form').submit(function() { setConfirmUnload(false); return
true; });
+ $(':input').bind('change', function() { setConfirmUnload(true); });
+ $('form').submit(function() { setConfirmUnload(false); return
true; });
});
// ]]>
</script>