refinerycms 0.9.5.31 → 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/VERSION +1 -1
- data/bin/refinery +2 -1
- data/config/environment.rb +1 -1
- data/config/environments/development.rb +3 -0
- data/contributors.md +2 -0
- data/db/migrate/20100202034802_remove_custom_title_image_id_and_image_id_from_pages.rb +13 -0
- data/db/migrate/20100204011654_change_part_titles_to_titleized_version_for_new_format.rb +13 -0
- data/db/schema.rb +6 -10
- data/public/javascripts/admin.js +1 -1
- data/public/javascripts/jquery-ui-1.8rc1.min.js +375 -0
- data/public/javascripts/jquery.js +4231 -2529
- data/public/javascripts/refinery/admin.js +609 -38
- data/public/javascripts/refinery/boot_wym.js +3 -3
- data/public/javascripts/thickbox.js +116 -129
- data/public/javascripts/wymeditor/jquery.refinery.wymeditor.js +3674 -3732
- data/public/javascripts/wymeditor/skins/refinery/skin.js +8 -8
- data/public/stylesheets/refinery/refinery.css +142 -32
- data/public/stylesheets/wymeditor/skins/refinery/skin.css +8 -1
- data/readme.md +35 -21
- data/test/fixtures/page_parts.yml +9 -0
- data/test/fixtures/pages.yml +88 -0
- data/test/performance/browsing_test.rb +9 -0
- data/test/test_helper.rb +38 -0
- data/test/unit/image_test.rb +14 -0
- data/test/unit/page_part_test.rb +19 -0
- data/test/unit/page_test.rb +130 -0
- data/vendor/plugins/authentication/app/controllers/sessions_controller.rb +1 -1
- data/vendor/plugins/authentication/app/views/admin/users/index.html.erb +1 -2
- data/vendor/plugins/authentication/authentication.md +9 -1
- data/vendor/plugins/dashboard/dashboard.md +3 -3
- data/vendor/plugins/images/app/controllers/admin/images_controller.rb +17 -13
- data/vendor/plugins/images/app/helpers/admin/images_helper.rb +6 -0
- data/vendor/plugins/images/app/models/image.rb +24 -39
- data/vendor/plugins/images/app/views/admin/images/_form.html.erb +11 -4
- data/vendor/plugins/images/app/views/admin/images/_grid_view.html.erb +1 -2
- data/vendor/plugins/images/app/views/admin/images/_list_view_image.html.erb +1 -2
- data/vendor/plugins/images/app/views/admin/images/index.html.erb +1 -1
- data/vendor/plugins/images/app/views/admin/images/insert.html.erb +8 -71
- data/vendor/plugins/images/images.md +12 -7
- data/vendor/plugins/inquiries/app/views/admin/inquiries/_inquiry.html.erb +6 -13
- data/vendor/plugins/inquiries/app/views/admin/inquiry_settings/index.html.erb +1 -2
- data/vendor/plugins/inquiries/inquiries.md +8 -8
- data/vendor/plugins/news/app/views/admin/news_items/_news_item.html.erb +1 -2
- data/vendor/plugins/news/news.md +4 -4
- data/vendor/plugins/pages/app/controllers/admin/page_dialogs_controller.rb +11 -10
- data/vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb +5 -1
- data/vendor/plugins/pages/app/controllers/admin/pages_controller.rb +2 -2
- data/vendor/plugins/pages/app/models/page.rb +75 -29
- data/vendor/plugins/pages/app/models/page_part.rb +1 -1
- data/vendor/plugins/pages/app/views/admin/page_dialogs/_page_link.html.erb +2 -2
- data/vendor/plugins/pages/app/views/admin/page_dialogs/link_to.html.erb +8 -112
- data/vendor/plugins/pages/app/views/admin/pages/_form.html.erb +50 -154
- data/vendor/plugins/pages/app/views/admin/pages/_list.html.erb +10 -10
- data/vendor/plugins/pages/app/views/admin/pages/_page_part_field.html.erb +4 -4
- data/vendor/plugins/pages/app/views/admin/pages/_sortable_list.html.erb +1 -1
- data/vendor/plugins/pages/pages.md +30 -25
- data/vendor/plugins/refinery/app/views/admin/_head.html.erb +5 -14
- data/vendor/plugins/refinery/app/views/admin/_menu.html.erb +2 -64
- data/vendor/plugins/refinery/app/views/shared/_message.html.erb +0 -6
- data/vendor/plugins/refinery/app/views/shared/admin/_error_messages_for.html.erb +1 -6
- data/vendor/plugins/refinery/app/views/shared/admin/_form_actions.html.erb +8 -10
- data/vendor/plugins/refinery/app/views/shared/admin/_image_picker.html.erb +22 -38
- data/vendor/plugins/refinery/app/views/shared/admin/_make_sortable.html.erb +6 -65
- data/vendor/plugins/refinery/app/views/shared/admin/_resource_picker.html.erb +16 -16
- data/vendor/plugins/refinery/app/views/shared/admin/_sortable_list.html.erb +3 -4
- data/vendor/plugins/refinery/lib/crud.rb +1 -1
- data/vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/_singular_name.html.erb +1 -1
- data/vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/_sortable_list.html.erb +1 -1
- data/vendor/plugins/refinery/plugins.md +19 -12
- data/vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb +6 -4
- data/vendor/plugins/refinery_dialogs/app/views/admin/dialogs/show.html.erb +3 -3
- data/vendor/plugins/refinery_dialogs/app/views/layouts/admin_dialog.html.erb +7 -14
- data/vendor/plugins/refinery_settings/app/views/admin/refinery_settings/_refinery_setting.html.erb +1 -1
- data/vendor/plugins/refinery_settings/settings.md +51 -1
- data/vendor/plugins/resources/app/controllers/admin/resources_controller.rb +16 -11
- data/vendor/plugins/resources/app/views/admin/resources/_form.html.erb +9 -2
- data/vendor/plugins/resources/app/views/admin/resources/_resource.html.erb +1 -3
- data/vendor/plugins/resources/app/views/admin/resources/index.html.erb +2 -2
- data/vendor/plugins/resources/app/views/admin/resources/insert.html.erb +14 -60
- data/vendor/plugins/resources/resources.md +1 -1
- data/vendor/plugins/themes/app/controllers/admin/themes_controller.rb +6 -6
- data/vendor/plugins/themes/app/models/theme.rb +3 -3
- data/vendor/plugins/themes/app/views/admin/themes/_theme.html.erb +14 -20
- data/vendor/plugins/themes/themes.md +21 -19
- metadata +18 -19
- data/public/javascripts/builder.js +0 -136
- data/public/javascripts/controls.js +0 -963
- data/public/javascripts/dragdrop.js +0 -973
- data/public/javascripts/effects.js +0 -1128
- data/public/javascripts/fastinit.js +0 -84
- data/public/javascripts/livepipe.js +0 -180
- data/public/javascripts/prototype.js +0 -4874
- data/public/javascripts/refinery/dialog.js +0 -52
- data/public/javascripts/refinery/parse_url.js +0 -38
- data/public/javascripts/refinery/prototype.enhancements.js +0 -24
- data/public/javascripts/refinery/tooltips.js +0 -173
- data/public/javascripts/scriptaculous.js +0 -47
- data/public/javascripts/slider.js +0 -275
- data/public/javascripts/tabs.js +0 -149
- data/vendor/plugins/refinery_settings/app/views/admin/refinery_settings/_make_sortable.html.erb +0 -7
data/.gitignore
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.6
|
data/bin/refinery
CHANGED
@@ -18,10 +18,11 @@ unless (app_path = ARGV.shift).nil? or app_path.length == 0
|
|
18
18
|
FileUtils::makedirs RAILS_ROOT
|
19
19
|
|
20
20
|
# copy in all of the relevant directories and root files.
|
21
|
-
to_copy = %w(app config db lib public script
|
21
|
+
to_copy = %w(app config db lib public script contributors.md license.md Rakefile readme.md VERSION).map do |dir|
|
22
22
|
File.join REFINERY_ROOT, dir
|
23
23
|
end
|
24
24
|
FileUtils::cp_r to_copy, RAILS_ROOT, :verbose => false
|
25
|
+
FileUtils::mkdir File.join(%W(#{RAILS_ROOT} themes))
|
25
26
|
# ensure lib/refinery_initializer.rb doesn't make it in.
|
26
27
|
FileUtils::rm File.join(%W(#{RAILS_ROOT} lib refinery_initializer.rb)) if File.exists?(File.join(%W(#{RAILS_ROOT} lib refinery_initializer.rb)))
|
27
28
|
|
data/config/environment.rb
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
# Specifies gem version of Rails to use when vendor/rails is not present
|
8
8
|
RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION
|
9
9
|
# Freeze to a specific version of refinerycms when running as a gem
|
10
|
-
# REFINERY_GEM_VERSION = '0.9.
|
10
|
+
# REFINERY_GEM_VERSION = '0.9.6' unless defined? REFINERY_GEM_VERSION
|
11
11
|
|
12
12
|
# Bootstrap the Rails environment, frameworks, and default configuration
|
13
13
|
require File.join(File.dirname(__FILE__), 'boot')
|
@@ -15,3 +15,6 @@ config.action_controller.perform_caching = false
|
|
15
15
|
|
16
16
|
# Don't care if the mailer can't send
|
17
17
|
config.action_mailer.raise_delivery_errors = false
|
18
|
+
|
19
|
+
# Uncomment the following line if you're getting "A copy of XX has been removed from the module tree but is still active!" as it may help you:
|
20
|
+
# config.after_initialize { Dependencies.load_once_paths = Dependencies.load_once_paths.select { |path| (path =~ /app/).nil? } }
|
data/contributors.md
CHANGED
@@ -14,5 +14,7 @@
|
|
14
14
|
* stevenheidel - [Steven Heidel](http://www.livingskywebdesign.com)
|
15
15
|
* moretea - Maarten Hoogendoorn
|
16
16
|
* csessions - [Chris Sessions](http://www.flying-saucer.net)
|
17
|
+
* rubylibre
|
18
|
+
* tsdbrown - [Luke Brown](http://www.tsdbrown.com)
|
17
19
|
|
18
20
|
Want your name here? Help us out in anyway you can. And don't be so scared, we don't expect your code to be perfect the first time round.
|
@@ -0,0 +1,13 @@
|
|
1
|
+
class RemoveCustomTitleImageIdAndImageIdFromPages < ActiveRecord::Migration
|
2
|
+
|
3
|
+
def self.up
|
4
|
+
remove_column :pages, :custom_title_image_id
|
5
|
+
remove_column :pages, :image_id
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.down
|
9
|
+
add_column :pages, :custom_title_image_id, :integer
|
10
|
+
add_column :pages, :image_id, :integer
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
class ChangePartTitlesToTitleizedVersionForNewFormat < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
PagePart.all.each do |page_part|
|
4
|
+
page_part.update_attribute(:title, page_part.title.titleize)
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.down
|
9
|
+
PagePart.all.each do |page_part|
|
10
|
+
page_part.update_attribute(:title, page_part.title.downcase.gsub(" ", "_"))
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/db/schema.rb
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
#
|
10
10
|
# It's strongly recommended to check this file into your version control system.
|
11
11
|
|
12
|
-
ActiveRecord::Schema.define(:version =>
|
12
|
+
ActiveRecord::Schema.define(:version => 20100204011654) do
|
13
13
|
|
14
14
|
create_table "images", :force => true do |t|
|
15
15
|
t.integer "parent_id"
|
@@ -70,26 +70,22 @@ ActiveRecord::Schema.define(:version => 20100127004649) do
|
|
70
70
|
t.integer "parent_id"
|
71
71
|
t.integer "position"
|
72
72
|
t.string "path"
|
73
|
-
t.integer "image_id"
|
74
73
|
t.datetime "created_at"
|
75
74
|
t.datetime "updated_at"
|
76
75
|
t.string "meta_keywords"
|
77
76
|
t.text "meta_description"
|
78
|
-
t.boolean "show_in_menu",
|
77
|
+
t.boolean "show_in_menu", :default => true
|
79
78
|
t.string "link_url"
|
80
79
|
t.string "menu_match"
|
81
|
-
t.boolean "deletable",
|
80
|
+
t.boolean "deletable", :default => true
|
82
81
|
t.string "custom_title"
|
83
|
-
t.string "custom_title_type",
|
84
|
-
t.
|
85
|
-
t.boolean "draft", :default => false
|
82
|
+
t.string "custom_title_type", :default => "none"
|
83
|
+
t.boolean "draft", :default => false
|
86
84
|
t.string "browser_title"
|
87
|
-
t.boolean "skip_to_first_child",
|
85
|
+
t.boolean "skip_to_first_child", :default => false
|
88
86
|
end
|
89
87
|
|
90
|
-
add_index "pages", ["custom_title_image_id"], :name => "index_pages_on_custom_title_image_id"
|
91
88
|
add_index "pages", ["id"], :name => "index_pages_on_id"
|
92
|
-
add_index "pages", ["image_id"], :name => "index_pages_on_image_id"
|
93
89
|
add_index "pages", ["parent_id"], :name => "index_pages_on_parent_id"
|
94
90
|
|
95
91
|
create_table "refinery_settings", :force => true do |t|
|
data/public/javascripts/admin.js
CHANGED
@@ -0,0 +1,375 @@
|
|
1
|
+
/*!
|
2
|
+
* jQuery UI 1.8rc1
|
3
|
+
*
|
4
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
5
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
6
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
7
|
+
*
|
8
|
+
* http://docs.jquery.com/UI
|
9
|
+
*/
|
10
|
+
* jQuery UI 1.8rc1
|
11
|
+
*
|
12
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
13
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
14
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
15
|
+
*
|
16
|
+
* http://docs.jquery.com/UI
|
17
|
+
*/
|
18
|
+
jQuery.ui||(function(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<1.9);b.ui={version:"1.8rc1",plugin:{add:function(d,e,g){var f=b.ui[d].prototype;for(var c in g){f.plugins[c]=f.plugins[c]||[];f.plugins[c].push([e,g[c]])}},call:function(c,e,d){var g=c.plugins[e];if(!g||!c.element[0].parentNode){return}for(var f=0;f<g.length;f++){if(c.options[g[f][0]]){g[f][1].apply(c.element,d)}}}},contains:function(d,c){return document.compareDocumentPosition?d.compareDocumentPosition(c)&16:d!==c&&d.contains(c)},hasScroll:function(f,d){if(b(f).css("overflow")=="hidden"){return false}var c=(d&&d=="left")?"scrollLeft":"scrollTop",e=false;if(f[c]>0){return true}f[c]=1;e=(f[c]>0);f[c]=0;return e},isOverAxis:function(d,c,e){return(d>c)&&(d<(c+e))},isOver:function(h,d,g,f,c,e){return b.ui.isOverAxis(h,g,c)&&b.ui.isOverAxis(d,f,e)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};b.fn.extend({_focus:b.fn.focus,focus:function(c,d){return typeof c==="number"?this.each(function(){var e=this;setTimeout(function(){b(e).focus();(d&&d.call(e))},c)}):this._focus.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var c;if((b.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){c=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(b.curCSS(this,"position",1))&&(/(auto|scroll)/).test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0)}else{c=this.parents().filter(function(){return(/(auto|scroll)/).test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!c.length?b(document):c},zIndex:function(d){if(d!==undefined){return this.css("zIndex",d)}var c=this[0];while(c&&c.style){if(c.style.zIndex!==""&&c.style.zIndex!==0){return +c.style.zIndex}c=c.parentNode}return 0}});b.extend(b.expr[":"],{data:function(e,d,c){return !!b.data(e,c[3])},focusable:function(d){var e=d.nodeName.toLowerCase(),c=b.attr(d,"tabindex");return(/input|select|textarea|button|object/.test(e)?!d.disabled:"a"==e||"area"==e?d.href||!isNaN(c):!isNaN(c))&&!b(d)["area"==e?"parents":"closest"](":hidden").length},tabbable:function(d){var c=b.attr(d,"tabindex");return(isNaN(c)||c>=0)&&b(d).is(":focusable")}})})(jQuery);;/*!
|
19
|
+
* jQuery UI Widget 1.8rc1
|
20
|
+
*
|
21
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
22
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
23
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
24
|
+
*
|
25
|
+
* http://docs.jquery.com/UI/Widget
|
26
|
+
*/
|
27
|
+
* jQuery UI Widget 1.8rc1
|
28
|
+
*
|
29
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
30
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
31
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
32
|
+
*
|
33
|
+
* http://docs.jquery.com/UI/Widget
|
34
|
+
*/
|
35
|
+
(function(b){var a=b.fn.remove;b.fn.remove=function(c,d){if(!d){b("*",this).add(this).each(function(){b(this).triggerHandler("remove")})}return a.apply(this,arguments)};b.widget=function(d,f,c){var e=d.split(".")[0],h;d=d.split(".")[1];h=e+"-"+d;if(!c){c=f;f=b.Widget}b.expr[":"][h]=function(i){return !!b.data(i,d)};b[e]=b[e]||{};b[e][d]=function(i,j){if(arguments.length){this._createWidget(i,j)}};var g=new f();g.options=b.extend({},g.options);b[e][d].prototype=b.extend(true,g,{namespace:e,widgetName:d,widgetEventPrefix:b[e][d].prototype.widgetEventPrefix||d,widgetBaseClass:h},c);b.widget.bridge(d,b[e][d])};b.widget.bridge=function(d,c){b.fn[d]=function(g){var e=typeof g==="string",f=Array.prototype.slice.call(arguments,1),h=this;g=!e&&f.length?b.extend.apply(null,[true,g].concat(f)):g;if(e&&g.substring(0,1)==="_"){return h}if(e){this.each(function(){var i=b.data(this,d),j=i&&b.isFunction(i[g])?i[g].apply(i,f):i;if(j!==i&&j!==undefined){h=j;return false}})}else{this.each(function(){var i=b.data(this,d);if(i){if(g){i.option(g)}i._init()}else{b.data(this,d,new c(g,this))}})}return h}};b.Widget=function(c,d){if(arguments.length){this._createWidget(c,d)}};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(d,e){this.element=b(e).data(this.widgetName,this);this.options=b.extend(true,{},this.options,b.metadata&&b.metadata.get(e)[this.widgetName],d);var c=this;this.element.bind("remove."+this.widgetName,function(){c.destroy()});this._create();this._init()},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled")},widget:function(){return this.element},option:function(e,f){var d=e,c=this;if(arguments.length===0){return b.extend({},c.options)}if(typeof e==="string"){if(f===undefined){return this.options[e]}d={};d[e]=f}b.each(d,function(g,h){c._setOption(g,h)});return c},_setOption:function(c,d){this.options[c]=d;if(c==="disabled"){this.widget()[d?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",d)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(d,e,f){var h=this.options[d];e=b.Event(e);e.type=(d===this.widgetEventPrefix?d:this.widgetEventPrefix+d).toLowerCase();f=f||{};if(e.originalEvent){for(var c=b.event.props.length,g;c;){g=b.event.props[--c];e[g]=e.originalEvent[g]}}this.element.trigger(e,f);return !(b.isFunction(h)&&h.call(this.element[0],e,f)===false||e.isDefaultPrevented())}}})(jQuery);;/*!
|
36
|
+
* jQuery UI Mouse 1.8rc1
|
37
|
+
*
|
38
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
39
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
40
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
41
|
+
*
|
42
|
+
* http://docs.jquery.com/UI/Mouse
|
43
|
+
*
|
44
|
+
* Depends:
|
45
|
+
* jquery.ui.widget.js
|
46
|
+
*/
|
47
|
+
* jQuery UI Mouse 1.8rc1
|
48
|
+
*
|
49
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
50
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
51
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
52
|
+
*
|
53
|
+
* http://docs.jquery.com/UI/Mouse
|
54
|
+
*
|
55
|
+
* Depends:
|
56
|
+
* jquery.ui.widget.js
|
57
|
+
*/
|
58
|
+
(function(a){a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(c){return b._mouseDown(c)}).bind("click."+this.widgetName,function(c){if(b._preventClickEvent){b._preventClickEvent=false;c.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(d){d.originalEvent=d.originalEvent||{};if(d.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(d));this._mouseDownEvent=d;var c=this,e=(d.which==1),b=(typeof this.options.cancel=="string"?a(d.target).parents().add(d.target).filter(this.options.cancel).length:false);if(!e||b||!this._mouseCapture(d)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d)){this._mouseStarted=(this._mouseStart(d)!==false);if(!this._mouseStarted){d.preventDefault();return true}}this._mouseMoveDelegate=function(f){return c._mouseMove(f)};this._mouseUpDelegate=function(f){return c._mouseUp(f)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(a.browser.safari||d.preventDefault());d.originalEvent.mouseHandled=true;return true},_mouseMove:function(b){if(a.browser.msie&&!b.button){return this._mouseUp(b)}if(this._mouseStarted){this._mouseDrag(b);return b.preventDefault()}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,b)!==false);(this._mouseStarted?this._mouseDrag(b):this._mouseUp(b))}return !this._mouseStarted},_mouseUp:function(b){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(b.target==this._mouseDownEvent.target);this._mouseStop(b)}return false},_mouseDistanceMet:function(b){return(Math.max(Math.abs(this._mouseDownEvent.pageX-b.pageX),Math.abs(this._mouseDownEvent.pageY-b.pageY))>=this.options.distance)},_mouseDelayMet:function(b){return this.mouseDelayMet},_mouseStart:function(b){},_mouseDrag:function(b){},_mouseStop:function(b){},_mouseCapture:function(b){return true}})})(jQuery);;/*
|
59
|
+
* jQuery UI Position 1.8rc1
|
60
|
+
*
|
61
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
62
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
63
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
64
|
+
*
|
65
|
+
* http://docs.jquery.com/UI/Position
|
66
|
+
*/
|
67
|
+
* jQuery UI Draggable 1.8rc1
|
68
|
+
*
|
69
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
70
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
71
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
72
|
+
*
|
73
|
+
* http://docs.jquery.com/UI/Draggables
|
74
|
+
*
|
75
|
+
* Depends:
|
76
|
+
* jquery.ui.core.js
|
77
|
+
* jquery.ui.mouse.js
|
78
|
+
* jquery.ui.widget.js
|
79
|
+
*/
|
80
|
+
* jQuery UI Droppable 1.8rc1
|
81
|
+
*
|
82
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
83
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
84
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
85
|
+
*
|
86
|
+
* http://docs.jquery.com/UI/Droppables
|
87
|
+
*
|
88
|
+
* Depends:
|
89
|
+
* jquery.ui.core.js
|
90
|
+
* jquery.ui.widget.js
|
91
|
+
* jquery.ui.draggable.js
|
92
|
+
* jquery.ui.mouse.js
|
93
|
+
* jquery.ui.widget.js
|
94
|
+
*/
|
95
|
+
* jQuery UI Resizable 1.8rc1
|
96
|
+
*
|
97
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
98
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
99
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
100
|
+
*
|
101
|
+
* http://docs.jquery.com/UI/Resizables
|
102
|
+
*
|
103
|
+
* Depends:
|
104
|
+
* jquery.ui.core.js
|
105
|
+
* jquery.ui.mouse.js
|
106
|
+
* jquery.ui.widget.js
|
107
|
+
*/
|
108
|
+
* jQuery UI Selectable 1.8rc1
|
109
|
+
*
|
110
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
111
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
112
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
113
|
+
*
|
114
|
+
* http://docs.jquery.com/UI/Selectables
|
115
|
+
*
|
116
|
+
* Depends:
|
117
|
+
* jquery.ui.core.js
|
118
|
+
* jquery.ui.mouse.js
|
119
|
+
* jquery.ui.widget.js
|
120
|
+
*/
|
121
|
+
* jQuery UI Sortable 1.8rc1
|
122
|
+
*
|
123
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
124
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
125
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
126
|
+
*
|
127
|
+
* http://docs.jquery.com/UI/Sortables
|
128
|
+
*
|
129
|
+
* Depends:
|
130
|
+
* jquery.ui.core.js
|
131
|
+
* jquery.ui.mouse.js
|
132
|
+
* jquery.ui.widget.js
|
133
|
+
*/
|
134
|
+
* jQuery UI Accordion 1.8rc1
|
135
|
+
*
|
136
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
137
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
138
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
139
|
+
*
|
140
|
+
* http://docs.jquery.com/UI/Accordion
|
141
|
+
*
|
142
|
+
* Depends:
|
143
|
+
* jquery.ui.core.js
|
144
|
+
* jquery.ui.widget.js
|
145
|
+
*/
|
146
|
+
* jQuery UI Autocomplete 1.8rc1
|
147
|
+
*
|
148
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
149
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
150
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
151
|
+
*
|
152
|
+
* http://docs.jquery.com/UI/Autocomplete
|
153
|
+
*
|
154
|
+
* Depends:
|
155
|
+
* jquery.ui.core.js
|
156
|
+
* jquery.ui.widget.js
|
157
|
+
*/
|
158
|
+
* jQuery UI Button 1.8rc1
|
159
|
+
*
|
160
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
161
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
162
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
163
|
+
*
|
164
|
+
* http://docs.jquery.com/UI/Button
|
165
|
+
*
|
166
|
+
* Depends:
|
167
|
+
* jquery.ui.core.js
|
168
|
+
* jquery.ui.widget.js
|
169
|
+
*/
|
170
|
+
* jQuery UI Dialog 1.8rc1
|
171
|
+
*
|
172
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
173
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
174
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
175
|
+
*
|
176
|
+
* http://docs.jquery.com/UI/Dialog
|
177
|
+
*
|
178
|
+
* Depends:
|
179
|
+
* jquery.ui.button.js
|
180
|
+
* jquery.ui.core.js
|
181
|
+
* jquery.ui.draggable.js
|
182
|
+
* jquery.ui.mouse.js
|
183
|
+
* jquery.ui.position.js
|
184
|
+
* jquery.ui.resizable.js
|
185
|
+
* jquery.ui.widget.js
|
186
|
+
*/
|
187
|
+
* jQuery UI Datepicker 1.8rc1
|
188
|
+
*
|
189
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
190
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
191
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
192
|
+
*
|
193
|
+
* http://docs.jquery.com/UI/Datepicker
|
194
|
+
*
|
195
|
+
* Depends:
|
196
|
+
* jquery.ui.core.js
|
197
|
+
* jquery.ui.widget.js
|
198
|
+
*/
|
199
|
+
* jQuery UI Progressbar 1.8rc1
|
200
|
+
*
|
201
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
202
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
203
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
204
|
+
*
|
205
|
+
* http://docs.jquery.com/UI/Progressbar
|
206
|
+
*
|
207
|
+
* Depends:
|
208
|
+
* jquery.ui.core.js
|
209
|
+
* jquery.ui.widget.js
|
210
|
+
*/
|
211
|
+
* jQuery UI Slider 1.8rc1
|
212
|
+
*
|
213
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
214
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
215
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
216
|
+
*
|
217
|
+
* http://docs.jquery.com/UI/Slider
|
218
|
+
*
|
219
|
+
* Depends:
|
220
|
+
* jquery.ui.core.js
|
221
|
+
* jquery.ui.mouse.js
|
222
|
+
* jquery.ui.widget.js
|
223
|
+
*/
|
224
|
+
* jQuery UI Tabs 1.8rc1
|
225
|
+
*
|
226
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
227
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
228
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
229
|
+
*
|
230
|
+
* http://docs.jquery.com/UI/Tabs
|
231
|
+
*
|
232
|
+
* Depends:
|
233
|
+
* jquery.ui.core.js
|
234
|
+
* jquery.ui.widget.js
|
235
|
+
*/
|
236
|
+
* jQuery UI Effects 1.8rc1
|
237
|
+
*
|
238
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
239
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
240
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
241
|
+
*
|
242
|
+
* http://docs.jquery.com/UI/Effects/
|
243
|
+
*/
|
244
|
+
* jQuery UI Effects Blind 1.8rc1
|
245
|
+
*
|
246
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
247
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
248
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
249
|
+
*
|
250
|
+
* http://docs.jquery.com/UI/Effects/Blind
|
251
|
+
*
|
252
|
+
* Depends:
|
253
|
+
* jquery.effects.core.js
|
254
|
+
*/
|
255
|
+
* jQuery UI Effects Bounce 1.8rc1
|
256
|
+
*
|
257
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
258
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
259
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
260
|
+
*
|
261
|
+
* http://docs.jquery.com/UI/Effects/Bounce
|
262
|
+
*
|
263
|
+
* Depends:
|
264
|
+
* jquery.effects.core.js
|
265
|
+
*/
|
266
|
+
* jQuery UI Effects Clip 1.8rc1
|
267
|
+
*
|
268
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
269
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
270
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
271
|
+
*
|
272
|
+
* http://docs.jquery.com/UI/Effects/Clip
|
273
|
+
*
|
274
|
+
* Depends:
|
275
|
+
* jquery.effects.core.js
|
276
|
+
*/
|
277
|
+
* jQuery UI Effects Drop 1.8rc1
|
278
|
+
*
|
279
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
280
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
281
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
282
|
+
*
|
283
|
+
* http://docs.jquery.com/UI/Effects/Drop
|
284
|
+
*
|
285
|
+
* Depends:
|
286
|
+
* jquery.effects.core.js
|
287
|
+
*/
|
288
|
+
* jQuery UI Effects Explode 1.8rc1
|
289
|
+
*
|
290
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
291
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
292
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
293
|
+
*
|
294
|
+
* http://docs.jquery.com/UI/Effects/Explode
|
295
|
+
*
|
296
|
+
* Depends:
|
297
|
+
* jquery.effects.core.js
|
298
|
+
*/
|
299
|
+
* jQuery UI Effects Fold 1.8rc1
|
300
|
+
*
|
301
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
302
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
303
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
304
|
+
*
|
305
|
+
* http://docs.jquery.com/UI/Effects/Fold
|
306
|
+
*
|
307
|
+
* Depends:
|
308
|
+
* jquery.effects.core.js
|
309
|
+
*/
|
310
|
+
* jQuery UI Effects Highlight 1.8rc1
|
311
|
+
*
|
312
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
313
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
314
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
315
|
+
*
|
316
|
+
* http://docs.jquery.com/UI/Effects/Highlight
|
317
|
+
*
|
318
|
+
* Depends:
|
319
|
+
* jquery.effects.core.js
|
320
|
+
*/
|
321
|
+
* jQuery UI Effects Pulsate 1.8rc1
|
322
|
+
*
|
323
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
324
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
325
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
326
|
+
*
|
327
|
+
* http://docs.jquery.com/UI/Effects/Pulsate
|
328
|
+
*
|
329
|
+
* Depends:
|
330
|
+
* jquery.effects.core.js
|
331
|
+
*/
|
332
|
+
* jQuery UI Effects Scale 1.8rc1
|
333
|
+
*
|
334
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
335
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
336
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
337
|
+
*
|
338
|
+
* http://docs.jquery.com/UI/Effects/Scale
|
339
|
+
*
|
340
|
+
* Depends:
|
341
|
+
* jquery.effects.core.js
|
342
|
+
*/
|
343
|
+
* jQuery UI Effects Shake 1.8rc1
|
344
|
+
*
|
345
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
346
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
347
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
348
|
+
*
|
349
|
+
* http://docs.jquery.com/UI/Effects/Shake
|
350
|
+
*
|
351
|
+
* Depends:
|
352
|
+
* jquery.effects.core.js
|
353
|
+
*/
|
354
|
+
* jQuery UI Effects Slide 1.8rc1
|
355
|
+
*
|
356
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
357
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
358
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
359
|
+
*
|
360
|
+
* http://docs.jquery.com/UI/Effects/Slide
|
361
|
+
*
|
362
|
+
* Depends:
|
363
|
+
* jquery.effects.core.js
|
364
|
+
*/
|
365
|
+
* jQuery UI Effects Transfer 1.8rc1
|
366
|
+
*
|
367
|
+
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
368
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
369
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
370
|
+
*
|
371
|
+
* http://docs.jquery.com/UI/Effects/Transfer
|
372
|
+
*
|
373
|
+
* Depends:
|
374
|
+
* jquery.effects.core.js
|
375
|
+
*/
|