| Server IP : 104.21.80.248 / Your IP : 172.71.28.155 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : E:/Inetpub/www/myschool/triamudom/tuprblearn/lib/yuilib/3.17.2/sortable-scroll/ |
Upload File : |
/*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('sortable-scroll', function (Y, NAME) {
/**
* Plugin for sortable to handle scrolling lists.
* @module sortable
* @submodule sortable-scroll
*/
/**
* Plugin for sortable to handle scrolling lists.
* @class SortScroll
* @extends Base
* @constructor
* @namespace Plugin
*/
var SortScroll = function() {
SortScroll.superclass.constructor.apply(this, arguments);
};
Y.extend(SortScroll, Y.Base, {
initializer: function() {
var host = this.get('host');
host.plug(Y.Plugin.DDNodeScroll, {
node: host.get('container')
});
host.delegate.on('drop:over', function(e) {
if (this.dd.nodescroll && e.drag.nodescroll) {
e.drag.nodescroll.set('parentScroll', Y.one(this.get('container')));
}
});
}
}, {
ATTRS: {
host: {
value: ''
}
},
/**
* @property NAME
* @default SortScroll
* @readonly
* @protected
* @static
* @description The name of the class.
* @type {String}
*/
NAME: 'SortScroll',
/**
* @property NS
* @default scroll
* @readonly
* @protected
* @static
* @description The scroll instance.
* @type {String}
*/
NS: 'scroll'
});
Y.namespace('Y.Plugin');
Y.Plugin.SortableScroll = SortScroll;
}, '3.17.2', {"requires": ["dd-scroll", "sortable"]});