Blame view

framework/admin/javascript/CMSSecurity.js 595 Bytes
0084d336   Administrator   Importers CRUD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  jQuery.noConflict();
  
  /**
   * File: LeftAndMain.js
   */
  (function($) {
  	// setup jquery.entwine
  	$.entwine.warningLevel = $.entwine.WARN_LEVEL_BESTPRACTISE;
  	$.entwine('ss', function($) {
  		// Make all buttons "hoverable" with jQuery theming.
  		$('.cms input[type="submit"], .cms button, .cms input[type="reset"], .cms .ss-ui-button').entwine({
  			onadd: function() {
  				this.addClass('ss-ui-button');
  				if(!this.data('button')) this.button();
  				this._super();
  			},
  			onremove: function() {
  				if(this.data('button')) this.button('destroy');
  				this._super();
  			}
  		});
  	});
  }(jQuery));