jquery-benignware-rails 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OGE0YWI1ZmE1ZDc1ZmJlZmQyZDY3MWY1NWEwN2I5MDUzM2EyODg3ZA==
4
+ MDk3ZWIxYTcyM2Q5ODkzOTdkMDM3N2Q1MTdmZTI3ZDA3MWUxMjc4YQ==
5
5
  data.tar.gz: !binary |-
6
- M2ExZTFlZjU1N2M4NzRlN2IxZGRjMzNlMGY4ZGEyNTUyZWY5NjAwOQ==
6
+ MGU4ODA4NTUxYjBmNTIwNDcyNWU0MjM1YmM1Mzk2YTU3ZTFjZWNmNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODMzMmIwMWE5N2MzNTk2OTEwM2RlNDFhMTM2YjUwOTJjYjBjNTJiNzBjNTA2
10
- MDAxNDBjMmZmYjA1OWZlNDc0NDRiOGVmYjEyMzFiNjljNjAzYjgzNTZiY2Mw
11
- MmE2MTNmNGIyMjNmMmVjNzBjMzhmNTMwMWRkZjAzZDJjNDZiZDc=
9
+ MjJmYTMzM2U5M2M4OTM0NzQxYWE1ZjcyMTYzMDgzZTNkYTFkMjQzOWIxZTVl
10
+ Zjg2MDIyNDRmOTYzNmE4MGM0MTVhNzI4ZTBlM2YzNjkxM2I3Yzk5MTQ0ZGQw
11
+ MmFkNDJkOWJmNWVlOGY5NWVmYmM0N2RjMDg5ZTA2NTQ2MzE0NGQ=
12
12
  data.tar.gz: !binary |-
13
- YTczNzQ0YzFhYjQwYmJhYzI2NDQzNzE2NDI4YmI1YjE5MmEwZTgyZWY1OGUw
14
- YTYwYTAwNTQxNGI0NTFlNzY3NWZmNzk3MmFjMTcyMTY0NjgxZDIwZjJhODg4
15
- ZDVlNDA3MjQzMjlmOTc5Mzc1N2U3MTBhOGFlZGU0Zjk0NWFmOTg=
13
+ YWYzMWUyODhhNDY2M2FhYTg2NTdjZGU5OTUwMmE3ZTRkYjU5YzE3MDg1Njgz
14
+ NjMwYTZlYmY1YTU5OTgxODQ0M2NkNGU0YmY2NmNiMzI0Mjg3OGM4NDZkOWYx
15
+ YzBmNTljNmUzOTEyZTJjYzFhZjhhZjkyYzI5YWFlN2FkMjI4N2U=
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require "bundler/gem_tasks"
2
2
 
3
3
  task :update do
4
4
  Rake.rake_output_message 'update modules'
5
- sh 'git submodule foreach git pull origin master'
5
+ sh 'git submodule foreach git pull origin master'
6
6
  end
7
7
 
8
8
  desc "Remove the vendor directory"
@@ -13,6 +13,7 @@ end
13
13
  desc "Generate the JavaScript assets"
14
14
  task :assets => [:update, :clean] do
15
15
 
16
+
16
17
  js_dir = "vendor/assets/javascripts/benignware"
17
18
  mkdir_p js_dir
18
19
 
@@ -1,7 +1,7 @@
1
1
  module Jquery
2
2
  module Benignware
3
3
  module Rails
4
- VERSION = "0.0.9"
4
+ VERSION = "0.0.10"
5
5
  end
6
6
  end
7
7
  end
@@ -8,6 +8,8 @@
8
8
 
9
9
  var pluginName = 'touchclick';
10
10
 
