~alexharrington/xibo/pyclient-1.1.0a22

« back to all changes in this revision

Viewing changes to server/lib/js/template.js

  • Committer: Dan Garner
  • Date: 2008-12-14 14:42:52 UTC
  • mto: (1.1.80 Xibo)
  • mto: This revision was merged to the branch mainline in revision 2.
  • Revision ID: mail@dangarner.co.uk-20081214144252-8dosaegtfwvv0dsl
Moved 3rd Party libraries to their own folder.
Updated jQuery to the latest revision and now use jQuery UI instead of individual plugins.

Tabs are not currently working

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 *
17
17
 * You should have received a copy of the GNU Affero General Public License
18
18
 * along with Xibo.  If not, see <http://www.gnu.org/licenses/>.
19
 
 */ 
 
 
b'\\ No newline at end of file'
 
19
 */ 
 
20
var exec_filter_callback = function(outputDiv) {
 
21
        
 
22
        exec_filter('filter_form','data_table');
 
23
        
 
24
        return false;
 
25
}
 
26
 
 
27
 
 
28
//when the DOM is ready
 
29
$(document).ready(function(){
 
30
        
 
31
        exec_filter('filter_form','data_table'); //exec the filter onload
 
32
        
 
33
        //init the filter bind
 
34
        $(' :input','#filter_form').change(function(){
 
35
                $('#pages').attr("value","1");
 
36
                
 
37
                exec_filter('filter_form','data_table');
 
38
        });
 
39
        
 
40
        //make sure the form doesnt get submitted using the traditional method
 
41
        $('#filter_form').submit(function(){
 
42
                return false;
 
43
        });
 
44
        
 
45
        /**
 
46
         * Buttons
 
47
         *
 
48
         */
 
49
        $('#add_button').click(function() {
 
50
                
 
51
                init_button(this,'Add Template',exec_filter_callback);
 
52
 
 
53
                return false;
 
54
                
 
55
        });
 
56
        
 
57
});
 
 
b'\\ No newline at end of file'