Initial commit. Transferred from an Eclipse/Brainstorm environment to NodeJS.
This commit is contained in:
11
public/js/jquery.display.js
Normal file
11
public/js/jquery.display.js
Normal file
@@ -0,0 +1,11 @@
|
||||
(function($) {
|
||||
$.fn.display = function(show) {
|
||||
if(this.hasClass('inline')) {
|
||||
this.css('visibility', show ? 'visible' : 'hidden');
|
||||
}
|
||||
else {
|
||||
if(show) this.show();
|
||||
else this.hide();
|
||||
}
|
||||
};
|
||||
})(jQuery);
|
||||
Reference in New Issue
Block a user