11
+ console.log('init touchclick v0.0.9');
12
+
11
13
  var defaults = {
12
14
  draggingTimeout: 100,
13
15
  scrollingTimeout: 750,
@@ -1,2 +1,2 @@
1
1
 
2
- +function(f,c){c.console=c.console||{log:function(){},info:function(){}};var e="touchclick";var g={draggingTimeout:100,scrollingTimeout:750,preventClickTimeout:500};function b(h){while(h&&h.nodeType==1){if(h.nodeName.toLowerCase()=="body"||h.nodeName.toLowerCase()=="html"){break}var i=f(h).css("overflow");if(i=="auto"||i=="scroll"){return h}h=h.parentNode}return c}var a=function d(m,v){var h=this;var u=f(m);var j=f(c);var t=false;var s=null;var q=false;var k=null;var r=null;var n=false;var p=null;var o=null;u.bind("touchstart",function(w){p=null;r=b(w.target);if(r){var x={x:r.scrollLeft,y:r.scrollTop};p=x}c.clearTimeout(s);c.clearTimeout(o);t=false;n=false;k=w.target;f(w.target).unbind("scroll",i);if(r&&(r.scrollHeight>0||r.scrollWidth>0)){f(r).bind("scroll",i)}f(w.target).unbind("click",l)});u.bind("touchmove",function(w){t=true;if(r){var x={x:r.scrollLeft,y:r.scrollTop};if(p){if(p.x!=x.x||p.y!=x.y){n=true}}}});function l(w,x){if(!x){w.stopImmediatePropagation();f(this).unbind("click",l)}else{c.setTimeout(function(){if(x&&!w.isDefaultPrevented()){var y=f(w.target).is("a[href]")?w.target:f(w.target).parents("a[href]")[0];if(y&&y.href){c.location.href=y.href}}},1)}}u.bind("touchend",function(y){f(y.target).unbind("click",l);if(!n&&!t&&y.target==k){f(y.target).bind("click",l);var x=jQuery._data(y.target).events;if(x&&x.click&&x.click.length>1){var w=x.click;w.splice(0,0,w.pop())}f(y.target).trigger({type:"click",bubbles:true},[true]);f(y.target).focus();y.preventDefault();y.stopImmediatePropagation()}c.clearTimeout(s);s=c.setTimeout(function(){t=false},v.draggingTimeout)});function i(w){n=true;c.clearTimeout(s);s=c.setTimeout(function(){n=false;f(this).unbind("scroll",i)},v.scrollingTimeout)}};f.fn[e]=function(h){h=f.extend({},g,h);return this.each(function(){if(!f(this).data(e)){f(this).data(e,new a(this,h))}return f(this)})}}(jQuery,window);
2
+ +function(f,c){c.console=c.console||{log:function(){},info:function(){}};var e="touchclick";console.log("init touchclick v0.0.9");var g={draggingTimeout:100,scrollingTimeout:750,preventClickTimeout:500};function b(h){while(h&&h.nodeType==1){if(h.nodeName.toLowerCase()=="body"||h.nodeName.toLowerCase()=="html"){break}var i=f(h).css("overflow");if(i=="auto"||i=="scroll"){return h}h=h.parentNode}return c}var a=function d(m,v){var h=this;var u=f(m);var j=f(c);var t=false;var s=null;var q=false;var k=null;var r=null;var n=false;var p=null;var o=null;u.bind("touchstart",function(w){p=null;r=b(w.target);if(r){var x={x:r.scrollLeft,y:r.scrollTop};p=x}c.clearTimeout(s);c.clearTimeout(o);t=false;n=false;k=w.target;f(w.target).unbind("scroll",i);if(r&&(r.scrollHeight>0||r.scrollWidth>0)){f(r).bind("scroll",i)}f(w.target).unbind("click",l)});u.bind("touchmove",function(w){t=true;if(r){var x={x:r.scrollLeft,y:r.scrollTop};if(p){if(p.x!=x.x||p.y!=x.y){n=true}}}});function l(w,x){if(!x){w.stopImmediatePropagation();f(this).unbind("click",l)}else{c.setTimeout(function(){if(x&&!w.isDefaultPrevented()){var y=f(w.target).is("a[href]")?w.target:f(w.target).parents("a[href]")[0];if(y&&y.href){c.location.href=y.href}}},1)}}u.bind("touchend",function(y){f(y.target).unbind("click",l);if(!n&&!t&&y.target==k){f(y.target).bind("click",l);var x=jQuery._data(y.target).events;if(x&&x.click&&x.click.length>1){var w=x.click;w.splice(0,0,w.pop())}f(y.target).trigger({type:"click",bubbles:true},[true]);f(y.target).focus();y.preventDefault();y.stopImmediatePropagation()}c.clearTimeout(s);s=c.setTimeout(function(){t=false},v.draggingTimeout)});function i(w){n=true;c.clearTimeout(s);s=c.setTimeout(function(){n=false;f(this).unbind("scroll",i)},v.scrollingTimeout)}};f.fn[e]=function(h){h=f.extend({},g,h);return this.each(function(){if(!f(this).data(e)){f(this).data(e,new a(this,h))}return f(this)})}}(jQuery,window);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery-benignware-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - rexblack
@@ -48,7 +48,6 @@ files:
48
48
  - lib/jquery-benignware-rails/version.rb
49
49
  - vendor/assets/javascripts/benignware/bootstrap.dropdown-control.js
50
50
  - vendor/assets/javascripts/benignware/bootstrap.dropdown-control.min.js
51
- - vendor/assets/javascripts/benignware/jquery.checkView.min.js
52
51
  - vendor/assets/javascripts/benignware/jquery.checkview.js
53
52
  - vendor/assets/javascripts/benignware/jquery.checkview.min.js
54
53
  - vendor/assets/javascripts/benignware/jquery.nativepicker.js
@@ -1,2 +0,0 @@
1
-
2
- (function(e,b){var d="checkview";var f={buttonTag:"span",buttonClass:"btn btn-default btn-xs btn-mini btn-checkview",iconClass:"glyphicon glyphicon-ok icon-ok",submitOnKeyEnter:true};var a=function c(k,t){var g="click";var h=this;var o=k.ownerDocument;var r=e(k);k.tabIndex="-1";k.style.position="absolute";k.style.width="0";k.style.height="0";var m=e(k).next();var j=e(k).prev();var q=m&&m.tagName=="input"&&m.type=="hidden"?m:j&&j.tagName=="input"&&j.type=="hidden"?j:null;var n,p;var n=r.parents("."+t.buttonClass)[0];if(!n){n=o.createElement(t.buttonTag||"span");k.parentNode.insertBefore(n,k)}var p=e(n);n.tabIndex="0";n.className=t.buttonClass;n.style.display="inline-block";n.style.cursor="pointer";var i=o.createElement("i");i.className=t.iconClass;n.appendChild(i);function s(){if(!k.value){k.value="on"}k.style.visibility="hidden";n.appendChild(k);i.style.verticalAlign="top";var u;p.bind("keypress",function(x){if(x.which==32){k.checked=!k.checked;h.invalidate()}if(x.which==13&&t.submitOnKeyEnter){if(k.form){k.form.submit()}}});r.bind("change",function(x){h.invalidate();b.clearTimeout(w)});var w=null;function v(){k.checked=!k.checked;e(k).trigger("change")}e(b).bind("resize",function(){h.invalidate()});this.invalidate()}function l(){var v=e(n);if(k.checked){v.addClass("checked")}else{v.removeClass("checked")}var u=e(["margin-left"]);var w={};u.each(function(){var x=r.css(this);if(x){w[this]=x}});v.css(w);i.style.visibility=k.checked?"":"hidden";i.style.position="relative";i.style.left=((e(n).width()-e(i).width())/2)+"px";i.style.top=((e(n).height()-e(i).height())/2)+"px"}this.setChecked=function(u){k.checked=u;if(u){r.attr("checked","checked")}else{r.removeAttr("checked")}this.invalidate()};this.isChecked=function(){return e(k).is(":checked")};this.invalidate=function(){l.call(this)};s.call(this)};e.fn[d]=function(g){g=e.extend({},f,g);return this.each(function(){if(!e(this).data(d)){e(this).data(d,new a(this,g))}return e(this)})}})(jQuery,window);