Subversion Repositories My Stuff

Compare Revisions

Ignore whitespace Rev 2 → Rev 3

/trunk/JavaScripts/dialog_email_form_open.js
0,0 → 1,49
#######################################################################
# This script 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.
# Author: Andrzej Kardaś
# License: GPLv3
# The full version of the licencse can be obtainted by visiting:
# http://www.gnu.org/licenses/gpl.html
#######################################################################
$.fx.speeds._default = 1000;
$(document).ready(function() {
$('a.email_link').each(function() {
var $link = $(this);
var $dialog = $('<div id="email_form"></div>')
.dialog({
autoOpen: false,
width: 780,
height: 'auto',
title: $link.attr('title'),
resizable: false,
modal: true,
show: 'blind',
hide: 'explode'
});
 
$link.click(function() {
$('#overlay').show();
$('#ajax-indicator').show();
var options = {
target: '#email_form',
success: function() {
$('#email_form > #form-idicator').hide();
$('#email_form > form').ajaxForm(options);
},
beforeSubmit: function() {
$('#email_form > #form-indicator').show();
}
};
$dialog.load($link.attr('href'),function(){
$('#email_form > form').ajaxForm(options);
$('#ajax-indicator').hide();
$('#overlay').hide();
$dialog.dialog('open');
});
return false;
});
});
});
Property changes:
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Index: dialog_sms_form_open.js
===================================================================
--- dialog_sms_form_open.js (nonexistent)
+++ dialog_sms_form_open.js (revision 3)
@@ -0,0 +1,49 @@
+#######################################################################
+# This script 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.
+# Author: Andrzej Kardaś
+# License: GPLv3
+# The full version of the licencse can be obtainted by visiting:
+# http://www.gnu.org/licenses/gpl.html
+#######################################################################
+$.fx.speeds._default = 1000;
+$(document).ready(function() {
+ $('a.sms_link').each(function() {
+ var $link = $(this);
+ var $dialog = $('<div id="sms_form"></div>')
+ .dialog({
+ autoOpen: false,
+ width: 780,
+ height: 'auto',
+ title: $link.attr('title'),
+ resizable: false,
+ modal: true,
+ show: 'blind',
+ hide: 'explode'
+ });
+
+ $link.click(function() {
+ $('#overlay').show();
+ $('#ajax-indicator').show();
+ var options = {
+ target: '#sms_form',
+ success: function() {
+ $('#sms_form > #form-indicator').hide();
+ $('#sms_form > form').ajaxForm(options);
+ },
+ beforeSubmit: function() {
+ $('#sms_form > #form-indicator').show();
+ }
+ };
+ $dialog.load($link.attr('href'),function(){
+ $('#sms_form > form').ajaxForm(options);
+ $('#ajax-indicator').hide();
+ $('#overlay').hide();
+ $dialog.dialog('open');
+ });
+ return false;
+ });
+ });
+});
\ No newline at end of file
/dialog_sms_form_open.js
Property changes:
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Index: mouse_toggle.js
===================================================================
--- mouse_toggle.js (nonexistent)
+++ mouse_toggle.js (revision 3)
@@ -0,0 +1,20 @@
+#######################################################################
+# This script 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.
+# Author: Andrzej Kardaś
+# License: GPLv3
+# The full version of the licencse can be obtainted by visiting:
+# http://www.gnu.org/licenses/gpl.html
+#######################################################################
+$(document).ready(function(){
+ $('div.mouse_toggle').each(function(){
+ var $content = $(this).find('div.toggle_on_mouse_content:first');
+ $(this).mouseenter(function(){
+ $content.slideDown("slow");
+ }).mouseleave(function(){
+ $content.slideUp("slow");
+ });
+ });
+});
\ No newline at end of file
/mouse_toggle.js
Property changes:
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Index: toggle_slide.js
===================================================================
--- toggle_slide.js (nonexistent)
+++ toggle_slide.js (revision 3)
@@ -0,0 +1,27 @@
+#######################################################################
+# This script 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.
+# Author: Andrzej Kardaś
+# License: GPLv3
+# The full version of the licencse can be obtainted by visiting:
+# http://www.gnu.org/licenses/gpl.html
+#######################################################################
+$(document).ready(function(){
+ $('div.toggle').each(function(){
+ var $link = $(this).children('a.toggle_link:first');
+ var $content = $(this).children('div.toggle_content:first');
+ $link.click(function(){
+ if ($link.is('.toggle_close')){
+ $link.removeClass('toggle_close');
+ $link.addClass('toggle_open');
+ } else if ($link.is('.toggle_open')){
+ $link.removeClass('toggle_open');
+ $link.addClass('toggle_close');
+ }
+ $content.slideToggle("slow");
+ return false;
+ });
+ });
+});
\ No newline at end of file
/toggle_slide.js
Property changes:
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property